← Back to Pull requests

feat(s3): the authorize answer carries its chain, and drop /s3/bucket/info #13

Closed
unknown closed this pull request without merging on Nov 30, 2026 15:24 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 13:17 UTC
Author

The answer to /s3/request/authorize now carries the chain from the bucket to the access key: the key's delegations over each bucket the request acts on, with the bucket's root. The tenant service reads them in the same state as its decision, and every change to what a key may do revokes them. /s3/bucket/info, which the gateway used only to fetch that chain, is removed.

This closes a gap. An authorization answer built just before a change to a tenant, such as a write-lock, could reach the gateway after the change. The gateway then fetched the chain from /s3/bucket/info, which by then returned the key's new delegations. The change's revocations named the old ones, which the gateway never held, so they matched nothing in its cache, and the out-of-date permission set (uploads included) stayed cached until the next UTC midnight. With the delegations carried in the answer, the revocations always name something the gateway holds: it refuses to cache the answer, or drops it when they arrive.

Depends on these, and should merge after them:

  • hilt#160, which removes /s3/bucket/info from the tenant service

  • infra-central#518 and smelt#96, which stop delegating it to the gateway

  • libforge#105, which removes the command's definition
  • The answer carrying its chain is already live: hilt#159 and ingot#443.

    🤖 Generated with Claude Code

    Diff: 209 lines (+156 / -53) across 2 files Reviewer: alanshaw Review duration: 127m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 209 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.320
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #13"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.6% (MEDIUM) · Higher = larger blast radius
    59.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.5% · Safe to merge
    23.5%