Branch: feature/0.1.1-apikey-agent-mapping
Version: v0.1.1 — Gate Completion
Build
- Read
[gate.identification] method from config.
"header" (default) → use X-Oberwatch-Agent.
"api_key" → match Authorization header against [[gate.api_key_map]] by api_key_prefix. Longest prefix wins.
- Explicit
X-Oberwatch-Agent header overrides API key mapping.
- Never log/store full API keys.
Tests
- Unit: header method works; api_key matches; no match → "unknown"; header overrides api_key; longest prefix wins.
Commit message
feat: support agent identification by API key mapping
- Match Authorization header against api_key_map by prefix
- Longest prefix match wins
- Explicit X-Oberwatch-Agent header overrides mapping
- Never log or store full API keys
Branch:
feature/0.1.1-apikey-agent-mappingVersion: v0.1.1 — Gate Completion
Build
[gate.identification] methodfrom config."header"(default) → useX-Oberwatch-Agent."api_key"→ matchAuthorizationheader against[[gate.api_key_map]]byapi_key_prefix. Longest prefix wins.X-Oberwatch-Agentheader overrides API key mapping.Tests
Commit message