Keyring Operator HTTP API
The /operator/keyring
endpoints manage encryption root keys used for storing
variables and signing workload identities, including examining active encryption
keys, rotating keys, or removing unused keys.
See the Key Management documentation for information how these capabilities
are used. For instructions on how to use the CLI to perform these operations
manually, please see the documentation for the nomad operator root keyring
commands.
List Keys
This endpoint retrieves a list of root keys known to the cluster. Note that only key metadata is returned and the key material is never made available via the HTTP API.
Method | Path | Produces |
---|---|---|
GET | /v1/operator/keyring/keys | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
YES | management |
Sample Request
Sample Response
Rotate Key
This endpoint forces the server to rotate the active root key.
Method | Path | Produces |
---|---|---|
PUT | /v1/operator/keyring/rotate | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | management |
Parameters
full
(bool: false)
- Decrypt all existing variables and re-encrypt with the new key. This API request will immediately return and the re-encryption process will run asynchronously on the leader.
Sample Request
Sample Response
Delete Key
This endpoint deletes a root key in the inactive
state.
Method | Path | Produces |
---|---|---|
DELETE | /v1/operator/keyring/key/:key_id | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | management |
Sample Request
Sample Response