Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rule(Disallowed K8s User): quote colons
It turns out if you read this rules file with falco versions 0.24.0 and earlier, it can't parse the bare string containing colons: (Ignore the misleading error context, that's a different problem): ``` Thu Sep 10 10:31:23 2020: Falco initialized with configuration file /etc/falco/falco.yaml Thu Sep 10 10:31:23 2020: Loading rules from file /tmp/k8s_audit_rules.yaml: Thu Sep 10 10:31:23 2020: Runtime error: found unexpected ':' --- source: k8s_audit tags: [k8s] # In a local/user rules file, you could override this macro to ``` I think the change in 0.25.0 to use a bundled libyaml fixed the problem, as it also upgraded libyaml to a version that fixed yaml/libyaml#104. Work around the problem with earlier falco releases by quoting the colon. Signed-off-by: Mark Stemm <[email protected]>
- Loading branch information