-
Notifications
You must be signed in to change notification settings - Fork 18
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
SURE-6622: Kubewarden Policy Server 1.6.0 can not pull policy artefacts from harbor registry when authentication is required #516
Comments
I tried to reproduce the issue, but I wasn't able. Everything worked as expected. These are the details of my setup:
I created a private project on Harbor and I pushed a Kubewarden policy inside of it using kwctl. kwctl was able to push and pull the policy after I did a I created a Kubernetes Secret containing the authentication details of my Harbor server (as described here): kubectl --namespace kubewarden create secret docker-registry secret-harbor
--docker-username=admin
--docker-password=Harbor12345
--docker-server=harbor.svc.lan I changed the default Policy Server object using spec:
imagePullSecret: secret-harbor
sourceAuthorities:
harbor.svc.lan:
- |
--BEGIN CERTIFICATE--
My self-signed CA cert
--END CERTIFICATE-- I waited for the policy server to be redeployed, then I created a Kubewarden policy consuming the policy hosted by Harbor. I also made other tests, like removing the |
@Martin-Weiss: feel free to provide the details about your environment here |
@jhmarina this is on a private slack instance that is not accessible by members of the community. I've looked into that and this is about a different topic: Rancher Kubewarden UI not being accessible under air-gapped environments |
I accidentally closed the issue, sorry. I'm moving it to blocked, waiting for more information about how to reproduce the issue.
|
I removed the link to the conversation. I copied it from the original JIRA issue, apologies for not double-checking! |
FYI - seems this problem is solved and it had been a docker credentials set that was "wrong" in the registry secret. |
Great, thanks for the update |
Issue description:
We received this case from one of our SUSE colleagues: Martin Weiss. He reported that Kubewarden Policy Server 1.6.0 could not pull policy OCI artefacts from harbor registry when authentication is required.
Business impact:
The policy server does not work with authentication against harbor to fetch the policies.
Repro steps:
Replicate kubewarden policies to harbor registry
Ensure the project requires authentication
Configure the policy server to fetch the policies with authentication from the registry
This setup is based on this example:
https://github.com/Martin-Weiss/rancher-fleet/tree/main/kubewarden/defaults
https://github.com/Martin-Weiss/rancher-fleet/tree/main/kubewarden
Workaround:
Is workararound available and implemented? NO
Actual behavior:
Policy pull fails
Expected behavior:
Policy pull works
Additional notes:
The text was updated successfully, but these errors were encountered: