Slightly not correct message of authmate if jthere is an error in session rules json #167

Closed
opened 2025-12-28 17:36:29 +00:00 by sami · 0 comments
Owner

Originally created by @masterSplinter01 on GitHub (Feb 11, 2022).

Originally assigned to: @masterSplinter01 on GitHub.

If input json with session token rules is not correct, e.g:

[
    {
      "verb": "PUT",
      "wildcard": true,
      "containerID": null
    },
    {
      "verb": "SETEACL",
      "wildcard": kek,
      "containerID": null
    }
] 

Authmate prints:

failed to issue secret: failed to build bearer token: failed to build context for session token: failed to unmarshal rules for session token: invalid character 'k' looking for beginning of value

I suppose we should delete a part with bearer token from the message

Originally created by @masterSplinter01 on GitHub (Feb 11, 2022). Originally assigned to: @masterSplinter01 on GitHub. If input json with session token rules is not correct, e.g: ``` [ { "verb": "PUT", "wildcard": true, "containerID": null }, { "verb": "SETEACL", "wildcard": kek, "containerID": null } ] ``` Authmate prints: ``` failed to issue secret: failed to build bearer token: failed to build context for session token: failed to unmarshal rules for session token: invalid character 'k' looking for beginning of value ``` I suppose we should delete a part with bearer token from the message
sami 2025-12-28 17:36:29 +00:00
  • closed this issue
  • added the
    auth-mate
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#167
No description provided.