Repository navigation
Fix station bootstrap and defaults; harden application monitoring readiness - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A fresh station could fail before CA publication because Zig 0.16 opened the operation-lock directory with Linux O_PATH, which flock rejects even when the lock is free. Open a readable directory descriptor, preserve exclusive nonblocking locking, and distinguish OperationBusy from fixed filesystem/PKI diagnostics. Converge absent or empty ingress directories, recover proven unpublished candidates, reuse published CA/server identity, and restrict registry migration to the known 0700-to-0750 generation. Invalid active state still fails without rotation or private output.
Station install, verify, status and notify-test now load optional CWD ./station.toml. Explicit --config replaces the default, CLI values take precedence, and canonical [station].hostname supplies the independent mTLS identity. The v1 [ingress].hostname alias remains compatible unless contradictory. Plans show connection/hostname/ports without resolving secrets; application commands retain ./monitoring.toml.
The earlier application-hardening changes accept fresh failed-scrape telemetry when the app is down, preserve real-payload requirements for successful targets, improve safe application checks, and read TLS client-auth alerts before sending HTTP. The pinned Doers process fixture covers zero-client station readiness, scoped app publication/removal, trusted metrics/logs, quiet streams, alert hold/recovery, no-op publication and bounded outage buffering. Station/application ownership, service units, rule definitions, pins and public networking scope stay unchanged.
Validation at d8393b7:
Disposable-host integration not run. No production SSH, service stop, DNS/firewall change or notification was performed. Filesystem/chroot, fake-remote and isolated process tests do not prove real systemd/journald, public listener reachability, two-host deployment or Telegram delivery. Deployment validation remains with the operator.