Skip to content

Security: enforce API key auth precedence#211

Merged
BadgerOps merged 1 commit into
masterfrom
security/api-key-cookie-precedence
Jun 8, 2026
Merged

Security: enforce API key auth precedence#211
BadgerOps merged 1 commit into
masterfrom
security/api-key-cookie-precedence

Conversation

@badgerops-cortana-bot

@badgerops-cortana-bot badgerops-cortana-bot commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Make bearer API keys take precedence over session cookies in dual auth
  • Keep CSRF enforcement for state-changing requests that mix a session cookie with a cpam_ bearer-style Authorization header
  • Add regression coverage for API-key/session credential mixing and CSRF bypass behavior
  • Add 0.17.4 security changelog entry

Verification

  • go test ./internal/api
  • go test ./...
  • git diff --check

Notes

  • make lint could not run because golangci-lint is not installed in this environment.

@BadgerOps BadgerOps merged commit 22d41ae into master Jun 8, 2026
15 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