Skip to content

Rule at index 0: rule 'xxx' has no targets #5

Description

@Gill-Bates

When generating rules with the provided helper script get_owasp_rules.py and adding the rules into my config, xcaddy starts up with errors:

`Validation errors in rules {"errors": ["Rule at index 0: rule 'xxxx' has no targets", "Rule at index 1: rule '901100' has no targets"

It is because targets is empty [].

[
  {
    "id": "901001",
    "phase": 2,
    "pattern": "@eq 0",
    "targets": [],
    "severity": "LOW",
    "action": "log",
    "score": 1,
    "description": "No description provided."
  }
]

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions