Secrets and outside services
How your app gets API keys, and which outside services it may talk to.
Secrets#
- Secrets are values your app needs but nobody else should see: API keys, webhook secrets, signing keys.
- Add and fill them in the project’s Settings, Secrets. A secret without a value is not given to the app, so the feature that needs it stays off.
- When the AI builds something that needs a key, it asks Stackly to create the secret empty, with a note on where to get the value. It never asks you to paste the key in the chat.
- A key the app owns, such as a session signing key, can be filled with a random value for you.
- The app reads each secret by name from
env. Secrets cannot replace Stackly’s own bindings. - Secret values never go into chat, into the AI’s instructions, into shared snapshots, or into remixes. A remix gets only the names and notes, and its owner adds their own values.
Which hosts a live app may reach#
A live app may send requests only to the hosts listed in outbound in its stackly.json:
{
"outbound": ["api.stripe.com", "*.example.com"]
}- At most 20 hosts.
*.example.commatches the subdomains, notexample.comitself. - Only https on port 443, with no user name or password in the URL. IP addresses, localhost and ports are refused.
- Redirects are not followed; the app gets the redirect response.
- A blocked request gets a
403with the headerx-stackly-outbound: blocked, and is logged. - The list is fixed in each release. Editing stackly.json changes nothing until the next publish, and the publish review marks new hosts.
- Without the list, live sends nothing.
The outbox in the draft#
The draft and the publish rehearsal never send requests outside. They keep them in an outbox you can read, so you can see what the app would send, to where, without touching real services or real people.
Outside services are yours
The services your app talks to have their own terms, prices and limits. You choose them, you hold the accounts, and you are responsible for the data your app sends them. Give each key only the access it needs, and rotate it if it leaks. See Shared responsibility.