@zigordev/stack 1.7.0 → 1.7.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.
package/README.md CHANGED
@@ -176,7 +176,9 @@ On the laptop the job also needs `KAFKA_PASSWORD_NOTES_API`, a throwaway passwor
176
176
 
177
177
  `KAFKA_SETUP` holds one user today, `notifications-api`, the notifications service. It reads every app's requests and writes every app's answers, through three prefixed rules that never change when an app joins. On the laptop its password is `local-only-notifications-api`.
178
178
 
179
- 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 one user today, `template-api`, the product template's API, which sends its emails through the notifications service and never deploys. Its throwaway password is `local-only-template-api`.
179
+ `KAFKA_SETUP` also holds the four topics of every app that sends email, the template's too, and the service's right to set a bad request aside on each app's requests' dead-letter topic. The notifications service reads the requests topic of every app in its producer list, which ships in its image, wherever it runs. One missing topic stops it reading any, so every producer's topics exist on every broker.
180
+
181
+ 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 one user today, `template-api`, the product template's API, which sends its emails through the notifications service and never deploys. Its topics are in `KAFKA_SETUP`, so in production nobody can write to them. Its throwaway password is `local-only-template-api`.
180
182
 
181
183
  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.
182
184
 
@@ -47,15 +47,10 @@ services:
47
47
  KAFKA_SETUP_PASSWORD: local-only-setup
48
48
  KAFKA_SETUP_LAPTOP: |
49
49
  user template-api
50
- topic notifications.requests.template-api 1
51
- topic notifications.requests.template-api.dead-letter 1
52
- topic notifications.outcomes.template-api 1
53
- topic notifications.outcomes.template-api.dead-letter 1
54
50
  allow template-api Write topic notifications.requests.template-api
55
51
  allow template-api Read topic notifications.outcomes.template-api
56
52
  allow template-api Write topic notifications.outcomes.template-api.dead-letter
57
53
  allow template-api Read group template-api. prefixed
58
- allow notifications-api Write topic notifications.requests.template-api.dead-letter
59
54
  KAFKA_PASSWORD_NOTIFICATIONS_API: local-only-notifications-api
60
55
  KAFKA_PASSWORD_TEMPLATE_API: local-only-template-api
61
56
 
package/compose.yaml CHANGED
@@ -416,6 +416,11 @@ services:
416
416
  allow notifications-api Read topic notifications.requests. prefixed
417
417
  allow notifications-api Write topic notifications.outcomes. prefixed
418
418
  allow notifications-api Read group notifications-api. prefixed
419
+ topic notifications.requests.template-api 1
420
+ topic notifications.requests.template-api.dead-letter 1
421
+ topic notifications.outcomes.template-api 1
422
+ topic notifications.outcomes.template-api.dead-letter 1
423
+ allow notifications-api Write topic notifications.requests.template-api.dead-letter
419
424
  tmpfs:
420
425
  - /tmp
421
426
  - /opt/kafka/logs:uid=1000,gid=1000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zigordev/stack",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
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",