Repository navigation
Conversation
Credential preparation appeared in traces as an unlabeled stage, or not at all for request bodies and SigV4 credential lookup, so a trace could not tell a prepared credential from one that was not needed, refused, failed or stale, or say how it was placed. Each credential stage now records openshell.credential.preparation and, for a prepared credential, its mechanism and placement, built from what the rewriter reports it substituted. Static, body, SigV4 and token-grant preparation classify their own failures through typed errors, and token grants also record their bounded failure code and stage. A stage dropped without a result records cancelled. Credential values are never recorded, and client responses are unchanged. Closes #5395 Signed-off-by: Kris Hicks <khicks@nvidia.com>
github-actions
Bot
requested review from
TaylorMutch,
drew,
matthewgrossman,
purp and
shiju-nv
December 2, 2026 15:41
|
🌿 Preview your docs: https://nvidia-preview-pr-6164.docs.buildwithfern.com/openshell |
4 of 5 tasks
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
Each credential stage now records how it finished: prepared, not needed, refused, failed or stale. For a prepared credential it also records the mechanism and placement. A trace can now tell these outcomes apart without reading logs.
Related Issue
Closes #5395
Changes
openshell.credential.preparerecordsopenshell.credential.preparation. When a credential is prepared, it also recordsopenshell.credential.mechanismandopenshell.credential.placement, built from what the rewriter reports it substituted.failed, which matches the 500 the client receives.cancelled.miettedowncasts.docs/observability/traces.mdxgains one paragraph on the new attributes.Most of the SigV4 change in
rest.rsmoves an existing nested block into helpers. Hiding whitespace (?w=1) shows the actual change.Before / After
Each cell shows the
openshell.credential.preparestages for one relayed request, captured frommainand from this branch with an always-on sampler.prepared·static·headerprepared·basic·headerprepared·static·path,querynot_neededcredential_resolution_refusedrefused·credential_resolution_refusedcredential_resolution_refusedfailed·credential_resolution_failednot_needed; body: OK ·prepared·static·bodyapplication/octet-streambody placeholdernot_needed; body: ERROR ·refused·credential_resolution_refusednot_needed; signing: OK ·prepared·sigv4·headernot_needed; lookup: ERROR ·failed·credential_unavailableToken grants aren't in the capture.
token_grant_stage_describes_preparation_outcomecovers them:prepared·token_grant·header, orrefused/failedwithopenshell.credential.failure_codeandopenshell.credential.failure_stage. No captured attribute contains a credential value.Release Notes
Credential preparation spans now say whether a credential was prepared, not needed, refused, failed or stale, and how a prepared credential was placed.
Testing
cargo fmt --check; lockfile checks; clippy with--lockedfor everyrust:lintmanifestopenshell-coreopenshell-supervisor-networkandopenshell-coretests passChecklist