Skip to content

Restrict access to '/api/versions' endpoint#12616

Merged
mekarpeles merged 1 commit into
masterfrom
fix/disable-api-versions
May 5, 2026
Merged

Restrict access to '/api/versions' endpoint#12616
mekarpeles merged 1 commit into
masterfrom
fix/disable-api-versions

Conversation

@cdrini

@cdrini cdrini commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Disable public access to the '/api/versions' endpoint by returning a 404 error. Need to figure out how this is being exposed and remove from the python-side.

Technical

Testing

Screenshot

Stakeholders

Disable public access to the '/api/versions' endpoint by returning a 404 error.
Copilot AI review requested due to automatic review settings May 5, 2026 16:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Restricts public access to the /api/versions endpoint at the Nginx layer by short-circuiting requests with a 404 before proxying to the app.

Changes:

  • Add an Nginx rule to return 404 for /api/versions requests within the API/json location block.

Comment thread docker/web_nginx.conf
@mekarpeles mekarpeles merged commit aaf8fc9 into master May 5, 2026
11 checks passed
@mekarpeles mekarpeles deleted the fix/disable-api-versions branch May 5, 2026 18:01
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.

3 participants