Защита внутренних соединений и сервисных прав
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Internal TLS and service ACL verification
|
||||
|
||||
Date: 2026-11-26
|
||||
Stand: local Docker Desktop, compose project hla-lab7
|
||||
Commit: working tree (uncommitted changes on top of 3c41292)
|
||||
|
||||
Commands:
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-internal-tls.ps1
|
||||
docker compose --env-file .env --profile verification run --rm private-bucket-check
|
||||
|
||||
Observed output:
|
||||
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: bucket is private; API and worker use separate non-admin prefix/action policies
|
||||
|
||||
Scope: PostgreSQL, MinIO, OpenBao, Redis, RabbitMQ, OTel Collector, Loki, Tempo and Prometheus are verified against the service CA and hostname. Declared mTLS endpoints reject clients without a certificate. API/worker DB, Redis, RabbitMQ and MinIO identities are separate; forbidden DDL, cache keys, broker operations, admin calls and final-object writes are denied.
|
||||
|
||||
No secret values, tokens, private keys or credential material are included.
|
||||
@@ -0,0 +1,14 @@
|
||||
# OpenBao AppRole and policy verification
|
||||
|
||||
Date: 2026-11-26
|
||||
Stand: local Docker Desktop, compose project hla-lab7, OpenBao initialized and unsealed
|
||||
|
||||
Command:
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-openbao-policies.ps1
|
||||
|
||||
Observed output:
|
||||
OpenBao policy checks passed: own path allowed; foreign path and policy changes denied.
|
||||
|
||||
Scope: `messenger-api` and `messenger-worker` AppRoles authenticate with separate RoleID/SecretID, read only their own KV v2 path, cannot read the other role's KV path, and cannot write an OpenBao policy.
|
||||
|
||||
No root token, SecretID, token or secret value is included.
|
||||
@@ -0,0 +1,13 @@
|
||||
# Certificate and secret lifecycle verification
|
||||
|
||||
Date: 2026-11-26
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
No secret values, private keys, root token or unseal shares are included.
|
||||
@@ -0,0 +1,23 @@
|
||||
# HTTPS smoke, persistence restart and API replica failover
|
||||
|
||||
Date: 2026-11-26
|
||||
Stand: local Docker Desktop, compose project hla-lab7
|
||||
Command:
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\verify-https-resilience.ps1
|
||||
|
||||
Observed output:
|
||||
PASS: ports, privileges, capabilities, filesystems and resource limits satisfy the local hardening contract.
|
||||
PASS: 20 certificate/key bundles are valid; private/operator secrets are untracked; present SecretIDs are within TTL.
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
{"observed_instances_before": 2, "successful_writes": 7, "failed_attempts": 0, "first_recovery_seconds": 5.042}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
PASS: HTTPS smoke, persistence restart and one-replica failure completed with CA and hostname verification enabled.
|
||||
|
||||
Hook scope:
|
||||
scripts/restart.cmd stops nginx, api, worker, redis, postgres, minio and rabbitmq,
|
||||
then starts the stateful services, runs minio-init and rabbitmq-init, and restores
|
||||
worker, two API replicas and nginx. Volumes are not removed.
|
||||
scripts/stop-one.cmd resolves exactly one API container by instance ID and stops it.
|
||||
|
||||
No tokens, session cookies, private keys or message payloads are included.
|
||||
Reference in New Issue
Block a user