Refuse the keys of an account that is not active
Resolve now checks the owner's state for a personal key; the authenticator treats an inactive owner as a revoked key. Suspension stops the keys within the cache TTL, reinstatement brings them back. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
20ebd21243
commit
27c49d0af9
4 files changed
+50
No files matched your search
@@ -185,6 +185,11 @@ func (a *Authenticator) resolve(ctx context.Context, hash []byte) (Principal, er
|
||||
}
|
||||
|
||||
eff, err := a.store.Resolve(ctx, k.ID)
|
||||
if errors.Is(err, store.ErrOwnerInactive) {
|
||||
// Said as a revoked key is: whether the key exists is not the
|
||||
// caller's to learn.
|
||||
return Principal{}, ErrRevoked
|
||||
}
|
||||
if err != nil {
|
||||
return Principal{}, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user