Key types
Foveus supports two key types:| Key type | Created by | Use for |
|---|---|---|
| Test key | Created automatically during onboarding | Local development, sandbox testing, QA, and private beta setup |
| Live key | Created manually from Settings | Production telemetry |
Test keys
Your test key is created automatically during onboarding. Use it for:- local development
- sandbox services
- QA environments
- staging validation
- SDK setup
Mode when using a test key.
During private beta, test keys cannot be rotated from the Settings page. Rotation controls will be added later.
Live keys
Create a live key only when you are ready to send production telemetry. Use a live key withMode: "live".
Store keys safely
Do not hardcode API keys in production code. For local development, use .NET user secrets:- Azure Key Vault
- AWS Secrets Manager
- Google Secret Manager
- Kubernetes secrets
- Docker secrets
- Render environment variables
Use environment variables
Most .NET apps can read configuration from environment variables. For a nested configuration value like:Do not expose keys to browsers
Foveus API keys are server-side secrets. Do not use them in:- frontend JavaScript
- mobile apps
- browser extensions
- public repositories
- static websites
Keep test and live keys separate
Use test keys for non-production telemetry. Use live keys for production telemetry. Do not use a test key in production. Do not use a live key in local development.Permissions
During private beta, Foveus API keys are created with permissions needed to ingest telemetry. A key may allow telemetry ingestion for:- executions
- logs
- metrics
- context
- issue evidence
Rotate live keys
Rotate a live key if:- the key was exposed
- a team member with access leaves
- your security policy requires periodic rotation
- you are replacing an old production key
- Create a new live key in Settings.
- Update your service secret.
- Redeploy or restart your service.
- Confirm telemetry is arriving with the new key.
- Disable or delete the old key.
During private beta, this rotation flow applies to live keys only. Test key rotation from Settings is not available yet.
If a key is exposed
If a live key is exposed:- Create a new live key.
- Update your service configuration.
- Deploy the new key.
- Confirm telemetry is arriving.
- Disable or delete the exposed key.
Logging safety
Never log your API key. Avoid logging full configuration objects if they include secrets. If an API key appears in logs:- Remove or mask the log.
- Rotate the key if rotation is available.
- Check whether the key was shared outside your team.
Example production setup
ApiKey in a secret manager and keep the remaining non-secret options in app configuration.
Troubleshooting
Telemetry does not appear
Check that:- the API key is correct
- the key mode matches the dashboard mode
- the service can reach Foveus
- the SDK is loading the expected configuration
- the service was restarted after changing the key
Telemetry appears in Test mode
Foveus defaults to Test mode. If this is production telemetry, use a live key and set:A key was committed to source control
Remove the key from source control and rotate it if possible. If the key appears in Git history, treat it as exposed.Next steps
- Create an API key: Create an API key
- Configure the SDK: SDK configuration
- Review data safety and retention: Data safety and retention
- Configure redaction: Redaction