License Keys
License keys connect your servers to your PatchCTL organization.
What is a License Key?
A license key:
- Identifies your organization
- Authorizes agent connections
- Links servers to your account
- Counts against your node quota
Format: pk_live_ followed by alphanumeric characters.
Viewing Your License Key
Only organization owners can view the full key:
- Go to Settings → Account
- Find License Key section
- Click Show to reveal
Keep Your Key Secret
- Don't commit to public repositories
- Don't share in screenshots
- Treat like a password
Using Your License Key
During Installation
curl -fsSL https://install.patchctl.com | sudo bash -s -- --key=YOUR_LICENSE_KEY
In Agent Configuration
{
"license_key": "pk_live_abc123..."
}
Located at: /etc/patchctl/config.json
Regenerating Keys
If your key is compromised:
- Go to Settings → Account
- Click Regenerate Key
- Confirm regeneration
Breaking Change
Regenerating invalidates the old key immediately. All agents using the old key will lose connectivity until updated.
Updating Agents After Regeneration
On each server:
# Edit config
sudo nano /etc/patchctl/config.json
# Update license_key value
# Restart agent
sudo systemctl restart patchctl
Key Security Best Practices
- Limit access - Only owners should view the full key
- Use environment variables - For automated deployments
- Rotate if exposed - Regenerate immediately
- Audit usage - Monitor for unauthorized servers
- Secure storage - Use secrets management in CI/CD
Troubleshooting
"Invalid license key" Error
- Verify the key is copied correctly
- Check for extra spaces or characters
- Confirm key matches your organization
- Try regenerating if issues persist
Servers Not Linking
- Verify network connectivity to API
- Check agent logs for errors
- Ensure key in config matches dashboard