Repository navigation
Use secret for trust path - #414
Merged
freeznet merged 9 commits intoJul 11, 2022
Merged
Conversation
freeznet
requested changes
Jul 1, 2022
freeznet
left a comment
Member
There was a problem hiding this comment.
Hi @jiangpengcheng, the default value of tlsAllowInseure and tlsHostnameVerificationEnable LGTM. But I would like to have some changes on the TLS cert part, please check my comment, thanks.
jiangpengcheng
force-pushed
the
use_secret_for_trust_path
branch
from
July 5, 2022 03:22
56ba682 to
eeff60e
Compare
jiangpengcheng
force-pushed
the
use_secret_for_trust_path
branch
from
July 5, 2022 06:53
7b36abf to
52789b6
Compare
freeznet
approved these changes
Jul 6, 2022
freeznet
left a comment
Member
There was a problem hiding this comment.
lgtm, please check the comments, thanks.
| Enabled bool `json:"enabled,omitempty"` | ||
| AllowInsecure bool `json:"allowInsecure,omitempty"` | ||
| HostnameVerification bool `json:"hostnameVerification,omitempty"` | ||
| CertSecretName string `json:"certSecretName,omitempty"` |
Member
There was a problem hiding this comment.
Is it possible to use SecretRef instead of CertSecretName and CertSecretKey?
Member
Author
There was a problem hiding this comment.
Do you mean to use SecretRef.path as the secret name and SecretRef.key as the key?
nlu90
approved these changes
Jul 7, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #412
Motivation
users may just want to provide one of the TLS-related parameters to function mesh, such as
--tls-allow-insecure, yet currently all parameters are requiredanother reason is that
tls-trust-cert-pathshould be mounted as a secret file instead of written into docker images directlyModifications
provide default value for
tlsAllowInseureandtlsHostnameVerificationEnableadd a field
TlsTrustCertforfunction/sink/sourceso that it will automatically mount related secret as a file in the runtime pod, and be used in instance start commandsVerifying this change
Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
Documentation
doc-requiredneeds to update doc for users about how to use
tls-trust-cert-path