forked from mtusi2026/mtusi2026lab7
Лабораторная 7: TLS, mTLS и OpenBao
This commit is contained in:
@@ -0,0 +1,455 @@
|
||||
[
|
||||
{
|
||||
"service": "api-a",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 268435456,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "api-b",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 268435456,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "attachment-cleaner",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.25,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "grafana",
|
||||
"user": "472",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 268435456,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/var/lib/grafana",
|
||||
"/etc/grafana/provisioning/dashboards",
|
||||
"/var/lib/grafana/dashboards",
|
||||
"/etc/grafana/provisioning/datasources/sources.yaml",
|
||||
"/run/bootstrap/grafana_password",
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "loki",
|
||||
"user": "10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 402653184,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls",
|
||||
"/etc/loki/loki.yaml",
|
||||
"/loki"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "loki-tls",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "container:e451567164e71b9bbbdc648bf642fcf2e4e3e46cea8826c11c8ba9a4b73822a0",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "nginx",
|
||||
"user": "101:101",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/etc/nginx/lab",
|
||||
"/run/ca",
|
||||
"/run/tls",
|
||||
"/etc/nginx/nginx.conf"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "openbao",
|
||||
"user": "",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 268435456,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/tls",
|
||||
"/bao/data",
|
||||
"/bao/config/config.hcl",
|
||||
"/run/ca",
|
||||
"/openbao/file",
|
||||
"/openbao/logs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "otel-collector",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 201326592,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/etc/otel/collector.yaml",
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "otel-collector-tls",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "container:97e163a554a44fcc90d4f9174d7126ee21551eba2718581560d149fb1afbe29b",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "outbox-publisher",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "postgres",
|
||||
"user": "",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"cpu": 1.0,
|
||||
"memory_bytes": 536870912,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls",
|
||||
"/run/bootstrap/postgres_password",
|
||||
"/postgres-entry.sh",
|
||||
"/etc/postgresql/pg_hba.conf",
|
||||
"/var/lib/postgresql/data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "prometheus",
|
||||
"user": "nobody",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 402653184,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls",
|
||||
"/prometheus",
|
||||
"/etc/prometheus"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "prometheus-tls",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "container:1c0e702ccade4a8cdc09d29a37717597527a6b197574809ae52746107c36a6ac",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "rabbitmq",
|
||||
"user": "",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 402653184,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/tls",
|
||||
"/etc/rabbitmq/enabled_plugins",
|
||||
"/etc/rabbitmq/inetrc",
|
||||
"/var/lib/rabbitmq",
|
||||
"/etc/rabbitmq/rabbitmq.conf",
|
||||
"/run/bootstrap/rabbitmq.json",
|
||||
"/run/bootstrap/rabbitmq_password",
|
||||
"/run/ca"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "redis",
|
||||
"user": "",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"cpu": 0.25,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/ca",
|
||||
"/run/tls",
|
||||
"/data",
|
||||
"/etc/redis.conf"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "s3",
|
||||
"user": "",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_DAC_OVERRIDE"
|
||||
],
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 402653184,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/certs/CAs/ca.crt",
|
||||
"/data",
|
||||
"/run/bootstrap/s3_root_password",
|
||||
"/certs/public.crt",
|
||||
"/certs/private.key"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "tempo",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 402653184,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/tls",
|
||||
"/etc/tempo/tempo.yaml",
|
||||
"/var/tempo",
|
||||
"/run/ca"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "tempo-tls",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 0.5,
|
||||
"memory_bytes": 134217728,
|
||||
"privileged": false,
|
||||
"network_mode": "container:ae5dedceb72fbb4ea9ff769f1fd8c30eb7aed2a3728553c3e20057bddb3bee3b",
|
||||
"mount_destinations": [
|
||||
"/run/tls",
|
||||
"/run/ca"
|
||||
]
|
||||
},
|
||||
{
|
||||
"service": "worker",
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"cpu": 1.0,
|
||||
"memory_bytes": 805306368,
|
||||
"privileged": false,
|
||||
"network_mode": "mtusi-lab7_backend",
|
||||
"mount_destinations": [
|
||||
"/run/tls",
|
||||
"/run/ca"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user