Skip to main content

API Keys

API Keys provide secure authentication for accessing Qalyptus Server REST APIs. This feature allows users to generate time-limited tokens for programmatic access to Qalyptus functionality while maintaining proper security controls and administrative oversight.

Overview

API Keys enable:

  • Secure API Authentication: Token-based access to REST endpoints
  • Programmatic Integration: Automated workflows and third-party integrations
  • Controlled Access: Time-limited tokens with configurable expiration
  • Administrative Oversight: Centralized management and monitoring of all API keys
Security Notice

API keys provide full access equivalent to the user's permissions. Treat them as passwords and store them securely.

Enabling API Keys

By default, API key functionality is disabled for security reasons.

To enable API keys:

  1. Navigate to Administration > Settings > API Keys
  2. Enable the API Keys option
  3. Configure the Expiration Period (1-365 days, default: 180 days)
  4. Save the configuration
Permission Requirements

Even when API keys are enabled globally, users must have the appropriate permission role to generate and use API keys.

Configuration Settings

Expiration Period

Sets the maximum lifetime for newly generated API keys.

Options:

  • Range: 1-365 days
  • Default: 180 days
  • Recommendation: 30-90 days for enhanced security
Security Best Practice

Shorter expiration periods reduce security risks but require more frequent key rotation. Balance security with operational needs.

API keys

User API Key Management

Accessing API Keys

Users can manage their API keys through: User Profile > API Keys

Visibility

The API Keys section only appears in user profiles when the feature is enabled by administrators.

Generating an API Key

To create a new API key:

  1. Click Generate Key
  2. Enter a descriptive name for the key
  3. Add an optional description for context
  4. Select an expiration date (within the configured limit)
  5. Copy and securely store the generated key
Important

The API key is displayed only once. Copy and store it immediately in a secure location. It cannot be retrieved again.

API keys

Managing Existing Keys

After generation, users can:

  • Update name and description of existing keys
  • View expiration dates and creation information
Key Limitations
  • Expiration dates cannot be extended after creation
  • Maximum of 1000 API keys per user
  • Keys cannot be regenerated or recovered if lost

Administrator Management

Viewing All API Keys

Administrators can monitor all user API keys through: Administration > System > API Keys

Available Information

  • Key owner and user details
  • Creation date and expiration
  • Key status
  • Administrative actions (delete/revoke)

Administrative Actions

Revoking API Keys:

  • Administrators can delete any API key to immediately revoke access
  • Useful for security incidents or user departures
  • Action is immediate and cannot be undone

API keys

Security Best Practices

For Users

  • Secure Storage: Store API keys in password managers or secure credential stores
  • Limited Scope: Generate separate keys for different applications or purposes
  • Regular Rotation: Replace keys before expiration, especially for critical applications
  • Monitor Usage: Regularly review active keys and remove unused ones

For Administrators

  • Short Expiration Periods: Configure reasonable expiration limits (30-90 days)
  • Regular Audits: Monitor API key usage and remove inactive keys
  • Permission Controls: Ensure only authorized users have API key generation permissions
  • Incident Response: Establish procedures for immediate key revocation if compromised

Troubleshooting

API Key Not Working

  1. Verify the key hasn't expired
  2. Check user permissions for API access
  3. Confirm API keys are enabled globally
  4. Validate the key format and authentication method

Cannot Generate Keys

  1. Ensure API keys are enabled by administrators
  2. Verify user has appropriate permission roles
  3. Check if user has reached the 1000 key limit
  4. Confirm selected expiration date is within policy limits