Repository navigation
Complete the fleet: identity providers, token exchange, outcomes, anchoring, operations - #4
Merged
Merged
Conversation
sqlx 0.9 needs Rust 1.94 or later. Statements built from constant fragments are asserted safe in one helper; values stay bound. The rsa advisory no longer applies. libsqlite3-sys moves to 0.37, the newest sqlx 0.9 allows; the SQLite advisory stays ignored until sqlx allows 0.39.
…horing, operations
- Sign in with any OpenID Connect issuer (people and CI such as GitHub
Actions). JWTs are verified with ring against the issuer's JWKS, with exact
issuer and audience, required claims, verified email, and optional
auto-provisioning without roles. Rejection reasons are logged.
- POST/GET/DELETE /v1/tokens: exchange a sign-in for a short-lived service
token, list and revoke tokens. Service tokens cannot mint more.
- POST /v1/grants/{id}:outcome records host-reported stream outcomes.
- Signed audit heads (GET /v1/audit/head), periodic anchoring outside the
database, and admin audit keygen/anchor/verify.
- Per-principal and per-peer rate limits with Retry-After, Prometheus
metrics on a separate listener, size plus daily log rotation.
- FLEET_MIGRATE=false with admin migrate, least-privilege PostgreSQL roles
(deploy/postgres/roles.sql), CA certificates in the image.
- Pin the contract to the sendbox PR branch with the new api types.
- Docs: README status, deployment guide, roadmap, architecture, contract,
threat model, development.
mbianchidev
marked this pull request as ready for review
November 15, 2026 17:14
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.
Completes the remaining fleet roadmap for mbianchidev/sendbox#87 increment 2.
Changes
FLEET_OIDC_CONFIG): people by verified email, CI such as GitHub Actions by claim withrequired_claims. JWKS discovery and caching,ringverification (RS256,ES256,EdDSA), and exactiss/aud/exp/nbf/iatchecks. Optional auto-provisioning creates principals with no roles. Rejection reasons are logged; the token itself is never logged.POST /v1/tokensturns a sign-in into a short-lived service token, which is whatsendbox governance logincalls. AlsoGET/DELETE /v1/tokens. A service token cannot mint another, and each principal holds at most 20 live tokens.POST /v1/grants/{id}:outcomerecords host-reported stream outcomes asrequest.outcome. Outcomes are evidence only.GET /v1/audit/headreturns a signed chain head. Heads are anchored periodically toFLEET_AUDIT_ANCHOR_DIR.admin audit keygen|anchor|verifychecks the anchors and detects a rewritten database.deploy/postgres/roles.sql): the runtime role has no UPDATE, DELETE, TRUNCATE or ALTER on audit.FLEET_MIGRATE=falseplusadmin migrate.429withRetry-After.FLEET_METRICS_BINDlistener.rsaadvisory exception is gone.docs/deployment.mdcovering TLS, roles, identity providers, anchoring, metrics and backups.Not in this PR
Live Apple/Kata runs against real providers. That work is host-side, so it is tracked in mbianchidev/sendbox#96.
Contract pin
mbianchidev/sendbox#97 is merged, so the contract is pinned to sendbox
main(3cab614). Nothing else has to merge first.Validation
cargo fmt --check,clippy -D warnings,cargo audit --deny warnings.none/HS256, audience, expiry, and auto-provisioningsendbox_fleet_appwithFLEET_MIGRATE=false: anchoring,admin audit verify, metrics listener, 429, and graceful stop.docker build --no-cacheand a container smoke test (uid 10001, CA bundle present).