Разделение mTLS идентификаторов

This commit is contained in:
EgorAnti
2026-11-27 10:20:41 +03:00
parent ac39f303d5
commit 16760f4072
15 changed files with 425 additions and 19 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
# Certificate and secret lifecycle verification
Date: 2026-11-26
Date: 2026-11-27
Stand: local Docker Desktop, compose project hla-lab7
Command:
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\check-security-lifecycle.ps1
Observed output:
PASS: 20 certificate/key bundles are valid; private/operator secrets are untracked; present SecretIDs are within TTL.
PASS: 26 certificate/key bundles are valid; private/operator secrets are untracked; present SecretIDs are within TTL.
Scope: certificate validity window, SAN presence, leaf validity limit, private-key/certificate pairing, Git tracking of private material, ignore rules for `.env` and TLS keys, absence of root/unseal artifacts, and AppRole SecretID age.
+27
View File
@@ -0,0 +1,27 @@
Service mTLS identity verification
Date: 2026-11-27 (Europe/Moscow)
Commands:
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/test-service-mtls-identities.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/test-internal-tls.ps1
python tests/smoke.py --base-url https://localhost:8443 --ca-file secrets/pki/public-ca/ca.crt
Observed:
PASS: API/worker use distinct broker identities; trusted-CA wrong roles receive
no AMQP access or OTel ingest; direct backend bypass is rejected.
PASS: DB, S3, broker, Redis, Collector, telemetry backends and OpenBao verify
server CA/hostname; all declared mTLS endpoints reject no-cert clients.
PASS: PostgreSQL, Redis and RabbitMQ runtime identities are separate and
forbidden operations are denied.
PASS: lab7 public API scenario.
Negative identity probes:
- migration-client is signed by the same workload CA as API/worker but receives
no AMQP protocol response through the API gateway;
- API client certificate receives no AMQP protocol response through the worker gateway;
- migration-client receives HTTP 403 from the OTel gateway;
- missing client certificate is rejected by both gateway types;
- workload certificates cannot connect directly to RabbitMQ or OTel Collector;
those backend listeners trust only service-CA gateway client leaves.
No certificate private key, password, token or telemetry payload is stored here.