-
Notifications
You must be signed in to change notification settings - Fork 73
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
Replace the --lets-encrypt flag with --insecure-skip-tls-verify flag #1093
Merged
metlos
merged 5 commits into
codeready-toolchain:master
from
metlos:remove-lets-encrypt-flag
Jan 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ba5d466
Replace the --lets-encrypt flag with --insecure-skip-tls-verify flag
metlos cd19006
reuse the already used DISABLE_KUBE_CLIENT_TLS_VERIFY to already defi…
metlos bae6563
remove the now unused IS_OSD variable
metlos e9c149a
Merge branch 'master' into remove-lets-encrypt-flag
mfrancisc 1e68117
Merge branch 'master' into remove-lets-encrypt-flag
fbm3307 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we disable tls verification by default when running the tests "locally" ? Or should we document this and let the user decide ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct me if I'm wrong, if the flag is not specified, then it would use whatever is in the client's kubeconfig. The flag should be used only if you want to override (for some specific reason) the information in kubeconfig.
This means that the default behavior shouldn't use the flag at all, only if requested explicitly via a variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 I thought the same, but maybe I've missed something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to keep the same behavior as there was with the
--lets-encrypt
flag. The main reason being that I'm not fully sure about the consequences of relying on the contents of the kubeconfig.If the intended behavior should change, I'm fine with it though. As far as I looked we ALWAYS set the
--lets-encrypt=false
in all environments (e.g. CI or default when running locally) - I haven't found a place where we'd setIS_OSD=true
anywhere.To keep this behavior, we'd need to set
--insecure-skip-tls-verify=false
only whenIS_OSD=true
and we should be explicit about it.I don't know what the kubeconfig looks like in the CI (whether it explicitly sets the insecure-skip-tls-verify or whether the connection to the clusters in the CI doesn't require it) so I didn't want to risk wreaking havoc in all our CI jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was used for local dev use-cases. Some teams/developers had OSD cluster for the local dev (instead of a pure OCP)
if it's OSD and you (as an admin) execute the register-member command, then you don't have this field defined in your kubeconfig, nor the cert as the OSD cluster uses let's encrypt cert which is a well-know one.
does it matter? if the kubeconfig has
insecure-skip-tls-verify
defined, then the command copies it, if not, then it should have the self-sign certificate, which should be copied as well.Let's do what we wanted to do and what was the reason for these changes - rely on the content of the kubeconfig if not explicitly defined otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discovered we already have
DISABLE_KUBE_CLIENT_TLS_VERIFY
to have this behavior for the kubeclient used in the tests. I think we can use this also to specify whether to use--insecure-skip-tls-verify=true
for the ksctl. I've updated the make files to do this.