Skip to main content

Managing Object Storage API Keys

Credential and resource scoping

Object Storage API keys are user-scoped — only the user who created a key can view or manage it. You can use object storage API keys in all buckets in all projects within your organization. Buckets are project-scoped resources.

Creating an Object Storage API Key

Use the storage tokens create command to generate a new Object Storage API key:

crusoe storage tokens create --alias my-training-key

Optional parameters:

  • --alias <alias> — A human-readable name for the key.
  • --expires-at <date> — Expiration date for the key in RFC3339 format (e.g., 2021-12-03T19:58:34Z).

The command outputs an access key ID and a secret key. Save the secret key immediately — it cannot be retrieved again after creation.

Example output:

Access Key ID:  CKIAXXXXXXXXXXXXXXXX
Secret Key: SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Alias: my-training-key
Expires At: 2026-12-31T00:00:00Z

Listing Object Storage API Keys

crusoe storage tokens list

Deleting an Object Storage API Key

crusoe storage tokens delete <access-key>

Replace <access-key> with the access key of the key you wish to delete. For example, if the access key is CKIAXGFV74Z2FFURA9UA, then the command would be

crusoe storage tokens delete CKIAXGFV74Z2FFURA9UA

The access key can also be obtained using the list [../list/_cli.mdx] command.

Warning

Deleting an Object Storage API key immediately revokes access for any clients configured with that key.