Private registry over TLS with password authentication
Hello,
I'm currently trying to connect Ratify to a private Artifactory instance that supports TLS and requires a user/password authentication.
According to the existing issues, the custom CA support is planned for v2 https://github.com/notaryproject/ratify/issues/1106, I just wanted to make sure that today we were not able to connect Ratify to a private image registry over TLS (even considering some workarounds) ?
Additionnaly, I can't seem to find info about a potential user/password authentication support, is that something Ratify currently supports ?
Thank you in advance
Hi @tesence, thanks for your question!
TLS Certificates: Ratify V1 currently does not support custom TLS certificates, and there's no workaround at the moment unless the feature is added. That said, we're actively developing Ratify V2, which will support custom TLS.
Authentication: For username/password authentication, Ratify V1 supports it via Kubernetes secrets. You can find setup instructions here: https://ratify.dev/docs/next/plugins/store/oras#kubernetes-secrets. In Ratify V2, plain username/password can already be provided directly through the CR, and support for Kubernetes secrets is also planned.
btw, we have supported this feature in v2 dev version: https://github.com/notaryproject/ratify/pull/2355