Proxy Cluster Key Management
Learn how to manage proxy cluster authentication keys with the StrongDM CLI.
Overview
Proxy cluster authentication keys are the credentials that proxy workers use to authenticate with the StrongDM control plane. Proper key management is essential for maintaining security and supporting zero-downtime credential rotation.
Proxy cluster keys consist of two components:
Access Key: A public identifier (prefixed with
pk-) that identifies the keySecret Key: A confidential credential that proves authentication
Every proxy worker in a cluster must have the correct access key and secret key configured to connect to the control plane. Unlike individual user credentials, proxy cluster keys are shared across all workers within a cluster.
Up to four keys per cluster are supported, which enables the following:
Zero-downtime rotation: Create a new key and update workers gradually before retiring the old key.
Temporary overlap: Maintain multiple valid credentials during deployments or transitions.
Disaster recovery: Keep a backup key configuration for quick recovery if the primary key is compromised.
Create Keys
Use the sdm admin proxy-cluster-keys create CLI command (or the alias sdm admin proxy-cluster-keys add) to generate a new authentication key.
Example Output
SDM_PROXY_CLUSTER_ACCESS_KEY=pk-XXXXXXXXXXXXXX
SDM_PROXY_CLUSTER_SECRET_KEY=XXXXX...
The secret key is shown only once and cannot be retrieved later. Save it now.Use the environment variables shown above to configure your proxy worker deployments.
List Keys
Use sdm admin proxy-cluster-keys list to view all active authentication keys for a proxy cluster. The output shows the following:
Access Key: The public key identifier
Proxy Cluster ID: The cluster this key belongs to
Created At: When the key was created
Last Used At: When this key was last used for authentication (helps identify unused keys)
This is useful for auditing which keys are in use and identifying candidates for removal.
Rotate Keys
Planned rotation (recommended approach):
Create a new key:
sdm admin proxy-cluster-keys create <cluster-name>.Save the new access and secret keys securely.
Update your proxy worker deployments with the new credentials:
Update your Kubernetes manifests, Helm values, or deployment configurations.
Redeploy proxy workers.
Verify workers have restarted and are connecting with the new credentials.
Monitor the "Last Used At" timestamp to confirm the old key is no longer in use.
Delete the old key:
sdm admin proxy-cluster-keys delete <old-access-key>.
Emergency Rotation (Compromised Key)
Immediately create a new key:
sdm admin proxy-cluster-keys create <cluster-name>.Update and redeploy all proxy workers with the new credentials.
Delete the compromised key:
sdm admin proxy-cluster-keys delete <compromised-access-key>.
StrongDM cluster authentication is checked on every connection attempt, so workers using the old key will fail to connect once it's deleted.
Delete Keys
Use sdm admin proxy-cluster-keys delete to remove an authentication key from the cluster.
You can verify that a key is not in use by checking the "Last Used At" timestamp—if it hasn't been used recently, it's safe to delete.
Monitoring and Auditing
Track key usage:
List keys regularly:
sdm admin proxy-cluster-keys list <cluster-name>Review the "Last Used At" field to identify stale keys
Schedule periodic key rotation (e.g., quarterly) to maintain security
Audit trails:
Changes to proxy cluster keys are recorded in StrongDM audit logs
Monitor for unexpected key creation or deletion events
Best Practices
Secure Storage: Store proxy cluster secret keys in your organization's credential management system (e.g., Kubernetes secrets, HashiCorp Vault, AWS Secrets Manager). Never commit them to version control.
Principle of Least Privilege: Limit access to proxy cluster keys to the minimal set of personnel who manage proxy infrastructure.
Rotation Schedule: Establish a regular key rotation schedule (e.g., quarterly) regardless of whether you suspect compromise.
Monitor Usage: Regularly check which keys are actively in use via the
listcommand to identify unused credentials.Gradual Deployment: When rotating keys, update proxy workers in batches to ensure no disruption to client connections.
Overlap Window: Always create the new key before deleting the old key, maintaining an overlap window during worker updates.
Documentation: Document which proxy clusters use which keys, and when key rotations occur, for compliance and audit purposes.
Related Topics
Proxy Clusters: Overview of proxy cluster architecture and deployment
Bridged Proxy Clusters: Advanced proxy cluster configurations
CLI Commands:
sdm admin proxy-cluster-keyssdm admin proxy-cluster-keys createsdm admin proxy-cluster-keys listsdm admin proxy-cluster-keys delete
Troubleshooting
Proxy Workers Fail to Connect After Key Deletion
If workers stop connecting after you delete a key, they may still be configured with the old credentials:
Verify the workers are using the correct access and secret keys
Check that your deployment manifests or configuration files have been updated
Ensure workers have been restarted with the new configuration
Check logs for authentication errors
Lost Secret Key
If you lose a secret key:
Delete the key pair using the access key identifier:
sdm admin proxy-cluster-keys delete <access-key>Create a new key:
sdm admin proxy-cluster-keys create <cluster-name>Update worker deployments with the new credentials
Redeploy workers
Maximum Key Limit Is Reached
If you hit the four-key limit:
List all keys to identify which ones are no longer in use:
sdm admin proxy-cluster-keys list <cluster-name>.Delete unused keys:
sdm admin proxy-cluster-keys delete <access-key>.Create your new key:
sdm admin proxy-cluster-keys create <cluster-name>.
Last updated
Was this helpful?

