cub worker key
cub worker key
Manage the keys a worker authenticates with
Synopsis
Manage the public keys a worker authenticates with.
The holder of the matching private key authenticates by signing a short-lived assertion, so ConfigHub never receives or stores a secret. This replaces the worker secret, which ConfigHub generates, stores, returns through the API, and receives again on every token refresh.
A key is registered against the worker's bot user, which is the identity the worker runs as. These commands resolve that for you; "cub user key" is the same thing addressed by identity instead.
Registering a key hands out an identity: whoever holds the private key authenticates as that worker from then on. It requires the admin or manager role.
Options
-h, --help help for key
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
--space string space ID to perform command on
SEE ALSO
- cub worker - Manage workers
- cub worker key add - Register a public key for a worker
- cub worker key delete - Remove a public key from a worker
- cub worker key list - List the keys a worker can authenticate with