Repository navigation
Online hardening: live revocation, signed revocation checks, outage grace - #10
Merged
Merged
Conversation
- server: --revoke-file live denylist (re-read per request) revokes without a restart. (#4) - revocation_url checks are now signed: GET /v1/check returns a nonce-bound, vendor-signed online.CheckResponse; the loader verifies it against the key ring, and CRYPTSHIP_REVOCATION=closed rejects unsigned "active" answers. (#2) - online provider: CRYPTSHIP_ONLINE_GRACE=<dur> rides out a license-server outage using a secret sealed to the machine (or a state-dir key when no machine id is readable). Never bypasses revocation; never applies to attested, which must always re-attest. (#4) - tests: revoke-file live reload, signed /v1/check, grace ride-out + expiry. - docs: HOWTO and ARCHITECTURE updated. Closes #4. Advances #2 (the clock-record-reset caveat remains). #3's challenge/ephemeral-key protocol and a real SEV-SNP/TDX verifier, and #5's memfd/separate-uid extraction, remain documented roadmap (hardware-dependent).
skalvinnathan
force-pushed
the
feat/remaining-issues
branch
from
November 15, 2026 17:42
13dd0e8 to
b6050d6
Compare
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.
Implements the remaining online/revocation issues on top of #8.
Changes
cryptship-server --revoke-file <path>: a denylist re-read on each request, so editing the file revokes (or restores) a license without restarting the server.--revoke(static) still works.GET /v1/checkwith a nonce returns a vendor-signed, nonce-boundonline.CheckResponse. The loader verifies it against the key ring, so a captive portal / on-path attacker cannot forge "not revoked".CRYPTSHIP_REVOCATION=closedalso rejects an unsigned "active" answer.CRYPTSHIP_ONLINE_GRACE=<dur>lets an online-bound app ride out a license-server outage using a secret sealed to the machine (fallback: a key in the state dir). Off by default; never bypasses revocation (a reachable server that says revoked wins); never applies toattested.Tests
New: live
--revoke-filereload, signed/v1/check, grace ride-out and grace expiry. Full suitego test -race ./...,go vet,gofmt -l, and all three demos (baseline, compiled, online) pass locally.Not in this PR (roadmap, hardware/protocol-dependent)
memfd_create/fexecveand separate-uid extraction — not practical for a general multi-file interpreter app; non-rootUSER,PR_SET_DUMPABLE, and the seccomp profile already ship.Closes #4.