SV-253522r960759_rule
V-253522
SRG-APP-000014-CTR-000040
CNTR-PC-000020
CAT I
10
For Kubernetes deployment:
Edit the deployment.apps/twistlock-console.
Find the - name: MANAGEMENT_PORT_HTTP setting
Remove the value assignment (e.g., 8081):
- name: MANAGEMENT_PORT_HTTP
value: "8081"
Save and exit the editing session. The Console will restart automatically.
For Docker deployment:
Modify the twistlock.cfg located in the extracted release tar directory.
Remove the value assignment for the MANAGEMENT_PORT_HTTP= variable.
Redeploy the Console using the twistlock.sh script located in the extracted release tar directory.
$ sudo ./twisltock.sh -sy onebox
For Kubernetes deployment:
Query the ports used by the twistlock-console service:
$ kubectl describe svc twistlock-console -n twistlock
If the TargetPort management-port-http exists and has a port assignment, this is a finding.
Port: management-port-http 8081/TCP
TargetPort: 8081/TCP
For Docker deployment:
Determine the name of the Console container:
docker ps|grep console
For example, the Console container is: ad8b41a2fec9
twistlock/private:console_22_01_840
Inspect the container's PortBindings:
docker inspect ad8b41a2fec9|grep PortBindings -A 20
If port 8081 is listed, this is a finding.
V-253522
False
CNTR-PC-000020
For Kubernetes deployment:
Query the ports used by the twistlock-console service:
$ kubectl describe svc twistlock-console -n twistlock
If the TargetPort management-port-http exists and has a port assignment, this is a finding.
Port: management-port-http 8081/TCP
TargetPort: 8081/TCP
For Docker deployment:
Determine the name of the Console container:
docker ps|grep console
For example, the Console container is: ad8b41a2fec9
twistlock/private:console_22_01_840
Inspect the container's PortBindings:
docker inspect ad8b41a2fec9|grep PortBindings -A 20
If port 8081 is listed, this is a finding.
M
5473