Repository navigation
[M2.3-fix] Rule 6/8 audit follow-ups: join token secrets and audited key creation - #110
Merged
Merged
Conversation
samuelmbabhazi
added a commit
that referenced
this pull request
Nov 5, 2026
…111) ## What changed The PLAN now states what remains after the post-merge audit of PRs #30 to #110. - **New status section.** It covers: - what is done; - the verification gap: CI has been blocked by billing since #87, so integration, browser, CodeQL and gosec runs are missing. New task CI-1 reruns them first; - the next tasks in dependency order; - previously unowned work, now assigned to tasks; - the decisions waiting for the maintainer. - **M1.2 and M1.2b ticked.** Their acceptance is met. The join-token REST endpoint, node list/revoke and the install command with the CA fingerprint move to a new task, **M2.7**, which depends on M2.3d and M2.3g1. - **New splits:** - M1.4a/b/c (action dispatch over `Connect` becomes M1.4a); - M2.3f1/f2 and M2.3g1/g2. M2.3g1 records that `node_certificates` lacks `organization_id` and needs an ADR; - M2.4a/b (partly done: append-only grants and their test exist); - M2.5a/b. - **Stale M2.3 bullet removed.** Live owner authorization for API tokens was delivered in M2.3d2. - **M2.6 marked partly done** by M2.2e. The SSE endpoint is assigned to it. - **`ExecStream`, `CollectFacts`, `UpgradeAgent` and retry-safe renewal** are assigned to M6.1, M1.6, M8.3 and M4.5. - **SPEC 4.** It now names the `public` schema actually used, instead of `shipkeep`. - **SPEC 16.** New open question on confirmation tokens for in-place `RestoreVolume`/`RestoreDatabase`. This would change the action list, so the maintainer decides. ## How it was tested Docs only. Prettier and the local gate pass. ## Security considerations None in code. The document records a missing confirmation requirement and an unapproved license (`argparse`, PSF-2.0) as maintainer decisions.
This was referenced Nov 5, 2026
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.
What changed
Follow-ups from the post-merge audit against the CLAUDE.md architecture rules (6 and 8).
Secretvalues (rule 8).IssuedJoinToken.value, theEnrollNodeinput and the gateway request mapping now carry the token asSecret. It is exposed only where it is hashed or checked for format.IssueJoinTokenruns the insert andfleet.join_token.issuedinsideFLEET_TRANSACTION. A failed audit write leaves no usable token behind.onApplicationBootstrapinstead ofonModuleInit, so the audit recorder has already subscribed.fleet.installation_key.createdevent (kind and public-key fingerprint, no organization, no private material).How it was tested
join_tokenscount unchanged.runtime-role.integration.spec.tsnow compares the audit count to its value before the denied rewrites, because startup adds two system rows.FLEET_TRANSACTIONand the audit store (no database).Security considerations
Two code paths no longer expose secrets: the join token now stays wrapped in
Secret, and database driver errors are no longer logged. Two state changes that were previously unaudited are now audited.Checklist