Any role can rotate its own API key. The name and password (for users) or current API key (for hosts and users) of the role must be provided via HTTP Basic Authorization.
To rotate another role's API key, you may provide your name and password
(for users) or current API key (for hosts and users) via HTTP Basic
Authorization with the request. Alternatively, you may provide your
Conjur access token via the standard Conjur Authorization header.
The Basic authentication-compliant header is formed by:
- Concatenating the role's name, a literal colon character ':', and the password or API key to create the authentication string.
- Base64-encoding the authentication string.
- Prefixing the authentication string with the scheme:
Basic(note the required space). - Providing the result as the value of the
AuthorizationHTTP header:Authorization: Basic <authentication string>.
Your HTTP/REST client probably provides HTTP basic authentication support.
For example, curl and all of the Conjur client libraries provide this.
If using the Conjur Authorization header, its value should be set to
Token token=<base64-encoded access token>.
Note that the body of the request must be the empty string.