basecradle 0.17.5 → 0.17.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4975625da2b7b85af3c8a64937f2a5ec16276f71025f0b524eabee9d9b1cd0a
4
- data.tar.gz: '024299e5e79792a1b019e5401c9a1e6ff6d34b771eeb697578daddac4314eef2'
3
+ metadata.gz: 36fd6e6a49128c3e3d820209e16da9e7c05343dca788b1458f2fa72dae25a0b2
4
+ data.tar.gz: 05ef777a14a13019e8eae254917f218f836c580b386f8e022128390fb6ed255e
5
5
  SHA512:
6
- metadata.gz: f49ee8af5c6bd623dfe5be6d096e076c2946a08d647e2c52873d53374d1671f3d5c3f02f53fe7b68144df3275758060d58b24b3d5c52aa526688f69f2b5d04c8
7
- data.tar.gz: b69adbe0703a228472a40a532101638d581c3636f7a80ce894d53f789696fe45845cf316a86f0bb16905f683bbe91fcd1ffa2a289d86b1dae4c0abb47b798273
6
+ metadata.gz: e8c05623a38572e43eb1d687af42e7f16ff0b07fa546519ff447e8f34947dbf33c9aabd42e5aeee08477c58b1a9499eaa605793ee5373534dc64495a66bf8440
7
+ data.tar.gz: 7bb90822776556d8f71276615a4c324e39d285979f05ccb66fe8bc5a6e5fe71b307a390c54b58ff2685fd1eb1f989329fe4a3cc1c83fb4ef8e6c96b9371258c2
data/CHANGELOG.md CHANGED
@@ -9,6 +9,21 @@ section**. The newest heading is always the version `lib/basecradle/version.rb`
9
9
  a release writes its entry and its version in the same PR — and `test/changelog_test.rb`
10
10
  fails CI if the two ever disagree.
11
11
 
12
+ ## [0.17.6] - 2026-11-27
13
+
14
+ A patch release that adds one sentence to the docs
15
+ ([#340](https://github.com/basecradle/basecradle-ruby/issues/340)). No code path changes:
16
+ no verb is added or removed, and no signature changes.
17
+
18
+ ### Fixed
19
+
20
+ - **The docs now say what is true between the two calls that move an endpoint off
21
+ `sns`.** From `endpoint.clear_verification` until `endpoint.configure_verification`
22
+ sets the new sender's secret, the endpoint holds no credential, so, like any endpoint
23
+ with none, it accepts deliveries without proof.
24
+ `endpoint.disable` first, and `endpoint.enable` once the secret is set, refuses them in
25
+ the meantime. The README, `configure_verification` and `clear_verification` say so.
26
+
12
27
  ## [0.17.5] - 2026-11-27
13
28
 
14
29
  A patch release that adds one sentence to the docs
@@ -1158,6 +1173,7 @@ the Python SDK's behavior in idiomatic Ruby. Zero runtime dependencies.
1158
1173
  - **Quality bars** — a README-as-tested-doc harness (every example runs against a mocked
1159
1174
  API) and a spec drift-guard (CI fails if the live API grows beyond the SDK).
1160
1175
 
1176
+ [0.17.6]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.6
1161
1177
  [0.17.5]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.5
1162
1178
  [0.17.4]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.4
1163
1179
  [0.17.3]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.3
data/README.md CHANGED
@@ -261,6 +261,10 @@ a secret scheme, nor a secret to `sns`, so a call that passes only `verifier:` t
261
261
  with none moves between any two schemes freely. So to move an endpoint off `sns` before the
262
262
  new sender's secret exists, clear the verification first, then name the new scheme:
263
263
  `endpoint.clear_verification`, then `endpoint.configure_verification(verifier: "hmac_sha256_hex")`.
264
+ From the first call until the new sender's secret is set, the endpoint holds no credential,
265
+ so, like any endpoint with none, it **accepts deliveries without proof**. To refuse them in
266
+ the meantime, `endpoint.disable` it first (senders get `410 Gone`) and `endpoint.enable` it
267
+ once the secret is set.
264
268
  The endpoint confirms the SNS subscription by itself, and the confirmation creates no event,
265
269
  so set the ARN before you subscribe the topic: with no ARN set, the confirmation is stored as
266
270
  an event and its `SubscribeURL` is yours to open. Topics in the standard and GovCloud regions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BaseCradle
4
- VERSION = "0.17.5"
4
+ VERSION = "0.17.6"
5
5
  end
@@ -111,7 +111,10 @@ module BaseCradle
111
111
  # to "sns", so passing only +verifier+ there raises ValidationError. That rule binds
112
112
  # only an endpoint that holds a credential: one with none moves between any two
113
113
  # schemes freely. So to move an endpoint off "sns" before the new sender's secret
114
- # exists, call clear_verification first, then name the new scheme here.
114
+ # exists, call clear_verification first, then name the new scheme here. From the
115
+ # first call until the new secret is set, the endpoint holds no credential, so, like
116
+ # any endpoint with none, it accepts deliveries without proof: disable it first and
117
+ # enable it once the secret is set to refuse them in the meantime.
115
118
  # Under "twilio" it is a shared key made at Twilio for signing webhooks (Twilio's own
116
119
  # recommendation) or the account's Auth Token. An endpoint holds one secret, a
117
120
  # delivery signed with the other is refused with 401, and Twilio does not resend it
@@ -153,8 +156,10 @@ module BaseCradle
153
156
  # unsigned again, and +content.verification.enabled+ reads false. The verifier
154
157
  # stays: an endpoint with no credential moves between any two schemes freely, so this,
155
158
  # then configure_verification(verifier: ...), moves an endpoint off "sns" before the
156
- # new sender's secret exists. Returns this endpoint, which adopts the one the API
157
- # returns.
159
+ # new sender's secret exists. From this call until the new secret is set, the
160
+ # endpoint, like any endpoint with no credential, accepts deliveries without proof:
161
+ # disable it first and enable it once the secret is set to refuse them in the
162
+ # meantime. Returns this endpoint, which adopts the one the API returns.
158
163
  def clear_verification
159
164
  adopt(require_client.request("PATCH", endpoint_path,
160
165
  json: { "webhook_endpoint" => { "clear_credential" => true } }))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecradle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.5
4
+ version: 0.17.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drawk Kwast