Skip to main content

Update

Update a user's password.

The client sends the password to the controller in plaintext over TLS. The controller hashes it before it stores the job. The agent and the provider see only the hash. osapi never writes the plaintext to disk or to logs.

osapi client node user password update

Examples​

osapi client node user password update --target web-01 \
--name deploy --password 'newpass123'
osapi client node user password update --target _all \
--name deploy --password 'newpass123'

Flags​

FlagDescriptionDefault
--nameUsername to change password for (required)
--passwordNew password (hashed by the controller before storage) (required)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
-T, --targetTarget: _all, _any, hostname, or label (group:web.dev)_all
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.