Skip to content

fix(supervisor): audit forward-proxy unresolved credential responses - #6165

Draft
krishicks wants to merge 1 commit into
feat/5395-describe-credential-preparation/krishicksfrom
fix/5395-audit-forward-credential-failures/krishicks
Draft

krishicks wants to merge 1 commit into
feat/5395-describe-credential-preparation/krishicksfrom
fix/5395-audit-forward-credential-failures/krishicks

Conversation

@krishicks

Copy link
Copy Markdown
Contributor

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

  • The forward proxy's unresolved-placeholder 500 branch emits the L7 relay's credential record through emit_request_events.
  • The client response is unchanged.

Before / After

OCSF records for one forward-proxy request with an unresolved placeholder, captured from the parent commit and this branch:

Before After
Client response 500 Internal Server Error 500 Internal Server Error
OCSF records 1 2
l7 allow record FORWARD_L7 allow GET …/allowed unchanged
Credential record none Credential use denied: credential is unavailable for …; Medium, Failure, Denied/Blocked; status_detail: credential_unavailable; firewall_rule.type: credential-binding; http_response.code: 500; same correlation_uid as the allow record
Credential 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, trace and time are omitted.

Testing

  • cargo fmt --check; lockfile checks; clippy with --locked for every rust:lint manifest
  • inspected_forward_traces_all_outcomes_without_sampling_or_export_dependencies asserts the credential record's detail, rule type, action and response code
  • E2E tests added/updated (not applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

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 krishicks added topic:observability Logs, metrics, traces, telemetry, dashboards, event correlation, and operational data export. area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. labels Dec 2, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Sandbox execution, isolation, supervision, policy enforcement, networking, and provider lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue topic:observability Logs, metrics, traces, telemetry, dashboards, event correlation, and operational data export.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant