Managing Anywhere Cloud access keys
View and revoke your Anywhere Cloud access keys through the Anywhere Cloud Console API to remove unused credentials and stay within your account's access key limit.
An access key stays valid until you revoke it. Deleting an Airflow Connection does not automatically revoke its associated access key. The key remains active and continues to count toward your Anywhere Cloud Console limit (500 keys per user by default). Once you reach this limit, the Anywhere Cloud Connections wizard cannot create new connections until you revoke unused keys. Make sure to revoke keys for connections you have removed, as well as any unused keys reported by a failed wizard run.
-
Get your session cookie: You manage your access
keys using the Anywhere Cloud Console API
(/api/v1/auth/access-keys/credentials), which
authenticates using your browser session cookie
(
hadoop-jwt).- Access Anywhere Cloud Console.
- Sign in using your enterprise identity provider.
-
Open your browser's developer tools and copy the value of the
hadoop-jwt cookie.
- Right-click anywhere on the Anywhere Cloud Console page and select Inspect or press F12 or Ctrl+Shift+I on Windows and Linux, or Cmd+Option+I on macOS.
- Navigate to the cookies list for the Anywhere Cloud Console domain:
- Google Chrome and Microsoft Edge: Select the Application tab (click >> if the tab is hidden). In the left sidebar under Storage, expand Cookies and select your Anywhere Cloud Console URL.
- Mozilla Firefox: Select the Storage tab. In the left sidebar, expand Cookies and select your Anywhere Cloud Console URL.
- In the cookie table, locate the row where Name is hadoop-jwt.
- Double-click the corresponding field in the Value column or select the row and copy the string from the Cookie Value preview pane at the bottom and copy it to your clipboard. Make sure that you copy only the value string, not the cookie name.
-
Open the terminal on your device and run the following command to set
your environment variables securely in your shell (read
-rs keeps the cookie out of your shell history and off the
screen):
export AWC_CONSOLE_URL="https://[***YOUR_AWC_CONSOLE_HOST***]" read -rs AWC_JWT && export AWC_JWT # Paste the cookie value, then press Enter
-
List your access keys: Run the following curl
command to view your active access keys:
curl -sS \ -H "Cookie: hadoop-jwt=${AWC_JWT}" \ "${[***AWC_CONSOLE_URL***]}/api/v1/auth/access-keys/credentials"The response lists the access keys for the user who owns the session cookie. Client secrets do not appear in the response. For example:
{ "data": [ { "id": "3a439f49-4fd4-4b9e-a767-5bd2cf982237", "name": "cwo-cde-cde_connection", "description": "auto-created secret for my-cwo", "created_at": "2026-11-13T19:21:52.75Z" }, { "id": "914465d1-2055-46f8-8cf1-376f0f579726", "name": "cwo-cde-cde_connection", "description": "auto-created secret for my-cwo", "created_at": "2026-11-13T19:06:37.244Z" } ], "pagination": {"limit": 50, "offset": 0, "total": 2} }If
jqis available, run the following command to format the output into one line per key:curl -sS \ -H "Cookie: hadoop-jwt=${AWC_JWT}" \ "${AWC_CONSOLE_URL}/api/v1/auth/access-keys/credentials" \ | jq -r '.data[] | [.id, .name, .created_at] | @tsv' -
Identify and revoke a key: Before revoking a
key, verify which Airflow Connection uses it and remove or replace that
connection first.
- Access Anywhere Cloud Console.
- Sign in using your enterprise identity provider.
- Click Apps in the left navigation pane on the Anywhere Cloud Console. The list of deployed data services and engines is displayed.
- Search for the required Cloudera Workflow Orchestrator instance and click on the instance name. A details pane is displayed.
- Click on the Cloudera Workflow Orchestrator URL available in the URL column. The Cloudera Workflow Orchestrator console home page is displayed.
- Go to Admin > Anywhere Cloud Connections or Admin > Connections.
- Identify the connection and click Edit Connection.
- Copy the value in the Access Key ID field. This value matches the id field in your API key list.
- Delete or update the Airflow Connection so no DAGs attempt to use the key after it is revoked.
-
Send a
DELETErequest to revoke the key, replacing [***CLIENT_ID***] with the Access Key ID:curl -sS -X DELETE \ -H "Cookie: hadoop-jwt=${AWC_JWT}" \ -H "Content-Type: application/json" \ -d '{"client_id": "[***CLIENT_ID***]"}' \ -w '%{http_code}\n' \ "${[***AWC_CONSOLE_URL***]}/api/v1/auth/access-keys/credentials/revoke"
-
Clear the session cookie from your shell environment when you are
finished:
unset AWC_JWT
