Authentication of Karapace Schema Registry #870
mnithaworn
started this conversation in
General
Replies: 1 comment
-
|
@mnithaworn Below here I have a working example.
authfile.json If I try to get subjects,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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.jsonwith sample JSON similar to what is on the github README but with actual hash and salt values of course.karapace.conf.jsonand set the valueregistry_authfileto the intended location ofauthfile.jsonwhich is/opt/karapace/authfile.jsonfor the container and then build.authfile.jsonis at/opt/karapace/authfile.jsonin 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
curlpostto subject "general.xxxx" it goes through regardless even without a user and password or a wrong user and password (i.ecurlcommand with-u user:password).The above always works but I expected to get rejected since I did not have a
-u user:passwordBeta Was this translation helpful? Give feedback.
All reactions