Skip to content

fix: refuse to start the audit relay without AUTH_HEADER - #5

Merged
ValgulNecron merged 1 commit into
mainfrom
fix/bridge-require-auth
Nov 24, 2026
Merged

ValgulNecron merged 1 commit into
mainfrom
fix/bridge-require-auth

Conversation

@ValgulNecron

Copy link
Copy Markdown
Contributor

Summary

Follow-up to the 2026-11-24 security review (#4). Without AUTH_HEADER the bridge accepted any POST, so any workload that could reach the ClusterIP could inject forged audit records into the SIEM.

Severity Finding Fix
Low Unauthenticated POSTs accepted when AUTH_HEADER is unset Startup fails unless AUTH_HEADER is set or ALLOW_UNAUTHENTICATED=true is set on purpose (logged as a warning).

Changes

  • main.go: requireAuth runs first in run(); new ALLOW_UNAUTHENTICATED setting.
  • bridge_test.go: two new tests (TestRequireAuth, TestLoadConfig_AllowUnauthenticated). No existing test changed; a fresh reviewer given only the test diff judged it "only added".
  • README.md, specs.md: document the new rule.

Merge together with the Gameplane chart PR (fix/component-security-followups). That PR makes the chart always wire a token (it generates one when authSecretRef is unset), so chart installs keep working once this image ships.


Generated by Claude Code

An empty AUTH_HEADER let any workload that could reach the Service post forged audit records to the SIEM. The relay now exits at start-up unless AUTH_HEADER is set or ALLOW_UNAUTHENTICATED=true opts in to the old open intake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a9ede1a-4433-403f-9376-d15fc1cd6624
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 24, 2026
@ValgulNecron
ValgulNecron merged commit 16be892 into main Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants