Docs

Private Alien Instance

A Private Alien Instance runs the Alien manager, the server that talks to your deployments, in your own AWS, Google Cloud, or Azure account. Your customers' deployment traffic and logs stay in your cloud, with no new subprocessor for them to review.

Architecture diagram. Deployments (Push: native identity, Pull: Operator) exchanges traffic with the Private Alien Instance (Rollouts, Heartbeats, Logs, Commands), via https 443.

The manager runs in your account. Push deployments are reached through cloud identity; pull deployments connect out to it.

One command starts the setup:

alien managers create --cloud aws --region us-east-1 --open

The manager rolls out releases, receives heartbeats and logs, and delivers commands to your deployments. Alien runs one for you by default. With a Private Alien Instance, Alien still builds releases and monitors the manager, but deployment traffic and logs go to your account.

New deployments connect to their cloud's default manager, so decide which one to use before the first customer deploys.

When to use one

  • No new subprocessor. Your customers' deployments talk to your cloud, not to Alien's.
  • Logs stay in your account. The manager stores deployment logs in your own bucket, and the browser reads them directly. The Logs page shows End-to-end encrypted.
  • Values stay in your account. The Private Alien Instance stores deployment environment variables and secret inputs set after its values key exists, sealed with a key you own. See Deployment values.
  • Your region and network. Choose the region, and give pull deployments a custom endpoint domain.

Private Alien Instances need the Pro plan.

Create one

Open Settings → Private Alien Instances in your project and choose a cloud.

Pick a region and start setup. Each cloud uses its own method:

CloudSetup
AWSLaunch CloudFormation stack in your account.
Google CloudSign in with Google and choose the project to host the manager.
AzureRun Terraform in your Azure subscription with the generated main.tf.

Wait until the manager is Healthy. Alien deploys and updates it from then on.

The same from the CLI:

alien managers create --cloud aws --region us-east-1 --open
alien managers status mgr_9t4k2x --watch

Use --setup cloudformation, google-oauth, or terraform to choose the method, and --network default to reuse the account's default network for a test manager.

Route deployments to it

Each project has a default manager per cloud. New deployments use it:

  • Push deployments in the same cloud are reached through that cloud's native identity, such as an IAM role.
  • Kubernetes pull deployments, Machines deployments, and Single machine pull deployments connect outbound to it over HTTPS.

Set the defaults on the same page, or from the CLI:

alien managers defaults set --cloud aws --manager mgr_9t4k2x
alien managers defaults show

When a CLI command falls back to the Alien-hosted manager for a cloud, it prints a warning on stderr and continues. The warning never goes to stdout, so --json output stays parseable.

If you expected your Private Alien Instance, run alien managers defaults show and set the default for that cloud.

Update a Private Alien Instance

Alien rolls out new releases to a Private Alien Instance like to any deployment. When a release adds an optional resource that initial setup creates, such as the key that keeps deployment values in your account, the Private Alien Instance takes the release without it and keeps running. See Optional frozen resources.

To turn the resource on, run its initial setup again:

Open the Private Alien Instance in Settings → Private Alien Instances. Workspace admins see Action required: Update the CloudFormation stack.

Select View steps. The dashboard prepares the update: the newest template URL and a new Token for the stack.

In AWS, open the stack, choose Update stack, then Replace existing template, and paste the template URL. Set the parameters the steps list, such as InputValuesKey: true and the new Token, and keep the others as they are.

Submit the update.

The stack's original setup token has expired by then, so the update needs the new one. Each new token is valid for 7 days. Earlier ones aren't revoked, so an update a teammate already started with one still works.

The dashboard offers this only for a Private Alien Instance set up with CloudFormation on AWS. It also waits until the Private Alien Instance runs a release that can turn the values key on safely. Until then, the notice doesn't appear, and preparing the update over the API fails with PRIVATE_MANAGER_UPDATE_REQUIRED.

Endpoint domain

Pull deployments reach the manager at its endpoint. Keep the Default manager endpoint, or select a verified domain from Settings → Domains. The endpoint shows Active once pull targets can use it.

Deployment values

On Alien Cloud's hosted manager, Alien holds deployment values in its own account. A Private Alien Instance with a values key holds these in yours:

  • environment variables, plain and secret
  • secret stack inputs
  • plain stack inputs that only you provide and that Alien doesn't need to plan the deployment

