How to retrieve GARM admin credentials¶
The get-credentials action retrieves the GARM admin credentials generated by the charm during start-up. Use it when you need to authenticate via the GARM API or when registering new profiles using garm-cli.
Prerequisites¶
The GARM charm must be fully initialized. The unit status must be active before running this action. If the charm has not completed its first-run setup, the credentials will not yet be available and the action will fail.
Run the action¶
juju run garm/0 get-credentials
Action output¶
The action returns four fields:
Field |
Description |
|---|---|
|
The GARM admin username. |
|
The GARM admin password. |
|
The email address associated with the admin account. |
|
The full name associated with the admin account. |
Example output:
Running operation 1 with 1 task
- task 2 on unit-garm-0
Waiting for task 2...
email: admin@garm.local
full-name: GARM Admin
password: <generated-password>
username: admin