-
Notifications
You must be signed in to change notification settings - Fork 78
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
When enabling trust portieris errors "no valid ImagePullSecret defined for image" #428
Comments
Hi there. Thanks for your report. This line from your log is interesting:
That is the only line that looks like that, which means it's the only secret that Portieris is seeing as in scope (ie either in the serviceaccount or directly mentioned in the resource spec). Is What's happening under the covers is that Portieris derives the server name from the image name (in this case |
thanks for such quick feedback, i've double-checked everything here and it looks like it is correct. Obviously i have to remove some things for security reasons, but this is the config
i've double checked that the secrets in both namespaces match, and likewise the deployment will rollout as expected if i don't have trust. I also tried removing "https" from the secret, but did not have an effect. |
What commit ID of Portieris did you experience the problem with?
e4b12c2
What went wrong?
When enabling trust on private repo and private notary portieris returns "no valid ImagePullSecret defined"
What should have happened differently?
Portieris should allow the image when trust, secret and repository are correctly configured
How can it be reproduced?
using jfrog for docker repo and private notary.
Any other relevant information
I am attempting to set up portieris with a private notary and jfrog. It works as expected, both allowing and denying images from the repository if trust is set.
However, when i attempt to enforce trust, the logs complain about imagePullSecret not being found. The same imagePullSecret is defined in both the deployment that portieris is using and the deployment that portieris is blocking. I tried both types of docker secrets, auth and uname/password and could not work around the issue.
Setup:
i've obfuscated our internal names for below
clusterimage policy example:
log outputs:
The text was updated successfully, but these errors were encountered: