Add all securityContext fields in injected containers#17427
Add all securityContext fields in injected containers#17427istio-testing merged 2 commits intomasterfrom
Conversation
|
/test pilot-e2e-envoyv2-v1alpha3 |
21e1770 to
495e055
Compare
f56a615 to
188e736
Compare
|
/test lint |
|
@rlenglet I'm interested in seeing this PR merged, as right now istio doesn't work with Pod Security Policy even with the istio cni installed. Do you have a sense of when this might be merged and when this might make it into a release? Thanks. |
|
@jammerful you can apply a similar change into your deployment's injection template. You don't have to wait for a new release to apply this change locally. I'm expecting to ship this in 1.3.3, around mid-October. |
|
@rlenglet I was trying to avoid having to change the config map for the side car injector, though I will test that this changed does allow my pod security policy to be used. |
That is very interesting, thanks. However, users may have other admission controllers that could trigger a re-invocation, so I think we can't avoid setting the fields. |
Yup this is still needed, as I noted this ensures that istio always runs with the minimal set of permissions (principle of least privilege) no matter what the users kubernetes configuration is (that is what I meant by "deterministic"). In any case, please let me know if you need any help with this, I would be happy to help out to get this over the line. |
|
lgtm, mention me once its not WIP if you need an approval |
|
Note that this PR is missing the cherrypick label for 1.4. I assume it should be added there as well. |
|
Running into this issue as well, in a PSP enabled cluster with automatic sidecar injection. Unable to validate against any PSP -> ReplicaSet fails to create pods. Will this be fixed for 1.4? |
bdb1c97 to
507d556
Compare
|
/test e2e-dashboard_istio |
|
The automated tests are passing. |
|
I tested that this simpler capabilities combination works: I will update the PR. |
6c3fff9 to
2b9638d
Compare
|
@howardjohn @istio/wg-environments-maintainers @istio/wg-user-experience-maintainers This is ready for review. I am still working on the matching |
|
@rlenglet: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/test pilot-multicluster-e2e_istio |
|
In response to a cherrypick label: #17427 failed to apply on top of branch "release-1.3": |
|
In response to a cherrypick label: new pull request created: #19832 |
Fixes #17318
[x] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure