Apicurio / apicurio-registry

An API/Schema registry - stores APIs and Schemas.

Home Page:https://www.apicur.io/registry/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return configuration on /v6/config

dweber019 opened this issue · comments

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"
}

Thank you for reporting an issue!

Pinging @jsenko to respond or triage.