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 a "configuration policy" concept to (dis-)allow configuring of things inside .ort.yml #9045

Open
sschuberth opened this issue Aug 29, 2024 · 0 comments
Labels
configuration About configuration topics new feature Issues that are considered to be new features

Comments

@sschuberth
Copy link
Member

Triggered by the discussion around request #9017, and also as a way to generalize the "loose"

enableRepositoryPackageConfigurations: true
enableRepositoryPackageCurations: true

properties that we already have, we could come up with a generic mechanism that (dis-)allows to configure arbitrary settings as part of the repository configuration in .ort.yml.

An idea is to have config.yml entries like

repositoryConfigurationPolicy:
    allowedConfigurationPaths:
    - "$.excludes.paths"
    deniedConfigurationPaths:
    - "$.excludes.scopes"

The above would create a policy that allows path excludes to be configured in .ort.yml, but disallow scope excludes to be configured. The syntax of the entries are JSON paths, which also allow for wildcards, to even match yet unknown / future properties, or set defaults for root levels in the hierarchy.

@sschuberth sschuberth added enhancement Issues that are considered to be enhancements new feature Issues that are considered to be new features configuration About configuration topics and removed enhancement Issues that are considered to be enhancements labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration About configuration topics new feature Issues that are considered to be new features
Projects
None yet
Development

No branches or pull requests

1 participant