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
{{ message }}
Repository navigation
when TLSSecret is provided, all tls related parameters are required #412
thanks @jiangpengcheng for this issue, I think there are two things that need to solve here:
the controller doesn't load the secrets referenced by the resource, which may lead to the issue of incomplete function command when the secret does not contain all info. One possible solution is to read the secret first, then construct the commands based on the secret keys.
For the cert path issue, certs can be mounted separately with .spec.pod.volumeMounts and .spec.volumes, then use tls_trust_cert_path in tls secret. If we are not changing this part, we should add some doc to let the user know how to use this feature, like a use-case section on the function-mesh website.
I think it's better to add a field for tls_trust_cert_path explicitly to generate volume&volume mount since the init container for downloading packages/functions may also require the tls_trust_cert_path
Activity
jiangpengcheng commentedon Jun 28, 2022
another thing is that
tls_trust_cert_pathis a file, is it better to use a secret to mount it?otherwise, since our providing runner images doesn't have that file, users need to build a new docker image to include the
tls_trust_cert_pathjiangpengcheng commentedon Jun 28, 2022
@streamnative/serverless any opinion?
freeznet commentedon Jun 28, 2022
thanks @jiangpengcheng for this issue, I think there are two things that need to solve here:
.spec.pod.volumeMountsand.spec.volumes, then usetls_trust_cert_pathin tls secret. If we are not changing this part, we should add some doc to let the user know how to use this feature, like a use-case section on the function-mesh website.jiangpengcheng commentedon Jun 28, 2022
I think it's better to add a field for
tls_trust_cert_pathexplicitly to generate volume&volume mount since the init container for downloading packages/functions may also require thetls_trust_cert_path