# Стенд: версии, образы, hardening, секреты по сервисам (только имена) commit: f2bd580c2f1ee6473034e6f8bd03f44dbc67c73c docker: 29.8.0 (linux/amd64) docker VM: 8 CPU, 15686336512 bytes RAM compose project: mtusi-lab7-clean | service | image | cap_drop | cap_add | no-new-priv | cpus | memory | published | secrets (names) | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | api | mtusi-messenger:lab7 | ['ALL'] | | True | 1 | 512 MiB | [] | bao_api_role_id, bao_api_secret_id, pki_api_crt, pki_api_key, pki_internal_ca | | broker | rabbitmq:4.3.7-alpine@sha256:b1f997f74103d08fc1f20a13890dc44fe6cfa51d528cf521b480ada988d3ffa5 | ['ALL'] | ['CHOWN', 'DAC_OVERRIDE', 'FOWNER', 'SETGID', 'SETUID'] | True | 1 | 512 MiB | [] | pki_broker_crt, pki_broker_key, pki_internal_ca, rabbitmq_users | | grafana | grafana/grafana:13.2.6@sha256:b21409d7951ddcfd63a4b49083e4ef2cc35bc1437d071813bf82bfb238b00bca | ['ALL'] | | True | 1 | 1024 MiB | ['127.0.0.1:3000', '::1:3000'] | grafana_admin_password, pki_grafana_crt, pki_grafana_key, pki_grafana_ui_crt, pki_grafana_ui_key, pki_internal_ca, pki_public_ca | | lb | haproxy:3.2.26-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 | ['ALL'] | | True | 1 | 128 MiB | ['127.0.0.1:8443', '::1:8443'] | pki_ingress_pem, pki_internal_ca, pki_lb_pem | | loki | grafana/loki:3.7.10@sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7 | ['ALL'] | | True | 1 | 512 MiB | [] | pki_internal_ca, pki_loki_crt, pki_loki_key | | migrate | mtusi-messenger:lab7 | ['ALL'] | | True | 0.5 | 256 MiB | [] | database_url_migrate, pki_internal_ca | | openbao | openbao/openbao:2.7.3@sha256:b9418c63e2185157d8ee8689a8a93265d5aadad677d6320156172bd42ad3b10b | ['ALL'] | | True | 0.5 | 256 MiB | [] | pki_internal_ca, pki_openbao_crt, pki_openbao_key | | otel-collector | otel/opentelemetry-collector-contrib:0.165.0@sha256:e40d61f10c9a617cca1ffd1be4d7e2b3a4b0f0001798ff07e58cabe82e618cea | ['ALL'] | | True | 1 | 512 MiB | [] | pki_internal_ca, pki_otel_collector_crt, pki_otel_collector_key | | postgres | postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c | ['ALL'] | ['CHOWN', 'DAC_OVERRIDE', 'FOWNER', 'SETGID', 'SETUID'] | True | 2 | 1024 MiB | [] | pg_api_password, pg_auditor_password, pg_jobctl_password, pg_migrate_password, pg_relay_password, pg_worker_password, pki_internal_ca, pki_postgres_crt, pki_postgres_key, postgres_password | | prometheus | prom/prometheus:v3.16.0@sha256:e04987641b57704f408e31f6373ba4138ecf27cb4a165d24aabb6c38fddd0f06 | ['ALL'] | | True | 1 | 512 MiB | [] | pki_internal_ca, pki_prometheus_crt, pki_prometheus_key | | relay | mtusi-messenger:lab7 | ['ALL'] | | True | 0.5 | 256 MiB | [] | bao_relay_role_id, bao_relay_secret_id, pki_internal_ca, pki_relay_crt, pki_relay_key | | s3 | chrislusf/seaweedfs:4.46@sha256:08d516132314207d10c8e37cbffc1f32b147d870169688734cc61c6231625b62 | ['ALL'] | ['CHOWN', 'DAC_OVERRIDE', 'FOWNER', 'SETGID', 'SETUID'] | True | 1 | 1024 MiB | [] | pki_internal_ca, pki_s3_crt, pki_s3_key, s3_admin_access_key_id, s3_admin_secret_access_key, s3_api_access_key_id, s3_api_secret_access_key, s3_auditor_access_key_id, s3_auditor_secret_access_key, s3_worker_access_key_id, s3_worker_secret_access_key | | s3-init | mtusi-messenger:lab7 | ['ALL'] | | True | 0.5 | 256 MiB | [] | pki_internal_ca, s3_admin_access_key_id, s3_admin_secret_access_key, s3_api_access_key_id, s3_api_secret_access_key, s3_auditor_access_key_id, s3_auditor_secret_access_key, s3_worker_access_key_id, s3_worker_secret_access_key | | tempo | grafana/tempo:2.10.10@sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38 | ['ALL'] | | True | 1 | 512 MiB | [] | pki_internal_ca, pki_tempo_crt, pki_tempo_key | | valkey | valkey/valkey:8.1.3-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 | ['ALL'] | ['CHOWN', 'DAC_OVERRIDE', 'FOWNER', 'SETGID', 'SETUID'] | True | 0.5 | 256 MiB | [] | pki_internal_ca, pki_valkey_crt, pki_valkey_key, valkey_api_password | | worker | mtusi-messenger:lab7 | ['ALL'] | | True | 2 | 1536 MiB | [] | bao_worker_role_id, bao_worker_secret_id, pki_internal_ca, pki_worker_crt, pki_worker_key | ## docker compose ps -a ``` api Up 49 seconds (healthy) 8080/tcp, 8443/tcp api Up 48 seconds (healthy) 8080/tcp, 8443/tcp broker Up 13 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp grafana Up 13 minutes (healthy) 127.0.0.1:3000->3000/tcp, [::1]:3000->3000/tcp lb Up 13 minutes (healthy) 127.0.0.1:8443->8443/tcp, [::1]:8443->8443/tcp loki Up 13 minutes 3100/tcp migrate Exited (0) 5 minutes ago openbao Up 13 minutes (healthy) 8200/tcp otel-collector Up 13 minutes 4317-4318/tcp, 55679/tcp postgres Up About a minute (healthy) 5432/tcp prometheus Up 13 minutes (healthy) 9090/tcp relay Up 5 minutes (healthy) 8080/tcp s3 Up 13 minutes (healthy) 7333/tcp, 8080/tcp, 8333/tcp, 8888/tcp, 9333/tcp, 18080/tcp, 18888/tcp, 19333/tcp s3-init Exited (0) 4 minutes ago tempo Up 13 minutes valkey Up 2 minutes (healthy) 6379/tcp worker Up 4 minutes (healthy) 8080/tcp ``` ## Пользователь и capabilities PID 1 (запущенные контейнеры) | service | container | user | capabilities | X-Instance-Id alias | | --- | --- | --- | --- | --- | | api | 17c5883f5d19 | uid 10001 | CapEff 0000000000000000 | i-1c2252476ea2 | | api | 87d05ecea97d | uid 10001 | CapEff 0000000000000000 | i-7a9bc4eb5903 | | relay | 638e500712f8 | uid 10001 | CapEff 0000000000000000 | i-f6d48092a828 | | worker | 7b83b29d9feb | uid 10001 | CapEff 0000000000000000 | i-5751896bbdd1 | | lb | ae03174dae61 | uid 99 | CapEff 0000000000000000 | - | | openbao | 51aa7f9765f9 | uid 100 | CapEff 0000000000000000 | - | | otel-collector | 1acf642bfd4f | uid OCI runtime exec failed: exec failed: unable to start container process: exec: "id": executable file not found in $PATH | CapEff $PATH | OCI runtime exec failed: exec failed: unable to start container process: exec: "cat": executable file not found in $PATH | | prometheus | 8583fee78ae1 | uid 65534 | CapEff 0000000000000000 | - | | grafana | 294735cabfeb | uid 472 | CapEff 0000000000000000 | - | | loki | 163ba071b6b3 | uid OCI runtime exec failed: exec failed: unable to start container process: exec: "id": executable file not found in $PATH | CapEff $PATH | OCI runtime exec failed: exec failed: unable to start container process: exec: "cat": executable file not found in $PATH | | tempo | fa42af48bede | uid OCI runtime exec failed: exec failed: unable to start container process: exec: "id": executable file not found in $PATH | CapEff $PATH | OCI runtime exec failed: exec failed: unable to start container process: exec: "cat": executable file not found in $PATH |