Implement lab7 mTLS, scoped OpenBao secrets and worker compromise experiment

This commit is contained in:
2026-11-13 01:12:35 +03:00
parent 20afc2c790
commit 46806a5c37
120 changed files with 10228 additions and 74 deletions
+15
View File
@@ -0,0 +1,15 @@
import json
import socket
ports={'api1':[8080],'api2':[8080],'db':[5432],'s3':[8333,8888,9333,19333],
'cache':[6379],'broker':[6379],'otel-collector':[4318,9464,8888,13133],
'prometheus':[9090],'loki':[3100,9095],'tempo':[3200,4318,9095]}
results=[]
for host,values in ports.items():
for port in values:
with socket.socket() as s:
s.settimeout(2)
try:s.connect((host,port))
except ConnectionRefusedError:results.append({'host':host,'port':port,'refused':True})
else:raise AssertionError(f'Plaintext port reachable: {host}:{port}')
print(json.dumps({'passed':True,'probes':results},indent=2))