lab7: отчёт, разбор сканирования, доказательства прогона 43267046991
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
source_commit=a414221d756744e90c2b9b498b66f386a3a7d062
|
||||
run=https://github.com/CharaWein/2026_lab3/actions/runs/43267046991
|
||||
go_tests=success
|
||||
stand=success
|
||||
scan=success
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,17 @@
|
||||
/mtusi2026lab7-api-3 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-api-4 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-grafana-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-lb-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-loki-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-openbao-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-otel-collector-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-postgres-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-prometheus-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-rabbitmq-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-reconciler-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-redis-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-relay-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-s3-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-init-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-worker-1 restarts=0 oom_killed=false exit=0
|
||||
@@ -0,0 +1,19 @@
|
||||
2026-11-12T17:17:50Z
|
||||
Docker Compose version v2.38.2
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab7-api-1 mtusi2026lab7-api:local "/app/api" api 9 seconds ago Up 6 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-api-2 mtusi2026lab7-api:local "/app/api" api 8 seconds ago Up 7 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-grafana-1 grafana/grafana:11.4.0 "/run.sh" grafana 8 seconds ago Up 6 seconds (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi2026lab7-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb 8 seconds ago Up Less than a second 127.0.0.1:8443->8443/tcp
|
||||
mtusi2026lab7-loki-1 grafana/loki:3.3.2 "/usr/bin/loki -conf…" loki 8 seconds ago Up 8 seconds 3100/tcp
|
||||
mtusi2026lab7-openbao-1 openbao/openbao:2.1.0 "docker-entrypoint.s…" openbao About a minute ago Up About a minute 127.0.0.1:8200->8200/tcp
|
||||
mtusi2026lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.116.1 "/otelcol-contrib --…" otel-collector 8 seconds ago Up 8 seconds 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi2026lab7-postgres-1 postgres:16.4-alpine "sh -c 'install -o p…" postgres 58 seconds ago Up 57 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab7-prometheus-1 prom/prometheus:v3.1.0 "/bin/prometheus --c…" prometheus 9 seconds ago Up 8 seconds 9090/tcp
|
||||
mtusi2026lab7-rabbitmq-1 rabbitmq:4.0.9-alpine "docker-entrypoint.s…" rabbitmq 58 seconds ago Up 57 seconds (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi2026lab7-reconciler-1 mtusi2026lab7-api:local "/app/reconcile --ap…" reconciler 8 seconds ago Up 7 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 58 seconds ago Up 41 seconds (healthy) 6379/tcp
|
||||
mtusi2026lab7-relay-1 mtusi2026lab7-api:local "/app/pipeline relay" relay 9 seconds ago Up 7 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-s3-1 bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 "/bin/bash -c 'mkdir…" s3 58 seconds ago Up 57 seconds (healthy) 9000-9001/tcp
|
||||
mtusi2026lab7-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 8 seconds ago Up 7 seconds
|
||||
mtusi2026lab7-worker-1 mtusi2026lab7-api:local "/app/pipeline worker" worker 8 seconds ago Up 7 seconds (healthy) 8443/tcp
|
||||
@@ -0,0 +1,18 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab7-api-3 mtusi2026lab7-api:local "/app/api" api 53 seconds ago Up 52 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-api-4 mtusi2026lab7-api:local "/app/api" api 41 seconds ago Up 40 seconds (healthy) 8443/tcp
|
||||
mtusi2026lab7-grafana-1 grafana/grafana:11.4.0 "/run.sh" grafana 6 minutes ago Up 5 minutes (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi2026lab7-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb 6 minutes ago Up 5 minutes 127.0.0.1:8443->8443/tcp
|
||||
mtusi2026lab7-loki-1 grafana/loki:3.3.2 "/usr/bin/loki -conf…" loki 6 minutes ago Up 5 minutes 3100/tcp
|
||||
mtusi2026lab7-openbao-1 openbao/openbao:2.1.0 "docker-entrypoint.s…" openbao 7 minutes ago Up 5 minutes 127.0.0.1:8200->8200/tcp
|
||||
mtusi2026lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.116.1 "/otelcol-contrib --…" otel-collector 6 minutes ago Up 5 minutes 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi2026lab7-postgres-1 postgres:16.4-alpine "sh -c 'install -o p…" postgres 7 minutes ago Up 5 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab7-prometheus-1 prom/prometheus:v3.1.0 "/bin/prometheus --c…" prometheus 6 minutes ago Up 5 minutes 9090/tcp
|
||||
mtusi2026lab7-rabbitmq-1 rabbitmq:4.0.9-alpine "docker-entrypoint.s…" rabbitmq 7 minutes ago Up 5 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi2026lab7-reconciler-1 mtusi2026lab7-api:local "/app/reconcile --ap…" reconciler 6 minutes ago Up 5 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 7 minutes ago Up 5 minutes (healthy) 6379/tcp
|
||||
mtusi2026lab7-relay-1 mtusi2026lab7-api:local "/app/pipeline relay" relay 6 minutes ago Up 5 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-s3-1 bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 "/bin/bash -c 'mkdir…" s3 7 minutes ago Up 5 minutes (healthy) 9000-9001/tcp
|
||||
mtusi2026lab7-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 6 minutes ago Up 5 minutes
|
||||
mtusi2026lab7-tempo-init-1 grafana/tempo:2.6.1 "chown 10001:10001 /…" tempo-init 6 minutes ago Exited (0) 6 minutes ago
|
||||
mtusi2026lab7-worker-1 mtusi2026lab7-api:local "/app/pipeline worker" worker 6 minutes ago Up 5 minutes (healthy) 8443/tcp
|
||||
@@ -0,0 +1,16 @@
|
||||
mtusi2026lab7-api-4 0.51% 17.5MiB / 256MiB
|
||||
mtusi2026lab7-api-3 0.63% 17.07MiB / 256MiB
|
||||
mtusi2026lab7-grafana-1 0.03% 53.66MiB / 256MiB
|
||||
mtusi2026lab7-tempo-1 0.96% 139.4MiB / 1GiB
|
||||
mtusi2026lab7-lb-1 0.33% 14.51MiB / 128MiB
|
||||
mtusi2026lab7-otel-collector-1 2.16% 57.52MiB / 256MiB
|
||||
mtusi2026lab7-reconciler-1 3.81% 5.465MiB / 128MiB
|
||||
mtusi2026lab7-loki-1 0.35% 97.61MiB / 1GiB
|
||||
mtusi2026lab7-worker-1 3.15% 12.34MiB / 768MiB
|
||||
mtusi2026lab7-prometheus-1 0.72% 42.93MiB / 512MiB
|
||||
mtusi2026lab7-relay-1 0.21% 12.42MiB / 128MiB
|
||||
mtusi2026lab7-postgres-1 0.25% 60.77MiB / 512MiB
|
||||
mtusi2026lab7-rabbitmq-1 4.61% 77.87MiB / 512MiB
|
||||
mtusi2026lab7-redis-1 0.44% 4.168MiB / 256MiB
|
||||
mtusi2026lab7-s3-1 0.04% 208.1MiB / 512MiB
|
||||
mtusi2026lab7-openbao-1 0.33% 21.78MiB / 256MiB
|
||||
@@ -0,0 +1,8 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 138, "failed_attempts": 0, "first_recovery_seconds": 3.653}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
-- контейнеры api после stop-one:
|
||||
mtusi2026lab7-api-1 0538735e7e2e Up 29 seconds (healthy)
|
||||
mtusi2026lab7-api-2 7943a102220b Exited (0) 11 seconds ago
|
||||
mtusi2026lab7-api-1 Up 36 seconds (healthy)
|
||||
mtusi2026lab7-api-2 Up 6 seconds (healthy)
|
||||
@@ -0,0 +1,8 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 138, "failed_attempts": 0, "first_recovery_seconds": 3.634}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
-- контейнеры api после stop-one:
|
||||
mtusi2026lab7-api-1 0538735e7e2e Up 52 seconds (healthy)
|
||||
mtusi2026lab7-api-2 7943a102220b Exited (0) 11 seconds ago
|
||||
mtusi2026lab7-api-1 Up 58 seconds (healthy)
|
||||
mtusi2026lab7-api-2 Up 5 seconds (healthy)
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"rounds": 10,
|
||||
"parallel_per_round": 16,
|
||||
"distinct_instances_seen": 2,
|
||||
"duplicates_found": 0,
|
||||
"per_round": [
|
||||
{
|
||||
"round": 0,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 1,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 2,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 3,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 4,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 5,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 6,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 7,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 8,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
},
|
||||
{
|
||||
"round": 9,
|
||||
"requests": 16,
|
||||
"status_201": 16,
|
||||
"distinct_messages": 1,
|
||||
"stored": 1,
|
||||
"instances": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 bitnamilegacy/minio@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01
|
||||
grafana/grafana:11.4.0 grafana/grafana@sha256:d8ea37798ccc41061a62ab080f2676dda6bf7815558499f901bdb0f533a456fb
|
||||
grafana/loki:3.3.2 grafana/loki@sha256:8af2de1abbdd7aa92b27c9bcc96f0f4140c9096b507c77921ffddf1c6ad6c48f
|
||||
grafana/tempo:2.6.1 grafana/tempo@sha256:ef4384fce6e8ad22b95b243d8fc165628cda655376fd50e7850536ad89d71d50
|
||||
haproxy:3.0.5-alpine haproxy@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949
|
||||
mtusi2026lab7-api:local
|
||||
local-build
|
||||
openbao/openbao:2.1.0 openbao/openbao@sha256:7de07aa6df3937d44c96c2d65c188b2d4a70546f2a764ad4510301305af6a223
|
||||
otel/opentelemetry-collector-contrib:0.116.1 otel/opentelemetry-collector-contrib@sha256:d0ebf65280da2e1b1491d1b93648281afd353d4b9ea19160090303cec9a233bd
|
||||
postgres:16.4-alpine postgres@sha256:5660c2cbfea50c7a9127d17dc4e48543eedd3d7a41a595a2dfa572471e37e64c
|
||||
prom/prometheus:v3.1.0 prom/prometheus@sha256:6559acbd5d770b15bb3c954629ce190ac3cbbdb2b7f1c30f0385c4e05104e218
|
||||
rabbitmq:4.0.9-alpine rabbitmq@sha256:0a09ddfd00a1ef2e58f497d731e9b2814ef3bebb3668069185c54d085352d2b9
|
||||
redis:7.4.1-alpine redis@sha256:c1e88455c85225310bbea54816e9c3f4b5295815e6dbf80c34d40afc6df28275
|
||||
@@ -0,0 +1,2 @@
|
||||
6e304db1ea6a4190 10
|
||||
749718ebe6b58adb 10
|
||||
@@ -0,0 +1,36 @@
|
||||
-- до:
|
||||
mtusi2026lab7-api-1 Up 58 seconds (healthy)
|
||||
mtusi2026lab7-api-2 Up 5 seconds (healthy)
|
||||
mtusi2026lab7-grafana-1 Up 58 seconds (healthy)
|
||||
mtusi2026lab7-lb-1 Up 52 seconds
|
||||
mtusi2026lab7-loki-1 Up About a minute
|
||||
mtusi2026lab7-openbao-1 Up About a minute
|
||||
mtusi2026lab7-otel-collector-1 Up About a minute
|
||||
mtusi2026lab7-postgres-1 Up About a minute (healthy)
|
||||
mtusi2026lab7-prometheus-1 Up About a minute
|
||||
mtusi2026lab7-rabbitmq-1 Up About a minute (healthy)
|
||||
mtusi2026lab7-reconciler-1 Up 59 seconds (healthy)
|
||||
mtusi2026lab7-redis-1 Up About a minute (healthy)
|
||||
mtusi2026lab7-relay-1 Up 59 seconds (healthy)
|
||||
mtusi2026lab7-s3-1 Up About a minute (healthy)
|
||||
mtusi2026lab7-tempo-1 Up 59 seconds
|
||||
mtusi2026lab7-worker-1 Up 59 seconds (healthy)
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
-- после:
|
||||
mtusi2026lab7-api-1 Up 6 seconds (healthy)
|
||||
mtusi2026lab7-api-2 Up 7 seconds (healthy)
|
||||
mtusi2026lab7-grafana-1 Up 24 seconds (healthy)
|
||||
mtusi2026lab7-lb-1 Up Less than a second
|
||||
mtusi2026lab7-loki-1 Up 23 seconds
|
||||
mtusi2026lab7-openbao-1 Up 15 seconds
|
||||
mtusi2026lab7-otel-collector-1 Up 24 seconds
|
||||
mtusi2026lab7-postgres-1 Up 24 seconds (healthy)
|
||||
mtusi2026lab7-prometheus-1 Up 24 seconds
|
||||
mtusi2026lab7-rabbitmq-1 Up 23 seconds (healthy)
|
||||
mtusi2026lab7-reconciler-1 Up 7 seconds (healthy)
|
||||
mtusi2026lab7-redis-1 Up 24 seconds (healthy)
|
||||
mtusi2026lab7-relay-1 Up 7 seconds (healthy)
|
||||
mtusi2026lab7-s3-1 Up 24 seconds (healthy)
|
||||
mtusi2026lab7-tempo-1 Up 23 seconds
|
||||
mtusi2026lab7-worker-1 Up 7 seconds (healthy)
|
||||
@@ -0,0 +1,3 @@
|
||||
PASS: whitespace-only password rejected with 400 (3 variants)
|
||||
PASS: Redis ACL -incr: message visible on every next read (3 in history)
|
||||
PASS: Redis ACL -incr -del -unlink -scan: message visible on every next read (4 in history)
|
||||
@@ -0,0 +1,92 @@
|
||||
-- до:
|
||||
mtusi2026lab7-api-1 0538735e7e2e Up 3 minutes (healthy)
|
||||
mtusi2026lab7-api-2 7943a102220b Up 3 minutes (healthy)
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 380B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 3.85kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load metadata for docker.io/library/golang:1.26.11-alpine
|
||||
#4 DONE 0.1s
|
||||
|
||||
#5 [internal] load .dockerignore
|
||||
#5 transferring context: 212B 0.0s done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [builder 1/6] FROM docker.io/library/golang:1.26.11-alpine@sha256:ae52b5bc6ed045a9ed26ab03dc19327a802a9cc9aa8b27ed57f5c6b60579b0bb
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [stage-2 1/7] FROM docker.io/library/alpine:3.20@sha256:d9e853e87e55526f6b2917df91a2115c36dd7c696a35be12163d44e6e2a4b6bc
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [internal] load build context
|
||||
#8 transferring context: 10.70kB 0.1s done
|
||||
#8 DONE 0.1s
|
||||
|
||||
#9 [stage-2 4/7] WORKDIR /app
|
||||
#9 CACHED
|
||||
|
||||
#10 [builder 3/6] COPY go.mod go.sum ./
|
||||
#10 CACHED
|
||||
|
||||
#11 [builder 5/6] COPY . .
|
||||
#11 CACHED
|
||||
|
||||
#12 [stage-2 2/7] RUN apk --no-cache upgrade && apk --no-cache add ca-certificates tzdata libwebp-tools
|
||||
#12 CACHED
|
||||
|
||||
#13 [stage-2 5/7] COPY --from=builder --chown=appuser:appgroup /out/api /app/api
|
||||
#13 CACHED
|
||||
|
||||
#14 [builder 4/6] RUN go mod download
|
||||
#14 CACHED
|
||||
|
||||
#15 [builder 2/6] WORKDIR /src
|
||||
#15 CACHED
|
||||
|
||||
#16 [builder 6/6] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/charawein/mtusi2026lab7/internal/telemetry.Version=lab7" -trimpath -o /out/ ./cmd/api ./cmd/reconcile ./cmd/pipeline ./cmd/secprobe
|
||||
#16 CACHED
|
||||
|
||||
#17 [stage-2 6/7] COPY --from=builder --chown=appuser:appgroup /out/reconcile /app/reconcile
|
||||
#17 CACHED
|
||||
|
||||
#18 [stage-2 3/7] RUN addgroup -g 1001 -S appgroup && adduser -u 1001 -S appuser -G appgroup && mkdir -p /var/lib/messenger/fault && chown appuser:appgroup /var/lib/messenger/fault
|
||||
#18 CACHED
|
||||
|
||||
#19 [stage-2 7/7] COPY --from=builder --chown=appuser:appgroup /out/pipeline /app/pipeline
|
||||
#19 CACHED
|
||||
|
||||
#20 exporting to image
|
||||
#20 exporting layers done
|
||||
#20 writing image sha256:e830a7fdf17500a1a527dd395f504ccf04238c2f523d963b02d01cb64fd0d9a9 done
|
||||
#20 naming to docker.io/library/mtusi2026lab7-api:local done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 resolving provenance for metadata file
|
||||
#21 DONE 0.0s
|
||||
api Built
|
||||
Container mtusi2026lab7-postgres-1 Running
|
||||
no change
|
||||
Container mtusi2026lab7-api-1 Running
|
||||
Container mtusi2026lab7-api-2 Running
|
||||
Container mtusi2026lab7-api-3 Creating
|
||||
Container mtusi2026lab7-api-3 Created
|
||||
Container mtusi2026lab7-api-3 Starting
|
||||
Container mtusi2026lab7-api-3 Started
|
||||
replaced /mtusi2026lab7-api-1
|
||||
Container mtusi2026lab7-api-2 Running
|
||||
Container mtusi2026lab7-api-3 Running
|
||||
Container mtusi2026lab7-api-4 Creating
|
||||
Container mtusi2026lab7-api-4 Created
|
||||
Container mtusi2026lab7-api-4 Starting
|
||||
Container mtusi2026lab7-api-4 Started
|
||||
replaced /mtusi2026lab7-api-2
|
||||
mtusi2026lab7-api-3 2027815d9c51 mtusi2026lab7-api:local Up 25 seconds (healthy)
|
||||
mtusi2026lab7-api-4 919473005fb8 mtusi2026lab7-api:local Up 13 seconds (healthy)
|
||||
-- замена заняла 62 s (внутри 90 s нагрузки)
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 7,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 90.0,
|
||||
"elapsed_seconds": 90.022,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 11673,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 129.669,
|
||||
"successful_latency_ms": {
|
||||
"p50": 26.667,
|
||||
"p95": 59.833,
|
||||
"p99": 89.961
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
2
|
||||
total used free shared buff/cache available
|
||||
Mem: 7932 1948 1527 101 4872 5983
|
||||
Swap: 3071 0 3071
|
||||
28.0.4
|
||||
Docker Compose version v2.38.2
|
||||
@@ -0,0 +1 @@
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1 @@
|
||||
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,24 @@
|
||||
? github.com/charawein/mtusi2026lab7/cmd/api [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/cmd/pipeline [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/cmd/reconcile [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/cmd/secprobe [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/broker [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/config [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/domain [no test files]
|
||||
ok github.com/charawein/mtusi2026lab7/internal/imagecheck 0.022s
|
||||
ok github.com/charawein/mtusi2026lab7/internal/imaging 0.767s
|
||||
? github.com/charawein/mtusi2026lab7/internal/platform [no test files]
|
||||
ok github.com/charawein/mtusi2026lab7/internal/reconcile 0.012s
|
||||
? github.com/charawein/mtusi2026lab7/internal/repository [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/repository/postgres [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/repository/redis [no test files]
|
||||
? github.com/charawein/mtusi2026lab7/internal/secrets [no test files]
|
||||
ok github.com/charawein/mtusi2026lab7/internal/service 0.009s
|
||||
ok github.com/charawein/mtusi2026lab7/internal/storage 0.005s
|
||||
ok github.com/charawein/mtusi2026lab7/internal/telemetry 0.015s
|
||||
ok github.com/charawein/mtusi2026lab7/internal/tlsutil 4.229s
|
||||
? github.com/charawein/mtusi2026lab7/internal/transport/http [no test files]
|
||||
ok github.com/charawein/mtusi2026lab7/internal/transport/http/middleware 0.005s
|
||||
? github.com/charawein/mtusi2026lab7/internal/transport/httputil [no test files]
|
||||
ok github.com/charawein/mtusi2026lab7/internal/worker 6.961s
|
||||
? github.com/charawein/mtusi2026lab7/student-tests/genfixtures [no test files]
|
||||
@@ -0,0 +1,16 @@
|
||||
=== RUN TestTLSIdentityAllowlistRevocationAndReload
|
||||
2026/11/12 17:14:23 http: TLS handshake error from 127.0.0.1:37240: tls: client didn't provide a certificate
|
||||
2026/11/12 17:14:23 http: TLS handshake error from 127.0.0.1:37246: client identity not allowed: [attacker]
|
||||
2026/11/12 17:14:23 http: TLS handshake error from 127.0.0.1:37254: tls: failed to verify certificate: x509: certificate signed by unknown authority
|
||||
2026/11/12 17:14:25 http: TLS handshake error from 127.0.0.1:44556: client identity not allowed: certificate revoked
|
||||
--- PASS: TestTLSIdentityAllowlistRevocationAndReload (4.22s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/tlsutil 4.226s
|
||||
=== RUN TestPutValidatedClassifiesCause
|
||||
--- PASS: TestPutValidatedClassifiesCause (0.00s)
|
||||
=== RUN TestValidatePassword
|
||||
--- PASS: TestValidatePassword (0.00s)
|
||||
=== RUN TestValidateText
|
||||
--- PASS: TestValidateText (0.00s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/service 0.006s
|
||||
@@ -0,0 +1,18 @@
|
||||
=== RUN TestTracePropagationMapAndAMQP
|
||||
--- PASS: TestTracePropagationMapAndAMQP (0.00s)
|
||||
=== RUN TestTraceUnsampledSuppressesBackgroundSpans
|
||||
--- PASS: TestTraceUnsampledSuppressesBackgroundSpans (0.00s)
|
||||
=== RUN TestTraceLogCorrelation
|
||||
--- PASS: TestTraceLogCorrelation (0.00s)
|
||||
=== RUN TestTelemetrySetupBuildsProviders
|
||||
--- PASS: TestTelemetrySetupBuildsProviders (0.01s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/telemetry 0.011s
|
||||
=== RUN TestTelemetryRouteTemplateAndStatus
|
||||
--- PASS: TestTelemetryRouteTemplateAndStatus (0.00s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/transport/http/middleware 0.006s
|
||||
=== RUN TestPipelineTracePropagationThroughOutbox
|
||||
--- PASS: TestPipelineTracePropagationThroughOutbox (0.70s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/worker 0.705s
|
||||
@@ -0,0 +1,39 @@
|
||||
=== RUN TestPipelineHappyPathAndDuplicate
|
||||
2026/11/12 17:14:12 INFO duplicate delivery of finished job: ack without work job_id=171265b2-fafc-4d50-a4be-f79e7b3a46f4 attachment_id=240061d5-1d00-40f7-928a-d8fc1d9f2263 version=1 event=job.duplicate
|
||||
--- PASS: TestPipelineHappyPathAndDuplicate (0.24s)
|
||||
=== RUN TestPipelineConcurrentDuplicateIsBusy
|
||||
2026/11/12 17:14:12 INFO job leased by another worker: ack duplicate job_id=4563f346-08b5-4df9-b910-4ef28949eff5 attachment_id=50d6d2d9-545c-4367-99d7-1e0905d4aa81 version=1 event=job.duplicate owner=slow-worker
|
||||
--- PASS: TestPipelineConcurrentDuplicateIsBusy (0.17s)
|
||||
=== RUN TestPipelineCrashAfterSideEffectBeforeCommit
|
||||
2026/11/12 17:14:14 WARN FAULT INJECTION: crashing point=worker.after_side_effect
|
||||
2026/11/12 17:14:14 INFO job leased by another worker: ack duplicate job_id=a2119a53-ef46-42e2-87c2-3374ef5d364a attachment_id=6af36eaf-d341-4f59-8437-6d0a41a41c94 version=1 event=job.duplicate owner=w-fd7888
|
||||
--- PASS: TestPipelineCrashAfterSideEffectBeforeCommit (3.05s)
|
||||
=== RUN TestPipelineCrashAfterCommitBeforeAck
|
||||
2026/11/12 17:14:15 WARN FAULT INJECTION: crashing point=worker.after_commit
|
||||
2026/11/12 17:14:15 INFO duplicate delivery of finished job: ack without work job_id=764d00c1-7085-4f4d-8f0e-e5d1fce0d526 attachment_id=e8964090-117a-4651-b075-a04ab5935c70 version=1 event=job.duplicate
|
||||
--- PASS: TestPipelineCrashAfterCommitBeforeAck (0.17s)
|
||||
=== RUN TestPipelineRelayCrashAfterPublishDuplicates
|
||||
2026/11/12 17:14:15 INFO duplicate delivery of finished job: ack without work job_id=3e545245-fc57-4d3c-82f1-95e7b0f21cc3 attachment_id=2f86dba8-b3d1-4a79-8f6d-9c4d3041d350 version=1 event=job.duplicate
|
||||
--- PASS: TestPipelineRelayCrashAfterPublishDuplicates (0.17s)
|
||||
=== RUN TestPipelineVersionReorderAndStaleJob
|
||||
2026/11/12 17:14:15 INFO duplicate delivery of finished job: ack without work job_id=59e6b1aa-a4ce-4008-b6bd-3ed7918367d5 attachment_id=e440373b-b9fd-4654-9745-d814262eb7eb version=1 event=job.duplicate
|
||||
--- PASS: TestPipelineVersionReorderAndStaleJob (0.20s)
|
||||
=== RUN TestPipelineLostLeaseFencing
|
||||
--- PASS: TestPipelineLostLeaseFencing (0.69s)
|
||||
=== RUN TestPipelineTransientRetryWithBackoff
|
||||
2026/11/12 17:14:16 WARN attempt failed job_id=fc0ed4e9-3a91-4fb8-ab2d-29543335a3d7 attachment_id=abeb1248-ee98-46e7-ac2e-29d868dd7efe version=1 event=job.retry attempt=1 code=processing_failed final=false backoff=145.861651ms
|
||||
2026/11/12 17:14:16 INFO early delivery before backoff: ack, outbox will redeliver job_id=fc0ed4e9-3a91-4fb8-ab2d-29543335a3d7 attachment_id=abeb1248-ee98-46e7-ac2e-29d868dd7efe version=1 event=job.not_due
|
||||
--- PASS: TestPipelineTransientRetryWithBackoff (0.69s)
|
||||
=== RUN TestPipelinePermanentFailureAndReplay
|
||||
2026/11/12 17:14:17 WARN attempt failed job_id=95e8e0c1-b10c-469c-b708-6b547cc2042c attachment_id=78f28e8b-ddd6-42f0-b80c-5b01a708f0fa version=1 event=job.failed attempt=1 code=checksum_mismatch final=true backoff=132.23852ms
|
||||
--- PASS: TestPipelinePermanentFailureAndReplay (0.20s)
|
||||
=== RUN TestPipelineRetryExhausted
|
||||
2026/11/12 17:14:17 WARN attempt failed job_id=b86ec031-3705-40a5-a96d-219da34c55cb attachment_id=ef57db6e-fc00-44c1-aa33-29bbd3cb53e6 version=1 event=job.retry attempt=1 code=processing_failed final=false backoff=115.778267ms
|
||||
2026/11/12 17:14:18 WARN attempt failed job_id=b86ec031-3705-40a5-a96d-219da34c55cb attachment_id=ef57db6e-fc00-44c1-aa33-29bbd3cb53e6 version=1 event=job.retry attempt=2 code=processing_failed final=false backoff=212.923342ms
|
||||
2026/11/12 17:14:18 WARN attempt failed job_id=b86ec031-3705-40a5-a96d-219da34c55cb attachment_id=ef57db6e-fc00-44c1-aa33-29bbd3cb53e6 version=1 event=job.failed attempt=3 code=processing_failed final=true backoff=346.808043ms
|
||||
--- PASS: TestPipelineRetryExhausted (1.63s)
|
||||
=== RUN TestPipelineTracePropagationThroughOutbox
|
||||
2026/11/12 17:14:19 WARN attempt failed job_id=d3e37ccd-f331-4f2d-add2-5f4f0c07dc82 attachment_id=71e4e1cd-a9a5-418c-867c-d1956ca5d5fd version=1 event=job.retry attempt=1 code=processing_failed final=false backoff=192.048206ms
|
||||
--- PASS: TestPipelineTracePropagationThroughOutbox (0.67s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/worker 7.886s
|
||||
@@ -0,0 +1,4 @@
|
||||
=== RUN TestOptimizedWebP
|
||||
--- PASS: TestOptimizedWebP (0.34s)
|
||||
PASS
|
||||
ok github.com/charawein/mtusi2026lab7/internal/imaging 0.350s
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,17 @@
|
||||
/mtusi2026lab7-api-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-api-2 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-grafana-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-lb-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-loki-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-openbao-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-otel-collector-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-postgres-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-prometheus-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-rabbitmq-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-reconciler-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-redis-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-relay-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-s3-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-init-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-worker-1 restarts=0 oom_killed=false exit=0
|
||||
@@ -0,0 +1,18 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab7-api-1 mtusi2026lab7-api:local "/app/api" api About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-api-2 mtusi2026lab7-api:local "/app/api" api About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-grafana-1 grafana/grafana:11.4.0 "/run.sh" grafana About a minute ago Up About a minute (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi2026lab7-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb About a minute ago Up About a minute 127.0.0.1:8443->8443/tcp
|
||||
mtusi2026lab7-loki-1 grafana/loki:3.3.2 "/usr/bin/loki -conf…" loki About a minute ago Up About a minute 3100/tcp
|
||||
mtusi2026lab7-openbao-1 openbao/openbao:2.1.0 "docker-entrypoint.s…" openbao 2 minutes ago Up 2 minutes 127.0.0.1:8200->8200/tcp
|
||||
mtusi2026lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.116.1 "/otelcol-contrib --…" otel-collector About a minute ago Up About a minute 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi2026lab7-postgres-1 postgres:16.4-alpine "sh -c 'install -o p…" postgres 2 minutes ago Up 2 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab7-prometheus-1 prom/prometheus:v3.1.0 "/bin/prometheus --c…" prometheus About a minute ago Up About a minute 9090/tcp
|
||||
mtusi2026lab7-rabbitmq-1 rabbitmq:4.0.9-alpine "docker-entrypoint.s…" rabbitmq 2 minutes ago Up About a minute (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi2026lab7-reconciler-1 mtusi2026lab7-api:local "/app/reconcile --ap…" reconciler About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 2 minutes ago Up 2 minutes (healthy) 6379/tcp
|
||||
mtusi2026lab7-relay-1 mtusi2026lab7-api:local "/app/pipeline relay" relay About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-s3-1 bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 "/bin/bash -c 'mkdir…" s3 2 minutes ago Up 38 seconds (healthy) 9000-9001/tcp
|
||||
mtusi2026lab7-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo About a minute ago Up About a minute
|
||||
mtusi2026lab7-tempo-init-1 grafana/tempo:2.6.1 "chown 10001:10001 /…" tempo-init About a minute ago Exited (0) About a minute ago
|
||||
mtusi2026lab7-worker-1 mtusi2026lab7-api:local "/app/pipeline worker" worker 53 seconds ago Up 30 seconds (healthy) 8443/tcp
|
||||
@@ -0,0 +1,16 @@
|
||||
mtusi2026lab7-worker-1 0.01% 14.95MiB / 768MiB
|
||||
mtusi2026lab7-grafana-1 3.10% 69.02MiB / 256MiB
|
||||
mtusi2026lab7-tempo-1 0.45% 61.38MiB / 1GiB
|
||||
mtusi2026lab7-lb-1 0.24% 13.18MiB / 128MiB
|
||||
mtusi2026lab7-relay-1 0.15% 11.93MiB / 128MiB
|
||||
mtusi2026lab7-reconciler-1 0.00% 5.191MiB / 128MiB
|
||||
mtusi2026lab7-api-2 0.21% 53.95MiB / 256MiB
|
||||
mtusi2026lab7-otel-collector-1 1.03% 48.32MiB / 256MiB
|
||||
mtusi2026lab7-loki-1 0.40% 61.48MiB / 1GiB
|
||||
mtusi2026lab7-prometheus-1 0.43% 38.57MiB / 512MiB
|
||||
mtusi2026lab7-api-1 0.15% 67.27MiB / 256MiB
|
||||
mtusi2026lab7-postgres-1 2.44% 59.49MiB / 512MiB
|
||||
mtusi2026lab7-s3-1 0.03% 211.7MiB / 512MiB
|
||||
mtusi2026lab7-redis-1 0.41% 3.969MiB / 256MiB
|
||||
mtusi2026lab7-rabbitmq-1 0.13% 76.74MiB / 512MiB
|
||||
mtusi2026lab7-openbao-1 0.27% 23.18MiB / 256MiB
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"scenario": "crash-effect",
|
||||
"result": {
|
||||
"attachment_id": "c5db77aa-2a97-4eb8-a77a-d90e17d95e70",
|
||||
"job_id": "7cc02c86-a5dc-44a7-baeb-f17c9198f1a5",
|
||||
"worker_restarts": 1,
|
||||
"attempt": 2,
|
||||
"seconds_to_ready": 15.7,
|
||||
"events": "enqueued,claimed,lease_expired_requeued,claimed,done",
|
||||
"invariants": {
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"objects_per_version": {
|
||||
"1": 3
|
||||
}
|
||||
},
|
||||
"variants": {
|
||||
"thumbnail": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"optimized_bytes": 2462,
|
||||
"original_bytes": 111817
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"scenario": "demo",
|
||||
"result": {
|
||||
"attachment_id": "a9f29281-fb61-4dc2-be1a-bb051d221790",
|
||||
"job_id": "208a569c-127b-4997-8598-f8ce2afc6843",
|
||||
"job_state": "done",
|
||||
"attempt": 1,
|
||||
"timeline": [
|
||||
"worker stopped",
|
||||
"upload 202 queued id=a9f29281-fb61-4dc2-be1a-bb051d221790",
|
||||
"message 201 with queued attachment",
|
||||
"content 409, other messages OK",
|
||||
"api and rabbitmq restarted (volumes kept), outbox published=1",
|
||||
"rabbitmq queues after restart: {'attachment.dead': 0, 'attachment.process': 1}",
|
||||
"worker started → ready in 1.3 s"
|
||||
],
|
||||
"variants": {
|
||||
"thumbnail": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"crop": [
|
||||
128,
|
||||
128
|
||||
],
|
||||
"optimized": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"optimized_bytes": 2462,
|
||||
"original_bytes": 111817
|
||||
},
|
||||
"invariants": {
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"objects_per_version": {
|
||||
"1": 3
|
||||
}
|
||||
},
|
||||
"events": "enqueued,claimed,done"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"scenario": "failed-replay",
|
||||
"result": {
|
||||
"attachment_id": "03387194-01c7-4af3-8c05-2494b53db329",
|
||||
"failed_error_code": "checksum_mismatch",
|
||||
"content_while_failed": 409,
|
||||
"attach_failed_to_message": 409,
|
||||
"registry_listed": true,
|
||||
"replay": {
|
||||
"attachment_id": "03387194-01c7-4af3-8c05-2494b53db329",
|
||||
"command": "replay",
|
||||
"error": "",
|
||||
"job_id": "c56192e9-dc8c-400b-a33b-09e66e0ecd3d",
|
||||
"ok": true,
|
||||
"version": 1
|
||||
},
|
||||
"replay_after_success": {
|
||||
"attachment_id": "03387194-01c7-4af3-8c05-2494b53db329",
|
||||
"command": "replay",
|
||||
"error": "conflict: job is done, only failed jobs can be replayed",
|
||||
"job_id": "c56192e9-dc8c-400b-a33b-09e66e0ecd3d",
|
||||
"ok": false,
|
||||
"version": 1
|
||||
},
|
||||
"final_status": "ready",
|
||||
"events": "enqueued,claimed,failed,replay,claimed,done,replay_refused",
|
||||
"dlq_messages": 1,
|
||||
"invariants": {
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"objects_per_version": {
|
||||
"1": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,925 @@
|
||||
{
|
||||
"scenario": "signals",
|
||||
"result": {
|
||||
"request": {
|
||||
"request_id": "obs-msg-cce45e31e6b242e6",
|
||||
"trace_id": "54ff4aa532f0179348c36bde4be6e8d2",
|
||||
"spans": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/messages",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"ms": 2.4,
|
||||
"parent": null,
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "get",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.08,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ttl",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.03,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.22,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.17,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.07,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "DELETE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.2,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.21,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.62,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/messages",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
}
|
||||
],
|
||||
"log": {
|
||||
"line": "http request",
|
||||
"labels": {
|
||||
"detected_level": "info",
|
||||
"event": "http.request",
|
||||
"request_id": "obs-msg-cce45e31e6b242e6",
|
||||
"route": "/api/v1/chats/{chat_id}/messages",
|
||||
"service_name": "messenger-api",
|
||||
"severity_text": "INFO",
|
||||
"span_id": "19644ee5c6ed3f4f",
|
||||
"status": "201",
|
||||
"trace_id": "54ff4aa532f0179348c36bde4be6e8d2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"request_id": "obs-upload-93e4699646f94751",
|
||||
"trace_id": "c305c32ab42753aedfec890c69c52ced",
|
||||
"services": [
|
||||
"messenger-api",
|
||||
"messenger-relay",
|
||||
"messenger-worker"
|
||||
],
|
||||
"links": {
|
||||
"api server → relay producer": true,
|
||||
"relay producer → worker consumer": true,
|
||||
"worker consumer → S3 PUT": true,
|
||||
"worker consumer → image.decode": true
|
||||
},
|
||||
"span_count": 56,
|
||||
"worker_db_spans": [
|
||||
"BEGIN",
|
||||
"COMMIT",
|
||||
"INSERT",
|
||||
"SELECT",
|
||||
"UPDATE",
|
||||
"batch start",
|
||||
"pool.acquire"
|
||||
],
|
||||
"tree": [
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
||||
"kind": "SPAN_KIND_SERVER",
|
||||
"ms": 11.88,
|
||||
"parent": null,
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "get",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.13,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "ttl",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.04,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.17,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.26,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.1,
|
||||
"parent": "messenger-api: SELECT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.0,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.72,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.11,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "S3 PUT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 4.88,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.01,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.1,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.61,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.1,
|
||||
"parent": "messenger-api: UPDATE",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.87,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.28,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.92,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.25,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.94,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.37,
|
||||
"parent": "messenger-api: INSERT",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-api",
|
||||
"name": "COMMIT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.61,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-relay",
|
||||
"name": "attachment.process publish",
|
||||
"kind": "SPAN_KIND_PRODUCER",
|
||||
"ms": 1.07,
|
||||
"parent": "messenger-api: POST /api/v1/chats/{chat_id}/attachments",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "attachment.process process",
|
||||
"kind": "SPAN_KIND_CONSUMER",
|
||||
"ms": 30.84,
|
||||
"parent": "messenger-relay: attachment.process publish",
|
||||
"outcome": "done",
|
||||
"attempt": "1",
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "pool.acquire",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.28,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "BEGIN",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.07,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.26,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.08,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "SELECT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.17,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.2,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "UPDATE",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.21,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "INSERT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.1,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "COMMIT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.13,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 HEAD",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.91,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 GET",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.19,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "image.decode",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"ms": 1.74,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "image.variants",
|
||||
"kind": "SPAN_KIND_INTERNAL",
|
||||
"ms": 16.56,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 PUT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 1.29,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
},
|
||||
{
|
||||
"service": "messenger-worker",
|
||||
"name": "S3 PUT",
|
||||
"kind": "SPAN_KIND_CLIENT",
|
||||
"ms": 0.99,
|
||||
"parent": "messenger-worker: attachment.process process",
|
||||
"outcome": null,
|
||||
"attempt": null,
|
||||
"status": ""
|
||||
}
|
||||
],
|
||||
"worker_log_events": [
|
||||
"job.claimed",
|
||||
"job.done"
|
||||
]
|
||||
},
|
||||
"metrics": {
|
||||
"found": {
|
||||
"http requests (counter = _count)": {
|
||||
"series": 16,
|
||||
"names": [
|
||||
"http_server_request_duration_seconds_count"
|
||||
]
|
||||
},
|
||||
"http duration histogram (s)": {
|
||||
"series": 224,
|
||||
"names": [
|
||||
"http_server_request_duration_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"jobs processed by outcome": {
|
||||
"series": 6,
|
||||
"names": [
|
||||
"messenger_jobs_processed_total"
|
||||
]
|
||||
},
|
||||
"job duration histogram (s)": {
|
||||
"series": 56,
|
||||
"names": [
|
||||
"messenger_job_duration_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"time to ready histogram (s)": {
|
||||
"series": 28,
|
||||
"names": [
|
||||
"messenger_attachment_time_to_ready_seconds_bucket"
|
||||
]
|
||||
},
|
||||
"queue backlog by state": {
|
||||
"series": 3,
|
||||
"names": [
|
||||
"messenger_jobs_backlog"
|
||||
]
|
||||
},
|
||||
"oldest job age (s)": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_jobs_oldest_age_seconds"
|
||||
]
|
||||
},
|
||||
"outbox pending": {
|
||||
"series": 1,
|
||||
"names": [
|
||||
"messenger_outbox_pending"
|
||||
]
|
||||
},
|
||||
"rabbitmq queue messages": {
|
||||
"series": 2,
|
||||
"names": [
|
||||
"rabbitmq_queue_messages_ready"
|
||||
]
|
||||
},
|
||||
"worker busy": {
|
||||
"series": 2,
|
||||
"names": [
|
||||
"messenger_worker_busy"
|
||||
]
|
||||
},
|
||||
"worker capacity": {
|
||||
"series": 2,
|
||||
"names": [
|
||||
"messenger_worker_capacity"
|
||||
]
|
||||
},
|
||||
"db pool acquired": {
|
||||
"series": 5,
|
||||
"names": [
|
||||
"pgxpool_acquired_connections"
|
||||
]
|
||||
},
|
||||
"db pool waits": {
|
||||
"series": 10,
|
||||
"names": [
|
||||
"pgxpool_empty_acquire_total",
|
||||
"pgxpool_empty_acquire_wait_time_nanoseconds_total"
|
||||
]
|
||||
},
|
||||
"process cpu": {
|
||||
"series": 10,
|
||||
"names": [
|
||||
"process_cpu_time_seconds_total"
|
||||
]
|
||||
},
|
||||
"go memory": {
|
||||
"series": 10,
|
||||
"names": [
|
||||
"go_memory_used_bytes"
|
||||
]
|
||||
}
|
||||
},
|
||||
"labels_total": 129,
|
||||
"forbidden_labels": [],
|
||||
"http_route_values": [
|
||||
"/api/v1/attachments/{attachment_id}",
|
||||
"/api/v1/attachments/{attachment_id}/content",
|
||||
"/api/v1/auth/sessions",
|
||||
"/api/v1/chats",
|
||||
"/api/v1/chats/{chat_id}/attachments",
|
||||
"/api/v1/chats/{chat_id}/messages",
|
||||
"/api/v1/users",
|
||||
"/health/live",
|
||||
"/health/ready"
|
||||
],
|
||||
"example_series_labels": [
|
||||
"__name__",
|
||||
"http_request_method",
|
||||
"http_response_status_class",
|
||||
"http_response_status_code",
|
||||
"http_route",
|
||||
"instance",
|
||||
"job"
|
||||
]
|
||||
},
|
||||
"leak_check": {
|
||||
"loki:password": 0,
|
||||
"loki:session_token": 0,
|
||||
"loki:message_text": 0,
|
||||
"loki:bearer_header": 0,
|
||||
"tempo:password": 0,
|
||||
"tempo:session_token": 0,
|
||||
"tempo:message_text": 0,
|
||||
"tempo:bearer_header": 0,
|
||||
"stdout:password": 0,
|
||||
"stdout:session_token": 0,
|
||||
"stdout:message_text": 0,
|
||||
"stdout:bearer_header": 0
|
||||
},
|
||||
"grafana": {
|
||||
"datasources": [
|
||||
"loki:loki",
|
||||
"prometheus:prometheus",
|
||||
"tempo:tempo"
|
||||
],
|
||||
"dashboard": "Messenger — API, worker, очередь",
|
||||
"panels": 30,
|
||||
"prometheus_targets": 39,
|
||||
"targets_without_data_now": [
|
||||
{
|
||||
"panel": "Ready быстрее 30 s (5m)",
|
||||
"legend": "",
|
||||
"series": 0
|
||||
}
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"panel": "RPS API (бизнес)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля 5xx (1m)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Быстрее 250 ms (5m)",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Ready быстрее 30 s (5m)",
|
||||
"legend": "",
|
||||
"series": 0
|
||||
},
|
||||
{
|
||||
"panel": "Старейшая job",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Alerts firing",
|
||||
"legend": "",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "RPS по маршруту и классу ответа",
|
||||
"legend": "{{http_route}} {{http_response_status_class}}",
|
||||
"series": 9
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Задержка API p50 / p95 / p99 (все реплики)",
|
||||
"legend": "p99",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля ошибок 5xx и 4xx",
|
||||
"legend": "5xx / все",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Доля ошибок 5xx и 4xx",
|
||||
"legend": "4xx / все (ошибки клиента)",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "p95 по маршруту",
|
||||
"legend": "{{http_route}}",
|
||||
"series": 7
|
||||
},
|
||||
{
|
||||
"panel": "Запросы в обработке (in-flight) по реплике",
|
||||
"legend": "{{instance}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "Jobs по исходу (rate)",
|
||||
"legend": "{{outcome}}",
|
||||
"series": 5
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Длительность обработки job p50 / p95 / p99",
|
||||
"legend": "p99",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Время до ready (202 → ready) p50 / p95",
|
||||
"legend": "p50",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Время до ready (202 → ready) p50 / p95",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Очередь: jobs по состоянию (PostgreSQL)",
|
||||
"legend": "{{state}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Очередь: jobs по состоянию (PostgreSQL)",
|
||||
"legend": "outbox не опубликовано",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Возраст старейшей job / outbox",
|
||||
"legend": "job (queued/processing)",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Возраст старейшей job / outbox",
|
||||
"legend": "outbox",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "RabbitMQ: сообщения в очередях",
|
||||
"legend": "ready {{queue}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "RabbitMQ: сообщения в очередях",
|
||||
"legend": "unacked {{queue}}",
|
||||
"series": 2
|
||||
},
|
||||
{
|
||||
"panel": "Saturation worker (busy / capacity)",
|
||||
"legend": "занято слотов",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Publish outbox → broker (confirm) p95",
|
||||
"legend": "p95",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Publish outbox → broker (confirm) p95",
|
||||
"legend": "сообщений/с",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "занято {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "max {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "Пул БД: занято / ожидания",
|
||||
"legend": "ожиданий/с {{job}}",
|
||||
"series": 3
|
||||
},
|
||||
{
|
||||
"panel": "CPU процессов",
|
||||
"legend": "{{job}} {{instance}}",
|
||||
"series": 8
|
||||
},
|
||||
{
|
||||
"panel": "Память Go (used)",
|
||||
"legend": "{{job}} {{instance}}",
|
||||
"series": 5
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "принято",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "отправлено",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "не доставлено",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "отклонено (memory_limiter)",
|
||||
"series": 1
|
||||
},
|
||||
{
|
||||
"panel": "Collector: принято / отправлено / потеряно spans",
|
||||
"legend": "очередь экспортёров",
|
||||
"series": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"attachment": {
|
||||
"id": "acee78cc-11ee-453d-9696-426654a97f27",
|
||||
"status": "ready"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"scenario": "transient",
|
||||
"result": {
|
||||
"attachment_id": "570e91a8-1d7c-425f-9d03-170050581f4a",
|
||||
"attempts": 3,
|
||||
"final_status": "ready",
|
||||
"retry_details": "processing_failed; next_attempt=2 in 1.999s | processing_failed; next_attempt=3 in 3.134s",
|
||||
"events": "enqueued,claimed,retry_scheduled,claimed,retry_scheduled,claimed,done",
|
||||
"invariants": {
|
||||
"status": "ready",
|
||||
"published_version": 1,
|
||||
"objects_per_version": {
|
||||
"1": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
2
|
||||
total used free shared buff/cache available
|
||||
Mem: 7776 1885 1172 90 5114 5890
|
||||
Swap: 3071 0 3071
|
||||
28.0.4
|
||||
Docker Compose version v2.38.2
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Разбор сканирования зависимостей и образов
|
||||
|
||||
Прогон: https://github.com/CharaWein/2026_lab3/actions/runs/43267046991 (commit a414221).
|
||||
Инструменты: govulncheck v1.1.4 (Go-код, анализ достижимости), Trivy 0.58.1 (`--severity HIGH,CRITICAL --scanners vuln`).
|
||||
Полные JSON Trivy в репозиторий не кладутся (около 1.7 MiB); здесь сводка и решения.
|
||||
|
||||
## Код приложения (govulncheck)
|
||||
|
||||
`govulncheck.txt`: **0 уязвимостей в вызываемом коде**. В модулях-зависимостях найдено 2 уязвимости, но код
|
||||
их не вызывает (символов нет в графе вызовов) — неприменимо.
|
||||
|
||||
История: на Go 1.26.0 govulncheck показывал 38 достижимых уязвимостей стандартной библиотеки
|
||||
(crypto/tls, net/http, crypto/x509 — всё это используется: TLS-сервер API, mTLS-клиенты). Исправлено переходом
|
||||
на Go 1.26.11 (`go.mod toolchain`, `golang:1.26.11-alpine` в Dockerfile) и `golang.org/x/net v0.62.0`.
|
||||
|
||||
## Образ приложения mtusi2026lab7-api:local
|
||||
|
||||
**0 HIGH/CRITICAL.** До исправления — 2 HIGH: musl / musl-utils CVE-2026-107891 (1.2.5-r3, исправлено в 1.2.5-r4).
|
||||
Исправление — `apk --no-cache upgrade` в runtime-слое Dockerfile.
|
||||
|
||||
## Сторонние образы стенда
|
||||
|
||||
| Образ | HIGH/CRITICAL | Есть исправленная версия | Где | Применимость и решение |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| postgres:16.4-alpine | 31 (OS) + 60 (gosu) | все | OpenSSL 3.3.2, libxml2/libxslt, musl, zlib; `gosu` собран Go 1.18 | OpenSSL: PostgreSQL принимает TLS только из сети `back` (порт не опубликован) — ошибки разбора сертификатов/CMS/PKCS#12 достижимы лишь для процесса внутри стенда; libxml2/libxslt — только XML-функции SQL, приложение их не вызывает; `gosu` работает один раз при старте (смена пользователя), сетевых обработчиков Go не содержит. **Решение:** обновить до последнего патча 16.x (тот же major, миграции не нужны) — следующий шаг. |
|
||||
| redis:7.4.1-alpine | 23 (OS) + 60 (gosu) | все | OpenSSL, musl, zlib; `gosu` | TLS-порт Redis только в сети `back`, plaintext выключен (`port 0`), ACL `default off`. **Решение:** обновить до последнего 7.4.x. |
|
||||
| haproxy:3.0.5-alpine | 23 (OS) | все | OpenSSL 3.3.2, musl, zlib | **Самое применимое**: HAProxy — единственный TLS ingress, опубликован на `127.0.0.1:8443` и терминирует TLS клиентов. CVE-2025-15467 (переполнение при разборе) и CVE-2026-28387 (use-after-free) касаются OpenSSL, который обрабатывает внешние handshake. Смягчение сейчас: публикация только на loopback хоста, TLS ≥ 1.2. **Решение:** обновить до последнего 3.0.x — первое в списке. |
|
||||
| openbao/openbao:2.1.0 | 28 (OS) + 63 (bin/bao) | 87 из 91 | OpenSSL, musl, libcap; в бинарнике — stdlib Go, x/crypto, x/net, grpc, go-jose, docker/docker | OpenBao слушает только сеть `back` и `127.0.0.1` хоста. Модули docker/docker и pgproto3 относятся к неиспользуемым плагинам (secrets engines Docker/PostgreSQL у нас не включены); stdlib/x/net/x/crypto — применимы к его TLS-листенеру. **Решение:** обновить до актуального 2.x (данные — file storage, совместимы). |
|
||||
| rabbitmq:4.0.9-alpine | 0 | — | — | — |
|
||||
|
||||
Итого: в собственном коде и образе HIGH/CRITICAL нет; в сторонних образах находки есть, почти все имеют исправленную
|
||||
версию, но обновление версий сторонних компонентов в этой работе не сделано — оно меняет поведение стенда и требует
|
||||
отдельного прогона всех сценариев. Это осознанно оставленный риск с порядком обновления: haproxy → openbao → postgres → redis.
|
||||
@@ -0,0 +1,9 @@
|
||||
=== Symbol Results ===
|
||||
|
||||
No vulnerabilities found.
|
||||
|
||||
Your code is affected by 0 vulnerabilities.
|
||||
This scan also found 0 vulnerabilities in packages you import and 2
|
||||
vulnerabilities in modules you require, but your code doesn't appear to call
|
||||
these vulnerabilities.
|
||||
Use '-show verbose' for more details.
|
||||
@@ -0,0 +1,6 @@
|
||||
mtusi2026lab7-api:local 0 HIGH/CRITICAL []
|
||||
postgres:16.4-alpine 91 HIGH/CRITICAL ['libcrypto3', 'libssl3', 'libxml2', 'libxslt', 'musl', 'musl-utils', 'stdlib', 'xz-libs', 'zlib']
|
||||
redis:7.4.1-alpine 83 HIGH/CRITICAL ['libcrypto3', 'libssl3', 'musl', 'musl-utils', 'stdlib', 'zlib']
|
||||
rabbitmq:4.0.9-alpine 0 HIGH/CRITICAL []
|
||||
haproxy:3.0.5-alpine 23 HIGH/CRITICAL ['libcrypto3', 'libssl3', 'musl', 'musl-utils', 'zlib']
|
||||
openbao/openbao:2.1.0 91 HIGH/CRITICAL ['github.com/docker/docker', 'github.com/go-jose/go-jose/v3', 'github.com/golang-jwt/jwt/v4', 'github.com/golang-jwt/jwt/v5', 'github.com/jackc/pgproto3/v2', 'github.com/klauspost/compress', 'go.opentelemetry.io/otel/sdk', 'golang.org/x/crypto', 'golang.org/x/net', 'golang.org/x/oauth2', 'golang.org/x/text', 'google.golang.org/grpc', 'libcap', 'libcap-getcap', 'libcap-setcap']
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,17 @@
|
||||
/mtusi2026lab7-api-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-api-2 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-grafana-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-lb-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-loki-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-openbao-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-otel-collector-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-postgres-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-prometheus-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-rabbitmq-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-reconciler-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-redis-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-relay-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-s3-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-init-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-worker-1 restarts=0 oom_killed=false exit=0
|
||||
@@ -0,0 +1,18 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab7-api-1 mtusi2026lab7-api:local "/app/api" api 5 minutes ago Up 2 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-api-2 mtusi2026lab7-api:local "/app/api" api 5 minutes ago Up 2 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-grafana-1 grafana/grafana:11.4.0 "/run.sh" grafana 6 minutes ago Up 6 minutes (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi2026lab7-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb 6 minutes ago Up 6 minutes 127.0.0.1:8443->8443/tcp
|
||||
mtusi2026lab7-loki-1 grafana/loki:3.3.2 "/usr/bin/loki -conf…" loki 6 minutes ago Up 6 minutes 3100/tcp
|
||||
mtusi2026lab7-openbao-1 openbao/openbao:2.1.0 "docker-entrypoint.s…" openbao 7 minutes ago Up 5 minutes 127.0.0.1:8200->8200/tcp
|
||||
mtusi2026lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.116.1 "/otelcol-contrib --…" otel-collector 6 minutes ago Up 6 minutes 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi2026lab7-postgres-1 postgres:16.4-alpine "sh -c 'install -o p…" postgres 7 minutes ago Up 7 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab7-prometheus-1 prom/prometheus:v3.1.0 "/bin/prometheus --c…" prometheus 6 minutes ago Up 6 minutes 9090/tcp
|
||||
mtusi2026lab7-rabbitmq-1 rabbitmq:4.0.9-alpine "docker-entrypoint.s…" rabbitmq 7 minutes ago Up 7 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi2026lab7-reconciler-1 mtusi2026lab7-api:local "/app/reconcile --ap…" reconciler 6 minutes ago Up 6 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 7 minutes ago Up 7 minutes (healthy) 6379/tcp
|
||||
mtusi2026lab7-relay-1 mtusi2026lab7-api:local "/app/pipeline relay" relay 6 minutes ago Up 6 minutes (healthy) 8443/tcp
|
||||
mtusi2026lab7-s3-1 bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 "/bin/bash -c 'mkdir…" s3 7 minutes ago Up 7 minutes (healthy) 9000-9001/tcp
|
||||
mtusi2026lab7-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo 6 minutes ago Up 6 minutes
|
||||
mtusi2026lab7-tempo-init-1 grafana/tempo:2.6.1 "chown 10001:10001 /…" tempo-init 6 minutes ago Exited (0) 6 minutes ago
|
||||
mtusi2026lab7-worker-1 mtusi2026lab7-api:local "/app/pipeline worker" worker 6 minutes ago Up About a minute (healthy) 8443/tcp
|
||||
@@ -0,0 +1,16 @@
|
||||
mtusi2026lab7-api-2 2.01% 129.7MiB / 256MiB
|
||||
mtusi2026lab7-api-1 2.02% 112.4MiB / 256MiB
|
||||
mtusi2026lab7-grafana-1 0.20% 56.66MiB / 256MiB
|
||||
mtusi2026lab7-lb-1 0.28% 21.39MiB / 128MiB
|
||||
mtusi2026lab7-tempo-1 0.19% 188.7MiB / 1GiB
|
||||
mtusi2026lab7-relay-1 0.17% 12.81MiB / 128MiB
|
||||
mtusi2026lab7-worker-1 0.01% 14.2MiB / 768MiB
|
||||
mtusi2026lab7-otel-collector-1 0.18% 57.44MiB / 256MiB
|
||||
mtusi2026lab7-loki-1 0.36% 109.2MiB / 1GiB
|
||||
mtusi2026lab7-prometheus-1 0.33% 41.64MiB / 512MiB
|
||||
mtusi2026lab7-reconciler-1 0.00% 5.207MiB / 128MiB
|
||||
mtusi2026lab7-redis-1 0.44% 6.051MiB / 256MiB
|
||||
mtusi2026lab7-rabbitmq-1 0.14% 92.3MiB / 512MiB
|
||||
mtusi2026lab7-s3-1 5.80% 402.9MiB / 512MiB
|
||||
mtusi2026lab7-postgres-1 0.25% 100.3MiB / 512MiB
|
||||
mtusi2026lab7-openbao-1 0.27% 22MiB / 256MiB
|
||||
@@ -0,0 +1,6 @@
|
||||
2
|
||||
total used free shared buff/cache available
|
||||
Mem: 7776 2486 427 114 5283 5289
|
||||
Swap: 3071 0 3071
|
||||
28.0.4
|
||||
Docker Compose version v2.38.2
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"scenario": "acl",
|
||||
"result": {
|
||||
"outsider_metadata": 404,
|
||||
"outsider_content": 404,
|
||||
"attach_foreign_file": 404,
|
||||
"fake_x_user_id_with_eve_token": 404,
|
||||
"x_user_id_without_token": 401,
|
||||
"after_logout": 401,
|
||||
"json_body_65KiB": 413,
|
||||
"stored_hash_params": "argon2id m=19456,t=2,p=1",
|
||||
"rehash": {
|
||||
"before": "m=65536,t=1,p=4",
|
||||
"after": "m=19456,t=2,p=1"
|
||||
},
|
||||
"login_rate_limit": {
|
||||
"codes": [
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
401,
|
||||
429,
|
||||
429,
|
||||
429,
|
||||
429
|
||||
],
|
||||
"retry_after": "58",
|
||||
"served_by_replicas": 2
|
||||
},
|
||||
"correct_password_while_limited": 429,
|
||||
"after_ttl_expiry": 401
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"scenario": "argon2",
|
||||
"result": {
|
||||
"bench": {
|
||||
"current": {
|
||||
"MemoryKiB": 19456,
|
||||
"Iterations": 2,
|
||||
"Parallelism": 1
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
"hashes_per_s_one_core": 13.908012405947067,
|
||||
"m_kib": 19456,
|
||||
"ms_max": 78.569,
|
||||
"ms_p50": 71.901,
|
||||
"p": 1,
|
||||
"t": 2
|
||||
},
|
||||
{
|
||||
"hashes_per_s_one_core": 12.071900237816434,
|
||||
"m_kib": 47104,
|
||||
"ms_max": 101.575,
|
||||
"ms_p50": 82.837,
|
||||
"p": 1,
|
||||
"t": 1
|
||||
},
|
||||
{
|
||||
"hashes_per_s_one_core": 12.013166430407725,
|
||||
"m_kib": 19456,
|
||||
"ms_max": 107.157,
|
||||
"ms_p50": 83.242,
|
||||
"p": 1,
|
||||
"t": 3
|
||||
},
|
||||
{
|
||||
"hashes_per_s_one_core": 9.137927883473143,
|
||||
"m_kib": 65536,
|
||||
"ms_max": 209.469,
|
||||
"ms_p50": 109.434,
|
||||
"p": 4,
|
||||
"t": 1
|
||||
},
|
||||
{
|
||||
"hashes_per_s_one_core": 3.6552245952752567,
|
||||
"m_kib": 65536,
|
||||
"ms_max": 295.643,
|
||||
"ms_p50": 273.581,
|
||||
"p": 1,
|
||||
"t": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
"login_latency_ms_sequential": [
|
||||
62.4,
|
||||
26.9,
|
||||
26.6,
|
||||
26.9,
|
||||
26.4,
|
||||
26.2,
|
||||
27.7,
|
||||
27.2
|
||||
],
|
||||
"dos_burst": {
|
||||
"attempts": 120,
|
||||
"seconds": 2.92,
|
||||
"codes": {
|
||||
"401": 59,
|
||||
"429": 61
|
||||
},
|
||||
"api_mem_peak_mib": [
|
||||
197.0,
|
||||
131.2
|
||||
],
|
||||
"api_mem_before_mib": [
|
||||
66.0,
|
||||
67.2
|
||||
]
|
||||
},
|
||||
"budget": {
|
||||
"hash_ms_p50": 71.901,
|
||||
"argon2_slots_per_replica": 2,
|
||||
"replicas": 2,
|
||||
"max_hashes_per_s_stand": 55.6,
|
||||
"argon2_memory_bound_mib": 76.0,
|
||||
"per_ip_limit_per_min": 60,
|
||||
"per_user_limit_per_min": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
{
|
||||
"scenario": "hardening",
|
||||
"result": {
|
||||
"api": {
|
||||
"user": "1001:1001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 256,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": [],
|
||||
"process_uid": "1001"
|
||||
},
|
||||
"grafana": {
|
||||
"user": "472",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 256,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": [
|
||||
"127.0.0.1:3000->3000/tcp"
|
||||
]
|
||||
},
|
||||
"lb": {
|
||||
"user": "haproxy",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_front",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 128,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": [
|
||||
"127.0.0.1:8443->8443/tcp"
|
||||
]
|
||||
},
|
||||
"loki": {
|
||||
"user": "10001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 1024,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"openbao": {
|
||||
"user": "root(image default)",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 256,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": [
|
||||
"127.0.0.1:8200->8200/tcp"
|
||||
]
|
||||
},
|
||||
"otel-collector": {
|
||||
"user": "10001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 256,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"postgres": {
|
||||
"user": "root(image default)",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 512,
|
||||
"nano_cpus": 1000000000,
|
||||
"pids_limit": 512,
|
||||
"published": []
|
||||
},
|
||||
"prometheus": {
|
||||
"user": "nobody",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 512,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"rabbitmq": {
|
||||
"user": "root(image default)",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_FOWNER",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 512,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 512,
|
||||
"published": []
|
||||
},
|
||||
"reconciler": {
|
||||
"user": "1001:1001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 128,
|
||||
"nano_cpus": 250000000,
|
||||
"pids_limit": 128,
|
||||
"published": [],
|
||||
"process_uid": "1001"
|
||||
},
|
||||
"redis": {
|
||||
"user": "root(image default)",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN",
|
||||
"CAP_DAC_OVERRIDE",
|
||||
"CAP_SETGID",
|
||||
"CAP_SETUID"
|
||||
],
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 256,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"relay": {
|
||||
"user": "1001:1001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 128,
|
||||
"nano_cpus": 250000000,
|
||||
"pids_limit": 128,
|
||||
"published": [],
|
||||
"process_uid": "1001"
|
||||
},
|
||||
"s3": {
|
||||
"user": "1001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 512,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"tempo": {
|
||||
"user": "10001:10001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 1024,
|
||||
"nano_cpus": 500000000,
|
||||
"pids_limit": 256,
|
||||
"published": []
|
||||
},
|
||||
"tempo-init": {
|
||||
"user": "root",
|
||||
"read_only": false,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": [
|
||||
"CAP_CHOWN"
|
||||
],
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_telemetry",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 0,
|
||||
"nano_cpus": 0,
|
||||
"pids_limit": null,
|
||||
"published": []
|
||||
},
|
||||
"worker": {
|
||||
"user": "1001:1001",
|
||||
"read_only": true,
|
||||
"privileged": false,
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cap_add": null,
|
||||
"no_new_privileges": true,
|
||||
"network_mode": "mtusi2026lab7_back",
|
||||
"pid_mode": "",
|
||||
"docker_sock": false,
|
||||
"memory_limit_mib": 768,
|
||||
"nano_cpus": 1000000000,
|
||||
"pids_limit": 128,
|
||||
"published": [],
|
||||
"process_uid": "1001"
|
||||
},
|
||||
"_image_sensitive_files": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"scenario": "leaks",
|
||||
"result": {
|
||||
"loki:password": 0,
|
||||
"loki:token": 0,
|
||||
"loki:message_text": 0,
|
||||
"loki:basic_header": 0,
|
||||
"tempo:password": 0,
|
||||
"tempo:token": 0,
|
||||
"tempo:message_text": 0,
|
||||
"tempo:basic_header": 0,
|
||||
"stdout:password": 0,
|
||||
"stdout:token": 0,
|
||||
"stdout:message_text": 0,
|
||||
"stdout:basic_header": 0,
|
||||
"traces_scanned": 20
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"scenario": "lifecycle",
|
||||
"result": {
|
||||
"api_openbao_logins_in_100s": 8,
|
||||
"api_refresh_failures": 0,
|
||||
"api_requests_ok": 200,
|
||||
"upload_while_sealed": "ready",
|
||||
"worker_restart_while_sealed": true,
|
||||
"upload_accepted_while_worker_blocked": "queued",
|
||||
"ready_seconds_after_unseal": 0.5,
|
||||
"final_status": "ready",
|
||||
"sealed_seconds": 33,
|
||||
"load_while_sealed": {
|
||||
"requests": 8667,
|
||||
"ok": 8667,
|
||||
"errors": 0,
|
||||
"error_ratio": 0.0,
|
||||
"ok_rps": 248.5,
|
||||
"seconds": 34.9,
|
||||
"latency_ms_all_ok": {
|
||||
"p50": 6.49,
|
||||
"p95": 15.21,
|
||||
"p99": 24.87
|
||||
},
|
||||
"latency_ms_outside_faults": {
|
||||
"p50": 6.49,
|
||||
"p95": 15.21,
|
||||
"p99": 24.87
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"scenario": "mtls",
|
||||
"result": {
|
||||
"lb_to_api": {
|
||||
"no_client_cert": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: certificate required"
|
||||
},
|
||||
"foreign_ca_cert_cn_lb": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: certificate required"
|
||||
},
|
||||
"trusted_ca_identity_attacker": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: bad certificate"
|
||||
},
|
||||
"trusted_ca_identity_worker": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: bad certificate"
|
||||
},
|
||||
"identity_lb": {
|
||||
"addr": "api:8443",
|
||||
"instance": "449a818793bd6549",
|
||||
"result": "ok",
|
||||
"server_serial": "190915b35397e474b2c7e012b34b0123",
|
||||
"status": 200
|
||||
},
|
||||
"plaintext_http": {
|
||||
"addr": "api:8443",
|
||||
"read_err": "",
|
||||
"reply_bytes": 76,
|
||||
"reply_prefix": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\""
|
||||
}
|
||||
},
|
||||
"broker": {
|
||||
"foreign_ca": {
|
||||
"connect": "denied: Exception (501) Reason: \"remote error: tls: certificate required\""
|
||||
},
|
||||
"trusted_ca_cn_attacker": {
|
||||
"connect": "denied: Exception (403) Reason: \"username or password not allowed\""
|
||||
},
|
||||
"trusted_ca_cn_lb": {
|
||||
"connect": "denied: Exception (403) Reason: \"username or password not allowed\""
|
||||
},
|
||||
"worker": {
|
||||
"connect": "allowed",
|
||||
"consume attachment.dead (DLQ)": "denied: Exception (403) Reason: \"ACCESS_REFUSED - read access to queue 'attachment.dead' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"consume attachment.process": "allowed",
|
||||
"declare queue evil": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'evil.probe' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"delete queue attachment.process": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'attachment.process' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"publish attachments (job)": "denied: nack"
|
||||
},
|
||||
"relay": {
|
||||
"connect": "allowed",
|
||||
"consume attachment.dead (DLQ)": "denied: Exception (403) Reason: \"ACCESS_REFUSED - read access to queue 'attachment.dead' in vhost '/' refused for user 'relay-g1'\"",
|
||||
"consume attachment.process": "denied: Exception (403) Reason: \"ACCESS_REFUSED - read access to queue 'attachment.process' in vhost '/' refused for user 'relay-g1'\"",
|
||||
"declare queue evil": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'evil.probe' in vhost '/' refused for user 'relay-g1'\"",
|
||||
"delete queue attachment.process": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'attachment.process' in vhost '/' refused for user 'relay-g1'\"",
|
||||
"publish attachments (job)": "allowed"
|
||||
},
|
||||
"plaintext_5672": {
|
||||
"addr": "rabbitmq:5672",
|
||||
"plaintext": "no listener (dial tcp 172.18.0.6:5672: connect: connection refused)"
|
||||
}
|
||||
},
|
||||
"collector": {
|
||||
"no_client_cert": {
|
||||
"ingest": "server_rejected: certificate required"
|
||||
},
|
||||
"foreign_ca": {
|
||||
"ingest": "server_rejected: certificate required"
|
||||
},
|
||||
"main_ca_cert_lb": {
|
||||
"ingest": "server_rejected: certificate required"
|
||||
},
|
||||
"main_ca_cert_worker": {
|
||||
"ingest": "server_rejected: certificate required"
|
||||
},
|
||||
"telemetry_ca_worker": {
|
||||
"ingest": "allowed",
|
||||
"status": 200
|
||||
},
|
||||
"plaintext_http": {
|
||||
"addr": "otel-collector:4318",
|
||||
"read_err": "",
|
||||
"reply_bytes": 76,
|
||||
"reply_prefix": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\""
|
||||
}
|
||||
},
|
||||
"servers": {
|
||||
"redis": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": null,
|
||||
"plaintext_reply": "\"\\x15\\x03\\x03\\x00\\x02\\x02\\x16\"",
|
||||
"plaintext": null
|
||||
},
|
||||
"s3": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 403,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null
|
||||
},
|
||||
"openbao": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 404,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null
|
||||
},
|
||||
"tempo": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 404,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null,
|
||||
"without_client_cert": "server_rejected: certificate required"
|
||||
},
|
||||
"loki": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 404,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null,
|
||||
"without_client_cert": "server_rejected: certificate required"
|
||||
},
|
||||
"prometheus": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 200,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null,
|
||||
"without_client_cert": "server_rejected: certificate required"
|
||||
},
|
||||
"collector-metrics": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 404,
|
||||
"plaintext_reply": "\"HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to an HTTPS server.\\n\"",
|
||||
"plaintext": null,
|
||||
"without_client_cert": "server_rejected: certificate required"
|
||||
},
|
||||
"rabbitmq-metrics": {
|
||||
"tls_verified": "ok",
|
||||
"tls_status": 404,
|
||||
"plaintext_reply": "\"\\x15\\x03\\x01\\x00\\x02\\x02\\n\"",
|
||||
"plaintext": null,
|
||||
"without_client_cert": "server_rejected: certificate required"
|
||||
},
|
||||
"postgres": {
|
||||
"sslmode_disable": "denied: failed to connect to `user=app_api database=messenger`: 172.18.0.3:5432 (postgres): server error: FATAL: pg_hba.conf rejects connection for host \"172.18.0.12\", "
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"scenario": "openbao",
|
||||
"result": {
|
||||
"api": {
|
||||
"create token with other policy": "denied (403)",
|
||||
"list secrets": "denied (403)",
|
||||
"login": "allowed",
|
||||
"read messenger/reconciler": "denied (403)",
|
||||
"read messenger/relay": "denied (403)",
|
||||
"read messenger/worker": "denied (403)",
|
||||
"read own messenger/api": "allowed",
|
||||
"seal openbao": "denied (403)",
|
||||
"write own secret": "denied (403)",
|
||||
"write policy": "denied (403)"
|
||||
},
|
||||
"worker": {
|
||||
"create token with other policy": "denied (403)",
|
||||
"list secrets": "denied (403)",
|
||||
"login": "allowed",
|
||||
"read messenger/api": "denied (403)",
|
||||
"read messenger/reconciler": "denied (403)",
|
||||
"read messenger/relay": "denied (403)",
|
||||
"read own messenger/worker": "allowed",
|
||||
"seal openbao": "denied (403)",
|
||||
"write own secret": "denied (403)",
|
||||
"write policy": "denied (403)"
|
||||
},
|
||||
"relay": {
|
||||
"create token with other policy": "denied (403)",
|
||||
"list secrets": "denied (403)",
|
||||
"login": "allowed",
|
||||
"read messenger/api": "denied (403)",
|
||||
"read messenger/reconciler": "denied (403)",
|
||||
"read messenger/worker": "denied (403)",
|
||||
"read own messenger/relay": "allowed",
|
||||
"seal openbao": "denied (403)",
|
||||
"write own secret": "denied (403)",
|
||||
"write policy": "denied (403)"
|
||||
},
|
||||
"reconciler": {
|
||||
"create token with other policy": "denied (403)",
|
||||
"list secrets": "denied (403)",
|
||||
"login": "allowed",
|
||||
"read messenger/api": "denied (403)",
|
||||
"read messenger/relay": "denied (403)",
|
||||
"read messenger/worker": "denied (403)",
|
||||
"read own messenger/reconciler": "allowed",
|
||||
"seal openbao": "denied (403)",
|
||||
"write own secret": "denied (403)",
|
||||
"write policy": "denied (403)"
|
||||
},
|
||||
"worker_cert_as_api_role": {
|
||||
"login": "denied: login 400"
|
||||
},
|
||||
"attacker_cert": {
|
||||
"login": "denied: login 400"
|
||||
},
|
||||
"app_containers": {
|
||||
"api": {
|
||||
"env_has_token": false,
|
||||
"secret_files": [
|
||||
"ca.crt",
|
||||
"otel.crt",
|
||||
"otel.key",
|
||||
"revoked.txt",
|
||||
"service.crt",
|
||||
"service.key"
|
||||
]
|
||||
},
|
||||
"worker": {
|
||||
"env_has_token": false,
|
||||
"secret_files": [
|
||||
"ca.crt",
|
||||
"otel.crt",
|
||||
"otel.key",
|
||||
"service.crt",
|
||||
"service.key"
|
||||
]
|
||||
},
|
||||
"relay": {
|
||||
"env_has_token": false,
|
||||
"secret_files": [
|
||||
"ca.crt",
|
||||
"otel.crt",
|
||||
"otel.key",
|
||||
"service.crt",
|
||||
"service.key"
|
||||
]
|
||||
},
|
||||
"reconciler": {
|
||||
"env_has_token": false,
|
||||
"secret_files": [
|
||||
"ca.crt",
|
||||
"service.crt",
|
||||
"service.key"
|
||||
]
|
||||
}
|
||||
},
|
||||
"status": {
|
||||
"initialized": true,
|
||||
"sealed": false,
|
||||
"storage_type": "file",
|
||||
"t": 2,
|
||||
"n": 3,
|
||||
"version": "2.1.0"
|
||||
},
|
||||
"after_restart_sealed": true,
|
||||
"after_unseal": "allowed"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"scenario": "rotation",
|
||||
"result": {
|
||||
"db_old_password": "denied: failed to connect to `user=app_api database=messenger`: 172.18.0.3:5432 (postgres): failed SASL auth: FATAL: password authentication failed for user \"app_api\" (",
|
||||
"api_after_db_rotation_attempts": [
|
||||
200
|
||||
],
|
||||
"upload_after_s3_rotation": "ready",
|
||||
"api_leaf_serial": {
|
||||
"before": "190915b35397e474b2c7e012b34b0123",
|
||||
"after": "8c644302db8edab1a2e3fedb2c729308"
|
||||
},
|
||||
"old_lb_cert_after_revocation": "server_rejected: bad certificate",
|
||||
"new_lb_cert": 200,
|
||||
"load_during_rotations": {
|
||||
"requests": 34548,
|
||||
"ok": 34542,
|
||||
"errors": 6,
|
||||
"error_ratio": 0.00017,
|
||||
"ok_rps": 249.5,
|
||||
"seconds": 138.4,
|
||||
"latency_ms_all_ok": {
|
||||
"p50": 10.06,
|
||||
"p95": 23.1,
|
||||
"p99": 39.52
|
||||
},
|
||||
"latency_ms_outside_faults": {
|
||||
"p50": 10.06,
|
||||
"p95": 23.1,
|
||||
"p99": 39.52
|
||||
}
|
||||
},
|
||||
"seconds": 138,
|
||||
"images_rebuilt": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"scenario": "tls-external",
|
||||
"result": {
|
||||
"public_security_py": "PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.",
|
||||
"trusted_ca_localhost": "ok TLSv1.3",
|
||||
"wrong_hostname": "cert_verify_error: Hostname mismatch, certificate is not valid for 'messenger.example'.",
|
||||
"foreign_ca_trust_store": "cert_verify_error: unable to get local issuer certificate",
|
||||
"tls_1_1": "ssl_error: NO_PROTOCOLS_AVAILABLE",
|
||||
"host_port_8080": "closed",
|
||||
"host_port_8404": "closed",
|
||||
"host_port_9090": "closed",
|
||||
"host_port_5432": "closed",
|
||||
"host_port_6379": "closed",
|
||||
"host_port_9000": "closed",
|
||||
"host_port_5672": "closed",
|
||||
"host_port_4318": "closed"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,17 @@
|
||||
/mtusi2026lab7-api-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-api-2 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-grafana-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-lb-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-loki-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-openbao-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-otel-collector-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-postgres-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-prometheus-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-rabbitmq-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-reconciler-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-redis-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-relay-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-s3-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-tempo-init-1 restarts=0 oom_killed=false exit=0
|
||||
/mtusi2026lab7-worker-1 restarts=0 oom_killed=false exit=0
|
||||
@@ -0,0 +1,18 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab7-api-1 mtusi2026lab7-api:local "/app/api" api About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-api-2 mtusi2026lab7-api:local "/app/api" api About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-grafana-1 grafana/grafana:11.4.0 "/run.sh" grafana About a minute ago Up About a minute (healthy) 127.0.0.1:3000->3000/tcp
|
||||
mtusi2026lab7-lb-1 haproxy:3.0.5-alpine "docker-entrypoint.s…" lb About a minute ago Up About a minute 127.0.0.1:8443->8443/tcp
|
||||
mtusi2026lab7-loki-1 grafana/loki:3.3.2 "/usr/bin/loki -conf…" loki About a minute ago Up About a minute 3100/tcp
|
||||
mtusi2026lab7-openbao-1 openbao/openbao:2.1.0 "docker-entrypoint.s…" openbao 2 minutes ago Up 2 minutes 127.0.0.1:8200->8200/tcp
|
||||
mtusi2026lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.116.1 "/otelcol-contrib --…" otel-collector About a minute ago Up About a minute 4317-4318/tcp, 55678-55679/tcp
|
||||
mtusi2026lab7-postgres-1 postgres:16.4-alpine "sh -c 'install -o p…" postgres 2 minutes ago Up 2 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab7-prometheus-1 prom/prometheus:v3.1.0 "/bin/prometheus --c…" prometheus About a minute ago Up About a minute 9090/tcp
|
||||
mtusi2026lab7-rabbitmq-1 rabbitmq:4.0.9-alpine "docker-entrypoint.s…" rabbitmq 2 minutes ago Up 2 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi2026lab7-reconciler-1 mtusi2026lab7-api:local "/app/reconcile --ap…" reconciler About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-redis-1 redis:7.4.1-alpine "docker-entrypoint.s…" redis 2 minutes ago Up About a minute (healthy) 6379/tcp
|
||||
mtusi2026lab7-relay-1 mtusi2026lab7-api:local "/app/pipeline relay" relay About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
mtusi2026lab7-s3-1 bitnamilegacy/minio:2025.4.22@sha256:50cec18ac4184af4671a78aedd5554942c8ae105d51a465fa82037949046da01 "/bin/bash -c 'mkdir…" s3 2 minutes ago Up 2 minutes (healthy) 9000-9001/tcp
|
||||
mtusi2026lab7-tempo-1 grafana/tempo:2.6.1 "/tempo -config.file…" tempo About a minute ago Up About a minute
|
||||
mtusi2026lab7-tempo-init-1 grafana/tempo:2.6.1 "chown 10001:10001 /…" tempo-init About a minute ago Exited (0) About a minute ago
|
||||
mtusi2026lab7-worker-1 mtusi2026lab7-api:local "/app/pipeline worker" worker About a minute ago Up About a minute (healthy) 8443/tcp
|
||||
@@ -0,0 +1,16 @@
|
||||
mtusi2026lab7-grafana-1 0.08% 65.02MiB / 256MiB
|
||||
mtusi2026lab7-lb-1 0.30% 13.46MiB / 128MiB
|
||||
mtusi2026lab7-tempo-1 0.02% 40.2MiB / 1GiB
|
||||
mtusi2026lab7-api-1 0.22% 67.7MiB / 256MiB
|
||||
mtusi2026lab7-otel-collector-1 0.69% 45.99MiB / 256MiB
|
||||
mtusi2026lab7-reconciler-1 0.00% 5.035MiB / 128MiB
|
||||
mtusi2026lab7-worker-1 0.16% 17.5MiB / 768MiB
|
||||
mtusi2026lab7-loki-1 0.69% 49.43MiB / 1GiB
|
||||
mtusi2026lab7-prometheus-1 0.36% 35.24MiB / 512MiB
|
||||
mtusi2026lab7-api-2 0.18% 67.39MiB / 256MiB
|
||||
mtusi2026lab7-relay-1 0.30% 11.89MiB / 128MiB
|
||||
mtusi2026lab7-s3-1 0.03% 459.4MiB / 512MiB
|
||||
mtusi2026lab7-postgres-1 0.23% 54.02MiB / 512MiB
|
||||
mtusi2026lab7-redis-1 0.41% 3.93MiB / 256MiB
|
||||
mtusi2026lab7-rabbitmq-1 0.99% 91.57MiB / 512MiB
|
||||
mtusi2026lab7-openbao-1 0.26% 23.14MiB / 256MiB
|
||||
@@ -0,0 +1,6 @@
|
||||
2
|
||||
total used free shared buff/cache available
|
||||
Mem: 7932 2086 1102 90 5148 5845
|
||||
Swap: 3071 0 3071
|
||||
28.0.4
|
||||
Docker Compose version v2.38.2
|
||||
@@ -0,0 +1,299 @@
|
||||
{
|
||||
"before_least_privilege": {
|
||||
"db": {
|
||||
"connect": "allowed",
|
||||
"create role": "allowed",
|
||||
"create table": "allowed",
|
||||
"delete attachments": "allowed",
|
||||
"insert attachment_variants": "allowed",
|
||||
"insert message": "allowed",
|
||||
"read chat_members": "allowed",
|
||||
"read jobs": "allowed",
|
||||
"read messages": "allowed",
|
||||
"read users.password_hash": "allowed",
|
||||
"role": "messenger",
|
||||
"truncate jobs": "allowed",
|
||||
"update attachments.owner_id": "allowed",
|
||||
"update attachments.status": "allowed",
|
||||
"update jobs.state": "allowed"
|
||||
},
|
||||
"s3": {
|
||||
"delete a/*": "allowed",
|
||||
"delete o/*": "allowed",
|
||||
"delete s/*": "allowed",
|
||||
"delete v/*": "allowed",
|
||||
"get a/*": "allowed (no such key)",
|
||||
"get o/*": "allowed (no such key)",
|
||||
"get s/*": "allowed (no such key)",
|
||||
"get v/*": "allowed (no such key)",
|
||||
"list all buckets": "allowed",
|
||||
"list bucket": "allowed",
|
||||
"make bucket": "denied (AccessDenied)",
|
||||
"put a/*": "allowed",
|
||||
"put o/*": "allowed",
|
||||
"put s/*": "allowed",
|
||||
"put v/*": "allowed"
|
||||
},
|
||||
"amqp": {
|
||||
"connect": "allowed",
|
||||
"consume attachment.dead (DLQ)": "allowed",
|
||||
"consume attachment.process": "allowed",
|
||||
"declare queue evil": "allowed",
|
||||
"delete queue attachment.process": "denied: Exception (540) Reason: \"NOT_IMPLEMENTED - cannot delete queue 'attachment.process' in vhost '/'. queue.delete operations with if-unused flag set are not suppor",
|
||||
"publish attachments (job)": "allowed"
|
||||
},
|
||||
"otlp": "allowed (lab6: OTLP по HTTP без аутентификации, любой процесс сети telemetry)",
|
||||
"api_as_lb": "allowed (lab6: API на :8080 по HTTP, доступен из сети front/back)",
|
||||
"openbao": "n/a (lab6: секреты всех нужных сервисов — файлами в контейнере)"
|
||||
},
|
||||
"after_least_privilege": {
|
||||
"amqp": {
|
||||
"connect": "allowed",
|
||||
"consume attachment.dead (DLQ)": "denied: Exception (403) Reason: \"ACCESS_REFUSED - read access to queue 'attachment.dead' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"consume attachment.process": "allowed",
|
||||
"declare queue evil": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'evil.probe' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"delete queue attachment.process": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'attachment.process' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"publish attachments (job)": "denied: nack"
|
||||
},
|
||||
"api_as_lb": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: bad certificate"
|
||||
},
|
||||
"db": {
|
||||
"connect": "allowed",
|
||||
"create role": "denied",
|
||||
"create table": "denied",
|
||||
"delete attachments": "denied",
|
||||
"insert attachment_variants": "allowed",
|
||||
"insert message": "denied",
|
||||
"read chat_members": "denied",
|
||||
"read jobs": "allowed",
|
||||
"read messages": "denied",
|
||||
"read users.password_hash": "denied",
|
||||
"role": "app_worker",
|
||||
"truncate jobs": "denied",
|
||||
"update attachments.owner_id": "denied",
|
||||
"update attachments.status": "allowed",
|
||||
"update jobs.state": "allowed"
|
||||
},
|
||||
"identity_cert": "/pki/worker.crt",
|
||||
"openbao": {
|
||||
"create token with other policy": "denied (403)",
|
||||
"list secrets": "denied (403)",
|
||||
"login": "allowed",
|
||||
"read messenger/api": "denied (403)",
|
||||
"read messenger/reconciler": "denied (403)",
|
||||
"read messenger/relay": "denied (403)",
|
||||
"read own messenger/worker": "allowed",
|
||||
"seal openbao": "denied (403)",
|
||||
"write own secret": "denied (403)",
|
||||
"write policy": "denied (403)"
|
||||
},
|
||||
"otlp": {
|
||||
"ingest": "allowed",
|
||||
"status": 200
|
||||
},
|
||||
"s3": {
|
||||
"delete a/*": "denied (AccessDenied)",
|
||||
"delete o/*": "denied (AccessDenied)",
|
||||
"delete s/*": "allowed",
|
||||
"delete v/*": "denied (AccessDenied)",
|
||||
"get a/*": "denied (AccessDenied)",
|
||||
"get o/*": "denied (AccessDenied)",
|
||||
"get s/*": "allowed (no such key)",
|
||||
"get v/*": "denied (AccessDenied)",
|
||||
"list all buckets": "denied (AccessDenied)",
|
||||
"list bucket": "denied (AccessDenied)",
|
||||
"make bucket": "denied (AccessDenied)",
|
||||
"put a/*": "denied (AccessDenied)",
|
||||
"put o/*": "allowed",
|
||||
"put s/*": "denied (AccessDenied)",
|
||||
"put v/*": "allowed"
|
||||
},
|
||||
"stolen_secrets": [
|
||||
"db_password",
|
||||
"db_user",
|
||||
"s3_access_key",
|
||||
"s3_secret_key"
|
||||
]
|
||||
},
|
||||
"response_steps": [
|
||||
{
|
||||
"step": "новая identity: сертификат CN worker-g2 (перезапись файла на месте)",
|
||||
"at_s": 0.0,
|
||||
"took_s": 0.1
|
||||
},
|
||||
{
|
||||
"step": "OpenBao cert-роль worker → только CN worker-g2; RabbitMQ: worker-g2 создан, worker-g1 удалён (соединения закрыты)",
|
||||
"at_s": 0.1,
|
||||
"took_s": 17.1
|
||||
},
|
||||
{
|
||||
"step": "отзыв всех токенов OpenBao, выданных worker",
|
||||
"at_s": 17.2,
|
||||
"took_s": 3.7
|
||||
},
|
||||
{
|
||||
"step": "ротация пароля роли БД app_worker + разрыв её соединений",
|
||||
"at_s": 20.9,
|
||||
"took_s": 1.3
|
||||
},
|
||||
{
|
||||
"step": "ротация secret key S3 svc-worker",
|
||||
"at_s": 22.2,
|
||||
"took_s": 5.2
|
||||
}
|
||||
],
|
||||
"processing_restored_seconds_after_response": 0.5,
|
||||
"worker_recovery_log_events": [
|
||||
"secrets.login",
|
||||
"secrets.version"
|
||||
],
|
||||
"worker_restarts": 0,
|
||||
"stolen_identity_after_response": {
|
||||
"amqp": {
|
||||
"connect": "denied: Exception (403) Reason: \"username or password not allowed\""
|
||||
},
|
||||
"api_as_lb": {
|
||||
"addr": "api:8443",
|
||||
"result": "server_rejected: bad certificate"
|
||||
},
|
||||
"identity_cert": "/pki/test/worker-stolen.crt",
|
||||
"openbao": {
|
||||
"login": "denied: login 400"
|
||||
},
|
||||
"otlp": {
|
||||
"ingest": "allowed",
|
||||
"status": 200
|
||||
},
|
||||
"stolen_secrets": "none: openbao login denied (login 400)",
|
||||
"db_with_stolen_password": "denied: failed to connect to `user=app_worker database=messenger`: 172.18.0.5:5432 (postgres): failed SASL auth: FATAL: password authentication failed for user \"app_wor",
|
||||
"s3_with_stolen_key": {
|
||||
"delete a/*": "denied (SignatureDoesNotMatch)",
|
||||
"delete o/*": "denied (SignatureDoesNotMatch)",
|
||||
"delete s/*": "denied (SignatureDoesNotMatch)",
|
||||
"delete v/*": "denied (SignatureDoesNotMatch)",
|
||||
"get a/*": "denied (SignatureDoesNotMatch)",
|
||||
"get o/*": "denied (SignatureDoesNotMatch)",
|
||||
"get s/*": "denied (SignatureDoesNotMatch)",
|
||||
"get v/*": "denied (SignatureDoesNotMatch)",
|
||||
"list all buckets": "denied (SignatureDoesNotMatch)",
|
||||
"list bucket": "denied (SignatureDoesNotMatch)",
|
||||
"make bucket": "denied (SignatureDoesNotMatch)",
|
||||
"put a/*": "denied (SignatureDoesNotMatch)",
|
||||
"put o/*": "denied (SignatureDoesNotMatch)",
|
||||
"put s/*": "denied (SignatureDoesNotMatch)",
|
||||
"put v/*": "denied (SignatureDoesNotMatch)"
|
||||
}
|
||||
},
|
||||
"tasks": {
|
||||
"accepted_202": 27,
|
||||
"upload_errors": 0,
|
||||
"final": {
|
||||
"ready": 27
|
||||
},
|
||||
"accepted_during_response": 21
|
||||
},
|
||||
"comparison": {
|
||||
"before": {
|
||||
"db: connect": "allowed",
|
||||
"db: create role": "allowed",
|
||||
"db: create table": "allowed",
|
||||
"db: delete attachments": "allowed",
|
||||
"db: insert attachment_variants": "allowed",
|
||||
"db: insert message": "allowed",
|
||||
"db: read chat_members": "allowed",
|
||||
"db: read jobs": "allowed",
|
||||
"db: read messages": "allowed",
|
||||
"db: read users.password_hash": "allowed",
|
||||
"db: role": "messenger",
|
||||
"db: truncate jobs": "allowed",
|
||||
"db: update attachments.owner_id": "allowed",
|
||||
"db: update attachments.status": "allowed",
|
||||
"db: update jobs.state": "allowed",
|
||||
"s3: delete a/*": "allowed",
|
||||
"s3: delete o/*": "allowed",
|
||||
"s3: delete s/*": "allowed",
|
||||
"s3: delete v/*": "allowed",
|
||||
"s3: get a/*": "allowed (no such key)",
|
||||
"s3: get o/*": "allowed (no such key)",
|
||||
"s3: get s/*": "allowed (no such key)",
|
||||
"s3: get v/*": "allowed (no such key)",
|
||||
"s3: list all buckets": "allowed",
|
||||
"s3: list bucket": "allowed",
|
||||
"s3: make bucket": "denied (AccessDenied)",
|
||||
"s3: put a/*": "allowed",
|
||||
"s3: put o/*": "allowed",
|
||||
"s3: put s/*": "allowed",
|
||||
"s3: put v/*": "allowed",
|
||||
"amqp: connect": "allowed",
|
||||
"amqp: consume attachment.dead (DLQ)": "allowed",
|
||||
"amqp: consume attachment.process": "allowed",
|
||||
"amqp: declare queue evil": "allowed",
|
||||
"amqp: delete queue attachment.process": "denied: Exception (540) Reason: \"NOT_IMPLEMENTED - cannot delete queue 'attachment.process' in vhost '/'. queue.delete operations with if-unused flag set are not suppor",
|
||||
"amqp: publish attachments (job)": "allowed",
|
||||
"otlp": "allowed (lab6: OTLP по HTTP без аутентификации, любой процесс сети telemetry)",
|
||||
"api_as_lb": "allowed (lab6: API на :8080 по HTTP, доступен из сети front/back)",
|
||||
"openbao": "n/a (lab6: секреты всех нужных сервисов — файлами в контейнере)"
|
||||
},
|
||||
"after": {
|
||||
"amqp: connect": "allowed",
|
||||
"amqp: consume attachment.dead (DLQ)": "denied: Exception (403) Reason: \"ACCESS_REFUSED - read access to queue 'attachment.dead' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"amqp: consume attachment.process": "allowed",
|
||||
"amqp: declare queue evil": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'evil.probe' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"amqp: delete queue attachment.process": "denied: Exception (403) Reason: \"ACCESS_REFUSED - configure access to queue 'attachment.process' in vhost '/' refused for user 'worker-g1'\"",
|
||||
"amqp: publish attachments (job)": "denied: nack",
|
||||
"api_as_lb: addr": "api:8443",
|
||||
"api_as_lb: result": "server_rejected: bad certificate",
|
||||
"db: connect": "allowed",
|
||||
"db: create role": "denied",
|
||||
"db: create table": "denied",
|
||||
"db: delete attachments": "denied",
|
||||
"db: insert attachment_variants": "allowed",
|
||||
"db: insert message": "denied",
|
||||
"db: read chat_members": "denied",
|
||||
"db: read jobs": "allowed",
|
||||
"db: read messages": "denied",
|
||||
"db: read users.password_hash": "denied",
|
||||
"db: role": "app_worker",
|
||||
"db: truncate jobs": "denied",
|
||||
"db: update attachments.owner_id": "denied",
|
||||
"db: update attachments.status": "allowed",
|
||||
"db: update jobs.state": "allowed",
|
||||
"identity_cert": "/pki/worker.crt",
|
||||
"openbao: create token with other policy": "denied (403)",
|
||||
"openbao: list secrets": "denied (403)",
|
||||
"openbao: login": "allowed",
|
||||
"openbao: read messenger/api": "denied (403)",
|
||||
"openbao: read messenger/reconciler": "denied (403)",
|
||||
"openbao: read messenger/relay": "denied (403)",
|
||||
"openbao: read own messenger/worker": "allowed",
|
||||
"openbao: seal openbao": "denied (403)",
|
||||
"openbao: write own secret": "denied (403)",
|
||||
"openbao: write policy": "denied (403)",
|
||||
"otlp: ingest": "allowed",
|
||||
"otlp: status": 200,
|
||||
"s3: delete a/*": "denied (AccessDenied)",
|
||||
"s3: delete o/*": "denied (AccessDenied)",
|
||||
"s3: delete s/*": "allowed",
|
||||
"s3: delete v/*": "denied (AccessDenied)",
|
||||
"s3: get a/*": "denied (AccessDenied)",
|
||||
"s3: get o/*": "denied (AccessDenied)",
|
||||
"s3: get s/*": "allowed (no such key)",
|
||||
"s3: get v/*": "denied (AccessDenied)",
|
||||
"s3: list all buckets": "denied (AccessDenied)",
|
||||
"s3: list bucket": "denied (AccessDenied)",
|
||||
"s3: make bucket": "denied (AccessDenied)",
|
||||
"s3: put a/*": "denied (AccessDenied)",
|
||||
"s3: put o/*": "allowed",
|
||||
"s3: put s/*": "denied (AccessDenied)",
|
||||
"s3: put v/*": "allowed",
|
||||
"stolen_secrets": [
|
||||
"db_password",
|
||||
"db_user",
|
||||
"s3_access_key",
|
||||
"s3_secret_key"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user