-
Notifications
You must be signed in to change notification settings - Fork 138
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
Does klar support Azure ACK? #157
Comments
I work with Azure Cloud but I dont know Azure ACK. What is this ? |
I am sorry. I mean ACR. |
No problem. |
How do you add Registry? How to fill in DOCKER_USER and DOCKER_PASSWORD? |
You can use environment variables to use klar. Personnaly for my tests I created a Docker image that launches klar. Dockerfile : FROM alpine:3.10.2
WORKDIR /bin
COPY klar-2.4.0-linux-amd64 klar
ENTRYPOINT ["klar"] And I use environment variables and arguments to use it : docker run -e CLAIR_ADDR='https://clair_server:6060' -e DOCKER_USER='myuser' -e DOCKER_PASSWORD='mypassword' your_registry.azurecr.io/your_image:your_tag The DOCKER_USER value and DOCKER_PASSWORD value are defined in your ACR ressource on Portal Azure in access key tab. Everything is indicated in the README.md. |
Thank you very much. |
Can I use klar if I only have a pull permission account? |
I managed to get klar to work using the admin user, but I want to use it with our regular logins instead to avoid exposing the admin user. This could be used together with username but when I try the output with klar and use the acrtoken as password and the 000 username Then I get error: Logging at the klar trace output I see that the 401 respons with header: If I manully call the token endpoint with 000 user name and the ACRTOKEN as password using basic auth as describe here https://docs.microsoft.com/en-us/rest/api/containerregistry/accesstokens/getfromlogin like using this url: But using DOCKER_TOKEN environment variable directly towards klar seems to send that with Basic in the first header, so also not working since it needs to be a Bearer token. Not sure how to solve this in klar since I don't know go very well. |
@andershermansen, thanks for the explanation. This project seems dead unfortunately. Quite a lot PRs waiting and no changes for 2 years! I'm sure it is not so difficult to change the authentication header to Bearer when DOCKER_TOKEN is provided. Did you find an alternative? Another Clair client perhaps? |
@andershermansen I've solved the problem by changing a few lines. Apparently response with token could not be marshalled because of the expected name of the field
|
@elstak Great. Personally I did not move forward with klar so did not use more time on the issue. As you say the project seems unmaintained. |
@andershermansen I raised the PR anyways :/ May I ask which alternative did you choose? Official Clair docs point to klar as the only standalone client, while the rest of alternatives are either libraries or integrations with Docker registry solutions. |
@elstak Did not move forward with using Klar/Clair. |
Does klar support Azure ACK?
The text was updated successfully, but these errors were encountered: