Skip to content

Draft: Isolate licensed feature checks in project policy

mo khan requested to merge mokhax/policies-licensed-features into master

What does this MR do and why?

This change attempts to group together and isolate licensed feature checks in groupauthorization policy files to adhere to the guidance provided in !151911.

The first iteration of this is to generate the following conditions for existing feature checks:

  • <feature_name>_feature_available: This condition checks to see if the feature is available in the project.
  • <feature_name>_feature_available_to_user: This condition checks to see if the feature is available in to the project to the target user.
  • <feature_name>_feature_available_to_group: This condition checks to see if the feature is available to the group associated with the project.

The next iteration of this work will be to find a more suitable location to perform these feature checks.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by mo khan

Merge request reports