forked from mtusi2026/mtusi2026lab7
Майорова Софья, БВТ2301, на 5. Трек1. HTTPS/TLS/ACL,18 API tests,13 pipeline groups,3 compromise runs,clean clone,persistence. Original tests/API contract preserved; residual CVE triage in REPORT/security.
1529 lines
54 KiB
Plaintext
1529 lines
54 KiB
Plaintext
|
|
$ fresh bootstrap, build, migrations and verified HTTPS ready
|
|
Image mtusi-messenger:lab7 Building
|
|
#1 [internal] load local bake definitions
|
|
#1 reading from stdin 729B done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [internal] load build definition from Dockerfile
|
|
#2 transferring dockerfile: 688B done
|
|
#2 DONE 0.0s
|
|
|
|
#3 [internal] load metadata for docker.io/library/python:3.12-slim-bookworm@sha256:935c3c5b12357a7e10caa9c1e6ca5692344d97cf229832ef584be2cec9fc03df
|
|
#3 DONE 0.0s
|
|
|
|
#4 [internal] load .dockerignore
|
|
#4 transferring context: 233B done
|
|
#4 DONE 0.0s
|
|
|
|
#5 [1/7] FROM docker.io/library/python:3.12-slim-bookworm@sha256:935c3c5b12357a7e10caa9c1e6ca5692344d97cf229832ef584be2cec9fc03df
|
|
#5 resolve docker.io/library/python:3.12-slim-bookworm@sha256:935c3c5b12357a7e10caa9c1e6ca5692344d97cf229832ef584be2cec9fc03df 0.0s done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [internal] load build context
|
|
#6 transferring context: 96.76kB done
|
|
#6 DONE 0.0s
|
|
|
|
#7 [4/7] COPY requirements.txt ./
|
|
#7 CACHED
|
|
|
|
#8 [2/7] WORKDIR /app
|
|
#8 CACHED
|
|
|
|
#9 [3/7] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
|
#9 CACHED
|
|
|
|
#10 [5/7] RUN pip install --no-cache-dir -r requirements.txt && rm -rf /usr/local/lib/python3.12/site-packages/pip /usr/local/lib/python3.12/site-packages/pip-*.dist-info /usr/local/bin/pip*
|
|
#10 CACHED
|
|
|
|
#11 [6/7] COPY src/ ./src/
|
|
#11 CACHED
|
|
|
|
#12 [7/7] COPY migrations/ ./migrations/
|
|
#12 CACHED
|
|
|
|
#13 exporting to image
|
|
#13 exporting layers done
|
|
#13 exporting manifest sha256:56ce6854fad50b584b56a839fd198769a6cf0c1b032260ee2eab4ed5c668b50b done
|
|
#13 exporting config sha256:2e9809609a85461b72441eecf6bba270c60ab52c4c7ae94d436100e94da70486 done
|
|
#13 exporting attestation manifest sha256:b1ca90b9c2d35bef7d866e2f9600cbf8a2d517eed298785b159dc6d0a8ce118f done
|
|
#13 exporting manifest list sha256:e5102009a1b92a833a8a21cb680af8216239d9cb398ea5ba522f8c1ac47dfe70 done
|
|
#13 naming to docker.io/library/mtusi-messenger:lab7 done
|
|
#13 unpacking to docker.io/library/mtusi-messenger:lab7 done
|
|
#13 DONE 0.0s
|
|
|
|
#14 resolving provenance for metadata file
|
|
#14 DONE 0.0s
|
|
Image mtusi-messenger:lab7 Built
|
|
Network mtusi-lab7-clean-e6ba6863_backend Creating
|
|
Network mtusi-lab7-clean-e6ba6863_backend Created
|
|
Network mtusi-lab7-clean-e6ba6863_edge Creating
|
|
Network mtusi-lab7-clean-e6ba6863_edge Created
|
|
Volume mtusi-lab7-clean-e6ba6863_grafana_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_grafana_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_logs_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_logs_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_metrics_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_metrics_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_broker_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_broker_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_bao_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_bao_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_traces_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_traces_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_postgres_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_postgres_data Created
|
|
Volume mtusi-lab7-clean-e6ba6863_s3_data Creating
|
|
Volume mtusi-lab7-clean-e6ba6863_s3_data Created
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Healthy
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Running
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Created
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Created
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Healthy
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Waiting
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Exited
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Started
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Started
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Starting
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Started
|
|
Local PKI ready; CA keys remain in operator/ and are not mounted into services.
|
|
Local service configuration generated; no credentials printed.
|
|
OpenBao initialized/unsealed by explicit operator action; scoped service policies and 20s certificate-auth tokens configured.
|
|
Lab7 processes started; waiting for verified HTTPS readiness.
|
|
Lab7 ready over trusted HTTPS; operator secrets stay local.
|
|
|
|
$ check + public HTTPS smoke + untrusted CA +18 API/image tests
|
|
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
python3 tests/smoke.py --base-url "https://localhost:18444" --ca-file "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/build/mtusi-lab7-clean-e6ba6863/pki/lb/ca.crt"
|
|
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
|
python3 tests/security.py --base-url "https://localhost:18444" --ca-file "/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/build/mtusi-lab7-clean-e6ba6863/pki/lb/ca.crt"
|
|
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
|
BASE_URL="https://localhost:18444" CA_FILE="/Users/ssmayorova/Documents/учеба/Высоконагруженные приложения/lab7/build/mtusi-lab7-clean-e6ba6863/pki/lb/ca.crt" python3 -m unittest discover -s student-tests -p 'test_*.py' -v
|
|
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
|
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
|
test_foreign_chat (test_api.APIContract) ... ok
|
|
test_idempotency_concurrent_replicas (test_api.APIContract) ... ok
|
|
test_idempotency_conflicting_race (test_api.APIContract) ... ok
|
|
test_idempotency_invalid_keys (test_api.APIContract) ... ok
|
|
test_idempotency_scope (test_api.APIContract) ... ok
|
|
test_idempotency_semantic_body (test_api.APIContract) ... ok
|
|
test_invalid_chat_creation (test_api.APIContract) ... ok
|
|
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
|
test_protocol_error_headers (test_api.APIContract) ... ok
|
|
test_registration_race (test_api.APIContract) ... ok
|
|
test_unicode_limits (test_api.APIContract) ... ok
|
|
test_unicode_nul_round_trip (test_api.APIContract) ... ok
|
|
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
|
test_async_variants_and_replay (test_images.Images) ... ok
|
|
test_mime_bytes_pixels_and_filename (test_images.Images) ... ok
|
|
test_private_and_cross_chat (test_images.Images) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 18 tests in 7.760s
|
|
|
|
OK
|
|
|
|
$ internal TLS/identity/raw-port/ACL audit
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-7cf2a7ead5dd Creating
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-7cf2a7ead5dd Created
|
|
{
|
|
"matrix": [
|
|
{
|
|
"endpoint": "s3:8443",
|
|
"allowed_identity": "api",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-api": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "redis:8443",
|
|
"allowed_identity": "api",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-api": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "broker:8443",
|
|
"allowed_identity": "worker",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-worker": "SSLError",
|
|
"api": "identity connection closed"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "otel-collector:8443",
|
|
"allowed_identity": "api",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-api": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "otel-collector:8443",
|
|
"allowed_identity": "worker",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-worker": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "otel-collector:8443",
|
|
"allowed_identity": "dispatcher",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-dispatcher": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "otel-collector:8444",
|
|
"allowed_identity": "prometheus",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-prometheus": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "otel-collector:8445",
|
|
"allowed_identity": "prometheus",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-prometheus": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "loki:8443",
|
|
"allowed_identity": "collector",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-collector": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "loki:8443",
|
|
"allowed_identity": "grafana",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-grafana": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "tempo:8443",
|
|
"allowed_identity": "grafana",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-grafana": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "tempo:8444",
|
|
"allowed_identity": "collector",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-collector": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "prometheus:8443",
|
|
"allowed_identity": "grafana",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "identity connection closed",
|
|
"expired-grafana": "SSLError"
|
|
}
|
|
},
|
|
{
|
|
"endpoint": "bao:8200",
|
|
"allowed_identity": "api",
|
|
"positive_connection": true,
|
|
"negative_cases": {
|
|
"None": "SSLError",
|
|
"foreign-client": "SSLError",
|
|
"outsider": "TLS CA accepted; service-auth denied separately",
|
|
"expired-api": "SSLError"
|
|
}
|
|
}
|
|
],
|
|
"api_replicas": [
|
|
{
|
|
"address_alias": "replica1",
|
|
"allowed_lb": true,
|
|
"negative_cases": [
|
|
"None",
|
|
"foreign-client",
|
|
"outsider",
|
|
"expired-lb",
|
|
"wrong-lb",
|
|
"worker"
|
|
]
|
|
},
|
|
{
|
|
"address_alias": "replica2",
|
|
"allowed_lb": true,
|
|
"negative_cases": [
|
|
"None",
|
|
"foreign-client",
|
|
"outsider",
|
|
"expired-lb",
|
|
"wrong-lb",
|
|
"worker"
|
|
]
|
|
}
|
|
],
|
|
"plaintext_rejected": [
|
|
"s3:8333",
|
|
"s3:8888",
|
|
"s3:9333",
|
|
"s3:9340",
|
|
"broker:6379",
|
|
"redis:6379",
|
|
"otel-collector:4318",
|
|
"otel-collector:8888",
|
|
"otel-collector:8889",
|
|
"loki:3100",
|
|
"loki:9095",
|
|
"tempo:3200",
|
|
"tempo:4318",
|
|
"tempo:9095",
|
|
"prometheus:9090"
|
|
],
|
|
"policies": {
|
|
"api": {
|
|
"own_kv_read": true,
|
|
"foreign_kv_and_policy_read_write_403": true,
|
|
"token_ttl_seconds": 20
|
|
},
|
|
"worker": {
|
|
"own_kv_read": true,
|
|
"foreign_kv_and_policy_read_write_403": true,
|
|
"token_ttl_seconds": 20
|
|
},
|
|
"dispatcher": {
|
|
"own_kv_read": true,
|
|
"foreign_kv_and_policy_read_write_403": true,
|
|
"token_ttl_seconds": 20
|
|
}
|
|
},
|
|
"db": {
|
|
"verify_full_tls": true,
|
|
"worker_jobs_read_allowed": true,
|
|
"users_sessions_messages_ddl_denied": true
|
|
},
|
|
"broker_acl": {
|
|
"worker_ping": true,
|
|
"foreign_key_and_config_denied": true
|
|
},
|
|
"plaintext_configuration_rejected": true
|
|
}
|
|
|
|
$ Argon/rehash/expiry/rate limit/S3 ACL/real trace canaries
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-73eab9ad7be1 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-73eab9ad7be1 Created
|
|
{
|
|
"checks": {
|
|
"passwords": {
|
|
"argon2id_and_session_hashes": true,
|
|
"legacy_scrypt_rehashed": true,
|
|
"argon2_parameter_rehash": true,
|
|
"real_expiry_401": true
|
|
},
|
|
"prefixes": {
|
|
"worker_read_staging_and_results": true,
|
|
"worker_create_immutable_result": true,
|
|
"denied": [
|
|
"worker PUT staging",
|
|
"worker DELETE staging",
|
|
"worker DELETE results",
|
|
"worker unconditional overwrite",
|
|
"worker bucket list",
|
|
"worker create bucket",
|
|
"API PUT results",
|
|
"traversal key"
|
|
]
|
|
},
|
|
"signals": {
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"spans": 20,
|
|
"services_and_job_events_correlated": true,
|
|
"producer_consumer_parent_match": true,
|
|
"tls_prometheus_scrape_targets": 2,
|
|
"sensitive_canaries_absent": true,
|
|
"forbidden_metric_labels_absent": true
|
|
},
|
|
"shared_rate_limit": {
|
|
"requests": 100,
|
|
"limited_429": 80,
|
|
"invalid_401": 20,
|
|
"actual_replicas": 2,
|
|
"retry_after_seconds": 1,
|
|
"kdf_slots_per_replica": 2
|
|
},
|
|
"kdf_budget": {
|
|
"CPU_limit": 0.5,
|
|
"timings": {
|
|
"19456": {
|
|
"hash_plus_verify_median_ms": 53.50842100051523,
|
|
"hash_plus_verify_max_ms": 77.68208200104709,
|
|
"runs": 10
|
|
},
|
|
"32768": {
|
|
"hash_plus_verify_median_ms": 121.9399589999739,
|
|
"hash_plus_verify_max_ms": 173.6336849990039,
|
|
"runs": 10
|
|
},
|
|
"65536": {
|
|
"hash_plus_verify_median_ms": 283.3078419989761,
|
|
"hash_plus_verify_max_ms": 291.88154800067423,
|
|
"runs": 10
|
|
}
|
|
},
|
|
"chosen_memory_kib": 32768,
|
|
"max_kdf_memory_mib_per_api": 64,
|
|
"api_memory_limit_mib": 256,
|
|
"note": "Timings include hash+verify at 0.5 CPU; API has 1 CPU and at most two concurrent KDF operations."
|
|
}
|
|
},
|
|
"trace": {
|
|
"batches": [
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "telemetry.sdk.language",
|
|
"value": {
|
|
"stringValue": "python"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.name",
|
|
"value": {
|
|
"stringValue": "opentelemetry"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.version",
|
|
"value": {
|
|
"stringValue": "1.45.2"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.instance.id",
|
|
"value": {
|
|
"stringValue": "3257a0d4d2e2430a97ec3b75a56bf73e"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.name",
|
|
"value": {
|
|
"stringValue": "messenger-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.version",
|
|
"value": {
|
|
"stringValue": "lab7.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "deployment.environment.name",
|
|
"value": {
|
|
"stringValue": "lab"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeSpans": [
|
|
{
|
|
"scope": {
|
|
"name": "messenger"
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "NfNlOZt3OWA=",
|
|
"parentSpanId": "tl7oAog8l+E=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139284237019",
|
|
"endTimeUnixNano": "1795175139285215557",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "mw8EtyYIkq0=",
|
|
"parentSpanId": "tl7oAog8l+E=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139285261015",
|
|
"endTimeUnixNano": "1795175139286142178",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "lEPGkkmA13Q=",
|
|
"parentSpanId": "tl7oAog8l+E=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139287865006",
|
|
"endTimeUnixNano": "1795175139289155001",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "4rsk3rIvAlo=",
|
|
"parentSpanId": "TZV7GpL64JU=",
|
|
"flags": 256,
|
|
"name": "s3.put_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139289475791",
|
|
"endTimeUnixNano": "1795175139299773588",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "put_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "TZV7GpL64JU=",
|
|
"parentSpanId": "tl7oAog8l+E=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139289191376",
|
|
"endTimeUnixNano": "1795175139300746376",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "tl7oAog8l+E=",
|
|
"parentSpanId": "ESIzRFVmd4g=",
|
|
"flags": 768,
|
|
"name": "POST /api/v1/chats/{chat_id}/attachments",
|
|
"kind": "SPAN_KIND_SERVER",
|
|
"startTimeUnixNano": "1795175139284198935",
|
|
"endTimeUnixNano": "1795175139301086958",
|
|
"attributes": [
|
|
{
|
|
"key": "http.request.method",
|
|
"value": {
|
|
"stringValue": "POST"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.route",
|
|
"value": {
|
|
"stringValue": "/api/v1/chats/{chat_id}/attachments"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.response.status_code",
|
|
"value": {
|
|
"intValue": "202"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "telemetry.sdk.language",
|
|
"value": {
|
|
"stringValue": "python"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.name",
|
|
"value": {
|
|
"stringValue": "opentelemetry"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.version",
|
|
"value": {
|
|
"stringValue": "1.45.2"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.instance.id",
|
|
"value": {
|
|
"stringValue": "ec27416f5e4c46c4954070864c3f9876"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.name",
|
|
"value": {
|
|
"stringValue": "messenger-dispatcher"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.version",
|
|
"value": {
|
|
"stringValue": "lab7.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "deployment.environment.name",
|
|
"value": {
|
|
"stringValue": "lab"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeSpans": [
|
|
{
|
|
"scope": {
|
|
"name": "messenger"
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "OICl7H9UK3A=",
|
|
"parentSpanId": "TZV7GpL64JU=",
|
|
"flags": 768,
|
|
"name": "attachment publish",
|
|
"kind": "SPAN_KIND_PRODUCER",
|
|
"startTimeUnixNano": "1795175139455571151",
|
|
"endTimeUnixNano": "1795175139457050438",
|
|
"attributes": [
|
|
{
|
|
"key": "messaging.system",
|
|
"value": {
|
|
"stringValue": "redis"
|
|
}
|
|
},
|
|
{
|
|
"key": "messaging.destination.name",
|
|
"value": {
|
|
"stringValue": "attachment-jobs"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "telemetry.sdk.language",
|
|
"value": {
|
|
"stringValue": "python"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.name",
|
|
"value": {
|
|
"stringValue": "opentelemetry"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.version",
|
|
"value": {
|
|
"stringValue": "1.45.2"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.instance.id",
|
|
"value": {
|
|
"stringValue": "ad7e22c5286a4e179711aa810d97161d"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.name",
|
|
"value": {
|
|
"stringValue": "messenger-worker"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.version",
|
|
"value": {
|
|
"stringValue": "lab7.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "deployment.environment.name",
|
|
"value": {
|
|
"stringValue": "lab"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeSpans": [
|
|
{
|
|
"scope": {
|
|
"name": "messenger"
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "1iumSLQvtaQ=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139457115687",
|
|
"endTimeUnixNano": "1795175139467536900",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "MNFtaGxdECs=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.head_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139470306390",
|
|
"endTimeUnixNano": "1795175139477815613",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "head_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "kS0qN0M8MpE=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.get_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139477875904",
|
|
"endTimeUnixNano": "1795175139481527558",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "get_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "0N0qwOJQ7Xk=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.head_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139657815089",
|
|
"endTimeUnixNano": "1795175139661040827",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "head_object"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "ClientError"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "MjwXjFxsXrA=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.put_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139661111494",
|
|
"endTimeUnixNano": "1795175139665362228",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "put_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "RLSwLRMC3jE=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.head_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139665432353",
|
|
"endTimeUnixNano": "1795175139666973473",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "head_object"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "ClientError"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "xKgsiWyJZCw=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.put_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139667058347",
|
|
"endTimeUnixNano": "1795175139669078382",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "put_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "wyec6GRBQ1I=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.head_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139669124090",
|
|
"endTimeUnixNano": "1795175139670239503",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "head_object"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "ClientError"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "lYulF/E8seM=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.put_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139670316002",
|
|
"endTimeUnixNano": "1795175139672248579",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "put_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "zGj+4d0Lzdc=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.head_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139672297329",
|
|
"endTimeUnixNano": "1795175139673439908",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "head_object"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "ClientError"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "9PWKuYcSNws=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "s3.put_object",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139673503407",
|
|
"endTimeUnixNano": "1795175139675254151",
|
|
"attributes": [
|
|
{
|
|
"key": "rpc.system",
|
|
"value": {
|
|
"stringValue": "aws-api"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.service",
|
|
"value": {
|
|
"stringValue": "S3"
|
|
}
|
|
},
|
|
{
|
|
"key": "rpc.method",
|
|
"value": {
|
|
"stringValue": "put_object"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "DXHcmn1KIMI=",
|
|
"parentSpanId": "yX8r6FKScMU=",
|
|
"flags": 256,
|
|
"name": "db.transaction",
|
|
"kind": "SPAN_KIND_CLIENT",
|
|
"startTimeUnixNano": "1795175139675288693",
|
|
"endTimeUnixNano": "1795175139682272751",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "+2oSF7SyTZujgbQEOlkMBg==",
|
|
"spanId": "yX8r6FKScMU=",
|
|
"parentSpanId": "OICl7H9UK3A=",
|
|
"flags": 768,
|
|
"name": "attachment process",
|
|
"kind": "SPAN_KIND_CONSUMER",
|
|
"startTimeUnixNano": "1795175139457074271",
|
|
"endTimeUnixNano": "1795175139682826916",
|
|
"attributes": [
|
|
{
|
|
"key": "messaging.system",
|
|
"value": {
|
|
"stringValue": "redis"
|
|
}
|
|
},
|
|
{
|
|
"key": "messaging.destination.name",
|
|
"value": {
|
|
"stringValue": "attachment-jobs"
|
|
}
|
|
},
|
|
{
|
|
"key": "job.id",
|
|
"value": {
|
|
"stringValue": "c201ecc4-2114-4b07-80d1-a5948512180b"
|
|
}
|
|
},
|
|
{
|
|
"key": "job.attempt",
|
|
"value": {
|
|
"intValue": "1"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"logs": [
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.300762+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-api",
|
|
"event": "attachment_accepted",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "b65ee802883c97e1",
|
|
"attachment_id": "0dc12e1c-25fa-4ed0-b0dd-5ad6c32c0337",
|
|
"job_id": "c201ecc4-2114-4b07-80d1-a5948512180b"
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.682735+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-worker",
|
|
"event": "job_processed",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "c97f2be8529270c5",
|
|
"job_id": "c201ecc4-2114-4b07-80d1-a5948512180b",
|
|
"attempt": 1,
|
|
"outcome": "ready"
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.456874+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-dispatcher",
|
|
"event": "job_published",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "3880a5ec7f542b70",
|
|
"job_id": "c201ecc4-2114-4b07-80d1-a5948512180b",
|
|
"attempt": 1
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.301039+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-api",
|
|
"event": "http_request",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "b65ee802883c97e1",
|
|
"request_id": "d767b95022df43d4a3e0c6f555810482",
|
|
"method": "POST",
|
|
"route": "/api/v1/chats/{chat_id}/attachments",
|
|
"status": 202,
|
|
"duration_seconds": 0.016925
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.660911+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-worker",
|
|
"event": "operation_failed",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "d0dd2ac0e250ed79",
|
|
"error_type": "ClientError"
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.666877+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-worker",
|
|
"event": "operation_failed",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "44b4b02d1302de31",
|
|
"error_type": "ClientError"
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.670166+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-worker",
|
|
"event": "operation_failed",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "c3279ce864414352",
|
|
"error_type": "ClientError"
|
|
},
|
|
{
|
|
"timestamp": "2026-11-20T11:45:39.673366+00:00",
|
|
"severity": "INFO",
|
|
"service.name": "messenger-worker",
|
|
"event": "operation_failed",
|
|
"sampled": true,
|
|
"trace_id": "fb6a1217b4b24d9ba381b4043a590c06",
|
|
"span_id": "cc68fee1dd0bcdd7",
|
|
"error_type": "ClientError"
|
|
}
|
|
]
|
|
}
|
|
|
|
$ full business + historical telemetry + existing Bao store restart
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-a9ead1fd28cd Creating
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-a9ead1fd28cd Created
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-b70cd6cab838 Creating
|
|
Container mtusi-lab7-clean-e6ba6863-audit-run-b70cd6cab838 Created
|
|
PASS: original HTTPS persistence and historical Tempo/Loki/Prometheus; Bao existing store survives.
|
|
|
|
$ Grafana HTTPS/mTLS datasources and21 panels
|
|
PASS: native Grafana HTTPS/operator auth, all TLS client datasources, real Prometheus data and trace link configuration.
|
|
|
|
$ effective hardening and actual listeners
|
|
PASS effective limits, non-root apps, drop ALL/no-new-privileges/read-only; published loopback TLS only, local raw listeners, wrong hostname rejected.
|
|
|
|
$ cleanup ONLY disposable project mtusi-lab7-clean-e6ba6863
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-broker-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-redis-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-grafana-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-dispatcher-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-lb-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-broker-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-bao-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-prometheus-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-redis-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-api-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-loki-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-loki-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-worker-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-api-2 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-migrate-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-bucket-bootstrap-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-s3-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-postgres-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-s3-store-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-volume-init-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-s3-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-otel-collector-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-raw-1 Removed
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Stopping
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Stopped
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Removing
|
|
Container mtusi-lab7-clean-e6ba6863-tempo-1 Removed
|
|
Network mtusi-lab7-clean-e6ba6863_backend Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_grafana_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_s3_data Removing
|
|
Network mtusi-lab7-clean-e6ba6863_edge Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_traces_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_postgres_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_bao_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_logs_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_broker_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_metrics_data Removing
|
|
Volume mtusi-lab7-clean-e6ba6863_grafana_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_s3_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_traces_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_postgres_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_broker_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_logs_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_metrics_data Removed
|
|
Volume mtusi-lab7-clean-e6ba6863_bao_data Removed
|
|
Network mtusi-lab7-clean-e6ba6863_backend Removed
|
|
Network mtusi-lab7-clean-e6ba6863_edge Removed
|