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

username

The GARM admin username.

password

The GARM admin password.

email

The email address associated with the admin account.

full-name

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