LOKI LogoLOKIv1.10.0

loki auth

Manage non-local hosts authorized for chaos testing in .loki/authorized_targets.json.

Usage

bash
loki auth list
loki auth add staging.example.com
loki auth remove staging.example.com

Subcommands

FlagTypeDefaultDescription
loki auth listcommand—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.