-
Notifications
You must be signed in to change notification settings - Fork 244
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
Support Devfile registries with self-signed or untrusted certificates by allowing to skip TLS checks #6635
Comments
Secure
propertySecure
property
I think that +1 for new skipTLSVerify property. |
A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity. |
/remove-lifecycle stale |
Secure
propertyskipTLSVerify
setting per registry and remove Secure
property (was: Unable to force-use Devfile registries with self-signed or untrusted certificates + confusing Secure
property)
skipTLSVerify
setting per registry and remove Secure
property (was: Unable to force-use Devfile registries with self-signed or untrusted certificates + confusing Secure
property)skipTLSVerify
property per Devfile Registry and remove Secure
property
A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity. |
/remove-lifecycle stale |
skipTLSVerify
property per Devfile Registry and remove Secure
property
/kind user-story
User Story
As an odo user, I want
odo
to allow me to use a registry with a self-signed or even invalid TLS certificate, So that I can purposely useodo
with my registry, regardless of the security issues.This can be the case for example for local registries or even a registry behind some reverse proxy doing TLS termination using a self-signed certificate.
Acceptance Criteria
--token
flag fromodo preference add registry
secure
field in preferences file--skip-tls-verify
flag toodo preference add registry
SkipTLSVerify
field to preferences fileskipTLSVerify
field toodo preference view
JSON and human-readable outputSecure
column fromodo preference view
human-readable outputskipTLSVerify
field from DevfileRegistriesList and ClusterDevfileRegistriesList custom resourcesskipTLSVerify
when calling the registryUnable to force-use Devfile registries with self-signed or untrusted certificates + confusing
Secure
propertyWhat versions of software are you using?
Operating System:
Fedora 37
Output of
odo version
:odo v3.7.0 (26c90d7)
How did you run odo exactly?
Let's say that I have a registry exposed using a self-signed or untrusted certificate, and I intentionally want to use it. It might be a local non-production registry for example.
Actual behavior
Expected behavior
I think it is okay to enforce TLS checks by default, but users should be allowed to bypass those checks if needed, just like it is doable with
curl --insecure
orwget --no-check-certificate
.They might want to use a local registry or even a registry behind some reverse proxy doing TLS termination using a self-signed certificate.
I thought that would be the purpose of the
Secure
property on Registries, but it looks like this is set toTrue
only if users pass a token when adding their registries. The token value seems to be stored and deleted, but never read, so not sure how this token is being used to interact with the corresponding Devfile registry.Looking at the code, the Registry Library provides a
SkipTLSVerify
field, but it is always set tofalse
byodo
:odo/pkg/segment/integrations.go
Line 63 in ef6489c
So maybe we should provide a way for users to explicitly skip TLS checks when registering a registry.
Any logs, error output, etc?
Also, in #6622 (PR for #5128), we translated the
skipTLSVerify
field in the{Cluster,}DevfileRegistriesList
Custom Resource into aSecure
property, but it would probably make more sense to use a dedicated property for this.The text was updated successfully, but these errors were encountered: