Repository navigation
Conversation
shiju-nv
force-pushed
the
refactor/6049-workload-identity-provider/shiju-nv
branch
from
December 4, 2026 16:05
6f851da to
5c39fba
Compare
SandboxIdentityProvider lived in openshell-spiffe, which cannot depend on core. The trait therefore carried an associated error type, and every use set it to TokenGrantFailure. Its return type and method were also named after SPIFFE: SandboxJwtSvid, its spiffe_id field, and fetch_jwt_svid. Move the trait to openshell_core::sandbox_identity and return TokenGrantFailure directly. The interface now names no identity system: issue_assertion returns a SandboxIdentityAssertion with an identity field. openshell-spire documents that its assertion is a JWT-SVID for the sandbox's stable SPIFFE ID. openshell-spiffe keeps SPIFFE ID mapping and claim parsing, and no longer needs async-trait. Behavior is unchanged. SPIRE stays the only implementation. Signed-off-by: Shiju <shiju@nvidia.com>
shiju-nv
force-pushed
the
refactor/6049-workload-identity-provider/shiju-nv
branch
from
December 4, 2026 16:29
5c39fba to
c12bb51
Compare
shiju-nv
marked this pull request as ready for review
December 4, 2026 21:03
github-actions
Bot
requested review from
FrostGod,
TaylorMutch,
drew,
krishicks,
mrunalp,
pimlock and
sjenning
December 4, 2026 21:04
This branch has not been deployed
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.
Summary
SandboxIdentityProvideris the interface the gateway's provider broker uses to get a signed assertion of a sandbox's identity. It lived inopenshell-spiffe, which can't depend on core, so the trait carried an associated error type and every use set it toTokenGrantFailure. Its return type and method were also named after SPIFFE.This moves the trait to
openshell_core::sandbox_identity, returnsTokenGrantFailuredirectly, and gives the return type and method neutral names. Core's interface now names no identity system.openshell-spireis still the only implementation, and it's the one place that says the assertion is a JWT-SVID. Behavior doesn't change.It's groundwork for #6049. The per-sandbox identity work for local drivers extends this interface, and it's easier to review once the interface sits in core.
Related Issue
Part of #6049.
Changes
SandboxIdentityProviderfromopenshell-spiffetoopenshell_core::sandbox_identity. The trait keeps its name and drops its associatedErrortype.SandboxJwtSvidbecomesSandboxIdentityAssertion, itsspiffe_idfield becomesidentity, andfetch_jwt_svidbecomesissue_assertion. TheDebugredaction test moves with the type.openshell-spiredocuments that the assertion it issues is a JWT-SVID for the sandbox's stable SPIFFE ID. Its Broker API calls and its verification don't change.openshell-spiffekeeps SPIFFE ID mapping and claim parsing, and drops itsasync-traitdependency. Every tracked lockfile that resolves the crate loses that one edge.AGENTS.md.Release Notes
Testing
Checklist