Skip to content

feat: Add CEL rules to dependency proxy - #346

Open
juliankepka wants to merge 2 commits into
mainfrom
feat/cel-rules-proxy
Open

juliankepka wants to merge 2 commits into
mainfrom
feat/cel-rules-proxy

Conversation

@juliankepka

Copy link
Copy Markdown
Collaborator

Dependency proxy: CEL package rules

l3montree-dev/devguard#3104

Replaces the gitignore-style rules and the minReleaseAge setting with YAML-based CEL rules.

rules:
  - name: min-release-age
    action: deny
    expr: pkg.ecosystem != "oci" && now() - timestamp(pkg.releasedAt) < duration("120h")
  - name: allow-trusted
    action: allow
    expr: pkg.name == "my-trusted-package"

@juliankepka

Copy link
Copy Markdown
Collaborator Author

The Nix-tests fail because backend of main is not up to date with this branch. The merge of l3montree-dev/devguard#3180 is necessary

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.

Dependency proxy should support CEL rules instead of gitignore style rules

1 participant