Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Arvo-AI/aurora/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Aurora provides token management capabilities for both user authentication and cloud provider credentials. This includes password management and secure token storage using HashiCorp Vault.Change Password
Endpoint
Headers
User ID from Auth.js session
Request Body
User’s current password
New password (minimum 8 characters)
Response
Success message confirming password change
Example Request
cURL
JavaScript
Python
Example Response
Cloud Provider Token Management
Aurora securely manages cloud provider credentials using HashiCorp Vault.Token Storage Architecture
- Vault Storage: Credentials stored in Vault’s KV v2 engine
- Database References: Only secret references stored in PostgreSQL
- Token Refresh: Automatic refresh for OAuth2 tokens (GCP, Azure)
- Encryption: All credentials encrypted at rest in Vault
Supported Providers
- GCP: OAuth2 tokens with automatic refresh
- AWS: IAM role assumption with STS credentials
- Azure: Service principal credentials
- Other Providers: Grafana, Datadog, Netdata, Scaleway, Tailscale, Splunk, Slack, Coroot, Bitbucket, ThousandEyes
Token Storage
Tokens are stored using thestore_tokens_in_db function:
Token Retrieval
Retrieve tokens using theget_token_data function:
Token Refresh
OAuth2 tokens are automatically refreshed:Vault Configuration
Configure Vault using environment variables:Secret References
Vault secrets are referenced in the database:vault:prefix indicates Vault storagekv/data/is the KV v2 API pathaurora/users/is the base pathaurora-dev-user123-gcp-tokenis the secret name
Security Best Practices
Password Security
- Strong Passwords: Enforce minimum 8-character passwords
- Bcrypt Hashing: Use bcrypt with automatic salt generation
- No Plaintext: Never store or log passwords in plaintext
- Rate Limiting: Implement rate limiting on password change endpoint
Token Security
- Vault Storage: Store all credentials in Vault, not database
- Encryption: Enable encryption at rest in Vault
- Access Control: Use Vault policies to restrict access
- Secret Rotation: Regularly rotate credentials
- Audit Logging: Enable Vault audit logs
Error Handling
| Status Code | Description |
|---|---|
| 200 | Operation successful |
| 400 | Invalid request (validation error) |
| 401 | Authentication required or invalid |
| 404 | User or resource not found |
| 500 | Internal server error |
Related Documentation
Authentication Overview
Learn about authentication
Login
Authenticate users
Vault Integration
HashiCorp Vault setup