Repository navigation
Upgrade every binary together, starting with the collector. A 0.20 collector
refuses checkpoint records. If a request ID still has an open trail, the plane
refuses the call before writing and returns INDETERMINATE and
INVALID_FIELD_VALUE. The collector returns 400 for evidence records
carrying previews, redaction profiles, or bytes other than the plane's
encoding. The plane clears previews before writing evidence. Under
TRUST_INDEPENDENT, observe import walks egress and process input paths
from /. Directories writable by the group or others must be sticky, with
entries owned by root, the directory owner, or the importing account. observe import refuses input files with a second name. coverage refuses a process
path unless its name is an absolute, clean executable path. Its sources must
repeat that path and leave server_address unset. supervise reads run trees
of at most 190 runs. Before rolling back, close every held request or let it
expire. 0.20 refuses hold journal 1.1. 0.20 readers refuse observation logs
with process records and findings logs with egress reports. See upgrade a
plane from 0.20.
Each evidence line links to the previous one with prev_event_digest. With a
checkpoint key and floor, the plane signs checkpoints over its trail. trail verify and a Python verifier check exports against those checkpoints. The
guarantee covers only events a checkpoint seals and excludes tampering by
whoever controls the plane host and its key. See sign a plane's
trail. As a sensor independent of the
agent, observe import reads process starts from the agent's host. When an
egress proxy authenticates callers with runs check-token, supervise lists
a run's connections and coverage --runs counts them per run.
export.authorization_file reads the collector credential from a judged file.
The hook profile, qualified on two runtime releases, was not requalified.
Added
-
Event.prev_event_digest(field 31) holds the SHA-256 of the previous
evidence line's exact bytes in the chain, excluding the newline. A filled
link issha256:followed by 64 lower-case hex digits. Each
ACTION_PROPOSEDstarts a chain with an empty link, even when a request id
is reused after its trail closes.prev_event_idkeeps its meaning. The
exporter sends the spooled line as the log record's body. The collector
stores those bytes. Trail export copies them. If the plane cannot seal an
event, it takes the refused append path and halts material calls.
Pipeline.SealFailures,Pipeline.SealFailuresAfterEffectand
Pipeline.SealFailuresAbandonedcount total, after-effect and abandoned
seal failures, respectively. The corresponding metrics are
guardana_control_pipeline_seal_failures_total,
guardana_control_pipeline_seal_failures_after_effect_totaland
guardana_control_pipeline_seal_failures_abandoned_total. The health keys
areseal_failures,seal_failures_after_effectand
seal_failures_abandoned. Sink failure counts exclude seal failures.
Closing records lost to seal failures after the effect or to the spool
count as lost closings forrun's exit status. (ADR-0096) -
observe importreads a log of processes started on the agent's host. A
host-process-eventssource maps top-level members of each JSON line to
time, process id, parent process id, executable and user. Time and
executable are required.time_formataccepts RFC 3339, Unix seconds or
Unix milliseconds. Each accepted line becomes one process observation.
Import reads only the mapped members, so it copies arguments, environment
and working directory only if the mapping names them. Each line must be
at most 64 KiB and parse as a JSON object with unique member names. It
must include a readable time and an absolute, clean executable path of at
most 4096 bytes. The import report counts refused lines by reason in
refused_by. Import drops malformed process ids, parent process ids and
users and counts them instrings_dropped. A source may declare
TRUST_INDEPENDENTon an unsigned descriptor. With that trust setting,
observe importrefuses input writable by the group or others. Such a
source names no run, and its refused lines cast doubt on no run. The
importer keepsuseras copyable text up to 64 bytes without=or
blank runes, or as the digits of a plain-digit JSON number up to
4294967295. It counts dropped values instrings_droppedand keeps the
line. Log reads and writes reject lines with invaliduser. Executable
path elements cannot start with a mark, and may hold white space only
inside an element and no other blank rune. Blank runes includeU+303F,
U+16FE4andU+1D159
(host process events,
ADR-0095). -
Source descriptor schema
0.3carries the process mapping. Descriptors
0.1and0.2read as before. Observation record schema0.4carries a
process observation or an import report of this kind. Version 0.20
rejects logs containing a0.4line as damaged and0.3descriptors as
unknown versions
(ADR-0095). -
coveragecounts aprocesspath as observed when a live
host-process-eventssource named by the path holds a process
observation of its executable. Each process source whose import refused
a line gets its own row, as does each executable a process source saw
that noprocesspath declares.coverageprints up to 256 of those
executables in byte order and reports how many it omitted. Either kind
of row makescoverageexit with status 1.coveragealso prints an
unseen process byrow and exits 1 for a process source never heard, past
its heartbeat or heard in the future, even when no path names it
(ADR-0095). -
guardana-control runs check-tokenis a Squid basic authentication helper
over a runs directory. It answersOKfor an open, unexpired run matching
the tenant, project and secret, andERRfor a refused token or a malformed
or overlong line. It answersBHwhen it cannot judge because it cannot
read the runs directory, a record, the roster or the floor, or because its
account cannot write a directory the plane writes. For a signed directory,
pass--roster,--root-key,--roster-idand--floor-dir. The helper
answersBHif the roster id differs from--roster-id, the floor is
unreadable or lacks a matching serial and digest for that id, or the serial
is below the highest the helper process has taken. It writes nothing and prints no secret. Run
it as the plane's account through a one-command wrapper; the
egress proxy guide shows Squid's
configuration. -
export.authorization_file(GUARDANA_CONTROL_EXPORT_AUTHORIZATION_FILE)
names a file holding the value of theAuthorizationheader the plane sends
its collector, whichrunanddoctorread at start. The file must be
regular, not a symbolic link, with one name, owned by root or the plane's
account, with no group or others permission bit and no access control list,
and hold one printable ASCII line that is not blank (at most 8 KiB; one
trailing newline is taken off).runanddoctorrefuse a path starting
with an authentication scheme such asBearer, and the key beside an
Authorizationheader fromexport.headersor its variable;devrefuses
the key. It works under everyapprovals.authority. A signed plane, whose
configuration is root's file of mode0644and whose environment sets no
key, should move its credential here fromexport.headersand make a new
one.doctorwarns when the file is unset and the header is absent or holds
only spaces, with the same verdict and exit status. At start,runwarns on
standard error of eachexport.headerskey set by a configuration file its
group or others may read, even when the environment sets it again, naming
the key, the file and its mode. No refusal or warning holds the value. -
The
guardana.control.evidence.v1alpha1checkpoint message, outside the v1
promise, its signed envelope and checkpoint export0.1.
guardana-gateway trail verifyreads chained evidence exports, a whole
checkpoint export, each expected plane's public key, and the tenant and
project. It reportsaltered,truncated,unsealed,filtered,pruned
orverifiedper request and lists chain faults. It exits 0 with
verified,prunedorfilteredverdicts and no chain fault, 1 on
altered,truncated, a chain fault or an output error, 3 when only
unsealedremains, and 2 on a usage or input error. Adversarial fixtures are
intestdata/trail-verify/. See trail
verification and ADR-0096. -
supervisereads up to fouregress-access-logsources declaring
CALLER_BASIS_AUTHENTICATEDandTRUST_INDEPENDENTand mapping a status.
Refused input exits2without printing. It joins by caller, tenant,
project, status and the run's window, skipping407and other runs with
readable records. Each admitted source gets anegressentry in input order,
even with zero counts. It gives exact counts of attributed connections, those
outside the window, those of unknown run and those naming no run. It lists up
to six attributed connections with host and port, ordered by event time then
observation id. Unknown or unnamed connections put the run in doubt. An
unknown window puts every egress source in doubt. Output shows counts and
connections, with pruning counts in source id order. With only counted
connections, it writes to the findings log under the record's project and
exits1. Supervision,
ADR-0094. -
coverage --runs <dir>counts egress connections per run and source.
For a signed runs directory, give--roster,--root-key,--tenantand
--project. Likesupervise, it joinsegress-access-logsources that
declareCALLER_BASIS_AUTHENTICATEDandTRUST_INDEPENDENTand map a
status. Each run row counts attributed connections, those outside the
window and those of unknown run for one joined source. At most 256 run
rows print, followed by a count of any rows cut. Each joined source then
gets a row counting unattributed connections and those naming no run.
Each other egress source gets a reason. Coverage exits 1 on a connection
of unknown run, one naming no run, or a cut run row. Without--runs,
coverage prints and exits as before. See
coverage of runs and
ADR-0094. -
A second trail verifier,
guardana_control.trailinclients/python/. Run
python -m guardana_control.trail verify --export <file>... --checkpoints <file> --plane <id>=<public-key-file>... --tenant <id> --project <id>.
It uses the standard library alone. Its output and exit statuses match
guardana-gateway trail verifyon every shared case. It checks only part
of the event schema and accepts unknown event members that the Go verifier
rejects. See trail verification. -
The plane signs checkpoints when
evidence.checkpoint_key,plane_idand
evidence.checkpoint_floor_dirare set. Signing runs off the decision path
after an event is written andevidence.checkpoint_intervalhas elapsed,
and at a clean stop. The interval defaults to1mand ranges from1s
to1h. A checkpoint covers up to 255 seals. The plane appends it durably
to itscheckpointslog under the evidence directory, then raises its
floor. If the log already holds a different checkpoint for that sequence,
the plane refuses the append and reportsappend_failed. After a restart
the plane resumes from the highest sequence the log holds. The health
membercheckpointsreportsoff,knownorunknown, with causes
key_unreadable,key_trust_failed,floor_unreadable,sign_failed,
append_failed,collector_refusedandexport_stalled. The plane keeps
serving calls with statusdegradedwhile integrity is unknown.
guardana_control_checkpoint_signingreads 1 when the plane has read the
key and floor, the trust check passes and no integrity cause is set.
guardana_control_checkpoint_integrity_unknownreads 0 while integrity is
known and 1 for each activecausewhile it is unknown. See
Sign a plane's trail and ADR-0096. -
guardana-control policy keygen --checkpoint --out <dir>writes
checkpoint.key(mode 0600) forevidence.checkpoint_keyand
checkpoint.pubfortrail verify --plane. It refuses an existing path
and prints the key id.guardana-control policy state init --kind checkpoint --plane-id <id> --tenant <id> --project <id> <dir>makes the floor. It
refuses a plane id the configuration'splane_idrule refuses. The plane
never makes its own floor. -
The exporter sends checkpoints at least once as a separate record type.
It writes its position to a completecheckpoints.cursor.tmpfile in the
spool directory, then renames it tocheckpoints.cursor. It refuses a
cursor file with more than one name. After three refusals it quarantines a
checkpoint and reportscollector_refuseduntil a later checkpoint is
accepted. Consecutive checkpoint log read failures, network failures,
timeouts or 5xx responses setexport_stalled. The cause clears on the
next accepted send or when nothing is left to send. A 0.20 collector
refuses checkpoint records. A clean stop keeps its checkpoint in the
plane's log. The checkpoint reaches the collector before exit if its send
finishes in time. Otherwise the exporter retries it at the next start.The collector keeps checkpoint bytes in a separate log beside the trail.
A resend with the same decoded payload type, payload, key id and signature
is accepted without another write. The collector keeps the first line
byte for byte and logscheckpoint_duplicates=N. It keeps a fork when the
payload or signature differs for a plane and sequence it already holds and
warns withcheckpoint_forks=N. Both counts restart at zero when the
collector restarts. Before pruning,guardana-gateway prunerecords the
highest sequence it will remove per plane inside.jsonbeside
segments.json. The collector accepts resends at or below that mark that
the log no longer holds, including forks, without writing them and warns
withcheckpoint_pruned_resends=N.log backupandlog restorecopy a
checkpoint log'sside.json. A plane's own checkpoint log refuses to write
its own sequences at or below the prune mark, and the plane reports
append_failed.guardana-gateway trail checkpoints [--after <n>] [--limit <n>] <dir>
writes checkpoint export0.1from either log. If the plane never starts
again,trail checkpointscan export the final checkpoint from the plane's
own log. The export header recordsafter(0 by default), and the trailer
recordsend_reachedandnext. Readers refuse a missing trailer or data
after it.trail checkpointsexits 1 when more follow.trail verifyand
the Python verifier exit 2 unlessafteris 0 andend_reachedis true.
Logs with more than 100000 checkpoints cannot be verified whole. -
Anyone with the plane's public key can detect alteration, deletion or
reordering of an event a signed checkpoint seals, within a claim that
excludes events the plane never wrote or wrote falsely, events after the
newest checkpoint (unsealed), tampering by whoever controls the plane
host and its key, and, in the absence of an outside anchor, removal of the
newest checkpoints together with the events after them.
Changed
-
The plane refuses calls under open request ids immediately, before
writing, withINDETERMINATEand reasonINVALID_FIELD_VALUE. Ids stay
open from first event to closing record. Chains under one id never
interleave. Calls that never held always release ids when the closing
append returns. Unclosed held trails reserve ids until the plane stops,
keep entries for the next start to report, and count in
held_trails_left_open. Refused closing records also count as sink failures. -
The collector returns 400 for log records with argument or result previews
or redaction profiles. It used to clear those fields. Clearing would change
the bytes the link covers. It also refuses JSONnull, lines with a
carriage return or a raw rune the encoder escapes, and lines whose bytes
differ from the plane's encoding of the decoded event.
testdata/evidence/lines.jsonlpins that spelling. Refusals quote no
content. The plane retries the record, then quarantines and counts it. The
next event links to the missing line. (ADR-0096) -
Hold journal
1.1stores the last line's digest beside its event id. After
a restart, the next event links to that line. A1.0entry holds no digest.
The first event after resumption has an empty link, as do that request's
earlier events. On rollback to 0.20, the plane refuses1.1entries. Their
requests stay atAPPROVAL_REQUESTED. The lost-hold close leaves them open,
and they never run. Before rolling back, close every held request or let it
expire. (ADR-0096) -
Under
TRUST_INDEPENDENT,observe importnow walks egress and process
input paths from/, following symbolic links and checking each directory.
Group- or other-writable directories like a group-writable/var/logmust
be sticky. Standard error names the resolved directory and mode on failure.
Each entry there must belong to root, the directory's owner or the importing
account. Ownership refusals name both owner ids. An input file there with a
second name is refused. The sticky bit stops another account replacing a
name, not creating it first. Mode-bit and owner-id checks ignore access
control lists. The importer refuses symbolic links at input names and
rejects trailing separators and final.or..elements before opening
anything
(ADR-0095). -
coveragerequires aprocesspath'snameto be an absolute, clean
path of an executable. Each of its sources must name that executable and
omitserver_address.coveragerefuses inventories that fail these
checks. Tool observations no longer count towardprocesspath coverage.
coveragerefuses a log containing a process source's records unless
that source's descriptor is supplied with the log
(ADR-0095). -
A
SuperviseReportcarryingegressis schema0.3. The findings log
refuses invalid source ids, hosts or ports, excess entries or connections,
missing required members, duplicates, misordered connections and list lengths
other than the lesser ofattributedand six. The0.20readers (react,
notify,findings export) refuse logs carrying0.3as damaged. A shared
doubt line names the least id and counts the others. A folded pruning line
gives a count only for one source.
Fixed
-
policy renewruns sharing--outunder different signer floor directories
check--outagain after a refused write for as long as the file there
changes between checks. Before, a run gave up after three checks, and putting
the old file back after a refused write could use them up with no newer
statement there. A second refusal of an unchanged file ends the run with that
refusal. When the ten-second wait for the signer floor directory runs out,
the run exits 1, saying it wrote nothing at--outand raised the signer
floor to its statement, and naming its last refusal. It keeps a newer
statement and replaces an older one. -
Under
inherit, a tree of 400 runs with every source in doubt could exceed
the findings log's 64 KiB line bound, so the log refused the write. The limit
is now 190 runs. The test fills every doubt line and count to its maximum.
The report is 56480 bytes at 190 runs, within 7/8 of the line bound. At 200
runs the largest report exceeds 7/8.
Security
guardana-gatewayno longer passes environment variables whose names start
withGUARDANA_CONTROL_, in any letter case, to theguardana-control
binaryscenarioruns or the approval pagedevserves. Before,scenario
passed its whole environment, including
GUARDANA_CONTROL_EXPORT_HEADERS_AUTHORIZATIONwhen it was set. An MCP
server the plane starts over stdio already received only the environment its
configuration gives it.
Image: ghcr.io/guardana/control-gateway@sha256:6bce71a3c4a048ec68ee25a96daf41ff1e1aa8303c8eedaacec986258f0195f7