-
Notifications
You must be signed in to change notification settings - Fork 137
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
add tinkerbell-insecure-tls param to control InsecureSkipVerify #960
Conversation
Small justification here: when using an Ingress in front of tink (eg: ingress-nginx), having TLS enabled is essential, as non-TLS gRPC is generally not supported by Ingresses (as it would require disabling http/1.1 support in favor of http/2 on port 80). But enabling TLS before this implied the full TLS verification as well (CA/certs/CN+SAN matching etc). This allows to have TLS enabled, but with InsecureSkipVerify. It defaults to false so no unexpected changes should be introduced. |
9306325
to
e803be8
Compare
updated after making CI pass (gofumpt, gosec, etc) |
Reference kubernetes/ingress-nginx#3897 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #960 +/- ##
==========================================
- Coverage 28.02% 28.00% -0.03%
==========================================
Files 70 70
Lines 3486 3489 +3
==========================================
Hits 977 977
- Misses 2447 2450 +3
Partials 62 62 ☔ View full report in Codecov by Sentry. |
- this allows using TLS but without verifying certificates/CAs/hostnames etc - fix e2e tests for new tlsInsecure parameter - add `// #nosec G402` so we can actually use InsecureSkipVerify - make gofumpt happy Signed-off-by: Ricardo Pardini <[email protected]>
e803be8
to
1fa6c71
Compare
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…pass it to worker as TINKERBELL_INSECURE_TLS (#234) #### hook-bootkit: read `tinkerbell_insecure_tls` from kernel cmdline and pass it to worker as TINKERBELL_INSECURE_TLS - this fits in with - tinkerbell/smee#479 - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter - for usage with tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ll_insecure_tls` kernel parameter (#479) #### smee: introduce bool `tink-server-insecure-tls` controlling `tinkerbell_insecure_tls` kernel parameter - for usage with `tink-worker`'s tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` - for usage combined with - tinkerbell/tink#960 Signed-off-by: Ricardo Pardini <[email protected]>
…ure-tls` (#114) #### smee: add http.tinkServer.insecureTLS controlling `-tink-server-insecure-tls` - this fits in with - tinkerbell/smee#479 - tinkerbell/tink#960 - tinkerbell/hook#234 Signed-off-by: Ricardo Pardini <[email protected]>
add tinkerbell-insecure-tls param to control InsecureSkipVerify
// #nosec G402
so we can actually use InsecureSkipVerifySigned-off-by: Ricardo Pardini [email protected]