Repository navigation
v3.0.0 fix: harden native PRISM configuration and containers - #361
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ff6c334e9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
5167520 to
9470fb6
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9470fb662a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… keys Merging the current `3.x.x` brings #361, which bumps the artifact schema to v3, moves `PRISM_SHARE_COMMIT_BATCH_SIZE`, `PRISM_SHARE_COMMIT_LINGER_MILLISECONDS` and `PRISM_STRATUM_VARDIFF_IDLE_SWEEP_SECONDS` out of `CONFIGURATION_KEYS` into `RETIRED_CONFIGURATION_KEYS`, and adds four keys the harness already sets. Evidence that names a retired key is now refused outright, as not having measured the native binary. Neither branch could see this: each was green alone, and the collision only exists in the merge. It surfaced as one failing assertion, because the harness takes `CONFIGURATION_KEYS` and `SCHEMA` from that module rather than copying them, so the schema string and most of the key list followed on their own. What was left to do is the part that was hard-coded. The harness no longer sets the three retired keys on a frontend and no longer records them; the side report lists them under `retired_configuration_keys` instead of `unread_configuration_keys`. Startup only warns about an unread `PRISM_*` outside production mode, so setting them was never fatal -- it was just untrue by v3's account. Under v2 the honest answer was to carry those keys with the values the frontends really used and annotate them as unread (#288), because nobody had ruled on them. The server has now ruled, so the honest answer is to leave them out. The three per-field notes are replaced by one note saying that, and the README says which release changed the answer and why. The test asserted the keys were present. It now asserts they are absent from both the frontend environment and the configuration block, which is what v3 requires. Part of #271
#361 added `scripts/check_prism_settings.py`, which refuses any mention of a retired `PRISM_*` setting in operator guidance unless the line carries a `<!-- retired-setting: NAME -->` marker. The previous commit rewrote this README passage to explain that the three keys are retired, and naming them in prose is exactly what the guard is there to catch: a reader skimming for a setting name cannot tell an explanation from a recommendation. Carry the markers and name the settings in words instead. The guard passes and the passage still says which keys it means. Found by CI, not locally: the guard is a step of the lint job rather than part of the Rust or Python suites, so a green `cargo test` says nothing about it. Part of #271
Native capacity evidence previously required retired Python settings, while configuration validation silently accepted obsolete names and malformed API values. This updates evidence to
qbit-prism-capacity-evidence/v3with native worker, connection, and job-builder budgets;check-confignow lists every unsupportedPRISM_*name and rejects them in production.import-auditsresolvesPRISM_AUDIT_DIRwhen--rootis absent, API settings use strict startup parsing, and health publication followsPRISM_HEALTH_REFRESH_SECONDS. The optional operator bearer token protects the operator listener and its healthcheck; the independent public service never opens operator credentials.Implements decision D4 with mounted signing-seed files, a non-root image (UID/GID 10001), an image healthcheck, zero core limits, and Linux process dumpability disabled before credentials load. Database-only migrate/import/backfill commands need no signing seeds. Production Compose and operator preflight require a secrets directory, and CI rejects retired settings in operator guidance.
Compatibility: v1/v2 capacity artifacts must be regenerated. Production operators must provision the documented read-only secret mount and stop passing signing seeds as environment values. Key rotation rehearsal remains #291.
Validation:
The full node/PostgreSQL integration gate and Linux dumpability unit test run in CI. The local image smoke exercises the public service; the coordinator probe is covered by CLI/auth tests and its failure without a listener, without starting qbitd locally.
Closes #288.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.