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

Add controller.enableSnippetDirectives and set it to false #237

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

ubergesundheit
Copy link
Member

@ubergesundheit ubergesundheit commented Oct 22, 2021

Disallow the controller Ingress to parse and add *-snippet annotations/directives created by the user.

This can be changed by setting controller.enableSnippetDirectives to true.

We recommend enabling this option only if you TRUST users with permission to create Ingress objects, as this may allow a user to add restricted configurations to the final nginx.conf file.

This is a mitigation against CVE-2021-25742.

Tests on workload clusters

In order to verify that my changes also work on, I did the following tests:

  • Upgrade from previous version works

@ubergesundheit ubergesundheit marked this pull request as ready for review October 22, 2021 09:02
@ubergesundheit ubergesundheit requested a review from a team as a code owner October 22, 2021 09:02
@ubergesundheit ubergesundheit merged commit fdb3e95 into release-v2.0.x Oct 22, 2021
@ubergesundheit ubergesundheit deleted the disable-enable-snippet-directives branch October 22, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant