You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b96b952
Browse filesBrowse the repository at this point in the historyBrowse files
fix(credentials): lock keyless subject checks through the advisory-lock helper and refuse on unreadable siblings
assertWorkloadIdentitySubjectUnclaimed now takes a DbTransaction and locks
through acquireAdvisoryXactLock, so the lock carries its SQLCommenter tag and
cannot be taken on the pool by mistake. A sibling keyless credential whose
secret does not decrypt or parse used to throw a generic error, failing every
keyless create or rotation for the owner with a 500. Since it might hold the
subject, the save is now refused as a conflict naming that credential, with a
warning logged, and stored subjects are read with a schema safeParse.
logger.warn('Unreadable keyless credential blocks a subject uniqueness check',{
230
+
credentialId: row.id,
231
+
})
232
+
thrownewWorkloadIdentitySubjectError(
233
+
`Sim could not read the saved credential "${row.displayName}", so it cannot confirm this trust setup is unused. Reconnect or delete that credential, then try again.`
234
+
)
235
+
}
236
+
if(storedSubject===input.subject){
204
237
thrownewWorkloadIdentitySubjectError(
205
238
'Another credential already uses this trust setup. Start the keyless connection again.'
0 commit comments