@segmentstream/ontology 0.139.1 → 0.139.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.139.2
4
+
5
+ A webhook, the guests' bot check or a workspace channel that moves from a workspace secret to a
6
+ verification value of its connection keeps its value: the deploy that makes the change moves the
7
+ secret's value into the connection without reading it, so nobody pastes it again. `check`'s
8
+ `named-secret-deprecated` warning says so, and the guests' `botCheck.secret` now works until
9
+ 2027-01-19, like every other form that names a workspace secret. `segmentstream deploy` and
10
+ `segmentstream secret list` print `notice[named_secret]` for each place the production deployment
11
+ still reads a workspace secret by name, with the change to make.
12
+
13
+ Action required: a webhook's `signature.secret` or `verification.verifyToken`, the guests'
14
+ `botCheck.secret` and a workspace channel's `channels.<name>.secret` stop working after
15
+ 2027-01-19. Make the change each `notice[named_secret]` names: declare the value on the
16
+ connection (`verification={...}`, or `TurnstileConnection(key="turnstile")` for the bot check),
17
+ name it with `input`, change every place that names the same secret in one commit, and deploy.
18
+ That deploy moves the value; do not ask anyone to paste it, and do not delete the workspace secret.
19
+
3
20
  ## 0.139.1
4
21
 
5
22
  A WhatsApp message Meta accepts and later reports it could not deliver, in a `failed` delivery
package/dist/analyze.js CHANGED
@@ -770,7 +770,13 @@ function resolveWorkflows(input) {
770
770
  /** @legacy ontology.webhook-named-secrets: the last day a webhook reads a workspace secret. */
771
771
  const WEBHOOK_NAMED_SECRETS_END = "2027-01-19";
772
772
  /** @legacy ontology.guest-bot-check-secret: the last day the bot check reads a workspace secret. */
773
- const GUEST_BOT_CHECK_SECRET_ENDS = "2026-12-21";
773
+ const GUEST_BOT_CHECK_SECRET_ENDS = "2027-01-19";
774
+ /**
775
+ * @legacy ontology.webhook-named-secrets: the deploy that replaces a named secret with a connection
776
+ * value moves the secret's value into it.
777
+ */
778
+ const MOVED_AT_DEPLOY = "The deploy that makes this change moves the secret's value into the connection, so nobody " +
779
+ "enters it again: change every place that names the secret in that deploy.";
774
780
  let deliveryJsonSchema;
775
781
  /**
776
782
  * The JSON Schema of `webhookDelivery`, the input every webhook-started workflow declares, as the
@@ -841,7 +847,8 @@ function resolveWebhookTrigger(trigger, at, scope) {
841
847
  for (const path of named) {
842
848
  report("named-secret-deprecated", path, `a workspace secret works for a webhook only until ${WEBHOOK_NAMED_SECRETS_END}: declare ` +
843
849
  "it as a verification value of the webhook's connection, " +
844
- 'verification={"webhook_signing_secret": Secret(...)}, and name it with input.', "warning");
850
+ 'verification={"webhook_signing_secret": Secret(...)}, and name it with input. ' +
851
+ MOVED_AT_DEPLOY, "warning");
845
852
  }
846
853
  }
847
854
  const headers = trigger.headers;
@@ -1893,7 +1900,8 @@ function guestBotCheck(value, report, connections) {
1893
1900
  valid = false;
1894
1901
  }
1895
1902
  if (valid) {
1896
- report("named-secret-deprecated", "guest.botCheck.secret", `a workspace secret works as the bot check's secret key only until ${GUEST_BOT_CHECK_SECRET_ENDS}. ${shape}`, "warning");
1903
+ report("named-secret-deprecated", "guest.botCheck.secret", `a workspace secret works as the bot check's secret key only until ` +
1904
+ `${GUEST_BOT_CHECK_SECRET_ENDS}. ${shape} ${MOVED_AT_DEPLOY}`, "warning");
1897
1905
  }
1898
1906
  return valid && typeof secret === "string"
1899
1907
  ? { scheme: scheme, secret }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/ontology",
3
- "version": "0.139.1",
3
+ "version": "0.139.2",
4
4
  "description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "SegmentStream",