Skip to content

[enhancement]: Custom YAML rules (declarative) #28

Description

@vianbas

What's missing or awkward today?

All detection rules are hardcoded Java (src/main/java/io/sprig/rule/rules/*). Anyone with an org-specific pattern to catch (e.g. an internal insecure API, a banned annotation) has to fork sprig and write a new Rule implementation.

Proposed change

Support a declarative rule format in YAML (path/AST pattern + message + severity) that sprig loads at runtime alongside the built-in rules, without requiring a rebuild. Roadmap item from README; format/scope (source-only vs. config-only vs. both) not yet decided.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to something that already exists

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions