fix(security): enforce S3 boundaries and configure persistent audit

This commit is contained in:
2026-11-20 19:35:35 +03:00
parent d6957b2f79
commit 7f6e8cbd27
13 changed files with 7976 additions and 34 deletions
+124
View File
@@ -0,0 +1,124 @@
{
"complete": false,
"tls": [
{
"host": "api",
"port": 8443,
"address": "172.23.0.33",
"authorized": true,
"no_certificate_denied": true,
"foreign_ca_denied": true,
"trusted_wrong_identity_denied": true
},
{
"host": "api",
"port": 8443,
"address": "172.23.0.34",
"authorized": true,
"no_certificate_denied": true,
"foreign_ca_denied": true,
"trusted_wrong_identity_denied": true
},
{
"host": "otel",
"port": 4438,
"address": null,
"authorized": true,
"no_certificate_denied": true,
"foreign_ca_denied": true,
"trusted_wrong_identity_denied": true
},
{
"host": "broker",
"port": 6380,
"address": null,
"authorized": true,
"no_certificate_denied": true,
"foreign_ca_denied": true,
"trusted_wrong_identity_denied": true
}
],
"bypass": [
{
"host": "api",
"port": 8080,
"closed": true
},
{
"host": "postgres",
"port": 5432,
"closed": true
},
{
"host": "broker",
"port": 6379,
"closed": true
},
{
"host": "cache",
"port": 6379,
"closed": true
},
{
"host": "s3",
"port": 9000,
"closed": true
},
{
"host": "otel",
"port": 4318,
"closed": true
},
{
"host": "otel",
"port": 8889,
"closed": true
},
{
"host": "prometheus",
"port": 9090,
"closed": true
},
{
"host": "loki",
"port": 3100,
"closed": true
},
{
"host": "tempo",
"port": 3200,
"closed": true
},
{
"host": "grafana",
"port": 3000,
"closed": true
},
{
"host": "lb",
"port": 8404,
"closed": true
}
],
"database": {
"user_passwords_denied": true,
"session_hashes_denied": true,
"create_role_denied": true
},
"tls_server_ca_denied": true,
"tls_server_hostname_denied": true,
"broker_admin_denied": true,
"openbao": {
"service_policies": [
"messenger-worker"
],
"token_ttl_seconds": 120,
"foreign_secret_denied": true,
"policy_write_denied": true,
"foreign_pki_role_denied": true
},
"probe_exit_code": 1,
"failure": " Container mtusi-lab7-maslov-operator-probe-run-716f354bbf1d Creating \n Container mtusi-lab7-maslov-operator-probe-run-716f354bbf1d Created \nTraceback (most recent call last):\n File \"<frozen runpy>\", line 203, in _run_module_as_main\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/app/src/security_probe.py\", line 341, in <module>\n main()\n ~~~~^^\n File \"/app/src/security_probe.py\", line 321, in main\n \"worker_list_all_buckets_denied\": s3_denied(\n ~~~~~~~~~^\n lambda: clients[\"worker\"].list_buckets()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ),\n ^\n File \"/app/src/security_probe.py\", line 300, in s3_denied\n raise AssertionError(\"S3 operation unexpectedly allowed\")\nAssertionError: S3 operation unexpectedly allowed\n\n",
"date": "2026-11-20T16:33:54.187475+00:00",
"source_commit": "d6957b2f79ce0fb861c4b4e8bb67f1dc82ffade4"
}