loki auth
Manage non-local hosts authorized for chaos testing in .loki/authorized_targets.json.
Usage
bash
loki auth listloki auth add staging.example.comloki auth remove staging.example.com
Subcommands
| Flag | Type | Default | Description |
|---|---|---|---|
| loki auth list | command | — | List non-local hosts you have confirmed authorization for in .loki/authorized_targets.json. |
| loki auth add <host> | hostname | — | Pre-authorize a hostname (e.g. staging.example.com) so loki run and loki record against it won't prompt. |
| loki auth remove <host> | hostname | — | Revoke a previously confirmed host so future runs against it will prompt again. |
localhost (localhost, 127.0.0.1, ::1, 0.0.0.0) passes with no friction. For any other host, loki run and loki record require either interactive confirmation (typing the hostname) or --authorized, and persist the confirmation in .loki/authorized_targets.json.
