Skip to content

Allow defining mechanisms in CRs #3308

@notniknot

Description

@notniknot

Preflight checklist

Describe the background of your feature request

In a multi tenant setup, users reference central predefined mechanisms in their RuleSet.

The issue is that central mechanisms can only be managed by the platform team (or the team which manages Heimdall). This results in:

  • A huge Heimdall config which grows bigger and bigger every time we need to add mechanisms
  • Thus, the config is harder to manage
  • The platform team is the bottleneck even though most of the mechanisms are owned by the tenants

Describe your idea

Allow defining mechanisms in either namespace or cluster scoped custom resources:

  • namespace scoped mechanisms are only allowed to be consumed by RuleSets located in the same namespace
  • cluster scoped mechanisms can be consumed by all RuleSets in all namespaces (could be limited by a namespace selector)

This allows tenants to manage their own mechanisms but still leaving the option to centrally manage common mechanisms.

Are there any workarounds or alternatives?

Install Heimdall in every namespace where it is needed. Could cause chaos with its CRDs.

Version

v0.17.16

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureUsed for new features

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions