Skip to content

docs(hub): read an X-API-Key value as a key only when it starts with dfo_ - #33

Merged
jm-rivera merged 1 commit into
devfrom
docs/x-api-key-prefix
Nov 26, 2026
Merged

jm-rivera merged 1 commit into
devfrom
docs/x-api-key-prefix

Conversation

@jm-rivera

Copy link
Copy Markdown
Contributor

The API keys page says an X-API-Key value is always read as a key. The website now reads it as a key only when it starts with dfo_, as it already did for Authorization: Bearer, so a script sending another service's key in that header is served as anonymous. This changes the one sentence in content/hub/build/api-keys.md that states the rule.

Testing: text-only change; CI runs on this pull request.

…dfo_

The website ignores another service's key in X-API-Key and serves the call as anonymous, as it does for a Bearer value without the prefix.
@jm-rivera
jm-rivera merged commit 9f774bc into dev Nov 26, 2026
7 checks passed
@jm-rivera
jm-rivera deleted the docs/x-api-key-prefix branch November 26, 2026 08:56
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