Repository navigation
R2 token mint parameterized by BucketPurpose (boot + cache entries) - #13035
Merged
Merged
Conversation
…ion/bold-crane-293
…cret id derived from the purpose's standing
OriginCredentialUnminted now carries its custody secret_id so the mint reads
where a purpose's token lives from the standing (origin_credential_secret_id)
rather than a second roster. Boot and cache standings move from
MintEntryUnbuilt to Unminted naming run_boot_object_{read,write} /
run_cache_object_{read,write}. Durable entries pass FabricDurableOrigin and
derive byte-identical secret ids from their pinned loci.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ion/bold-crane-293
…ion/bold-crane-293
Contributor
Author
|
Held-session store op for dashboard node adhoc-2216e018-df5: #13569 Additive: |
Contributor
Author
|
#13569 follow-up: the wet control was failing floor as an unenrolled |
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.
Stacked on
session/royal-moth-86(addsFabricCacheBlobs); retarget to main once that lands.What
gunbc.cloudflare.r2_token_mint_run:mint_origin_token_and_store/r2_mint_bootstraptake aBucketPurpose; the origin isbucket_purpose_origin_standing(purpose). The token name is the purpose's bucket plus the profile suffix, the policy is the profile's bucket-scoped grant over that bucket (unchangedadmit_r2_object_{read,write}_api_mint), and the custody secret is derived from the purpose's credential standing through the newgunbc.cloudflare.r2_originorigin_credential_secret_id. There is no second roster of names.run_boot_object_read,run_boot_object_write,run_cache_object_read,run_cache_object_write. Each writes a NEW Secret Manager version. Each standing staysOriginCredentialUnminteduntil a reviewed row change pins it (OriginCredentialPinnedwithaccess_key_idand version). After that, the entry refuses before any Create.OriginCredentialUnmintednow carriessecret_id, so every arm names its custody secret. Boot and cache standings move fromMintEntryUnbuilttoUnminted, naming their entries.run,run_object_writeandrun_bucket_adminpassFabricDurableOrigin. Their secret ids are read from their pinned loci and are the same ids as before (witnessed).gunbc.cloudflare.boot_origincredential frontier row: the reason is updated (the mint entries exist, the standing is Unminted). The trigger is narrowed to what is still missing: execution plus a pinned version. The row is not dissolved, because no boot mint has executed.gunbc.fabric.fabric_blob_r2: the Unminted refusal now names the entry and the secret.Witnesses (run locally with
gunbc run --claim-run, all PASS):cloudflare_r2_origin_mint_run(new: cache write and boot read are scoped to their own bucket and exclude the durable bucket; the custody secret is derived per purpose, durable is byte-identical, unallocated gives none),cloudflare_boot_origin(the Unminted standing namesrun_boot_object_{read,write}),fabric_blob,cloudflare_r2_bucket_ensure,cloudflare_r2_origin_object.cloudflare_boot_origin_witness_testhad a non-exhaustive match missingKeyAddressedCacheBlobs, and resolve refused.Not in this PR (declared frontier)
secrets.create), andgunbc.cloudflare.r2_mint_secret_accesshas no per-secret cells for the boot or cache secrets. So a fleet mode today would always refuse. For now the first mints are operator-run viagunbc run --entry dag/gunbc/cloudflare/r2_token_mint_run.dag --function run_cache_object_read(and the other three). Modes and cells come with the follow-up. No live mint was run.🤖 Generated with Claude Code