Configuring a Private Stack
A private stack runs the same platformOS as the shared platform, but many settings that are fixed on the shared platform can be adjusted to your needs: where the stack runs, which provider accounts it uses, how it is protected and backed up. This article explains what you can configure, where each setting lives, and how to change it.
Configuration levels
Settings on a private stack live at one of three levels:
| Level | Applies to | Who changes it | How |
|---|---|---|---|
| Stack | Every instance on the stack | The platformOS team | On request, through infrastructure code and the stack's secrets store |
| Partner Portal | Every instance managed by the Partner Portal, on any of the private stacks it manages | The platformOS team | On request, through the Partner Portal's secrets store |
| Instance | One instance | You | In the Partner Portal, or with the Partner Portal API |
When the same setting exists at more than one level, the most specific one wins: an instance's own configuration takes precedence over the stack's defaults. For example, an instance with its own SendGrid API key sends emails with it, while all other instances on the stack use the stack's key.
What you can configure
| Area | Level | What you decide | Learn more |
|---|---|---|---|
| Cloud provider and region | Stack | Where the stack runs, for example to keep data in your country | What is a Private Stack? |
| Backups | Stack | Backup schedule and retention, agreed per engagement | Security and Disaster Recovery |
| Web application firewall | Stack | Cloudflare WAF rules for proxied hostnames, and custom rule sets at the stack's ingress | What is a Private Stack? |
| Email delivery | Stack, Partner Portal, Instance | The SendGrid account and sender domains your emails are sent with | Sending Emails from a Private Stack |
| SMS delivery | Partner Portal, Instance | The Twilio account and phone numbers your text messages are sent with | Sending SMS from a Private Stack |
| Domains and DNS | Instance | The domains your instances are served on, backed by Cloudflare | Domains and DNS API (private stack) |
| Test email | Instance | Where emails sent from staging instances are redirected | Configuring a Test Email |
| Instance configuration | Instance | Integrations and other per-instance settings | Updating Instance Configuration |
Changing a stack or Partner Portal setting
Stack and Partner Portal settings are part of the stack's infrastructure, so the platformOS team applies them for you:
- Contact the platformOS team through the channel agreed for your engagement, and describe the change, for example "send emails from all instances with our own SendGrid account".
- If the change needs credentials, such as an API key, the platformOS team tells you exactly which credentials to provide and what permissions they need. The configuration articles in this section list them for each provider.
- Share the credentials only through the secure channel agreed for your engagement, never in plain email or in a support ticket.
- The platformOS team applies the change and confirms when it is live. You then verify it as described in the relevant article.
How credentials are stored
- Stack and Partner Portal credentials are kept in the secrets store of your stack or Partner Portal. They are never stored in the code or in an instance's configuration, and are only available to the services that use them.
- Instance credentials that you save in an instance's configuration apply to that instance only.
When you rotate a credential at the stack or Partner Portal level, send the new one to the platformOS team, and revoke the old one only after they confirm that the new one is in use.
Changing an instance setting
Instance settings are under your control. In the Partner Portal, open your instance, and then:
- Use Integrations to connect providers, such as SendGrid or Twilio, through the Partner Portal account.
- Use Update Configuration to edit the instance's configuration directly, for example to set your own provider credentials or a test email address.
- Use Domains to add the domains your instance is served on, or automate it with the Domains and DNS API.
Changes to an instance's configuration take effect for that instance only, and do not affect other instances on the stack.