Invalid format when signing session token #1398
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1398
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Signed output file with session token is generated and can be used to make requests
Current Behavior
Steps to Reproduce (for bugs)
frostfs-cli --config wallet-config.yml util sign session-token --from 'example.token' --to 'signed.token'
Context
Automation tests
Regression
Yes
Your Environment
Invalid signature when signing session tokento Invalid format when signing session tokenThe error has been confirmed for input provided by @abereziny. I suppose that the problem has got the same reason as for #1399.
I checked how
frostfs-cli
generates a session token before requesting the object service:verb
field is numerical although'verb': 'PUT'
was allowedActually, we support string enums in unmarshal:
case protoreflect.EnumKind:
This problem could be related to
exp
field being numeric string instead of number.Anyway, the issue likely belongs to the api-go repo.