Skip to content

feat(federation): optional per-product inline session policy #143

Description

@alukach

Part of the Federated backend authentication epic (proxy-side).

What

For connections using subject_scope = product, optionally pass an inline session policy on AssumeRoleWithWebIdentity that scopes the session to {base_prefix}{mirror_prefix}*. This adds a proxy-side blast-radius control on top of the customer's trust policy.

Why it's "free" here

A product-scoped connection already pays per-product cache cardinality, so adding a per-product session policy doesn't change the cache key class. For connection/account scope, mint no session policy (keeps the credential broad and cacheable) — the Source-owned bucket relies on Layer-1 authz + path-prefix rewriting instead.

Acceptance

  • product scope → session policy scoping to the product prefix
  • connection/account scope → no session policy
  • Session-policy fingerprint included in the cache key
  • Test: session policy denies access outside the product prefix

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions