Authentication of Karapace Schema Registry #870
mnithaworn
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to enable authentication and user authorization for the registry schema. I'm a little lost on how to get this working.
I am building the source into a Docker image and then running the container. This works fine but now I want to enable authentication for registry schema.
authfile.json
with sample JSON similar to what is on the github README but with actual hash and salt values of course.karapace.conf.json
and set the valueregistry_authfile
to the intended location ofauthfile.json
which is/opt/karapace/authfile.json
for the container and then build.authfile.json
is at/opt/karapace/authfile.json
in the container before container start and verify it is presentAre these steps correct or is there something missing? Just using and going by the example, seems like every time I do a
curl
post
to subject "general.xxxx" it goes through regardless even without a user and password or a wrong user and password (i.ecurl
command with-u user:password
).The above always works but I expected to get rejected since I did not have a
-u user:password
Beta Was this translation helpful? Give feedback.
All reactions