Repository navigation
Commit ff166c1
authored
feat(credentials): saved credentials for Amplitude, Kalshi, Splunk, CB Insights, Railway, and Qdrant; fix Kalshi Ed25519 signing (#9927)
* fix(kalshi): sign requests with Ed25519 keys, the type Kalshi generates by default
Kalshi picks the verification algorithm from the registered public key: Ed25519 over the
pre-sign text, or RSA-PSS SHA-256 for an RSA key. The signer always passed the sha256 digest
and PSS padding, which Node and Bun refuse for an Ed25519 key, so every authenticated call
with a default key failed before it was sent. The key type is now read from the parsed key
(a PKCS#8 RSA key shares the Ed25519 PEM header), and any other key type is refused.
* feat(amplitude): saved project credential and a credential-only Amplitude block
An Amplitude credential holds a project's API key, secret key, and data residency region,
verified by listing the project's events on the region's Dashboard REST host with the Basic
key pair the tools send (Amplitude answers 403 for either key being invalid). The region and
key shapes are checked before any request. Each tool group maps only the params it declares:
analytics tools take both keys and the region, ingestion tools the API key and region, and
User Profile the secret key. The legacy block keeps its inline keys and is hidden from the
toolbar in favor of amplitude_v2.
* feat(kalshi): saved API key credential and a credential-only Kalshi block
A Kalshi credential holds an API key ID and its private key, verified by a free balance read
signed the way the tools sign every authenticated call; a key that cannot sign or a key ID that
would break the header is refused before any request. The tools that sign requests map the
key ID and private key from the credential, while market data stays public, so kalshi_v3
shows the credential picker only on account and trading operations. Token credential fields
gain an optional multiline flag so the connect form keeps a pasted PEM key's line breaks.
kalshi and kalshi_v2 keep their inline keys and now point at kalshi_v3.
* feat(splunk): saved authentication token credential and a credential-only Splunk block
A Splunk credential holds an authentication token and the management URL, verified by reading
authentication/current-context (documented, no capability needed) through the guarded egress
with the URL normalized as the tools build it; an answer without a user context is not taken as
proof, and certificate verification is never relaxed. The tools send the token whenever one is
set, so the credential policy marks the inline username and password as replaced by the token:
tokenCredentialOAuth gains an optional list of such params, and the saved-credential contract
accepts any token-filled param (not only accessToken) beside them. splunk keeps its inline
connection fields and points at splunk_v2.
* feat(cbinsights): saved API client credential and a credential-only CB Insights block
A CB Insights credential holds the client ID and secret, verified by exchanging them at
POST /v2/authorize, the call the tools make before their first request; a success without a
token is not taken as proof, and the error body is never logged. The tools keep minting and
caching their own token per run, so the credential fills the same client ID and secret they
take inline. The lookup's profileUrl is request data sent to api.cbinsights.com, recorded as
such in the saved-credential contract. cbinsights keeps its inline client fields and points at
cbinsights_v2.
* chore(audits): shrink the unused-exports baseline for exports now in use
The Kalshi signer is exercised by its tests and the CB Insights API base by the saved
credential check, so neither is unused any more.
* test(credentials): cover a token-replaced sign-in whose token fills a param other than accessToken
The saved-credential contract now accepts any credentialParams entry filled with the token beside
tokenReplacesParams (Splunk's authToken), and names that in its error.
* feat(railway): saved token credential, type-aware, and a credential-only Railway block
A Railway credential holds a token, its type (account, workspace, or project), and for a
workspace token the workspace ID. Each type is verified with the read Railway documents for its
scope, since `me` answers only an account token: an account token reads `me`, a workspace token
reads its workspace by ID (passed as a GraphQL variable), and a project token reads
`projectToken` with the Project-Access-Token header the tools send for it. A GraphQL error or a
body without the queried object is not taken as proof. The tools receive the token and its type,
so a project token keeps its own header.
Token credential fields gain an optional flag: an optional field is left out of the required
create fields, the connect form does not require it and omits it when blank, and the secret
builder stores it only when set. Existing descriptors declare no optional field, so their
required fields and stored secrets are unchanged. railway keeps its inline token and points at
railway_v2.
* feat(qdrant): saved API key credential bound to its instance URL, and a credential-only Qdrant block
A Qdrant credential holds a database API key and the instance URL, verified by listing
collections (a read every key may run; a collection-scoped key sees a filtered list) with the
api-key header the tools send, through the guarded egress with the URL normalized as the tools
build it. An answer without a collection list is not taken as proof. The tools receive the key
and the verified URL, so a run reaches only that instance. qdrant keeps its inline URL and
optional key, which a self-hosted instance without an API key still needs, and points at
qdrant_v2.
The successor test matrix counts a field repeated per operation (Qdrant's URL) once.
* fix(credentials): honor an optional domain field in the token secret builder
The optional flag was honored by the create contract and connect form for any
field, but the secret builder only applied it to the workspace ID and still
required any domain field. Derive both the same way, and store a domain only
when it is required or supplied. No descriptor marks a domain optional today,
so stored secrets are unchanged.
* fix(amplitude): send both saved keys to User Profile over Basic auth
Amplitude's User Profile API documents only Basic authentication with the
project API key and secret key. A saved Amplitude credential now fills the API
key too, and the tool sends Basic auth whenever an API key is present. Inline
calls that pass only the secret key keep the Api-Key header they sent before.
* test(kalshi): keep only the signer cases that guard the key-type fix
Drop the PKCS#1, query-string, literal newline and auth-header cases, which
restate unchanged behavior or repeat the validator's Ed25519 check.
* docs(amplitude): note that User Profile sends both saved keys in the v2 block TSDoc
* fix(railway): require the workspace ID in the connect form once the token type is workspace
* chore(audits): re-record the tool-registry boundary baseline for the new credential validators
* fix(amplitude): default the saved credential's data residency to us1 parent 4911dc1 commit ff166c1
124 files changed
Lines changed: 1990 additions & 500 deletions
File tree
- apps
- docs
- components/ui
- content/docs/integrations
- sim
- app/workspace/[workspaceId]/integrations/components/connect-service-account-modal
- blocks
- blocks
- lib
- block-metadata
- credentials
- token-service-accounts
- validators
- integrations
- oauth
- permission-groups
- scripts
- serializer
- tools
- amplitude
- cbinsights
- generated
- kalshi
- qdrant
- railway
- splunk
- packages/deployment-config/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
380 | 381 | | |
381 | 382 | | |
382 | 383 | | |
| 384 | + | |
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
| |||
569 | 571 | | |
570 | 572 | | |
571 | 573 | | |
| 574 | + | |
572 | 575 | | |
573 | 576 | | |
574 | 577 | | |
| |||
674 | 677 | | |
675 | 678 | | |
676 | 679 | | |
| 680 | + | |
677 | 681 | | |
678 | 682 | | |
679 | 683 | | |
| |||
682 | 686 | | |
683 | 687 | | |
684 | 688 | | |
| 689 | + | |
685 | 690 | | |
686 | 691 | | |
687 | 692 | | |
| |||
746 | 751 | | |
747 | 752 | | |
748 | 753 | | |
| 754 | + | |
749 | 755 | | |
750 | 756 | | |
751 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | | - | |
100 | 97 | | |
101 | 98 | | |
102 | 99 | | |
103 | | - | |
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
| |||
121 | 117 | | |
122 | 118 | | |
123 | 119 | | |
124 | | - | |
125 | | - | |
126 | 120 | | |
127 | | - | |
128 | 121 | | |
129 | 122 | | |
130 | 123 | | |
| |||
147 | 140 | | |
148 | 141 | | |
149 | 142 | | |
150 | | - | |
151 | | - | |
152 | 143 | | |
153 | 144 | | |
154 | 145 | | |
155 | 146 | | |
156 | | - | |
157 | 147 | | |
158 | 148 | | |
159 | 149 | | |
| |||
190 | 180 | | |
191 | 181 | | |
192 | 182 | | |
193 | | - | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
| |||
219 | 208 | | |
220 | 209 | | |
221 | 210 | | |
222 | | - | |
223 | | - | |
224 | 211 | | |
225 | 212 | | |
226 | 213 | | |
| |||
232 | 219 | | |
233 | 220 | | |
234 | 221 | | |
235 | | - | |
236 | 222 | | |
237 | 223 | | |
238 | 224 | | |
| |||
255 | 241 | | |
256 | 242 | | |
257 | 243 | | |
258 | | - | |
259 | | - | |
260 | 244 | | |
261 | 245 | | |
262 | 246 | | |
263 | 247 | | |
264 | 248 | | |
265 | 249 | | |
266 | | - | |
267 | 250 | | |
268 | 251 | | |
269 | 252 | | |
| |||
285 | 268 | | |
286 | 269 | | |
287 | 270 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 271 | | |
292 | 272 | | |
293 | 273 | | |
| |||
309 | 289 | | |
310 | 290 | | |
311 | 291 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 292 | | |
316 | 293 | | |
317 | 294 | | |
| |||
338 | 315 | | |
339 | 316 | | |
340 | 317 | | |
341 | | - | |
342 | | - | |
343 | 318 | | |
344 | 319 | | |
345 | 320 | | |
346 | 321 | | |
347 | 322 | | |
348 | 323 | | |
349 | | - | |
350 | 324 | | |
351 | 325 | | |
352 | 326 | | |
| |||
369 | 343 | | |
370 | 344 | | |
371 | 345 | | |
372 | | - | |
373 | | - | |
374 | 346 | | |
375 | 347 | | |
376 | 348 | | |
| |||
381 | 353 | | |
382 | 354 | | |
383 | 355 | | |
384 | | - | |
385 | 356 | | |
386 | 357 | | |
387 | 358 | | |
| |||
408 | 379 | | |
409 | 380 | | |
410 | 381 | | |
411 | | - | |
412 | | - | |
413 | 382 | | |
414 | 383 | | |
415 | 384 | | |
| |||
419 | 388 | | |
420 | 389 | | |
421 | 390 | | |
422 | | - | |
423 | 391 | | |
424 | 392 | | |
425 | 393 | | |
| |||
0 commit comments