Authentication
Where to put secrets
Secret keys belong on servers you control—never in mobile or browser apps.
Overview
The secret can read wallet portfolios, prepare transfers, and broadcast signed payloads for any address you supply. Keep it only in environments you control.
Do
- Store in a secrets manager or encrypted env vars (staging and production separately)
- Inject at runtime into your API workers, serverless functions, or containers
- Use a dedicated project (and secret) per environment
- Let mobile / browser apps call your API; your API calls Gray3
Do not
- Commit
gray_sk_…to git, CI logs, or issue trackers - Embed the secret in mobile binaries, browser bundles, or public repos
- Share one production secret across all contractors and staging boxes
Project ID in clients
The project ID alone is not a credential for Cloud routes—you still need the secret. Most apps keep both server-side. Non-custodial wallet signing uses client SDKs and local keystores; that is separate from the Cloud secret.
Workspace detail: Keep secrets server-side.