Repository navigation
feat(blackbox): verify mjolnir's card against the estate CA - #1729
Merged
Merged
Conversation
The card serves mjolnir.matrix.elysium from the estate CA since 2026-11-24, for an RSA 2048 key made on the card. The ups-ui probe moves from http_2xx_self_signed to http_2xx_lab_ca, so a lapsed or factory-reset certificate fails it. generate-certificates.md now records the steps that worked: an RSA key, because the card drops every handshake when an ECDSA key sits under this CA's RSA signature; uploads land in the card's root; and a reboot -Y after import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The runbook’s check does not follow the documented redirect, so a healthy endpoint can report 303 instead of the required 200; add --location to match the blackbox module’s behavior.
1 open issue
What changed in this PR
This PR makes the ups-ui probe verify mjolnir’s APC card certificate against the estate CA, so an untrusted or factory-reset certificate triggers an alert.
Changes:
- Switches only
ups-uito the CA-verifying blackbox module. - Updates the certificate runbook with RSA key generation, corrected import steps, reboot, verification, and rollback.
- Refreshes documentation and records the certificate deployment and ECDSA failure.
| File | Description |
|---|---|
stacks/observability/prometheus/targets/blackbox.yaml |
Enables CA verification for ups-ui. |
stacks/observability/blackbox/blackbox.yaml |
Updates comments about self-signed endpoints. |
docs/runbooks/generate-certificates.md |
Documents the working APC certificate procedure and recovery. |
docs/observability.md |
Describes CA verification of the APC certificate. |
docs/hardware.md |
Records the card’s CA-issued certificate and verified probe. |
docs/changelog.md |
Records deployment results and the ECDSA handshake failure. |
Review effort: Balanced
… by decision Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the card leaf Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
targets/blackbox.yaml: theups-uitarget,https://10.0.99.10/, moves fromhttp_2xx_self_signedtohttp_2xx_lab_ca.docs/runbooks/generate-certificates.md: The APC card's leaf is rewritten from what actually worked on 2026-11-24:ssl key -rsa 2048);:nmc.crt), and the import isssl cert -i nmc.crt;reboot -Yafter the import;curl --cacertcheck, becauseopenssl s_clientreportsVerify return code: 0even when the handshake then fails.It also gains how to roll back, and the Renewal paragraph no longer calls the card self-signed.
blackbox.yamlcomments,observability.mdandhardware.md: no longer describe the card as self-signed.docs/changelog.md: an entry for the leaf and the ECDSA failure.Why
This is audit item 11. The card now serves a leaf from the estate CA, so its probe should verify it. Otherwise a factory reset or a lapse back to a self-signed certificate would pass silently.
Blast radius
The probe changes from skipping verification to verifying against
ca.pem. It passes today. If the card's certificate stops verifying,EndpointUnreachablefires forups-ui, which is the intent. No other target changes.Verification
curl --cacert certificates/ca.pem https://10.0.99.10/returns 200, andopenssl s_clientnegotiates TLS 1.3,TLS_AES_128_GCM_SHA256, withVerify return code: 0.module=http_2xx_lab_caagainst the card:probe_success 1, HTTP 200, TLS 1.3, and the expiry read.upis 1,upsConfigLowBattTimeis 16, and NUT readsOLwith all three clients. Card alerts are clear and the silences are deleted.check_docs.py,lint.shandpromtool test rules tests/blackbox.test.yamlpass locally.🤖 Generated with Claude Code