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

skipper: add config item for default authentication filters #7769

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

AlexanderYastrebov
Copy link
Member

Currently we enable default authentication using existing skipper_default_filters_append.

This change adds a dedicated config item to separate default authentication filters from other default filters and make it easier to manage.

Currently we enable default authentication using existing
`skipper_default_filters_append`.

This change adds a dedicated config item to separate default
authentication filters from other default filters and
make it easier to manage.

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
@AlexanderYastrebov AlexanderYastrebov added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Jun 28, 2024
@@ -256,6 +256,7 @@ spec:
- "-disabled-filters={{ .Cluster.ConfigItems.skipper_disabled_filters }}"
{{ if ne .Cluster.ConfigItems.skipper_routesrv_enabled "exec" }}
- '-default-filters-prepend={{ .Cluster.ConfigItems.skipper_default_filters }}'
- '-default-filters-append={{ .Cluster.ConfigItems.skipper_default_filters_authentication }}'
Copy link
Member Author

@AlexanderYastrebov AlexanderYastrebov Jun 28, 2024

Choose a reason for hiding this comment

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

Its OK to use empty flag value, see zalando/skipper#3084 and zalando/skipper#3127

@AlexanderYastrebov
Copy link
Member Author

👍

1 similar comment
@RomanZavodskikh
Copy link
Contributor

👍

@AlexanderYastrebov AlexanderYastrebov merged commit f71c8ea into dev Jul 1, 2024
10 checks passed
@AlexanderYastrebov AlexanderYastrebov deleted the skipper/default-auth branch July 1, 2024 09:22
@@ -541,6 +542,7 @@ spec:
- "-reverse-source-predicate"
- "-default-filters-dir=/etc/config/default-filters"
- '-default-filters-prepend={{ .Cluster.ConfigItems.skipper_default_filters }}'
- '-default-filters-append={{ .Cluster.ConfigItems.skipper_default_filters_authentication }}'
Copy link
Member

Choose a reason for hiding this comment

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

why creating a new config item for something we already have?
skipper_default_filters_append is already there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/alpha merged/beta merged/eks merged/stable minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants