Skip to content

feat(api): gate OpenAPI docs behind API key auth#11

Merged
seanfromthepast merged 1 commit intomainfrom
feat/auth-gated-docs
Mar 11, 2026
Merged

feat(api): gate OpenAPI docs behind API key auth#11
seanfromthepast merged 1 commit intomainfrom
feat/auth-gated-docs

Conversation

@realityinspector
Copy link
Collaborator

Summary

  • Disable default public /docs, /redoc, /openapi.json endpoints
  • Re-mount at same paths behind get_current_user API key auth
  • Prevents unauthenticated access to full API schema

Disable default /docs, /redoc, /openapi.json endpoints and re-mount
them behind get_current_user auth dependency so API schema is not
publicly exposed.
@seanfromthepast seanfromthepast merged commit 7f0a31c into main Mar 11, 2026
1 of 5 checks passed
realityinspector pushed a commit that referenced this pull request Mar 15, 2026
feat(api): gate OpenAPI docs behind API key auth
@realityinspector realityinspector deleted the feat/auth-gated-docs branch March 15, 2026 14:19
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