Skip to content

Commit

Permalink
rules(list user_known_sa_list): revert as an empty list for user over…
Browse files Browse the repository at this point in the history
…write

rules(list known_sa_list): list of known sa moved here from user_known_sa_list
  • Loading branch information
fntlnz committed Apr 7, 2021
1 parent 8942ee0 commit babd3c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rules/k8s_audit_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,15 @@
tags: [k8s]

- list: user_known_sa_list
items: ["pod-garbage-collector","resourcequota-controller","cronjob-controller","generic-garbage-collector",
items: []

- list: known_sa_list
items: ["pod-garbage-collector","resourcequota-controller","cronjob-controller","generic-garbage-collector",
"daemon-set-controller","endpointslice-controller","deployment-controller", "replicaset-controller",
"endpoint-controller"]

- macro: trusted_sa
condition: (ka.target.name in (user_known_sa_list))
condition: (ka.target.name in (known_sa_list, user_known_sa_list))

# Detect creating a service account in the kube-system/kube-public namespace
- rule: Service Account Created in Kube Namespace
Expand Down

0 comments on commit babd3c1

Please sign in to comment.