harbor-helm
harbor-helm copied to clipboard
Notary seems to ignore SSL Verification Setting
I've set my sslmode
to require
in my settings and I get "certificate invalid" errors from the notary server.
Harbor-core has no issues so I believe this is because the require
setting isn't correctly set on notary.
Environment:
- Harbor-Helm: v1.9.3
- External DB (Zalando Postgres Operator with default SSL config -> ssl only except for localhost)
@siegenthalerroger , could you please try to set sslmode
to verify-ca
or verify-full
, instead of verify
?
Please navigate these following links for more details:
- https://www.postgresql.org/docs/current/libpq-ssl.html
- https://github.com/goharbor/harbor-helm/blob/master/values.yaml#L795-L802
Sorry I miswrote what I meant. I have set it to require
and that seems to be understood as verify-ca
on the notary server. Of course the behaviour is the same if I explicitly set it as verify-ca
(-full
).
Currently Notary server doesn't take a parameter about certificate info in terms of db connection string. It might require the external DB is signed by a public CA that can be recognized by the system where the Notary server is running on.
Ok, that's kind of what I assumed. I guess until such time as I have proper ssl verification within the cluster or notary supports this setting I'll keep it deactivated for now.