Plain inputs the deployer provides, inputs that turn a resource on or decide whether another input applies, and generated plain values stay with Alien, because setup templates and planning need them.

Values set before the key existed also stay with Alien. See Existing Private Alien Instances.

Each value is sealed with the values-key that initial setup creates in your account: an AWS KMS key, a Google Cloud KMS key, or an Azure Key Vault key. For these values, Alien keeps only metadata: the name, whether it's a secret, when it changed and who changed it, and a keyed digest that shows a value changed without revealing it.

  1. 1

    Ask for a tokenAlien

    Alien checks that you may change the deployment and returns a 5-minute token and the Private Alien Instance's URL.

  2. 2

    Send the valueyour account

    The dashboard, CLI or API sends the value to the Private Alien Instance with the token. It seals the value with your key.

  3. 3

    Record metadataAlien

    The Private Alien Instance returns the name, kind and a keyed digest. Alien stores only that.

The dashboard, the CLI, and the API send values straight to the Private Alien Instance, over https. Alien only issues the short-lived token and records the metadata it returns. When you edit an existing deployment, the form says Stored in Private Alien Instance: <name> and that values go from your browser straight to it.

In the CLI, this covers secret-kind --input and --secret-input, with or without --token. alien deployments create --env and --secret send only the variable names to Alien, and the values go to the Private Alien Instance.

  • The Private Alien Instance decrypts a secret value only when it deploys it.
  • Secret values are write-only: no client can read one back.
  • Plain values it stores are read from the Private Alien Instance, not from Alien.

A request that sends one of these values to Alien instead, from an older CLI or an API call with the value in the request body, is refused with ALIEN_CLI_UPGRADE_REQUIRED. Update the CLI and run the command again.

Generated secrets

A generated secret is created inside the Private Alien Instance by the first deploy that needs it, and is never regenerated. Entering a value replaces it. A secret Alien generated before the values key existed stays with Alien, and the Private Alien Instance doesn't generate a second one. A generated input can't be cleared; see Change inputs later.

Values still sent to Alien

Values entered before the deployment exists still go to Alien: answers for a setup link or in the deployment portal, and the yes/no answers the CLI sends before it creates a deployment. Values for a whole project or deployment group also go to Alien.

Existing Private Alien Instances

A Private Alien Instance set up before the values key existed has none, and Alien hosts its values, encrypted with the project key. To store new values in your account, run its initial setup again with Keep deployment values in your account (InputValuesKey) set to true.

On AWS, open the Private Alien Instance in Settings → Private Alien Instances, and select View steps on Action required: Update the CloudFormation stack. The notice appears once the Private Alien Instance runs a release that can turn the key on safely. The dashboard prepares this update only for a Private Alien Instance set up with CloudFormation.

Once the key exists, values set from then on are stored in the Private Alien Instance. Values its deployments already had stay with Alien, and those deployments keep deploying with them. Generated secrets are not regenerated. A new value you enter for an existing deployment is stored in the Private Alien Instance.

When the key is unavailable

If the key is disabled, deleted, or the Private Alien Instance's role can't use it, writing or deploying a value fails with VALUE_STORE_KEY_UNAVAILABLE. For the values it stores, the Private Alien Instance never deploys an empty value and never falls back to Alien's copy.

The Private Alien Instance caches each deployment's data key for up to 5 minutes, so a disabled key can take that long to block deployments that were using it. Re-enable the key and retry; deployments recover without re-entering values.

If the key is deleted, the values sealed with it can't be recovered, and the Private Alien Instance can't store new values until it's repaired. Contact Alien support.

If the Private Alien Instance's own store is lost, its values are lost too. Set them again from the dashboard or CLI.

When it isn't reachable

A Private Alien Instance that stored values can stop reporting that it can load them, for example after a rollback to an older build. Saving a value then fails with Private Alien Instance: <name> isn’t reachable. Try again. Nothing new is sent to Alien. Try again once the Private Alien Instance is healthy.

Operate it

alien managers list
alien managers events mgr_9t4k2x --follow
alien managers retry mgr_9t4k2x
alien managers delete mgr_9t4k2x

alien logs --manager mgr_9t4k2x searches the logs stored by one manager.

Next

On this page