Authentication and Authorization
All API operations require authentication using a set of 2 API Keys:
|Key name||HTTP Header name||Description|
||Account level key assigned to all users in the Redis Labs account|
||Personal key associated with a specific user|
The account key that you create identifies your Redis Labs account when you perform an API request. A Redis Labs user can belong to one or more accounts, but any API operation must be performed within the scope of a specific account.
You create the account key once and you cannot change or remove it after it is created. If you want to delete the account key or create a new account key, contact Redis Labs support.
The secret key is a personal key that belongs to a specific user with the owner role. Only that user can perform requests with that key.
A user can generate multiple secret keys for themselves or for other users defined as owners within the same account. The value of the secret key is only displayed when you generate the key.
Each secret key has a name that identifies it in any operation performed using the secret key. For example, any create, update, or delete API operation is audited and reported in the system log using the secret API name and the user of the API key.
Authentication using API keys
You authenticate with the account and secret API keys on every API operation request. You must add the key as HTTP request headers to each request.
Authorization using the API keys
When you send an API operation request, make sure these requirements are met in order to pass the authorization checks:
- Both the account and secret keys are valid and properly defined in the HTTP request headers.
- The secret key is associated with the same account as the account key.
- If source IP limitations is defined for the specific secret key, the API request must originate from an IP address that is in the allowed source IP range