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 | |
|---|---|---|
| .. | ||
| apply.test.ts | 9 months ago | |
| apply.ts | 9 months ago | |
| audit.test.ts | 9 months ago | |
| audit.ts | 9 months ago | |
| config-io.ts | 9 months ago | |
| configure.ts | 9 months ago | |
| json-pointer.ts | 9 months ago | |
| plan.ts | 9 months ago | |
| provider-env-vars.ts | 9 months ago | |
| ref-contract.ts | 9 months ago | |
| resolve.test.ts | 9 months ago | |
| resolve.ts | 9 months ago | |
| runtime.test.ts | 9 months ago | |
| runtime.ts | 9 months ago | |
| shared.ts | 9 months ago | |