Skip to content
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

MAISTRA-1739 Fix validation of AuthorizationPolicy fields #157

Merged
merged 1 commit into from Aug 18, 2020

Conversation

dgn
Copy link
Contributor

@dgn dgn commented Aug 7, 2020

It would previously detect the field request.regex.headers as invalid, even though it is supported.

I'm adding a hold as this will only go into 1.1.8

Copy link
Member

@jwendell jwendell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a unit or integration test to validate this feature?

@dgn
Copy link
Contributor Author

dgn commented Aug 10, 2020

Good point. I added a test

@dgn
Copy link
Contributor Author

dgn commented Aug 10, 2020

/retest

Copy link
Contributor

@luksa luksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one minor fix needed in code comment.

attrConnSNI = "connection.sni" // server name indication, e.g. "www.example.com".
attrExperimental = "experimental.envoy.filters."
attrRequestHeader = "request.headers" // header name is surrounded by brackets, e.g. "request.headers[User-Agent]".
attrRequestHeaderRegex = "request.regex.headers" // header name is surrounded by brackets, e.g. "request.headers[User-Agent]".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is the same as in the previous line - should be request.regex.headers[User-Agent]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Thanks!

It would previously detect request.regex.headers as invalid, even
though it is supported.
@dgn
Copy link
Contributor Author

dgn commented Aug 13, 2020

/retest

@dgn dgn requested a review from jwendell August 18, 2020 09:22
@mergify mergify bot merged commit d3f0c47 into maistra:maistra-1.1 Aug 18, 2020
dgn added a commit to dgn/istio-maistra that referenced this pull request Nov 17, 2020
It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)
dgn added a commit to dgn/istio-maistra that referenced this pull request Nov 17, 2020
It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)
mergify bot pushed a commit that referenced this pull request Nov 23, 2020
It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)
brian-avery pushed a commit to brian-avery/istio-1 that referenced this pull request Jan 21, 2021
Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)
maistra-bot pushed a commit that referenced this pull request Feb 3, 2021
Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Jun 11, 2021
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Jun 15, 2021
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Jun 16, 2021
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Jun 30, 2021
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
maistra-bot pushed a commit that referenced this pull request Jun 30, 2021
Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 2, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 4, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 4, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 7, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 7, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 7, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Feb 28, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
luksa pushed a commit to luksa/istio-maistra that referenced this pull request Mar 1, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
maistra-bot pushed a commit that referenced this pull request Mar 1, 2022
Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow pushed a commit to jewertow/istio that referenced this pull request Jun 20, 2022
…stra#236)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>
maistra-bot pushed a commit that referenced this pull request Jun 20, 2022
… (#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 23, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 24, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 25, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 25, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 25, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 29, 2022
…stra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 29, 2022
…ers (maistra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 29, 2022
…ers (maistra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Aug 29, 2022
…ers (maistra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
maistra-bot pushed a commit that referenced this pull request Aug 30, 2022
…ers (#236) (#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
bartoszmajsak pushed a commit to bartoszmajsak/istio that referenced this pull request Dec 21, 2022
…ers (maistra#236) (maistra#544)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
maistra-bot pushed a commit that referenced this pull request Dec 21, 2022
…ers (#236) (#544) (#712)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Jacek Ewertowski <jewertow@redhat.com>
Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Sep 1, 2023
…ers (maistra#236) (maistra#544) (maistra#712)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Jacek Ewertowski <jewertow@redhat.com>
Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
jewertow added a commit to jewertow/istio that referenced this pull request Sep 3, 2023
…ers (maistra#236) (maistra#544) (maistra#712)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (maistra#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (maistra#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Jacek Ewertowski <jewertow@redhat.com>
Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
openshift-merge-robot pushed a commit that referenced this pull request Sep 4, 2023
…ers (#236) (#544) (#712)

Rework of this for 1.6 rebase.  Adapted from: b0f47f2

MAISTRA-2010 Fix validation of AuthorizationPolicy fields (#207)

It would previously detect request.regex.headers as invalid, even
though it is supported.

Cherry-pick of MAISTRA-1739 (#157)

Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>

Co-authored-by: Jacek Ewertowski <jewertow@redhat.com>
Co-authored-by: Brian Avery <bavery@redhat.com>
Co-authored-by: Brad Ison <brad.ison@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants