Skip to content

Trivy Operator error "kind":"Vulnerabili... doesn't match a REGO input files rule" #498

Description

@ichasco-heytrade

Description

When running trivy operator scan, postee can't match the results with rego input

Postee Configuration:

    routes:
    - name: Trivy Operator Alerts
      input: input.report.summary.criticalCount > 0 # You can customize this based on your needs
      actions: [send-slack-msg]
      template: trivy-operator-slack

      # Templates are used to format a message
    templates:
    - name: trivy-operator-slack
      rego-package: postee.trivyoperator.slack

    # Actions are target services that should consume the messages
    actions:
    - name: send-slack-msg
      type: slack
      enable: true
      url: SLACK_WEBHOOK

What did you expect to happen?

To be able to send the results through slack

What happened instead?

Gives an error:

postee-0 postee 2022/11/18 18:26:46 route "Trivy Operator Alerts" contains reference to undefined or misconfigured template "trivy-operator-slack".
postee-0 postee 2022/11/18 18:26:46 route "stdout" contains reference to undefined or misconfigured template "raw-json".
postee-0 postee 2022/11/18 18:26:46 Input {"kind":"Vulnerabili... doesn't match a REGO input files rule

Postee version: v2.9.0
Trivy operator version: 0.6.0

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions