Self-hosted deployment is only available on certain plans. See plans and pricing.
What gets deployed
StackOne runs on a Kubernetes cluster inside a dedicated network. Its databases, storage, and secrets use your cloud provider’s managed services, except on GCP, where Redis runs inside the cluster. The diagram shows an AWS deployment.
Inside the cluster, every deployment runs:
- StackOne applications. The StackOne API with its background workers and data sync, the Dashboard, the identity provider (IDP) that handles sign-in, the connector registry, and the emailer.
- Supporting services. Kafka, Temporal, ClickHouse, and OpenSearch.
Provisioning stages
The StackOne Provisioner creates these resources with Terraform, in this order:- Bootstrap, once per cloud account. On AWS, this creates the account-wide IAM policy the Provisioner’s environments depend on.
- Infrastructure, once per environment. This creates the network, the Kubernetes cluster, the managed services, and the cluster add-ons, such as secret syncing and autoscaling.
- Applications, once per environment. This installs StackOne into the cluster with Helm, configured from what the infrastructure stage created.
Container images
StackOne publishes its container images to Harbor, a private container registry that StackOne hosts and that needs credentials to pull from. Your cluster gets images from Harbor either directly or through a registry you run:- Pull directly. The cluster pulls images from Harbor, using credentials StackOne provides.
- Mirror to your own registry. Images are copied into a registry you run, such as JFrog Artifactory, and the cluster pulls from there. Either your registry pulls from Harbor with credentials StackOne provides, or Harbor pushes to yours with credentials you provide.
The StackOne Provisioner
The StackOne Provisioner deploys and manages StackOne environments. Your team or StackOne signs in to its portal to create, update, and remove environments. In the StackOne-managed model StackOne hosts it, and in the self-managed model it runs in your cloud account.- Workspaces and scopes. A workspace holds everything for your deployments. A scope is the set of credentials for one cloud account or cluster, and every run is limited to what its scope allows.
- Nothing is applied without approval. The Provisioner plans the change and shows it, and a person approves it before it runs. Changes can be raised as pull requests instead, so they go through your normal code review.
- Changes run StackOne’s Terraform. An approved change runs the provisioning stages.
Who runs what
Access the StackOne Provisioner needs
The Provisioner runs Terraform with credentials for your cloud account, and every change it makes goes through that account’s own APIs. Before the first environment, it needs:- A workspace in the Provisioner, which scopes everything it creates.
- A Terraform state bucket in your account. On AWS it’s an S3 bucket named
stackone-tfstate-{account ID}, and on GCP a Cloud Storage bucket namedstackone-tfstate-{project ID}.
StackOne managed
You connect your cloud account to the StackOne Provisioner. On AWS, the Provisioner assumes an IAM role in your account, so StackOne never holds long-term keys for it. The role’s trust policy names the Provisioner’s AWS account as the only principal allowed to assume it. A CloudFormation template creates the roles for you:
To revoke access, delete the CloudFormation stack. That removes every role it created and their trust policies, and the Provisioner can no longer reach the account.
On GCP, you create a service account in your project with project-level roles, and add its key to the Provisioner.
Self-managed
The StackOne Provisioner runs inside your cloud account, under credentials your team controls, and you don’t share cloud credentials with StackOne. See Running the StackOne Provisioner yourself for what it needs.Inside the cluster
Each application gets its own cloud identity with access to only its own resources. The component that syncs secrets into the cluster can read only the secrets for its own environment, so environments that share an account can’t read each other’s credentials.Running the StackOne Provisioner yourself
In the self-managed model, your team installs the Provisioner into your own cloud account first, and then uses it to deploy StackOne. It runs on its own small Kubernetes cluster, or can be installed with Helm on an existing cluster running Kubernetes 1.26 or later. Before you install, you need:- Two hostnames, one for the portal and one for its terminal, with a certificate covering both.
- An identity provider for signing in to the portal: Google, Microsoft Entra ID, Okta, or Keycloak.
- A license for the Provisioner, separate from StackOne’s own licenses. Without one, it refuses to create workspaces or users, or to run changes.
Network
- One network per environment. Each environment gets its own network, with subnets spread across availability zones. Two zones is the default.
- Private Kubernetes API. On AWS, the cluster’s API endpoint is private by default. On GCP, the nodes have no public IP addresses.
- Private data stores. PostgreSQL and Redis have no public endpoint, and accept connections only from the cluster. Kafka, Temporal, ClickHouse, and OpenSearch run inside the cluster with no endpoint outside it.
- Outbound IP addresses. Outbound traffic leaves through a NAT gateway. On AWS, it comes from fixed IP addresses you can give providers that require an allowlist. On GCP, the addresses are allocated automatically, and can be fixed when a provider needs to allowlist them.
- Public and internal entry points. The applications people use are published through a public load balancer. Operator tools sit behind an internal load balancer reachable only over the environment’s VPN.
- Optional logging. VPC flow logs, kept for 30 days, and Kubernetes control plane logs can be switched on per environment.
Domains and certificates
Each environment gets its own domain, delegated to a DNS zone in your account, and a certificate for it from your cloud’s certificate service. Every application is published on a subdomain of it:
The subdomain names can be changed per deployment. On GCP, you add the zone’s name servers to your parent domain yourself, and the certificate isn’t issued until you do.
Encryption and secrets
Data is encrypted at rest and in transit:- PostgreSQL. Storage is encrypted.
- Redis. Encrypted at rest, and connections use TLS.
- Object storage. Encrypted server-side, with versioning on and all public access blocked.
- Cluster volumes. Created from an encrypted storage class.
Credentials you supply
Some features call services outside your cloud account, and those need credentials only you can provide. The StackOne Provisioner creates a placeholder for each one, and the features that use it don’t work until you replace the placeholder with a real credential:- AI models, for features that use a large language model.
- Email delivery, through an SMTP service.
- Single sign-on to the Dashboard, through Google, Okta, or Microsoft Entra ID.
- Analytics and billing, for product usage reporting.
Licensing
An on-premises deployment runs on one or more license files that StackOne issues and signs. A license sets what the deployment is entitled to, for how long, and where it can run. Each license is a.lic file named stackone-license-{license ID}.lic.
How licenses are checked
StackOne verifies each license inside your deployment, against signing keys built into StackOne’s code. Checking a license never calls out to StackOne, so a deployment with restricted outbound access stays licensed. The keys can’t be replaced or added to through configuration, so only a license StackOne signed is accepted. The signature covers every byte of the file. Opening a license in an editor and saving it can change its line endings and break the signature, so keep it exactly as downloaded.What a license contains
- Licensee. The organization the license is issued to.
- Validity. The date it starts and the date it expires.
- Features. Which features are switched on, and amounts such as credits.
- Domain lock, optionally. A list of domains the license is valid in. A deployment whose domain isn’t in the list, or a subdomain of one, ignores the license. A license with no list is valid anywhere.
- Grace period. How long the license keeps working after it expires. The default is 14 days, and a license can set anywhere from none up to 90.
Delivering and renewing a license
The StackOne Provisioner writes your licenses into the deployment on every run, and they reach running services without a restart. A new license is picked up within about a minute. A deployment can hold several licenses at once, such as a base license and an add-on:- Amounts add up. A base license granting 3 projects and an add-on granting 2 give 5 while both are in force.
- The newest license decides switches. Where licenses disagree on whether a feature is on, the most recently issued one wins.
- Each license runs on its own dates. A renewal that arrives late doesn’t switch features off, because the old license is still in its grace period. A license in its grace period only fills gaps, and stops counting for any feature a current license covers.
Credits
A license grants StackOne credits, and each action call spends one. A grant is either a total for the license’s whole term, or an amount per day, month, or year that renews each calendar period from the license’s start date. The final period is prorated if the license ends partway through it. Usage is counted from the actions the deployment has recorded, and the count refreshes about once a minute. A burst of calls can pass the grant by up to a minute’s worth before further calls are refused. If usage can’t be counted, the grant stands, so a counting problem never locks the deployment out.Check your licenses
The Licenses page in the identity administration console lists every license file in the deployment and whether it’s in force. For a rejected license, it names the reason, such as a damaged signature or a domain the license isn’t valid in. The console is reachable over the deployment’s VPN, atidp-admin.{domain}.
In the self-managed model, the StackOne Provisioner needs its own license, separate from StackOne’s. See Running the StackOne Provisioner yourself.
Updates
Each StackOne release is a new set of container images. The applications stage installs them with Helm, without re-planning the network or the cluster. Database migrations run once per release. You don’t have to take every release as it ships. In the StackOne-managed model, StackOne applies upgrades at a frequency and in maintenance windows agreed with you. In the self-managed model, your team decides when to upgrade. If an upgrade fails, it’s retried once. If it fails again, it’s rolled back to the last working release automatically.High availability and backups
These are set per deployment:- Availability zones. How many zones the network and cluster span. On GCP, production clusters are regional and other environments are zonal.
- Database backups. How many days of automated backups are kept.
- Deletion protection. Whether the cluster and databases can be deleted without first turning it off.
Related
Deployment Models
Compare every deployment model, from multi-tenant to self-managed.
Scope a deployment
Talk to StackOne about running StackOne in your own cloud account.