Overview
Xloud Identity is the authentication and authorization backbone for the entire platform. Hardening this service reduces the blast radius of credential compromise, limits lateral movement across projects, and ensures audit trails are maintained. This guide covers the complete security hardening checklist for production Identity deployments.Security Hardening Checklist
Enforce MFA for Admins
Require multi-factor authentication for all accounts with the
admin role. Configure
an MFA enforcement rule via the Identity service policy to block admin token issuance
without a valid TOTP factor.Rotate Fernet Keys
Schedule automated key rotation every 24 hours. XDeploy includes a cron-based rotation
playbook that synchronizes keys across all Identity API nodes simultaneously.
Minimize Token Lifetime
Set
keystone_token_expiration to 3600 seconds (1 hour) or less. Use application
credentials with explicit expiry dates for automation pipelines instead of long-lived
user tokens.Audit Role Assignments
Review role assignments quarterly. Remove the
admin role from any account that no
longer requires elevated access. Export full audit reports regularly.MFA Enforcement Policy
Enforce MFA for all accounts with theadmin role by configuring an auth rules policy:
/etc/xavs/keystone/policy.yaml — enforce MFA for admin token issuance
Apply MFA enforcement policy
Fernet Key Security
Verify key file permissions
Fernet keys must be readable only by the Identity service user:Expected:
Check key file permissions
600 keystone:keystone for all key files.Configure automated rotation
XDeploy globals: automated Fernet rotation
Apply rotation configuration
Role Assignment Auditing
Run quarterly access reviews to identify over-provisioned accounts:Export all role assignments
Find all admin role assignments
Find users with admin role in multiple projects
Network-Level Controls
Restrict Identity API access
Restrict Identity API access
The Identity API public endpoint (port 5000) should be accessible only from:
- Internal cluster networks
- VPN or bastion hosts for administrative access
- Dashboard and CLI clients via HAProxy
TLS configuration
TLS configuration
Ensure all Identity API endpoints use TLS with certificates from a trusted CA:
XDeploy globals: TLS configuration
Next Steps
Token Configuration
Configure Fernet key rotation schedules and token lifetime policies.
Policy Management
Customize RBAC policies and implement least-privilege access controls.
Multi-Factor Authentication
Enable TOTP enrollment for user accounts.
Admin Troubleshooting
Diagnose security-related authentication and authorization failures.