Is this a support request?
Is there an existing issue for this?
Current Behavior
Ince the re implementation in c9bbb5b the behavior of the POST /api/v1/preauthkey route doesn't work the intended way
When giving a username it doesn't work like before and returns a 400 Bad Request
proto: (line 1:9): invalid value for uint64 field user: "email@example.com"
Expected Behavior
It should create and return the preauthkey
Steps To Reproduce
- POST on
/api/v1/preauthkey with a correct username for the property "user"
- Should return an error similar to
proto: (line 1:9): invalid value for uint64 field user: "email@example.com"
Environment
- OS: Ubuntu 22.04 / Docker
- Headscale version: 0.29.x (tested on .1 and .2)
- Tailscale version: (On API so not relevent for this issue)
Runtime environment
Debug information
Running on any standard Headscale instance in 0.29.2, this is an API issue
Is this a support request?
Is there an existing issue for this?
Current Behavior
Ince the re implementation in c9bbb5b the behavior of the
POST /api/v1/preauthkeyroute doesn't work the intended wayWhen giving a username it doesn't work like before and returns a 400 Bad Request
proto: (line 1:9): invalid value for uint64 field user: "email@example.com"Expected Behavior
It should create and return the preauthkey
Steps To Reproduce
/api/v1/preauthkeywith a correct username for the property "user"proto: (line 1:9): invalid value for uint64 field user: "email@example.com"Environment
Runtime environment
Debug information
Running on any standard Headscale instance in 0.29.2, this is an API issue