mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-27 02:18:16 +00:00
Ensure 127.0.0.1 for the --bind-address parameter (#1723)
This commit is contained in:
parent
4de7b2095a
commit
39dfe93b68
@ -900,14 +900,11 @@ groups:
|
|||||||
text: "Ensure that the --bind-address argument is set to 127.0.0.1 (Automated)"
|
text: "Ensure that the --bind-address argument is set to 127.0.0.1 (Automated)"
|
||||||
audit: "/bin/ps -ef | grep $controllermanagerbin | grep -v grep"
|
audit: "/bin/ps -ef | grep $controllermanagerbin | grep -v grep"
|
||||||
tests:
|
tests:
|
||||||
bin_op: or
|
|
||||||
test_items:
|
test_items:
|
||||||
- flag: "--bind-address"
|
- flag: "--bind-address"
|
||||||
compare:
|
compare:
|
||||||
op: eq
|
op: eq
|
||||||
value: "127.0.0.1"
|
value: "127.0.0.1"
|
||||||
- flag: "--bind-address"
|
|
||||||
set: false
|
|
||||||
remediation: |
|
remediation: |
|
||||||
Edit the Controller Manager pod specification file $controllermanagerconf
|
Edit the Controller Manager pod specification file $controllermanagerconf
|
||||||
on the control plane node and ensure the correct value for the --bind-address parameter
|
on the control plane node and ensure the correct value for the --bind-address parameter
|
||||||
@ -935,14 +932,11 @@ groups:
|
|||||||
text: "Ensure that the --bind-address argument is set to 127.0.0.1 (Automated)"
|
text: "Ensure that the --bind-address argument is set to 127.0.0.1 (Automated)"
|
||||||
audit: "/bin/ps -ef | grep $schedulerbin | grep -v grep"
|
audit: "/bin/ps -ef | grep $schedulerbin | grep -v grep"
|
||||||
tests:
|
tests:
|
||||||
bin_op: or
|
|
||||||
test_items:
|
test_items:
|
||||||
- flag: "--bind-address"
|
- flag: "--bind-address"
|
||||||
compare:
|
compare:
|
||||||
op: eq
|
op: eq
|
||||||
value: "127.0.0.1"
|
value: "127.0.0.1"
|
||||||
- flag: "--bind-address"
|
|
||||||
set: false
|
|
||||||
remediation: |
|
remediation: |
|
||||||
Edit the Scheduler pod specification file $schedulerconf
|
Edit the Scheduler pod specification file $schedulerconf
|
||||||
on the control plane node and ensure the correct value for the --bind-address parameter
|
on the control plane node and ensure the correct value for the --bind-address parameter
|
||||||
|
Loading…
Reference in New Issue
Block a user