Skip to content

Commit d2db3e9

Browse files
EslaM-XEslaM-X
andauthored
docs(ops): add INTEGRATION_READY, NOT_PROVISIONED production integration pack (#107)
* docs(ops): add INTEGRATION_READY, NOT_PROVISIONED production integration pack - Reference docker-compose/k8s/terraform/env/otel templates - Drill runbooks/templates for backup-restore, failover RPO/RTO, key rotation, tenant isolation/authz, anchor verify after restore - Local simulation script (LOCAL_SIMULATION_NOT_PRODUCTION_EVIDENCE) + evidence template generator - Operator runbooks and explicit non-claims No real credentials/provisioned infra/SLA claims. * fix(ops): resolve boundary audit placeholder and refresh scanned counts - Replace secret template placeholder to satisfy boundary audit - Refresh filesScanned 1487 -> 1509 in snapshot/claims/status --------- Co-authored-by: EslaM-X <eslam@coreguard.dev>
1 parent bc13706 commit d2db3e9

26 files changed

Lines changed: 430 additions & 3 deletions

‎docs/STATUS.md‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎docs/claims-registry.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"recheck": "npm run boundary:audit",
6969
"external": false,
7070
"derived": {
71-
"filesScanned": 1487,
71+
"filesScanned": 1509,
7272
"violations": 0
7373
},
7474
"deriveError": null,

‎docs/control-plane-production-track-status.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
- No real SSO/SCIM/KMS/HSM/external anchor deployment.
2727
- No custody/settlement.
2828
- VERIFIED ≠ SAFE.
29+
30+
## Integration Pack
31+
- `docs/production-integration-pack.md` — reference manifests/runbooks/drill templates (`INTEGRATION_READY, NOT_PROVISIONED`).
32+
- Local simulation script: `ops/production/drills/local-backup-restore-sim.mjs` (LOCAL_SIMULATION_NOT_PRODUCTION_EVIDENCE).
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# CGCP Production Integration Pack
2+
3+
**Status:** `INTEGRATION_READY, NOT_PROVISIONED`
4+
5+
This pack provides reference artifacts to execute the CGCP production track in a real target environment. It does **not** claim the environment is provisioned or production-ready.
6+
7+
## Included
8+
- `ops/production/README.md`
9+
- `ops/production/env.example`
10+
- `ops/production/docker-compose.reference.yml`
11+
- `ops/production/otel-collector.reference.yaml`
12+
- `ops/production/k8s/*`
13+
- `ops/production/terraform/*`
14+
- `ops/production/drills/*`
15+
- `ops/production/runbooks/*`
16+
17+
## External prerequisites (must be real)
18+
- Managed Postgres HA/replication/failover
19+
- OIDC/SAML/SCIM IdP
20+
- KMS/HSM + secrets lifecycle
21+
- External witness/transparency log/on-chain anchor
22+
- OTEL/alerts/SLO/on-call
23+
24+
## Evidence
25+
Use templates in `ops/production/drills/` and `ops/production/evidence/templates/`. Only evidence collected from real target-environment execution counts as drill evidence.

‎docs/state-snapshot.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commitsAheadOfV060": 555,
55
"testsTotal": 1967,
66
"boundaryAudit": {
7-
"filesScanned": 1487,
7+
"filesScanned": 1509,
88
"violations": 0,
99
"check": "PASS"
1010
},

‎ops/production/README.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# CGCP Production Integration Pack
2+
3+
**Status:** `INTEGRATION_READY, NOT_PROVISIONED`
4+
**Purpose:** deployable/reference artifacts for taking CGCP production-track foundation into a real target environment.
5+
6+
## Hard boundaries (read first)
7+
- This pack does **NOT** prove production deployment, HA, SLO/SLA, KMS/HSM, SSO/SCIM, external witness, or on-call readiness.
8+
- No real credentials, endpoints, tenant data, or production evidence are included.
9+
- Any "drill" script here is a **template/simulation aid** unless executed on a real target environment and accompanied by collected evidence.
10+
- **VERIFIED ≠ SAFE.**
11+
12+
## Contents
13+
- `docker-compose.reference.yml` - local/reference stack shape (Postgres, app, OTEL collector placeholder). Not managed HA.
14+
- `env.example` - configuration template.
15+
- `k8s/` - reference manifests (NOT_PROVISIONED).
16+
- `terraform/` - reference skeleton (NOT_PROVISIONED).
17+
- `drills/` - drill scripts/templates and evidence capture checklist.
18+
- `runbooks/` - operator runbooks.
19+
- `evidence/templates/` - evidence templates for real drills.
20+
21+
## Required external actions (owner/operator)
22+
1. Provision managed Postgres HA/replication/failover in target cloud.
23+
2. Configure OIDC/SAML/SCIM with real IdP.
24+
3. Configure KMS/HSM and secrets lifecycle.
25+
4. Configure external audit witness/anchoring service.
26+
5. Configure OTEL/alerts/SLO dashboards/on-call.
27+
6. Execute drills on target environment and store signed evidence.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# REFERENCE ONLY - NOT_PROVISIONED / NOT_HA
2+
# Local integration shape for developers. Do not treat as production HA.
3+
version: "3.9"
4+
services:
5+
postgres-primary:
6+
image: postgres:16
7+
environment:
8+
POSTGRES_DB: cgcp
9+
POSTGRES_USER: cgcp
10+
POSTGRES_PASSWORD: cgcp_dev_only
11+
ports: ["5432:5432"]
12+
volumes: ["pg_primary:/var/lib/postgresql/data"]
13+
postgres-replica:
14+
image: postgres:16
15+
environment:
16+
POSTGRES_PASSWORD: cgcp_dev_only
17+
command: ["bash","-c","echo 'REFERENCE ONLY: configure real replication in managed env'; sleep infinity"]
18+
otel-collector:
19+
image: otel/opentelemetry-collector:0.101.0
20+
command: ["--config=/etc/otelcol/config.yaml"]
21+
volumes: ["./otel-collector.reference.yaml:/etc/otelcol/config.yaml:ro"]
22+
ports: ["4318:4318"]
23+
cgcp:
24+
image: node:22-alpine
25+
working_dir: /app
26+
volumes: [".:/app"]
27+
environment:
28+
NODE_ENV: development
29+
DATABASE_URL: postgres://cgcp:cgcp_dev_only@postgres-primary:5432/cgcp
30+
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
31+
command: ["node","packages/agent-commerce/control-plane-cli.mjs","serve","--port","8787"]
32+
ports: ["8787:8787"]
33+
depends_on: [postgres-primary, otel-collector]
34+
volumes:
35+
pg_primary: {}

‎ops/production/drills/README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Drill Pack (INTEGRATION_READY, NOT_PROVISIONED)
2+
3+
These drills are **templates/runbooks/scripts**. They are not evidence of execution.
4+
5+
## Required drills
6+
1. Backup/restore + integrity
7+
2. Failover RPO/RTO
8+
3. Key rotation
9+
4. Tenant isolation / authz adversarial
10+
5. Anchor verification after restore
11+
12+
## Evidence rule
13+
Every executed drill must produce:
14+
- timestamped logs/metrics
15+
- operator identity
16+
- environment identifier
17+
- command/script version
18+
- pass/fail result
19+
- artifact hashes/receipts
20+
21+
Use `node ops/production/drills/generate-evidence-template.mjs <drill> <out.json>` to create a template.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Drill: Anchor Verification After Restore (TEMPLATE)
2+
3+
**Status:** NOT_EXECUTED.
4+
5+
## Steps
6+
1. Capture anchor receipt before backup.
7+
2. Restore from backup.
8+
3. Recompute/verify local audit chain.
9+
4. Verify anchor receipt against restored head (and external witness if configured).
10+
5. Record any mismatch as incident.
11+
12+
## Evidence
13+
- anchor receipt
14+
- restored head hash/length
15+
- verification output
16+
- witness response/receipt
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Drill: Backup/Restore + Integrity (TEMPLATE)
2+
3+
**Status:** NOT_EXECUTED. Run on target environment and attach evidence.
4+
5+
## Objective
6+
Prove backup can be restored and CGCP audit/ledger integrity verifies.
7+
8+
## Steps
9+
1. Record pre-backup anchor: `control-plane-cli.mjs anchor --store <store>`.
10+
2. Take backup/snapshot using target platform tooling.
11+
3. Restore into isolated environment.
12+
4. Run `verify` and `anchor --verify` equivalent; compare head hash/length.
13+
5. Run application smoke checks and tenant isolation sanity checks.
14+
6. Record RPO/RTO timestamps and artifact hashes.
15+
16+
## Expected evidence
17+
- backup id/timestamp, restore id/timestamp
18+
- pre/post anchor head hash and length
19+
- verify output (ok=true)
20+
- logs/metrics screenshots or exported files

0 commit comments

Comments
 (0)