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

filters/builtin: add annotate filter #3022

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

AlexanderYastrebov
Copy link
Member

Add annotate filter to annotate routes and a helper to retrieve annotations.

Add `annotate` filter to annotate routes and a helper to retrieve annotations.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@AlexanderYastrebov AlexanderYastrebov added the minor no risk changes, for example new filters label Apr 18, 2024
@szuecs
Copy link
Member

szuecs commented Apr 18, 2024

👍

1 similar comment
@AlexanderYastrebov
Copy link
Member Author

👍

@AlexanderYastrebov AlexanderYastrebov merged commit f17057c into master Apr 18, 2024
14 checks passed
@AlexanderYastrebov AlexanderYastrebov deleted the filters/annotate branch April 18, 2024 16:34
AlexanderYastrebov added a commit that referenced this pull request Apr 18, 2024
This avoids import cycle when GetAnnotations helper is imported from
subpackage of filters.

Followup on #3022

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Apr 19, 2024
This avoids import cycle when GetAnnotations helper is imported from
subpackage of filters.

Followup on #3022

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Apr 19, 2024
Extend configuration of `jwtMetrics` (#3020) to support opt-out -
disable when any of the configured route annotations (#3022) is present.

This can be used to collect data about missing/invalid JWT tokens per hostname
in multitenant ingress setup.

Add `jwtMetrics` filter to all routes using `-default-filters-append` flag and
allow users to annotate routes that do not require JWT token.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Apr 19, 2024
Extend configuration of `jwtMetrics` (#3020) to support opt-out -
disable metrics collection when any of the configured
route annotations (#3022) is present.

This can be used to collect data about missing/invalid JWT tokens per hostname
in multitenant ingress setup.

Add `jwtMetrics` filter to all routes using `-default-filters-append` flag and
allow users to annotate routes that do not require JWT token.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Apr 22, 2024
Extend configuration of `jwtMetrics` (#3020) to support opt-out -
disable metrics collection when any of the configured
route annotations (#3022) is present.

This can be used to collect data about missing/invalid JWT tokens per hostname
in multitenant ingress setup.

Add `jwtMetrics` filter to all routes using `-default-filters-append` flag and
allow users to annotate routes that do not require JWT token.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit that referenced this pull request Apr 22, 2024
Extend configuration of `jwtMetrics` (#3020) to support opt-out -
disable metrics collection when any of the configured
route annotations (#3022) is present.

This can be used to collect data about missing/invalid JWT tokens per hostname
in multitenant ingress setup.

Add `jwtMetrics` filter to all routes using `-default-filters-append` flag and
allow users to annotate routes that do not require JWT token.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 22, 2024
[Changes](zalando/skipper@v0.21.54...v0.21.61)

* [build(deps): bump amazonlinux from `ef9435f` to `5478f82` in /fuzz](zalando/skipper#3031)
* [build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2](zalando/skipper#3033)
* [build(deps): bump actions/checkout from 4.1.2 to 4.1.3](zalando/skipper#3032)
* [build(deps): bump github.com/miekg/dns from 1.1.58 to 1.1.59](zalando/skipper#3030)
* [proxy: support configurable metrics](zalando/skipper#3027)
* [filters/auth: add login redirect stub support](zalando/skipper#3028)
* [filters: move annotate into own package](zalando/skipper#3023)
* [filters/auth: add jwtMetrics](zalando/skipper#3020)
* [filters/builtin: add annotate filter](zalando/skipper#3022)

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 22, 2024
[Changes](zalando/skipper@v0.21.54...v0.21.61)

* `build(deps): bump amazonlinux from `ef9435f` to `5478f82` in /fuzz` zalando/skipper#3031
* `build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2` zalando/skipper#3033
* `build(deps): bump actions/checkout from 4.1.2 to 4.1.3` zalando/skipper#3032
* `build(deps): bump github.com/miekg/dns from 1.1.58 to 1.1.59` zalando/skipper#3030
* `proxy: support configurable metrics` zalando/skipper#3027
* `filters/auth: add login redirect stub support` zalando/skipper#3028
* `filters: move annotate into own package` zalando/skipper#3023
* `filters/auth: add jwtMetrics` zalando/skipper#3020
* `filters/builtin: add annotate filter` zalando/skipper#3022

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
AlexanderYastrebov added a commit to zalando-incubator/kubernetes-on-aws that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants