Skip to content

[feat] Update Ingress linter for unsafe annotations - #469

Open
Paramoshka wants to merge 3 commits into
mainfrom
feat-added-unsafe-ingress-annotations-detect
Open

[feat] Update Ingress linter for unsafe annotations#469
Paramoshka wants to merge 3 commits into
mainfrom
feat-added-unsafe-ingress-annotations-detect

Conversation

@Paramoshka

@Paramoshka Paramoshka commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

Adds an Ingress lint rule that reports unsafe ingress-nginx snippet annotations as errors.

For configuration-snippet, the rule also verifies that HSTS is preserved through the dedicated ingress-nginx-hsts annotation or the canonical legacy directive. Existing Ingress exclusion rules are supported.

Why do we need it, and what problem does it solve?

Unsafe snippet annotations require permissive ingress-nginx settings and allow modules to inject arbitrary NGINX configuration.

The rule prevents new usages, identifies modules that require manual migration, and ensures that removing legacy snippets does not accidentally disable HSTS.

Signed-off-by: Paramoshka <parfenov_ivan_42a@mail.ru>
Signed-off-by: Paramoshka <parfenov_ivan_42a@mail.ru>
@Paramoshka
Paramoshka requested a review from miklezzzz August 28, 2026 15:34
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