You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use a private key and the certificate with the following configuration - do we really have to modify the _helpers.tpl for TLS configuration?.
I don't know if it's intentional or not. I didn't find any reference about the configuration at all, just some examples without any explanations - I still don't know what the tls.name is used for. The comment at the parseKey function indicates that the passphrase should be optional.
The expected behaviour should be
Fix the nginx.go to handle missing passphrase files.
Improve the error message to contain an information about which configuration element have issues and a filename if it's available.
If you think the passphrase should be mandatory then that should be documented and also the /dev/null trick can be mentioned there.
A configuration reference would be nice but this is not related to this issue.
I opened this issue as the error message was a bit misleading and it took me a lot of time to trace back what actually happened. Also I think a passphrase file should be only an optional thing. With cert-manager and correct RBAC in place the private key can't be read by anyone and if someone has shell/exec access to the running pod then he/she can fetch both the encrypted key and the passphrase too.
The text was updated successfully, but these errors were encountered:
I tried to use a private key and the certificate with the following configuration - do we really have to modify the
_helpers.tpl
for TLS configuration?.This failed with a not very informative error message.
After I checked the source it looks like the missing passphrase is correctly handled in the
kraken/utils/httputil/tls.go
Line 152 in 645466c
kraken/nginx/nginx.go
Line 185 in e435b83
nginx.go
assumes that the passphrase is set all the time.Adding
/dev/null
as a passphrase file is a viable - albeit ugly - workaround for this.I don't know if it's intentional or not. I didn't find any reference about the configuration at all, just some examples without any explanations - I still don't know what the
tls.name
is used for. The comment at theparseKey
function indicates that the passphrase should be optional.The expected behaviour should be
nginx.go
to handle missing passphrase files./dev/null
trick can be mentioned there.I opened this issue as the error message was a bit misleading and it took me a lot of time to trace back what actually happened. Also I think a passphrase file should be only an optional thing. With
cert-manager
and correct RBAC in place the private key can't be read by anyone and if someone has shell/exec access to the running pod then he/she can fetch both the encrypted key and the passphrase too.The text was updated successfully, but these errors were encountered: