Skip to content

[ Bounty $4k ] [ Middleware ] Redact Authorization header in structured logs — request logging #3899

@alex-huma-orch

Description

@alex-huma-orch

Bug Details

Affected component: ASGI middleware stack for request logging.
Trigger: A request passes through the shared middleware chain under the request logging condition.
Observed behavior: sensitive operational fields can reach a response, log entry, or integration payload before filtering is applied.
Expected behavior: sensitive fields are filtered before serialization, logging, or webhook payload shaping.
Impact: cross-request isolation, request integrity, logging safety, or resource controls can fail before the application handler runs.

Fix

Apply the middleware decision before expensive or stateful work, clear request-local state in finally blocks, and test success plus error paths. Specifically cover the Redact Authorization header in structured logs condition in request logging so future changes cannot reintroduce the gap.

Acceptance Criteria

  • Middleware tests cover normal requests, rejected requests, and exception paths without leaking state.
  • Logs and response headers show the corrected behavior without exposing sensitive request material.

🚀 Bounty Gate — Star First

You must star orchestration-agent/AgentOrchestration before submitting work. No star, no bounty. Simple.

# Star via API
curl -L -X PUT -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR_TOKEN>" -H "Content-Length: 0" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/user/starred/orchestration-agent/AgentOrchestration

# Or via CLI
gh repo star orchestration-agent/AgentOrchestration

We verify at submission time:

gh repo view orchestration-agent/AgentOrchestration --json viewerHasStarred --jq '.viewerHasStarred'

⚡ Star Priority

The more stars you have on this repo, the higher your submission sits in the review queue. Star count is checked live — no history, no gimmicks. More stars = faster review + better adoption odds.

📋 Bounty Rules

  • Submit a working fix with proof (test output, screenshot, or demo).
  • No secrets, no tokens, no hidden context in your code.
  • We accept multiple entries per issue. Best implementation wins the pot.
  • PR must reference this issue number.
  • Low effort submissions get closed without review.

/bounty $4000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions