Skip to content

Cherry pick: Apply peer authentication policy (#20829)#20955

Merged
istio-testing merged 1 commit intoistio:release-1.5from
diemtvu:release-1.5-api
Feb 8, 2020
Merged

Cherry pick: Apply peer authentication policy (#20829)#20955
istio-testing merged 1 commit intoistio:release-1.5from
diemtvu:release-1.5-api

Conversation

@diemtvu
Copy link
Copy Markdown
Contributor

@diemtvu diemtvu commented Feb 7, 2020

git cherry-pick 9053f47

  • Apply beta peer authentication policy down to workload level

  • Clean up

  • Lint

  • Check beta policy for auto mtls. This can be removed when EP metadata take into account the policy

  • Use explicit peerauthentication policy for permissive, as we haven't remove old mesh policy during installation

  • pilot/pkg/security/authn/v1beta1/policy_applier.go

  • Move all test for beta mTLS api to the end

  • Change to namespace policy

  • Revert cluster.go

  • Change peer authn consolidation algorithm for UNSET (inheritant mode)

  • Reimplement getMostSpecificConfig (now composePeerAuthentication) which also consolidate port-level policies.

  • Fix inheritance: do not inherit if it is weaker than the current mode

  • Remove debug logs

  • Change test policy to namespace level to make sure they are clean up properly with the existing test setup.

  • Address comment

  • Lint

  • Simplify logic to pick the oldest

  • fix typo

  • Update function comment

@diemtvu diemtvu requested a review from a team February 7, 2020 21:54
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Feb 7, 2020
@istio-testing istio-testing added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Feb 7, 2020
@diemtvu diemtvu requested a review from fpesce February 7, 2020 21:54
@diemtvu
Copy link
Copy Markdown
Contributor Author

diemtvu commented Feb 7, 2020

  • @howardjohn can you double check utils.go line 77 to see if it's ok. I have to add node.Metadata.SdsEnabled != "1" based on yours change (https://github.com/istio/istio/pull/20511/files), though if ignore that change completely, we don't need that (we will need to remove/change the test MTLSStrict using SDS without node meta though)

Thanks.

@howardjohn
Copy link
Copy Markdown
Member

oh wow, #20511 is a major release blocker that got missed cherrypicking back to release-1.5

@diemtvu
Copy link
Copy Markdown
Contributor Author

diemtvu commented Feb 7, 2020

oh wow, #20511 is a major release blocker that got missed cherrypicking back to release-1.5

Ha, great. I can wait for you to cherry pick it so I don't have to do a manual fix. Of if you want, I can create one.

* Apply beta peer authentication policy down to workload level

* Clean up

* Lint

* Check beta policy for auto mtls. This can be removed when EP metadata take into account the policy

* Use explicit peerauthentication policy for permissive, as we haven't remove old mesh policy during installation

* pilot/pkg/security/authn/v1beta1/policy_applier.go

* Move all test for beta mTLS api to the end

* Change to namespace policy

* Revert cluster.go

* Change peer authn consolidation algorithm for UNSET (inheritant mode)

* Reimplement getMostSpecificConfig (now composePeerAuthentication) which also consolidate port-level policies.

* Fix inheritance: do not inherit if it is weaker than the current mode

* Remove debug logs

* Change test policy to namespace level to make sure they are clean up properly with the existing test setup.

* Address comment

* Lint

* Simplify logic to pick the oldest

* fix typo

* Update function comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants