Files
mtusi2026lab7/evidence/auth-signals.json
mayorovasonya 7353ab97a6 Лаб7: mTLS, Argon2id, OpenBao и исследование отзыва worker
Майорова Софья, БВТ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.
2026-11-20 14:48:26 +03:00

968 lines
29 KiB
JSON

{
"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": "4945500bf0084d19a1f70c65b6c8fec6",
"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": 70,
"invalid_401": 30,
"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": 28.538944999127125,
"hash_plus_verify_max_ms": 77.69014000041352,
"runs": 10
},
"32768": {
"hash_plus_verify_median_ms": 111.35763649963337,
"hash_plus_verify_max_ms": 161.50791800100706,
"runs": 10
},
"65536": {
"hash_plus_verify_median_ms": 275.9806710000703,
"hash_plus_verify_max_ms": 284.7436590000143,
"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": "5d6e52d19b9a4ece858a9a5e0b6a1177"
}
},
{
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "rbuAmpXCcCs=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512061054586",
"endTimeUnixNano": "1795174512068783633",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "LU0xd1eU+1o=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.head_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512071477151",
"endTimeUnixNano": "1795174512077552078",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "head_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "7psBevI+/rs=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.get_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512077597704",
"endTimeUnixNano": "1795174512079416786",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "get_object"
}
}
],
"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": "f0a98e1d929941938612c531e7d276b5"
}
},
{
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "Ln03ux3qQpk=",
"parentSpanId": "Yfim34Icbgg=",
"flags": 768,
"name": "attachment publish",
"kind": "SPAN_KIND_PRODUCER",
"startTimeUnixNano": "1795174512059813142",
"endTimeUnixNano": "1795174512060982043",
"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": "b6da20d0d6004ddf90745f3f40603eba"
}
},
{
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "XM3jomFakXE=",
"parentSpanId": "tL9IgJdDqCk=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512014313172",
"endTimeUnixNano": "1795174512015572367",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "YKjGBN9wGjk=",
"parentSpanId": "tL9IgJdDqCk=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512015615659",
"endTimeUnixNano": "1795174512016429177",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "31CfNaog4oU=",
"parentSpanId": "tL9IgJdDqCk=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512016722142",
"endTimeUnixNano": "1795174512019110279",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "y3lfdg+7fwo=",
"parentSpanId": "Yfim34Icbgg=",
"flags": 256,
"name": "s3.put_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512019415744",
"endTimeUnixNano": "1795174512023220287",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "put_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "Yfim34Icbgg=",
"parentSpanId": "tL9IgJdDqCk=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512019135029",
"endTimeUnixNano": "1795174512024153724",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "tL9IgJdDqCk=",
"parentSpanId": "ESIzRFVmd4g=",
"flags": 768,
"name": "POST /api/v1/chats/{chat_id}/attachments",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": "1795174512014274088",
"endTimeUnixNano": "1795174512024470314",
"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": "5d6e52d19b9a4ece858a9a5e0b6a1177"
}
},
{
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "zaIXAyYKnIU=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.head_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512222386880",
"endTimeUnixNano": "1795174512224841518",
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "de9j3dpp2To=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.put_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512224907353",
"endTimeUnixNano": "1795174512228579726",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "put_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "GqvwpDKrw+Q=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.head_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512228643353",
"endTimeUnixNano": "1795174512229941007",
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "CzXT4UQsfrs=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.put_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512230012050",
"endTimeUnixNano": "1795174512232093179",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "put_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "JRipvb7DZPc=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.head_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512232146431",
"endTimeUnixNano": "1795174512233290873",
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "v0Kc5iBBNfY=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.put_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512233349082",
"endTimeUnixNano": "1795174512235073829",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "put_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "MEoig23QnRk=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.head_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512235112663",
"endTimeUnixNano": "1795174512236113352",
"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": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "gP7+VNlH0OE=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "s3.put_object",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512236164187",
"endTimeUnixNano": "1795174512237930351",
"attributes": [
{
"key": "rpc.system",
"value": {
"stringValue": "aws-api"
}
},
{
"key": "rpc.service",
"value": {
"stringValue": "S3"
}
},
{
"key": "rpc.method",
"value": {
"stringValue": "put_object"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "EzgTXnrHECs=",
"parentSpanId": "HwfARAv1i6o=",
"flags": 256,
"name": "db.transaction",
"kind": "SPAN_KIND_CLIENT",
"startTimeUnixNano": "1795174512237964018",
"endTimeUnixNano": "1795174512245307265",
"attributes": [
{
"key": "db.system",
"value": {
"stringValue": "postgresql"
}
}
],
"status": {}
},
{
"traceId": "SUVQC/AITRmh9wxltsj+xg==",
"spanId": "HwfARAv1i6o=",
"parentSpanId": "Ln03ux3qQpk=",
"flags": 768,
"name": "attachment process",
"kind": "SPAN_KIND_CONSUMER",
"startTimeUnixNano": "1795174512061016585",
"endTimeUnixNano": "1795174512245819026",
"attributes": [
{
"key": "messaging.system",
"value": {
"stringValue": "redis"
}
},
{
"key": "messaging.destination.name",
"value": {
"stringValue": "attachment-jobs"
}
},
{
"key": "job.id",
"value": {
"stringValue": "8f6fc767-dabb-464b-84b4-01cb9b30cdb9"
}
},
{
"key": "job.attempt",
"value": {
"intValue": "1"
}
}
],
"status": {}
}
]
}
]
}
]
},
"logs": [
{
"timestamp": "2026-11-20T11:35:12.024169+00:00",
"severity": "INFO",
"service.name": "messenger-api",
"event": "attachment_accepted",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "b4bf48809743a829",
"attachment_id": "3c55030c-760d-4c45-a372-d1d656f6d78a",
"job_id": "8f6fc767-dabb-464b-84b4-01cb9b30cdb9"
},
{
"timestamp": "2026-11-20T11:35:12.245714+00:00",
"severity": "INFO",
"service.name": "messenger-worker",
"event": "job_processed",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "1f07c0440bf58baa",
"job_id": "8f6fc767-dabb-464b-84b4-01cb9b30cdb9",
"attempt": 1,
"outcome": "ready"
},
{
"timestamp": "2026-11-20T11:35:12.060886+00:00",
"severity": "INFO",
"service.name": "messenger-dispatcher",
"event": "job_published",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "2e7d37bb1dea4299",
"job_id": "8f6fc767-dabb-464b-84b4-01cb9b30cdb9",
"attempt": 1
},
{
"timestamp": "2026-11-20T11:35:12.024424+00:00",
"severity": "INFO",
"service.name": "messenger-api",
"event": "http_request",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "b4bf48809743a829",
"request_id": "2aebfcf9a8424947997e6e8032b192a5",
"method": "POST",
"route": "/api/v1/chats/{chat_id}/attachments",
"status": 202,
"duration_seconds": 0.010226
},
{
"timestamp": "2026-11-20T11:35:12.224736+00:00",
"severity": "INFO",
"service.name": "messenger-worker",
"event": "operation_failed",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "cda21703260a9c85",
"error_type": "ClientError"
},
{
"timestamp": "2026-11-20T11:35:12.229864+00:00",
"severity": "INFO",
"service.name": "messenger-worker",
"event": "operation_failed",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "1aabf0a432abc3e4",
"error_type": "ClientError"
},
{
"timestamp": "2026-11-20T11:35:12.233223+00:00",
"severity": "INFO",
"service.name": "messenger-worker",
"event": "operation_failed",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "2518a9bdbec364f7",
"error_type": "ClientError"
},
{
"timestamp": "2026-11-20T11:35:12.236058+00:00",
"severity": "INFO",
"service.name": "messenger-worker",
"event": "operation_failed",
"sampled": true,
"trace_id": "4945500bf0084d19a1f70c65b6c8fec6",
"span_id": "304a22836dd09d19",
"error_type": "ClientError"
}
]
}