Outbound backend credential federation (OIDC identity → backend cloud STS)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- aws, azure, google-cloud, rust
- Domain
- authentication, backend-api-design, cloud, security
Research direction
No files or tests are named; start by reading the existing multistore-sts and multistore-oidc-provider components, then scope the new multistore-federation crate on branch feat/backend-federation. Done means the roadmap's additive exchange primitive, XML parsing, and FederatedCredentials::apply_to(&mut BucketConfig) are implemented and the stated AWS end-to-end validation passes.
Written by the indexing model from the issue text.
Description
Summary
multistore federates identity inbound (callers → proxy, via multistore-sts + multistore-oidc-provider). The symmetric outbound half is missing: the proxy presenting its own identity to a backend cloud to obtain short-lived credentials for a private bucket.
Today a backend is either anonymous (anonymous_access / skip_signature) or configured with long-lived static keys in BucketConfig.backend_options. This issue tracks adding first-class outbound credential federation so deployments can serve private buckets without storing long-lived backend secrets. PRs below reference this issue.
Motivation
- Operators increasingly want to front customer-owned buckets. Long-lived keys at the edge are a liability: rotation, blast radius, secret-at-rest.
- With OIDC federation the bucket config holds only a role ARN; the proxy assumes a short-lived, optionally prefix-scoped role at request time. Trust and blast radius are governed by the bucket owner's IAM policies, not the proxy's correctness.
- multistore already has the building blocks — it can act as an OIDC provider and already does inbound STS — so this simply completes the symmetry.
Design
At bucket-resolution time, per backend:
- Mint a short-lived OIDC assertion with the proxy's signing key (
multistore-oidc-provider), scoped via itsaud/subclaims. - Exchange it at the backend cloud's STS — AWS
AssumeRoleWithWebIdentity, with Azure / GCS workload-identity analogs — for temporary credentials. - Inject those into
BucketConfig.backend_optionsso the existing backend signs requests with them instead of going anonymous.
No long-lived secret is stored anywhere; credentials are short-lived and refreshed before expiry.
Constraints discovered while prototyping
- S3 needs no core change. object_store's
AmazonS3ConfigKey::Tokenaccepts thetokenalias, andtokenis already inREDACTED_OPTION_KEYS, so temporary creds (access key + secret + session token) flow through and are redacted in logs. - Azure / GCS need a bearer-credential source. Workload-identity federation yields an OAuth bearer token, but the Azure backend takes a shared
access_keyand GCS aservice_account_key— neither accepts a bearer token. Parity requires accepting bearer/access-token credentials (likely an object_store contribution). - Caching matters and is subtle. Short-lived creds must be cached and refreshed per backend, independent of the caller. Anything varied at assume-time is baked into the credential and fragments the cache, so the cache key should track the credential identity (role / subject), not the caller. This is a generic concern every integrator would otherwise reinvent.
Roadmap
- Federation exchange primitive — new
multistore-federationcrate: a runtime-agnosticAssumeRoleWithWebIdentityrequest builder + XML response parser (caller owns HTTP), andFederatedCredentials::apply_to(&mut BucketConfig). Additive, no core changes. Branch:feat/backend-federation. Validated end-to-end against real AWS STS in a downstream deployment (mint →AssumeRoleWithWebIdentity→ signedListObjectsV2, including asubtrust-policy condition). - Caching credential provider — a
BackendCredentialProvidertrait + a caching wrapper (TTL, refresh-ahead, single-flight) so integrators get correct, non-thundering-herd refresh for free. - Azure / GCS bearer credential source — accept OAuth bearer tokens for the Azure and GCS backends to bring them to parity with S3.
- Docs / example — wire federation into the example server / cf-workers runtimes.
Out of scope
Application-specific policy — which role to use for which bucket, and how the OIDC sub is structured/scoped — stays in the integrator's BucketRegistry. multistore provides the mechanism, not the policy.
- Dominant language
- Rust
- Stars
- 21
- Forks
- 1
- Avg merge
- 16h 39m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/multistore
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
developmentseed/multistore#160 ·
-
Support UploadPartCopy (multipart server-side copy): AWS CLI and boto3 use it for any copy over 8 MBOpenenhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
developmentseed/multistore#168 ·
-
List of a prefix 503s when a single object key contains an empty path segment (//)Possibly taken @alukach claimed this 127 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
developmentseed/multistore#116 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
oidc-provider: optional `oidc_session_name` backend-option to override RoleSessionName derivationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in developmentseed/multistore
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
storytold/craft-anything#2472 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#68 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nowledge-co/hawdb#1995 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-next-issues#984 ·