Skip to content

Commit

Permalink
node: Add session token's key decoding error details
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
  • Loading branch information
carpawell committed Feb 21, 2024
1 parent d8df959 commit 950ee8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/container/morph/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (s *morphExecutor) validateToken(t *sessionV2.Token, cIDV2 *refs.ContainerI

err = keyFromToken.Decode(t.GetSignature().GetKey())
if err != nil {
return errors.New("error while decoding public key from the token's signer")
return fmt.Errorf("error while decoding public key from the token's signer: %w", err)
}

userFromToken := user.ResolveFromECDSAPublicKey(ecdsa.PublicKey(keyFromToken))
Expand Down

0 comments on commit 950ee8d

Please sign in to comment.