Skip to content

fix: require authentication for /v1/auth/reload endpoint#78

Merged
matej21 merged 1 commit intocontember:mainfrom
JanTvrdik:fix/69-auth-reload-require-auth
Mar 27, 2026
Merged

fix: require authentication for /v1/auth/reload endpoint#78
matej21 merged 1 commit intocontember:mainfrom
JanTvrdik:fix/69-auth-reload-require-auth

Conversation

@JanTvrdik
Copy link
Copy Markdown
Contributor

Summary

  • Move /v1/auth/reload route from the public router to the protected router
  • The endpoint now requires a valid bearer token, preventing unauthenticated token reloads

Closes #69

Test plan

  • Verify unauthenticated POST /v1/auth/reload returns 401
  • Verify authenticated POST /v1/auth/reload still works

Co-Authored-By: Claude Code

Move the /v1/auth/reload route from the public router to the protected
router so it requires a valid bearer token. Previously any unauthenticated
client could trigger a token reload from disk.

Closes contember#69

Co-Authored-By: Claude Code
Copilot AI review requested due to automatic review settings March 27, 2026 15:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a security issue by requiring authentication for the /v1/auth/reload endpoint, preventing unauthenticated callers from forcing token reloads from disk.

Changes:

  • Moved POST /v1/auth/reload from the public router to the protected router guarded by the auth middleware.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@matej21 matej21 merged commit cb4484a into contember:main Mar 27, 2026
7 of 8 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.

Unauthenticated /v1/auth/reload endpoint allows token injection

3 participants