-
Notifications
You must be signed in to change notification settings - Fork 116
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
Sample build strategies should be secure by default #169
Comments
Yes the yet-to-be used spec.parameters section is for such not-so-common parameters that don't make sense to be strongly typed in the API but nice-to-have. :-) A bit of history around why the SSL verification has been turned off : pushes to the registry were failing in case of internal registries because the service account didn't have th CA certificates mounted. We need to define a contract so that the build controller can always look for CA certificates in a specific object. That way, we can actually hardcode SSL verify to true ( because that's the good practice!). |
I also agree we should be export this parameter to end-user. If I am the end-user, I want the SSL is always enabled to make sure the security. And I have a question. about the history, Shoubhik. And when you talking about the Thanks a lot! :) |
I dont think this is high prio for now, if you folks allow me, I would like to add the |
So this means, there currently is no possibility to use a custom CA for my private container registry, or did I get that wrong? |
Nothing out of the box, but you can try to customize the build strategy, see https://kubernetes.slack.com/archives/C019ZRGUEJC/p1645000201441049?thread_ts=1644959006.747239&cid=C019ZRGUEJC for the idea. |
Could you post the article here plz?I can not enter this slack workspace... |
Hi @xiaocode, you can join that Slack workspace here: https://slack.k8s.io/ The referenced post is:
|
The sample build strategies in this project define to skip certificate validation when pushing to the target registry. This is done by default and not configurable. See:
We should ship samples that are secure by default. This means that certificate validation should NOT be disabled by default. Instead, it should be enabled. We could introduce a flag on the
build
cr to skip it.The text was updated successfully, but these errors were encountered: