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

Return configuration on /v6/config #4411

Closed
dweber019 opened this issue Mar 5, 2024 · 2 comments · Fixed by #4540
Closed

Return configuration on /v6/config #4411

dweber019 opened this issue Mar 5, 2024 · 2 comments · Fixed by #4540
Labels
area/compatibility type/bug Something isn't working

Comments

@dweber019
Copy link
Contributor

Description

Version**: 2.5.5
The endpoints /ccompat/v6 and v7 regarding GET /config should behave correctly when using authorization.
Currently when the setting REGISTRY_AUTH_ANONYMOUS_READ_ACCESS_ENABLED is set to true, one receives a 401 for GET /config which should not be the case.

Steps to Reproduce

  1. Enable AUTH_ENABLED=true and ROLE_BASED_AUTHZ_ENABLED=true
  2. Enable REGISTRY_AUTH_ANONYMOUS_READ_ACCESS_ENABLED=true
  3. Call registry with GET /ccompat/v6/config
  4. You get 401

Expected vs Actual Behaviour

Should return something like

{
  "compatibilityLevel": "BACKWARD"
}
@dweber019 dweber019 added the type/bug Something isn't working label Mar 5, 2024
@apicurio-bot
Copy link

apicurio-bot bot commented Mar 5, 2024

Thank you for reporting an issue!

Pinging @jsenko to respond or triage.

@carlesarnal
Copy link
Member

Hello,

You're absolutely right, I have raised a PR to correct this situation.

@carlesarnal carlesarnal moved this to Backlog in Registry 3.0 Apr 9, 2024
@carlesarnal carlesarnal moved this from Backlog to In Progress in Registry 3.0 Apr 9, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Registry 3.0 Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compatibility type/bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants