Skip to content

Incorrect rules are skipped without mention, giving the impression all is well #218

@fliphess

Description

@fliphess

Hey :) Thanks for writing this utility.

I have some questions regarding missing keys or checks that are suppose to fail but dont.

I have the following yaml:

apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
  name: some-chart
  namespace: default
  annotations:
    fluxcd.io/automated: false

When I on purpose remove a few chars so that the assertion is supposed to fail:

- id: CHECK_HELMRELEASE
  severity: FAILURE
  message: Check validity for helmrelease
  resource: "HelmRelease"
  assertions:
  - key: metadata
    op: has-properties
    value: name,namespace,annotat

.... The check still succeeds.

Is this intended behaviour? It looks like a regex is used or a string in string comparison where the full key should be checked instead.

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