Skip to content

fix: require authentication on user, tier and rate-limit read endpoints - #284

Merged
igorbenav merged 3 commits into
benavlabs:mainfrom
emiliano-go:fix/read-endpoint-auth
Sep 18, 2026
Merged

igorbenav merged 3 commits into
benavlabs:mainfrom
emiliano-go:fix/read-endpoint-auth

Conversation

@emiliano-go

Copy link
Copy Markdown
Collaborator

GET /users/{username} had no authentication dependency and returned UserRead including the email address, so anyone could enumerate user emails by username. The tier and rate-limit read endpoints were also public even though their docstrings describe them as available to authenticated users and document 401 responses.

This PR adds the existing current-user dependency to those endpoints, matching the behavior the docstrings already described. Docs updated; integration tests passing.

Written by Kimi, Authored by @emiliano-go

Add CurrentUserDep to GET /users/{username}, tier list/lookup, and
rate-limit list/get endpoints, matching their documented 401 behavior.
Update the API route table accordingly.
@igorbenav
igorbenav merged commit 6a95819 into benavlabs:main Sep 18, 2026
3 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.

2 participants