You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs main page
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

App Secrets and Multiple Checkouts

If you use Anvil’s App Secrets to store secret data, then the values are encrypted with an encryption key that is unique to your app. This means that if you sync your source code between multiple Anvil apps (for example, using a shared GitHub repo), the secrets you configure with one app will not be available in another.

Instead, Anvil’s App Secrets can contain multiple values for each secret or key, distinguished by which app they apply to. If you are using the same source code across multiple apps, you will have to set the value for each secret in each app.

The open-source App Server cannot decrypt any of these secrets, as it runs outside the Anvil hosted service. If you are using the App Server, you must supply values for each secret on the command line or in a configuration file.

Do you still have questions?

Our Community Forum is full of helpful information and Anvil experts.