@cratis/pi 7.173.0 → 7.174.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-chronicle-hosting
3
- description: Use when deploying the Chronicle kernel, preparing production topology or diagnosing kernel startup, certificates and clustering. Not for application client wiring, Orleans grain implementation or live-store mutation.
3
+ description: Use when deploying the Chronicle kernel, running a production readiness or go-live checklist, preparing topology, backup and restore, upgrades, or diagnosing startup, certificates and clustering. Not for application client wiring, Orleans grain implementation or live-store mutation.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -157,6 +157,8 @@ Ordinary observer quarantine guidance does not imply webhooks stay silent.
157
157
 
158
158
  ## Verify
159
159
 
160
+ Read [production checklist](references/production-checklist.md) when preparing, reviewing or auditing a Chronicle go-live, backup and restore drill or upgrade.
161
+
160
162
  - The build/image and intended environment agree; no default development
161
163
  application remains in reused production storage.
162
164
  - Storage is reachable and MongoDB is a replica set; multiple nodes share valid
@@ -0,0 +1,99 @@
1
+ <!-- Copyright (c) Cratis. All rights reserved. -->
2
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
3
+
4
+ # Chronicle production go-live checklist
5
+
6
+ Source: `Cratis/Chronicle`: `Documentation/hosting/production.md`,
7
+ `Documentation/hosting/rolling-deploy.md`, `Documentation/hosting/encryption-certificate.md`,
8
+ `Documentation/hosting/configuration/{clustering,compliance-storage}.md`,
9
+ `Source/Clients/DotNET/{ChronicleOptions,Tls}.cs`.
10
+
11
+ Work through the items in order. Each links to the section that owns the detail; this file
12
+ adds only the sequence and the facts those sections do not carry. Mark an item done only
13
+ after observing it, and list what was not observed.
14
+
15
+ ## 1. Image and build
16
+
17
+ - [ ] Deploy the production `cratis/chronicle` image, pinned to a tested tag. It has
18
+ no bundled database, generates no certificates and creates no default administrator password.
19
+ - [ ] Do not rely on `ASPNETCORE_ENVIRONMENT`: the `DEVELOPMENT` symbol is compile-time. See
20
+ [Choose the build and storage](../SKILL.md#choose-the-build-and-storage).
21
+
22
+ ## 2. Storage
23
+
24
+ - [ ] `Cratis__Chronicle__Storage__ConnectionDetails` is set (it is empty by default), with
25
+ `Cratis__Chronicle__Storage__Type` for a backend other than MongoDB.
26
+ - [ ] MongoDB is a replica set, even for one node; a standalone `mongod` cannot serve
27
+ transactions or change streams. Erasure confirmation also needs linearizable reads and
28
+ majority writes, so on a standalone server erasures stay pending with a warning.
29
+
30
+ ## 3. Certificates and secrets
31
+
32
+ - [ ] TLS PFX and encryption certificate paths and passwords come from the secret store, and every
33
+ node has the same ring. A missing encryption certificate file fails startup with
34
+ `EncryptionCertificateFileNotFound`. See
35
+ [Supply certificates](../SKILL.md#supply-certificates-before-starting-production).
36
+ - [ ] Dumps are secrets: a crash dump holds connection strings, keys and event data, including
37
+ personal data. Keep dumps off by default; if enabled, use a restricted volume and delete every
38
+ copy after analysis.
39
+
40
+ ## 4. Authentication
41
+
42
+ - [ ] Complete administrator setup before exposing the service: the production image creates the
43
+ administrator without a password, and setup needs the token from the server logs or
44
+ `Authentication:InitialAdminSetupToken`. Protect that token and remove it from configuration
45
+ afterwards.
46
+ - [ ] No development application survives in reused storage (see **Supply certificates** above).
47
+
48
+ ## 5. Read model sinks
49
+
50
+ - [ ] The client option `DefaultSinkTypeId` defaults to MongoDB and applies to every materialized
51
+ read model; a named sink on the kernel decides where its read models land regardless. Set the
52
+ option or a named sink deliberately, then check where one read model actually lands. See
53
+ [named sinks](sinks.md).
54
+
55
+ ## 6. Clustering
56
+
57
+ - [ ] One node: the default `Localhost` is fine and a lease guards the storage.
58
+ - [ ] Several nodes: `clustering.type=MongoDB` with MongoDB storage, or `Sql` with PostgreSQL or
59
+ SQL Server, on every node, with shared cluster id, service id and certificate ring. See
60
+ [clustering and schema ownership](clustering-and-schema.md).
61
+
62
+ ## 7. Clients
63
+
64
+ - [ ] Set `skipTlsValidation=false` explicitly; the client default skips validation. Use
65
+ `caCertificatePath` for a private CA or `certificatePath` to pin; a pin does not override a host
66
+ name mismatch. See **cratis-chronicle-configuration** and **cratis-chronicle-client-dotnet**.
67
+
68
+ ## 8. Network and probes
69
+
70
+ - [ ] Keep the main port behind the intended proxy and the health port internal with
71
+ `health.exclusive=true`. Use orchestrator probes: `/health/live` for liveness and
72
+ `/health/ready` for readiness. See [Probe without opening another API entrance](../SKILL.md#probe-without-opening-another-api-entrance).
73
+
74
+ ## 9. Backup and restore drill
75
+
76
+ - [ ] The backup set is the certificate ring (all certificates and passwords, ring shape at backup
77
+ time), the storage, and the compliance key store, all from the same point in time.
78
+ - [ ] Restore in order: ring, storage, key store. Start **one** node and read
79
+ `GET /diagnostics/encryption-certificates`; keys with the role `Retired` mean a certificate is
80
+ missing. Keep traffic blocked, restore it under `previous`, restart that node and check again;
81
+ a running node does not reload its ring. Then start the others.
82
+ - [ ] Keep a retired certificate as long as the oldest backup you would restore. Overwriting a
83
+ certificate file is not a rotation.
84
+ - [ ] A key store older than the storage releases type-appropriate empty values for newer subjects,
85
+ which looks like erasure, and may resurrect erased subjects. A newer one keeps the intervening
86
+ erasures. Verify with **cratis-chronicle-compliance**.
87
+
88
+ ## 10. Upgrade
89
+
90
+ - [ ] Back up first; migrations have no rollback.
91
+ - [ ] Check the source release against the compatibility table in `rolling-deploy.md`. Rolling
92
+ replacement is supported only from listed source releases; otherwise, and for any new major,
93
+ stop every node first. Key-store naming changes for Vault or Azure Key Vault also need stop-all.
94
+ - [ ] Probe readiness per node. See [Upgrade and restore](operations.md#upgrade-and-restore) and
95
+ **cratis-chronicle-event-type-migration**.
96
+
97
+ ## 11. Report
98
+
99
+ - [ ] Name every item not run. A configuration review is not a deployment.
@@ -13,6 +13,10 @@
13
13
  { "kind": "skill-contains", "file": "references/sinks.md", "value": "\"reporting\": { \"type\": \"SQL\", \"connectionDetails\": \"Host=pg;Database=reporting;Username=chronicle\" }" },
14
14
  { "kind": "skill-contains", "file": "references/sinks.md", "value": "\"primary\": { \"type\": \"MongoDB\", \"connectionDetails\": \"<mongodb-connection-string>\" }" },
15
15
  { "kind": "skill-contains", "file": "references/sinks.md", "value": "Cratis__Chronicle__Sinks__Configurations__reporting__Type=SQL" },
16
- { "kind": "skill-contains", "value": "[named sinks](references/sinks.md) before adding or changing the section." }
16
+ { "kind": "skill-contains", "value": "[named sinks](references/sinks.md) before adding or changing the section." },
17
+ { "kind": "skill-contains", "file": "references/production-checklist.md", "value": "Authentication:InitialAdminSetupToken" },
18
+ { "kind": "skill-contains", "file": "references/production-checklist.md", "value": "DefaultSinkTypeId" },
19
+ { "kind": "skill-contains", "file": "references/production-checklist.md", "value": "skipTlsValidation=false" },
20
+ { "kind": "skill-contains", "value": "[production checklist](references/production-checklist.md) when preparing" }
17
21
  ]
18
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.173.0",
3
+ "version": "7.174.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [