Skip to content

Commit

Permalink
node: Print v2 user base58-encoded
Browse files Browse the repository at this point in the history
Now we have such errors: `code = 1024 message = session was not issued by the
container owner, issuer:
"52\n\xad\xc8\x18\x9f<\xf6V\x94\xf7î\xfd\xe1Ia\x05\xecӰ\xedE\x19"` but can do
it better for sure.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Feb 21, 2024
1 parent 32ca448 commit b5192c2
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 @@ -354,7 +354,7 @@ func (s *morphExecutor) validateToken(t *sessionV2.Token, cIDV2 *refs.ContainerI
}

if issuer := t.GetBody().GetOwnerID().GetValue(); !bytes.Equal(cnr.Value.Owner().WalletBytes(), issuer) {
return fmt.Errorf("session was not issued by the container owner, issuer: %q", issuer)
return fmt.Errorf("session was not issued by the container owner, issuer: %s", base58.Encode(issuer))
}

var keyFromToken neofsecdsa.PublicKey
Expand Down

0 comments on commit b5192c2

Please sign in to comment.