forked from mtusi2026/mtusi2026lab7
Разделение mTLS идентификаторов
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user