Repository navigation
fix(supervisor): audit forward-proxy unresolved credential responses - #6165
Draft
krishicks wants to merge 1 commit into
Conversation
krishicks
force-pushed
the
feat/5395-describe-credential-preparation/krishicks
branch
from
December 2, 2026 16:47
35b1dcd to
c4946d0
Compare
krishicks
force-pushed
the
fix/5395-audit-forward-credential-failures/krishicks
branch
from
December 2, 2026 16:47
7016efe to
1b65d9c
Compare
A forward-proxy request whose credential placeholder could not be resolved answered 500 with no OCSF record, so the failure was visible only in a sampled trace. That response now emits a credential HTTP Activity record, joined to the request by correlation_uid. Client responses are unchanged. Refs #5395 Signed-off-by: Kris Hicks <khicks@nvidia.com>
krishicks
force-pushed
the
feat/5395-describe-credential-preparation/krishicks
branch
from
December 2, 2026 19:11
c4946d0 to
c9e8b6b
Compare
krishicks
force-pushed
the
fix/5395-audit-forward-credential-failures/krishicks
branch
from
December 2, 2026 19:11
1b65d9c to
7fee776
Compare
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
When the forward proxy can't resolve a credential placeholder, it answers 500 but wrote no OCSF record of the failure. The request's only record was its earlier allow decision, so the failure appeared only in a sampled trace. That 500 now writes the same credential HTTP Activity record the L7 relay writes, joined to the request by
correlation_uid.Stacked on #6164.
Related Issue
Refs #5395
Changes
emit_request_events.Before / After
OCSF records for one forward-proxy request with an unresolved placeholder, captured from the parent commit and this branch:
500 Internal Server Error500 Internal Server Errorl7allow recordFORWARD_L7 allow GET …/allowedCredential use denied: credential is unavailable for …; Medium, Failure, Denied/Blocked;status_detail: credential_unavailable;firewall_rule.type: credential-binding;http_response.code: 500; samecorrelation_uidas the allow recordCredential record after
{"class_uid":4002,"class_name":"HTTP Activity","activity_id":3,"activity_name":"Get","type_uid":400203,"severity_id":3,"severity":"Medium","status_id":2,"status":"Failure","message":"Credential use denied: credential is unavailable for 10.125.214.160:54023","status_detail":"credential_unavailable","metadata":{"version":"1.8.0","correlation_uid":"5ed33ae3-ebe8-4b6b-8569-96d0dcce616a"},"unmapped":{"http_event_kind":"decision","request_sequence":2},"http_request":{"http_method":"GET"},"http_response":{"code":500},"dst_endpoint":{"domain":"10.125.214.160","port":54023},"proxy_endpoint":{"ip":"127.0.0.1","port":3128},"firewall_rule":{"name":"traced_api","type":"credential-binding"},"action_id":2,"action":"Denied","disposition_id":2,"disposition":"Blocked","observation_point_id":2}Trimmed to the fields that matter;
metadata.product,device,traceandtimeare omitted.Testing
cargo fmt --check; lockfile checks; clippy with--lockedfor everyrust:lintmanifestinspected_forward_traces_all_outcomes_without_sampling_or_export_dependenciesasserts the credential record's detail, rule type, action and response codeChecklist