Skip to content

fix: rename gateway auth header from X-AnyLLM-Key to AnyLLM-Key#18

Merged
tbille merged 2 commits into
mainfrom
rename-auth-header-anyllm-key
Apr 17, 2026
Merged

fix: rename gateway auth header from X-AnyLLM-Key to AnyLLM-Key#18
tbille merged 2 commits into
mainfrom
rename-auth-header-anyllm-key

Conversation

@tbille
Copy link
Copy Markdown
Member

@tbille tbille commented Apr 16, 2026

Description

Renames the gateway authentication header from X-AnyLLM-Key to AnyLLM-Key to comply with RFC 6648 (no X- prefix), matching the rename in gateway PR #45.

Changes:

  • Updated GATEWAY_HEADER_NAME constant in src/providers/gateway/mod.rs
  • Updated associated doc comments referencing the header name
  • Renamed test function and updated header matcher in tests/test_gateway.rs

No backward compatibility concern since the gateway is not yet live.

PR Type

  • 🐛 Bug Fix

Relevant issues

Aligns with gateway PR #45 header rename.

Checklist

  • I understand the code I am submitting.
  • I have added unit tests that prove my fix/feature works
  • I have run this code locally and verified it fixes the issue.
  • New and existing tests pass locally (cargo test --all-features)
  • Code passes linting (cargo clippy --all-features -- -D warnings)
  • Code is formatted (cargo fmt)
  • Documentation was updated where necessary
  • I have read and followed the contribution guidelines
  • AI Usage:
    • No AI was used.
    • AI was used for drafting/refactoring.
    • This is fully AI-generated.

AI Usage Information

  • AI Model used: Claude claude-opus-4-6 (anthropic/claude-opus-4-6)
  • AI Developer Tool used: OpenCode
  • Any other info you'd like to share: Straightforward constant + doc comment rename with matching test updates.

tbille added 2 commits April 16, 2026 13:52
Update GATEWAY_HEADER_NAME constant and doc comments to use the new
header name without the X- prefix (RFC 6648 compliance).
Rename test function and update wiremock header matcher to assert
the new AnyLLM-Key header name.
@tbille tbille merged commit e3d2afc into main Apr 17, 2026
7 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.

1 participant