knife user create
with --user-key
option fails to create user
#14681
Labels
Status: Untriaged
An issue that has yet to be triaged.
Description
When creating a user with knife, the
--user-key
option does not work as intended. I expect to be able to provide the path of a public key and it will create the user without generating a new private key on the server, but instead it fails to create the user entirely.There are two bugs:
POST /users
), acreate_key
field is sent withnull
value and the server complains because it expects a boolean value:The raw API response is:
--user-key
file are never sent along in the API requestBased on the API documentation, I would expect
create_key
to be omitted (orfalse
), and a new fieldpublic_key
to contain the public key as a string.Chef Version
Platform Version
MacOS 14.5 (23F79) - arm64
Replication Case
Client Output
The text was updated successfully, but these errors were encountered: