Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

fix: Add missing reference URLs to all rego policies #987

Merged
merged 2 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# title: "'apt-get' missing '-y' to avoid manual input"
# description: "'apt-get' calls should use the flag '-y' to avoid manual user input."
# scope: package
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#run
# schemas:
# - input: schema["input"]
# custom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/multistage-build/
# custom:
# id: DS006
# avd_id: AVD-DS-0006
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#copy
# custom:
# id: DS011
# avd_id: AVD-DS-0011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/deprecated/#maintainer-in-dockerfile
# custom:
# id: DS022
# avd_id: AVD-DS-0022
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/missing_dnf_clean_all.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
# custom:
# id: DS019
# avd_id: AVD-DS-0019
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/missing_zypper_clean.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# custom:
# id: DS020
# avd_id: AVD-DS-0020
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#cmd
# custom:
# id: DS016
# avd_id: AVD-DS-0016
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#entrypoint
# custom:
# id: DS007
# avd_id: AVD-DS-0007
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#healthcheck
# custom:
# id: DS023
# avd_id: AVD-DS-0023
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/root_user.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
# custom:
# id: DS002
# avd_id: AVD-DS-0002
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#workdir
# custom:
# id: DS013
# avd_id: AVD-DS-0013
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/run_using_sudo.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#run
# custom:
# id: DS010
# avd_id: AVD-DS-0010
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/run_using_wget_and_curl.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# custom:
# id: DS014
# avd_id: AVD-DS-0014
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/multistage-build/
# custom:
# id: DS012
# avd_id: AVD-DS-0012
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/unix_ports_out_of_range.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/engine/reference/builder/#expose
# custom:
# id: DS008
# avd_id: AVD-DS-0008
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# custom:
# id: DS017
# avd_id: AVD-DS-0017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#workdir
# custom:
# id: DS009
# avd_id: AVD-DS-0009
Expand Down
2 changes: 2 additions & 0 deletions internal/rules/docker/policies/yum_clean_all_missing.rego
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# custom:
# id: DS015
# avd_id: AVD-DS-0015
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://kubesec.io/basics/containers-securitycontext-capabilities-drop-index-all/
# custom:
# id: KSV004
# avd_id: AVD-KSV-0004
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy/
# custom:
# id: KSV039
# avd_id: AVD-KSV-0039
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/
# custom:
# id: KSV040
# avd_id: AVD-KSV-0040
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema.input
# related_resources:
# - https://kubernetes.io/docs/reference/setup-tools/kubeadm/implementation-details/
# custom:
# id: KSV037
# avd_id: AVD-KSV-0037
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/#serviceaccount-admission-controller
# custom:
# id: KSV036
# avd_id: AVD-KSV-0036
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://kubernetes.io/docs/tasks/administer-cluster/declare-network-policy/
# custom:
# id: KSV038
# avd_id: AVD-KSV-0038
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0011
# avd_id: AVD-KCV-0011
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KSV0012
# avd_id: AVD-KCV-0012
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0001
# avd_id: AVD-KCV-0001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0020
# avd_id: AVD-KCV-0020
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0021
# avd_id: AVD-KCV-0021
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0022
# avd_id: AVD-KCV-0022
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0019
# avd_id: AVD-KCV-0019
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0007
# avd_id: AVD-KCV-0007
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0008
# avd_id: AVD-KCV-0008
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0009
# avd_id: AVD-KCV-0009
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0028
# avd_id: AVD-KCV-0028
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0003
# avd_id: AVD-KCV-0003
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0030
# avd_id: AVD-KCV-0030
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0029
# avd_id: AVD-KCV-0029
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0026
# avd_id: AVD-KCV-0026
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0010
# avd_id: AVD-KCV-0010
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0006
# avd_id: AVD-KCV-0006
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0005
# avd_id: AVD-KCV-0005
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0004
# avd_id: AVD-KCV-0004
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# scope: package
# schemas:
# - input: schema["input"]
# related_resources:
# - https://www.cisecurity.org/benchmark/kubernetes
# custom:
# id: KCV0015
# avd_id: AVD-KCV-0015
Expand Down
Loading