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

Move selectors to expressions in dev environment #141

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Conversation

adam-cattermole
Copy link
Member

@adam-cattermole adam-cattermole commented Nov 12, 2024

  • Update examples to use expressions instead of selectors (accidentally missed from remove unused conditions #137)
  • Lowercase the header in the example for request.headers
  • Add debug log for the request.headers map

Signed-off-by: Adam Cattermole <acatterm@redhat.com>
"key": "user_id"
"expression": {
"key": "user_id",
"value": "string(getHostProperty(['metadata', 'filter_metadata', 'envoy.filters.http.header_to_metadata', 'user_id']))"
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't be auth.somthing?

Copy link
Member Author

Choose a reason for hiding this comment

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

No this one is coming from the header_to_metadata filter proving we can get filter state from non-kuadrant filters

"key": "user_id"
"expression": {
"key": "user_id",
"value": "string(getHostProperty(['metadata', 'filter_metadata', 'envoy.filters.http.header_to_metadata', 'user_id']))"
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder what would be required if the auth step is configured using gateway capabilities like Security Policy (but not used for ext auth service, but jwt for instance.

Signed-off-by: Adam Cattermole <acatterm@redhat.com>
Signed-off-by: Adam Cattermole <acatterm@redhat.com>
@adam-cattermole adam-cattermole marked this pull request as ready for review November 12, 2024 15:13
@adam-cattermole adam-cattermole requested a review from a team as a code owner November 12, 2024 15:13
@adam-cattermole adam-cattermole merged commit 5e73c10 into main Nov 13, 2024
13 checks passed
@adam-cattermole adam-cattermole deleted the fix-dev-env branch November 13, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants