basecradle 0.17.4 → 0.17.5
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 +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +4 -1
- data/lib/basecradle/version.rb +1 -1
- data/lib/basecradle/webhooks.rb +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4975625da2b7b85af3c8a64937f2a5ec16276f71025f0b524eabee9d9b1cd0a
|
|
4
|
+
data.tar.gz: '024299e5e79792a1b019e5401c9a1e6ff6d34b771eeb697578daddac4314eef2'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f49ee8af5c6bd623dfe5be6d096e076c2946a08d647e2c52873d53374d1671f3d5c3f02f53fe7b68144df3275758060d58b24b3d5c52aa526688f69f2b5d04c8
|
|
7
|
+
data.tar.gz: b69adbe0703a228472a40a532101638d581c3636f7a80ce894d53f789696fe45845cf316a86f0bb16905f683bbe91fcd1ffa2a289d86b1dae4c0abb47b798273
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,22 @@ 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.5] - 2026-11-27
|
|
13
|
+
|
|
14
|
+
A patch release that adds one sentence to the docs
|
|
15
|
+
([#338](https://github.com/basecradle/basecradle-ruby/issues/338)). No code path changes:
|
|
16
|
+
no verb is added or removed, and no signature changes.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **The docs now say how to move an endpoint off `sns` before the new sender's secret
|
|
21
|
+
exists.** The rule that a move to or from `sns` carries `credential:` in the same call
|
|
22
|
+
binds only an endpoint that holds a credential: one with none moves between any two
|
|
23
|
+
schemes freely. So `endpoint.clear_verification`, then
|
|
24
|
+
`endpoint.configure_verification(verifier: "hmac_sha256_hex")` (or any other scheme),
|
|
25
|
+
makes the move in two calls, with no secret yet. The README, `configure_verification`
|
|
26
|
+
and `clear_verification` say so.
|
|
27
|
+
|
|
12
28
|
## [0.17.4] - 2026-11-27
|
|
13
29
|
|
|
14
30
|
A patch release that corrects what the SDK says about a platform change of 2026-11-27
|
|
@@ -1142,6 +1158,7 @@ the Python SDK's behavior in idiomatic Ruby. Zero runtime dependencies.
|
|
|
1142
1158
|
- **Quality bars** — a README-as-tested-doc harness (every example runs against a mocked
|
|
1143
1159
|
API) and a spec drift-guard (CI fails if the live API grows beyond the SDK).
|
|
1144
1160
|
|
|
1161
|
+
[0.17.5]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.5
|
|
1145
1162
|
[0.17.4]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.4
|
|
1146
1163
|
[0.17.3]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.3
|
|
1147
1164
|
[0.17.2]: https://github.com/basecradle/basecradle-ruby/releases/tag/v0.17.2
|
data/README.md
CHANGED
|
@@ -257,7 +257,10 @@ Under `sns` the credential is **the ARN of the topic** the endpoint listens to.
|
|
|
257
257
|
secret, and it is still write-only: the API never returns it. **Pass `credential:` in the
|
|
258
258
|
same call that moves an endpoint to or from `sns`**: a topic's ARN is never carried over to
|
|
259
259
|
a secret scheme, nor a secret to `sns`, so a call that passes only `verifier:` there raises
|
|
260
|
-
`BaseCradle::ValidationError`.
|
|
260
|
+
`BaseCradle::ValidationError`. That rule binds only an endpoint that holds a credential: one
|
|
261
|
+
with none moves between any two schemes freely. So to move an endpoint off `sns` before the
|
|
262
|
+
new sender's secret exists, clear the verification first, then name the new scheme:
|
|
263
|
+
`endpoint.clear_verification`, then `endpoint.configure_verification(verifier: "hmac_sha256_hex")`.
|
|
261
264
|
The endpoint confirms the SNS subscription by itself, and the confirmation creates no event,
|
|
262
265
|
so set the ARN before you subscribe the topic: with no ARN set, the confirmation is stored as
|
|
263
266
|
an event and its `SubscribeURL` is yours to open. Topics in the standard and GovCloud regions
|
data/lib/basecradle/version.rb
CHANGED
data/lib/basecradle/webhooks.rb
CHANGED
|
@@ -108,7 +108,10 @@ module BaseCradle
|
|
|
108
108
|
# API key. Under "sns" it is the ARN of the topic the endpoint listens to: not a
|
|
109
109
|
# secret, and still write-only. Pass it in the same call that moves an endpoint to
|
|
110
110
|
# or from "sns": a topic's ARN is never carried over to a secret scheme, nor a secret
|
|
111
|
-
# to "sns", so passing only +verifier+ there raises ValidationError.
|
|
111
|
+
# to "sns", so passing only +verifier+ there raises ValidationError. That rule binds
|
|
112
|
+
# only an endpoint that holds a credential: one with none moves between any two
|
|
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.
|
|
112
115
|
# Under "twilio" it is a shared key made at Twilio for signing webhooks (Twilio's own
|
|
113
116
|
# recommendation) or the account's Auth Token. An endpoint holds one secret, a
|
|
114
117
|
# delivery signed with the other is refused with 401, and Twilio does not resend it
|
|
@@ -147,8 +150,11 @@ module BaseCradle
|
|
|
147
150
|
end
|
|
148
151
|
|
|
149
152
|
# Remove the signing secret and turn verification off: deliveries are accepted
|
|
150
|
-
# unsigned again, and +content.verification.enabled+ reads false.
|
|
151
|
-
# endpoint
|
|
153
|
+
# unsigned again, and +content.verification.enabled+ reads false. The verifier
|
|
154
|
+
# stays: an endpoint with no credential moves between any two schemes freely, so this,
|
|
155
|
+
# 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.
|
|
152
158
|
def clear_verification
|
|
153
159
|
adopt(require_client.request("PATCH", endpoint_path,
|
|
154
160
|
json: { "webhook_endpoint" => { "clear_credential" => true } }))
|