Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API endpoint for core v1 compatibility not properly protected by auth config #2394

Closed
EricWittmann opened this issue Apr 4, 2022 · 2 comments
Assignees
Labels
type/bug Something isn't working version/2.0.x

Comments

@EricWittmann
Copy link
Member

There is a 'legacy' endpoint located at /api/ that is just an alias for the Core V1 API that was moved to /apis/registry/v1. This endpoint should be disabled or protected when enabling auth, but it currently bypasses the auth check.

@EricWittmann
Copy link
Member Author

This is an issue that affected version 2.0.x of registry. However, starting with 2.1.x we have re-written the authentication/authorization layer so that Quarkus policies (configured in application.properties) are no longer used. The new approach is not subject to the above issue.

@EricWittmann EricWittmann added version/2.0.x type/bug Something isn't working labels Apr 4, 2022
@EricWittmann EricWittmann self-assigned this Apr 4, 2022
@EricWittmann
Copy link
Member Author

The workaround for the 2.0.x version is to disable the core v1 legacy endpoint by setting the following ENV variable:

REGISTRY_DISABLE_APIS to have the value /apis/ibmcompat/.*,/api/.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working version/2.0.x
Projects
None yet
Development

No branches or pull requests

1 participant