Environments
An environment is one of a project’s two separate sets of data. Every project has both from the start:
devis for building and tests. Its keys saytest.prdis for your product’s real customers. Its keys saylive.
Each environment has its own data in every service. A key or user token that says test reaches only dev, and one that says live reaches only prd, so nothing made in dev appears in prd. Build and test in dev, then issue prd keys when the product goes live, as Create a project and issue a key shows.
Test inbox
Email that dev sends to an address at .test waits in the project’s test inbox for an hour instead of being sent, so tests and agents sign principals in with made-up addresses and no mailbox. .test is a domain reserved for testing. Projects explains what happens to email outside the test inbox.
Only the project’s dev secret key, sk_test_…, reads the inbox, with one call: Read the test inbox. A sk_live_… key answers forbidden there. Each message holds its fields in data, such as code for a sign-in code.
Where to act on it
- Create a project and issue a key issues a key for each environment.
- Read the test inbox reads the
devemail held for.testaddresses.