-
Notifications
You must be signed in to change notification settings - Fork 308
Closed
Labels
Description
I use version
repository: "apicurio/apicurio-registry"
tag: "2.4.3.Final"
in docker.
I set up authentication as follows:
- name: AUTH_ENABLED
value: "true"
- name: KEYCLOAK_URL
value: "https://keycloak.test"
- name: KEYCLOAK_REALM
value: "master"
- name: KEYCLOAK_API_CLIENT_ID
value: "apicurio-api-dev"
- name: KEYCLOAK_UI_CLIENT_ID
value: "apicurio-ui-dev"
Authorization to the api proceeds correctly with secrets KEYCLOAK_API_CLIENT_ID + client secret from keycloak
1) get token from keycloak as apicurio-api-dev / <client secret>
2) get /apis/registry/v2/groups/my-group/artifacts with token. Succes!
But I can also access the api through another keycloak client, which is not specified in the apicurio parameters:
1) let's take another real keycloak client, for example "test_client" and its client secret
2) get token from keycloak as test_client / <test_client secret>
3) get /apis/registry/v2/groups/my-group/artifacts with token test_client. Succes! (!!! I think this is not valid behaivor)
Should only the client specified in the apicurio environment be able to access the API?