You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* fix(secrets): normalize inline SecretRef token/key to tokenRef/keyRef in runtime snapshot
When auth-profiles.json uses an inline SecretRef as the token or key
value directly (e.g. `"token": {"source":"file",...}`), the resolved
plaintext was written back to disk on every updateAuthProfileStoreWithLock
call, overwriting the SecretRef.
Root cause: collectTokenProfileAssignment and collectApiKeyProfileAssignment
detected inline SecretRefs but did not promote them to the canonical
tokenRef/keyRef fields. saveAuthProfileStore only strips plaintext when
tokenRef/keyRef is set, so the inline case fell through and persisted
plaintext on every save.
Fix: when an inline SecretRef is detected and no explicit tokenRef/keyRef
exists, promote it to the canonical field and delete the inline form.
saveAuthProfileStore then correctly strips the resolved plaintext on write.
Fixes #29108
* fix test: cast inline SecretRef loadAuthStore mocks to AuthProfileStore
* fix(secrets): fix TypeScript type error in runtime test loadAuthStore lambda
* test(secrets): keep explicit keyRef precedence over inline key ref
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>
|
9 months ago | |
|---|---|---|
| .. | ||
| acp | 9 months ago | |
| agents | 9 months ago | |
| auto-reply | 9 months ago | |
| browser | 9 months ago | |
| canvas-host | ||
| channels | 9 months ago | |
| cli | 9 months ago | |
| commands | 9 months ago | |
| compat | ||
| config | 9 months ago | |
| cron | 9 months ago | |
| daemon | 9 months ago | |
| discord | 9 months ago | |
| docs | ||
| gateway | 9 months ago | |
| hooks | ||
| imessage | ||
| infra | 9 months ago | |
| line | 9 months ago | |
| link-understanding | ||
| logging | 9 months ago | |
| markdown | ||
| media | 9 months ago | |
| media-understanding | ||
| memory | 9 months ago | |
| node-host | 9 months ago | |
| pairing | ||
| plugin-sdk | 9 months ago | |
| plugins | 9 months ago | |
| process | 9 months ago | |
| providers | ||
| routing | 9 months ago | |
| scripts | ||
| secrets | 9 months ago | |
| security | 9 months ago | |
| sessions | 9 months ago | |
| shared | 9 months ago | |
| signal | 9 months ago | |
| slack | 9 months ago | |
| telegram | 9 months ago | |
| terminal | 9 months ago | |
| test-helpers | ||
| test-utils | 9 months ago | |
| tts | 9 months ago | |
| tui | 9 months ago | |
| types | ||
| utils | 9 months ago | |
| web | ||
| wizard | 9 months ago | |
| channel-web.ts | ||
| docker-image-digests.test.ts | ||
| docker-setup.test.ts | 9 months ago | |
| dockerfile.test.ts | 9 months ago | |
| entry.ts | 9 months ago | |
| extensionAPI.ts | ||
| globals.ts | ||
| index.ts | ||
| logger.test.ts | ||
| logger.ts | ||
| logging.ts | ||
| polls.test.ts | ||
| polls.ts | ||
| runtime.ts | ||
| utils.test.ts | ||
| utils.ts | ||
| version.test.ts | ||
| version.ts | ||