You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the ACL Token set in localstorage contains spaces, any RPC calls to Allocations.Exec results in:
Connection Closed: 1011 acl token lookup failed: index error: UUID must be 36 characters
Screenshots:
Allocation Exec Websocket:
Request Headers:
Reproduction steps
Set token in https://<nomad-instance>/ui/settings/tokens, preferably with an added space before the token. The token gets set correctly, which means that the system is handling spaces just fine. Example Token: " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
Exec into any allocation through the web UI, which would fail as described above.
Expected Result
The system should consistently handle spaces in the ACL tokens correctly. Since it accepts tokens with prefixed/suffixed spaces while authenticating, Allocations.Exec should not fail either and users should be allowed to exec into allocations.
Nomad version
Operating system and Environment details
Issue
If the ACL Token set in localstorage contains spaces, any RPC calls to
Allocations.Exec
results in:Screenshots:
Allocation Exec Websocket:
Request Headers:
Reproduction steps
Set token in
https://<nomad-instance>/ui/settings/tokens
, preferably with an added space before the token. The token gets set correctly, which means that the system is handling spaces just fine. Example Token:" XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
Exec into any allocation through the web UI, which would fail as described above.
Expected Result
The system should consistently handle spaces in the ACL tokens correctly. Since it accepts tokens with prefixed/suffixed spaces while authenticating,
Allocations.Exec
should not fail either and users should be allowed to exec into allocations.Actual Result
Any RPC call to
Allocations.Exec
fails.Proposed fix
See #11897
The text was updated successfully, but these errors were encountered: