Repository navigation
Implement project roles, approved expiring exceptions, and central audit - #3
Merged
Merged
Conversation
Replace the 501 scaffold with the increment-2 service: - Bearer tokens issued by `sendbox-fleet admin`, stored as SHA-256, expiring, revocable, and void for disabled principals. - Project-scoped roles with operator bootstrap, owner-managed changes, and a last-owner guard. - Signed profile publication verified with FLEET_PROFILE_TRUST, monotonic revisions, and rising minimum revisions. - Session admission bound to the caller, this authority, the member role, the current revision, and valid exceptions. - Grants, renewal, revocation, session end, and per-request authorization using the shared evaluate_request rules. - Exceptions that lift only operator-listed denials, approved by a different owner or admin, bound to one revision, at most 7 days. - Hash-chained audit for every decision and refusal, role-scoped queries, and chain verification. Schema version 2 adds tokens, the operator flag, session exceptions, and exception-aware audit columns. The contract pin tracks the sendbox pull request branch until it merges.
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 increment 2 of sendbox-dev/sendbox#87 (criterion 7): the scaffold's
501routes become the shared governance service. The host client is in sendbox-dev/sendbox#95.What
sendbox-fleet admin token issuemintssbf_tokens and stores only their SHA-256. Tokens last at most 90 days, can be revoked, and stop working when their principal is disabled. Identity headers are ignored.member+), exception decisions (owneroradmin), and visibility of roles, exceptions, and audit.sendbox governance signwrites, verified againstFLEET_PROFILE_TRUST. Revisions and minimum revisions only go up.FLEET_AUTHORITY_ID). The profile revision must be current, and every bound exception must be valid and permitted.sendbox_governance::evaluate_request. Lifetimes are capped by the profile, by exception expiry, and by 7 days. A revoked or expired exception denies withstale_policy.owneroradminapproves or rejects it. Approvals are bound to that revision, so a stale one is refused. Expiry is at most 7 days, and the exception can be revoked.GET /v1/audit/verifychecks the chain.command/domain/network),session_exceptions, and auditexception_id/detail. Both backends serialize writers.Validation
cargo fmt --check,cargo clippy --locked --all-targets -D warnings,cargo test --locked(SQLite).FLEET_TEST_DATABASE_URL,--test-threads=1).docker build --no-cacheof the image.sendbox governance signand published, roles assigned, self-approval refused, approval by an admin, then the real sendbox host client running whoami, admission, grant, authorize, renew, and end against this server. The audit chain verified as valid.Remaining (docs/roadmap.md)
Identity provider (OIDC or mTLS), live Apple and Kata runs, anchoring the audit chain head and reporting outcomes, operations hardening (rate limits, metrics, DB roles), and sqlx 0.9.