Implement lab7 security and compromised worker recovery evidence

This commit is contained in:
2026-11-27 22:04:57 +03:00
parent 20afc2c790
commit 2bd97c8838
256 changed files with 36364 additions and 36 deletions
+551
View File
@@ -0,0 +1,551 @@
{
"status": "PASS",
"host": {
"platform": "Windows-11-10.0.26200-SP0",
"logical_cpus": 8,
"docker_cpus": 8,
"docker_memory_bytes": 8212672512,
"docker_version": "29.9.2"
},
"containers": [
{
"role": "api",
"container": "messenger-lab7-api-1",
"image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6",
"user": "spring",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "api",
"container": "messenger-lab7-api-2",
"image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6",
"user": "spring",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "api-agent",
"container": "messenger-lab7-api-agent-1",
"image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "broker",
"container": "messenger-lab7-broker-1",
"image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
"user": "999:999",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/data",
"/config/broker.acl"
]
},
{
"role": "db",
"container": "messenger-lab7-db-1",
"image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab",
"user": "",
"read_only": false,
"cap_drop": null,
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 536870912,
"nano_cpus": 1000000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/start.sh",
"/etc/pg_hba.conf",
"/operator/postgres_password",
"/var/lib/postgresql/data"
]
},
{
"role": "dispatcher",
"container": "messenger-lab7-dispatcher-1",
"image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "dispatcher-agent",
"container": "messenger-lab7-dispatcher-agent-1",
"image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "gateway",
"container": "messenger-lab7-gateway-1",
"image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3",
"user": "101:101",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"published": {
"3000/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "13007"
}
]
},
"mount_destinations": [
"/identity",
"/pki",
"/etc/nginx/nginx.conf"
]
},
{
"role": "grafana",
"container": "messenger-lab7-grafana-1",
"image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa",
"user": "472",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/start.sh",
"/operator/grafana_password",
"/etc/grafana/provisioning",
"/var/lib/grafana",
"/var/lib/grafana/dashboards"
]
},
{
"role": "lb",
"container": "messenger-lab7-lb-1",
"image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3",
"user": "101:101",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"published": {
"8443/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "8443"
}
]
},
"mount_destinations": [
"/identity",
"/pki",
"/etc/nginx/nginx.conf"
]
},
{
"role": "loki",
"container": "messenger-lab7-loki-1",
"image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745",
"user": "10001",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 402653184,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/loki",
"/etc/loki/loki.yaml"
]
},
{
"role": "minio",
"container": "messenger-lab7-minio-1",
"image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7",
"user": "10001:10001",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 402653184,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/certs",
"/data",
"/pki",
"/operator/minio_root_password",
"/operator/minio_root_user"
]
},
{
"role": "openbao",
"container": "messenger-lab7-openbao-1",
"image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9",
"user": "100:1000",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"published": {
"8200/tcp": [
{
"HostIp": "127.0.0.1",
"HostPort": "18200"
}
]
},
"mount_destinations": [
"/identity",
"/pki",
"/bao/file",
"/etc/bao/config.hcl"
]
},
{
"role": "otel-collector",
"container": "messenger-lab7-otel-collector-1",
"image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7",
"user": "10001:10001",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 201326592,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/etc/otelcol/collector.yaml"
]
},
{
"role": "prometheus",
"container": "messenger-lab7-prometheus-1",
"image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d",
"user": "nobody",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/prometheus",
"/etc/prometheus/alerts.yaml",
"/etc/prometheus/prometheus.yaml"
]
},
{
"role": "redis",
"container": "messenger-lab7-redis-1",
"image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f",
"user": "999:999",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 134217728,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/data",
"/config/redis.acl"
]
},
{
"role": "tempo",
"container": "messenger-lab7-tempo-1",
"image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e",
"user": "10001:10001",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 268435456,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/var/tempo",
"/etc/tempo/tempo.yaml"
]
},
{
"role": "worker",
"container": "messenger-lab7-worker-1",
"image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 1073741824,
"nano_cpus": 1000000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "worker",
"container": "messenger-lab7-worker-2",
"image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 1073741824,
"nano_cpus": 1000000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
},
{
"role": "worker-agent",
"container": "messenger-lab7-worker-agent-1",
"image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41",
"user": "worker",
"read_only": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"memory_bytes": 67108864,
"nano_cpus": 500000000,
"published": {},
"mount_destinations": [
"/identity",
"/pki",
"/runtime"
]
}
],
"no_private_values_in_environment_or_recent_logs": true,
"unchanged_contract_and_public_tests": [
{
"path": "README.md",
"sha256": "abf9ba538be4a4c2933871a05915c015edd769b69dbba9acfc5ec09b269db8c4"
},
{
"path": "COURSE.md",
"sha256": "1e3c65e345b7f89d08ed86a3b50061935ee8157907cb4043cfa40689781f54e0"
},
{
"path": "CONTRIBUTING.md",
"sha256": "08f247085938bd1efc4b8f7f48e3d520b1dc11ce569f4259491e8f01b9abd02c"
},
{
"path": "MAINTAINERS.md",
"sha256": "fea16411b0742e524780ae52b276c509e1451acd2383fa366ff25dce4001869c"
},
{
"path": "Makefile",
"sha256": "99f06720c21e53b5fb6bb0f46aeddf9d37dd6bfa107d4d4581d23a3ad3d30ee3"
},
{
"path": "lab.json",
"sha256": "7237c0cba03dac630ac0cfcb58243656f809337fc35f09113b62103590b840dd"
},
{
"path": "contracts/README.md",
"sha256": "4c04faede4a2ffa35183455b51da21764b7fa3997c0a4b3963614b82586eed28"
},
{
"path": "contracts/attachment-states.md",
"sha256": "d7c4c39e5393fc40d2aa5065a8b874274110eb8553f47c05d31df17c0fa41d21"
},
{
"path": "contracts/examples.json",
"sha256": "2816da2e63058d55bdcbeceb92b231ea2509c86df8c5a0aa908be83bd0599469"
},
{
"path": "contracts/infrastructure.json",
"sha256": "1bc53ef42061f4809b3439235feef0c7bd9dfdac0b3e9858ff41c320ba3ba7a7"
},
{
"path": "contracts/jobs.schema.json",
"sha256": "060362d0877c07a5229556ac5aa012e164931e78df72761f6a84771c6ac2a9f9"
},
{
"path": "contracts/observability.md",
"sha256": "b11ebf3ad60d6e39ed83d9bc8c7f3b0c038dec9daec8a5560bca3cefa506dac1"
},
{
"path": "contracts/openapi.json",
"sha256": "b7dcbeee1b85223706981a1c4af0f656252ac7632ef3af7681145ee132b226f6"
},
{
"path": "tests/README.md",
"sha256": "89afb3063ec0ccd7cb68fdac1de57513f9cc81b77bad96f202daaca2b66a5e82"
},
{
"path": "tests/client.py",
"sha256": "b318084e2a4c380db91a55d082190bf33979fa556a4c4ca87e01f46ae275775c"
},
{
"path": "tests/fixtures/README.md",
"sha256": "0eaa4e8837032d1786fc0c4b1576656ff3f4d1931fdd51b80e5c053f88ab3872"
},
{
"path": "tests/fixtures/sample.png",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"
},
{
"path": "tests/image_probe.py",
"sha256": "ef48d8882ab138b9699a173e7419e5814c22a10b01b6b0ddbb50ea49481a5baa"
},
{
"path": "tests/load.py",
"sha256": "9a9aff05e109630e243c3b092d7bd564344e4872b29e38b6618647a08460a72e"
},
{
"path": "tests/resilience.py",
"sha256": "4ba30b9c81a0664127ddab2b0bea5e76aa2087be8bb25aa13cd5a8e69be23fdd"
},
{
"path": "tests/security.py",
"sha256": "f26d9484914500e37a092587e35cb11b4f0ca0cfe348388802d06087d9f68038"
},
{
"path": "tests/smoke.py",
"sha256": "354e168e1e644145c3ff50bbbe189fd217cce5659aa125f588098025ffab0fdf"
}
],
"trust_matrix": "required student-filled exception"
}