-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fulcio CA certificate issue #206
Comments
By using simple SSL_CERT_DIR can cause problem when Fulcio will use multiple OIDC which one is for example Google and internal Keycloak (custom CA root). When I will add custom CA root to SSL_CERT_DIR then it will override the default system's CA trusted roots so it will not trust Google OIDC and user will have to add another CA roots. // certDirEnv is the environment variable which identifies which directory
// to check for SSL certificate files. If set this overrides the system default.
// It is a colon separated list of directories.
// See https://www.openssl.org/docs/man1.0.2/man1/c_rehash.html.
certDirEnv = "SSL_CERT_DIR" https://github.com/golang/go/blob/master/src/crypto/x509/root_unix.go#L21-L25 |
Maybe the solution could be to mount user's CA file directly into https://github.com/golang/go/blob/master/src/crypto/x509/root_linux.go#L22 |
We cannot use https://github.com/sigstore/fulcio/blob/main/pkg/config/config.go#L226 |
I think I have found one solution to add extra trusted CA for the Fulcio server. The idea is to mount a new file with bundle of extra certificates into spec:
template:
spec:
containers:
- name: fulcio-server
volumeMounts:
- name: trusted-ca
mountPath: /etc/pki/tls/certs/fulcio-oidc.crt
subPath: "fulcio-oidc.crt"
readOnly: true
volumes:
- name: trusted-ca
configMap:
name: fulcio-trusted-ca
items:
- key: ca.crt
path: "fulcio-oidc.crt" Content of
Now just figure out how to connect it to the Operator. I have in my mind these following possibilities:
@cooktheryan @bouskaJ @lance @Gregory-Pereira What do you think? |
Now I noticed that it is also possible to use This option could work to:
|
I would tend to use Method |
Currently, if a certificate is private or self signed fulcio will require the following.
oc set env -n fulcio-system deployment/fulcio-server SSL_CERT_DIR=/var/run/fulcio
We need to try to see if the new Fulcio code fixes this or if we will need to code in our own fix
The text was updated successfully, but these errors were encountered: