Version
User Management
The first created user will become the Super Admin.
$ kadalu user create admin
Password:
User created successfully. Now login to continue with other commands.
Login using the following command,
$ kadalu user login admin
Password:
Logged in successfully. Details cached in `~/.kadalu/sessions/admin`. Delete this file or run `kadalu logout` command to delete the session.
Adding more users
-
Users with admin privileges can add more users.
-
Pool Admin can add more users only to that pool.
$ kadalu user create demo
Password:
User created successfully. Now login to continue with other commands.
Assign a default role while creating a user
$ kadalu user create demo --pool=PROD --role=viewer
Password:
User created successfully. Now login to continue with other commands.
Add a role after creating a user
$ kadalu role add demo viewer --pool=PROD
Change the password of a user
$ kadalu user password
New Password:
Confirm New Password:
Password updated successfully.
Delete a Role
$ kadalu role remove demo viewer --pool=PROD
Delete a user
$ kadalu user delete demo
Each login generates an API key that can also be manually generated using the following command
$ kadalu api-key create "Dev"
API Key created successfully!
Use the user_id and token with all the requests.
User-ID: e3f17db7-7b03-426f-a0a1-a8f048d92433
Token: 2218c15b68f009d49fa8db1d827d1820beaddc7674a33371d39b68c06ee6d0a2
Note: The token is not saved in server, if the token
is lost then please regenerate using this command
Example:
curl -H "Authorization: Bearer 2218c15b68f009d49fa8db1d827d1820beaddc7674a33371d39b68c06ee6d0a2" \
-H "X-User-ID: e3f17db7-7b03-426f-a0a1-a8f048d92433" \
http://localhost:3000/api/v1/pools
View list of API keys by running `kadalu api-key list`
List the Sessions and API Keys
$ kadalu api-key list
ID token Name
* 90f06a2f-8e9c-4bd6-a6f3-abb4092c8d0f ab1598b.. Login
8925afdb-22bf-4d83-a122-ae116191b1d4 2218c15.. Dev
Delete a Session/API key.
$ kadalu api-key delete "Dev"
API Key deleted successfully