@zigordev/stack 1.5.0 → 1.6.0
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.
- package/README.md +8 -1
- package/compose.local.yaml +17 -0
- package/compose.yaml +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,7 +172,14 @@ KAFKA_SETUP: |
|
|
|
172
172
|
allow notes-api Read group notes-api. prefixed
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
On the laptop the job also needs `KAFKA_PASSWORD_NOTES_API`, a throwaway password in `compose.local.yaml`. The app reaches the broker with three settings, which `@zigordev/events` reads: `KAFKA_BROKERS: kafka:9092`, `KAFKA_USERNAME: notes-api` and `KAFKA_PASSWORD`, the same password.
|
|
175
|
+
On the laptop the job also needs `KAFKA_PASSWORD_NOTES_API`, a throwaway password in `compose.local.yaml`. The app reaches the broker with three settings, which `@zigordev/events` reads: `KAFKA_BROKERS: kafka:9092`, `KAFKA_USERNAME: notes-api` and `KAFKA_PASSWORD`, the same password. In production an app's password lives once, at its own `/<product>/KAFKA_PASSWORD` in Parameter Store, as the owner chose on 2026-11-25.
|
|
176
|
+
|
|
177
|
+
On the laptop the job reads a second list after `KAFKA_SETUP`: `KAFKA_SETUP_LAPTOP`, in `compose.local.yaml`, for users that only a laptop needs. Production never sets it. It holds two users today, each with the throwaway password `local-only-<user>`:
|
|
178
|
+
|
|
179
|
+
| User | Why only on the laptop |
|
|
180
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
181
|
+
| `notifications-api` | The notifications service reads every app's requests and writes every app's answers. It moves to `KAFKA_SETUP` before its first deploy |
|
|
182
|
+
| `template-api` | The product template's API, which sends its emails through the service. The template never deploys |
|
|
176
183
|
|
|
177
184
|
The broker formats its own storage before the image starts it, and makes the users `admin` and `setup` there, because image 4.4.0 ignores the setting that would do that. [Record 0027](../docs/adr/0027-the-broker-formats-its-own-storage-and-one-list-holds-its-topics-users-and-rules.md) says why.
|
|
178
185
|
|
package/compose.local.yaml
CHANGED
|
@@ -45,6 +45,23 @@ services:
|
|
|
45
45
|
profiles: [setup]
|
|
46
46
|
environment:
|
|
47
47
|
KAFKA_SETUP_PASSWORD: local-only-setup
|
|
48
|
+
KAFKA_SETUP_LAPTOP: |
|
|
49
|
+
user notifications-api
|
|
50
|
+
allow notifications-api Read topic notifications.requests. prefixed
|
|
51
|
+
allow notifications-api Write topic notifications.outcomes. prefixed
|
|
52
|
+
allow notifications-api Read group notifications-api. prefixed
|
|
53
|
+
user template-api
|
|
54
|
+
topic notifications.requests.template-api 1
|
|
55
|
+
topic notifications.requests.template-api.dead-letter 1
|
|
56
|
+
topic notifications.outcomes.template-api 1
|
|
57
|
+
topic notifications.outcomes.template-api.dead-letter 1
|
|
58
|
+
allow template-api Write topic notifications.requests.template-api
|
|
59
|
+
allow template-api Read topic notifications.outcomes.template-api
|
|
60
|
+
allow template-api Write topic notifications.outcomes.template-api.dead-letter
|
|
61
|
+
allow template-api Read group template-api. prefixed
|
|
62
|
+
allow notifications-api Write topic notifications.requests.template-api.dead-letter
|
|
63
|
+
KAFKA_PASSWORD_NOTIFICATIONS_API: local-only-notifications-api
|
|
64
|
+
KAFKA_PASSWORD_TEMPLATE_API: local-only-template-api
|
|
48
65
|
|
|
49
66
|
lgtm:
|
|
50
67
|
image: grafana/otel-lgtm:0.41.1@sha256:1b852b77d7bcadb7699bfe7c78a51d059dff85168de674728cf7abf4474645e5
|
package/compose.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zigordev/stack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "The shared services of the zigordev platform for a laptop: the ingress, the telemetry agent, a local Grafana and a mail catcher, as compose files with one command that starts them",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|