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 Active Public Keys
This endpoint retrieves a list of active public keys used to sign workload identities. The response is in the JWKS format as is commonly used by JWT auth methods.
Method | Path | Produces |
---|---|---|
GET | /.well-known/jwks.json | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
YES | none |
Sample Request
Sample Response
OIDC Discovery
This endpoint retrieves OIDC configuration metadata for using workload identities with third party services. Nomad will act as an identity provider (IDP) to allow third parties to authenticate workload identity JWTs based on the OIDC configurationa and JWKS.
Most third parties will require this endpoint be accessible through a publically resolvable domain name and HTTPS signed by a trusted certificate authority.
You must set the oidc_issuer
Server agent configuration
parameter before this endpoint is enabled. In most situations you will also
need to run a proxy or load balancer for in front of this endpoint to serve the
contents with HTTPS using a trusted certificate.
Method | Path | Produces |
---|---|---|
GET | /.well-known/openid-configuration | application/json |
The table below shows this endpoint's support for blocking queries and required ACLs.
Blocking Queries | ACL Required |
---|---|
NO | none |
Sample Request
Sample Response
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