api icon indicating copy to clipboard operation
api copied to clipboard

Authorization policy: allow specifying string match for path and conditions

Open sschepens opened this issue 4 years ago • 7 comments

Add StringMatcher options to Path and Condition in AuthorizationPolicy. We use the same StringMatcher as used in VirtualHosts to provide consistent matching in both. If both String and StringMatcher are present, they should be appended.

Fixes https://github.com/istio/istio/issues/16585 Related: https://github.com/istio/istio/pull/35641

@howardjohn wdyt? this way we can prevent introducing breaking changes in the exiting APIs but still support matching by regex as needed.

sschepens avatar Nov 30 '21 14:11 sschepens

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

istio-policy-bot avatar Nov 30 '21 14:11 istio-policy-bot

😊 Welcome @sschepens! This is either your first contribution to the Istio api repo, or it's been awhile since you've been here.

You can learn more about the Istio working groups, code of conduct, and contributing guidelines by referring to Contributing to Istio.

Thanks for contributing!

Courtesy of your friendly welcome wagon.

istio-policy-bot avatar Nov 30 '21 14:11 istio-policy-bot

Hi @sschepens. Thanks for your PR.

I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions 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.

istio-testing avatar Nov 30 '21 14:11 istio-testing

@howardjohn what is your opinion on this? I would like to make progress on this feature, it is something that many people need.

sschepens avatar Mar 22 '22 18:03 sschepens

@sschepens: PR needs rebase.

Instructions 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.

istio-testing avatar Mar 23 '22 22:03 istio-testing

I would love for this PR to be merged! We really need this feature.

teddy-wahle avatar Oct 24 '22 20:10 teddy-wahle

Yes please someone validate the PR, a lot of people are waiting this feature for so long

timAdrien avatar Dec 14 '22 16:12 timAdrien

Closing due to implementation in https://github.com/istio/istio/pull/50365

craigbox avatar May 10 '24 03:05 craigbox