Skip to content

Enforce filter-expression permission by default in v2.17#10919

Draft
julianbrost wants to merge 1 commit into
masterfrom
enfore-filter-expression-permission-by-default
Draft

Enforce filter-expression permission by default in v2.17#10919
julianbrost wants to merge 1 commit into
masterfrom
enfore-filter-expression-permission-by-default

Conversation

@julianbrost

@julianbrost julianbrost commented Jun 30, 2026

Copy link
Copy Markdown
Member

This is a followup change for #10909, which was included in the v2.16.2, v2.15.4, and v2.14.9 releases and adds a new filter-expression permission to Icinga 2. As that's an incompatible change, this permission is not enforced by default yet (users need to opt-in), but the documentation and log messages already announce that this will change in v2.17.

This PR now adds exactly those changes: it changes the default of the (also newly added in #10909) enforce_filter_expression_permission config option to true and marks it as deprecated so that users are disencouraged from disabling it, but rather add the filter-expression to ApiUser objects instead. The documentation is also updated accordingly.

TODO

  • Check if Icinga DB Web (or possibly other consumers of the Icinga 2 API) make use of filter expression. If so, their documentation for creating the ApiUser might need an update and we should mention it in the Icinga 2 upgrading documentation as well.

@julianbrost julianbrost added this to the 2.17.0 milestone Jun 30, 2026
@julianbrost julianbrost added the area/configuration DSL, parser, compiler, error handling label Jun 30, 2026
@cla-bot cla-bot Bot added the cla/signed label Jun 30, 2026
@julianbrost julianbrost marked this pull request as draft July 1, 2026 10:16
@julianbrost

Copy link
Copy Markdown
Member Author

I wouldn't want to merge this just yet, see the TODO I added in the description (tl;dr: checking effects of the change on Icinga 2 API consumers like Icinga DB).

@Al2Klimov Al2Klimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/configuration DSL, parser, compiler, error handling cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants