Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nuon.co/llms.txt

Use this file to discover all available pages before exploring further.

Nuon can install Nuon on your cloud. Please reach out to sales.

Architecture

Nuon Cloud manages your BYOC control plane as an install — the same way your control plane will manage installs for your own customers. Upgrades, provisioning, and lifecycle operations are all driven remotely by Nuon. Cloud SQL backs both the Nuon control-plane database and Temporal’s database; the two run as separate Cloud SQL instances and are sized independently through the inputs.

Requirements

GCP Project

You’ll need a GCP project. The install stack provisions a VPC and other network primitives, so make sure your account has IAM permissions to create those resources and the project has not hit quota limits for VPCs, Cloud SQL instances, or GKE clusters.

DNS

Root DNS

You will need to expose the Nuon APIs and Dashboard, which requires DNS. For example, if you wanted to host Nuon BYOC at nuon.my-domain.com, complete the following steps.
  1. Before installation, create the DNS zone my-domain.com if it does not already exist.
  2. Provide nuon.my-domain.com as the value for the Root Domain input.
  3. Once Nuon BYOC has fully provisioned, the Cloud DNS nameservers for the install will be available in the outputs.
  4. Create an NS record named nuon.my-domain.com using the Cloud DNS nameserver values.
  5. Once propagation is complete, the Nuon Dashboard should be reachable at app.nuon.my-domain.com.
Nuon will provision the following subdomains under the domain you configure. Only the runner API needs to be exposed to the Internet. The rest can be private to your network.
SubdomainServicePublic
appThe vendor dashboard
apiThe control plane API, used by the Vendor Dashboard and the CLI
adminThe admin API. Exposes functionality for administration of the control plane
runnerThe API used by runners to communicate with the control planetrue
slackThe Slack integration listener (OAuth callback, slash commands, events, interactions). Provisioned on every install — active once Slack credentials are configured.true
The Nuon Dashboard uses cookies for authentication, and they will be shared on all subdomains of the provided root domain. We strongly recommend creating a Nuon-specific subdomain to avoid leaking auth cookies.

Delegation DNS

If you don’t want your customers to set up DNS when installing your app, you can configure DNS delegation: a unique subdomain is provisioned for each install under a shared subdomain you control. In Nuon Cloud, for example, installs land at inl160z2xmng8w1jnq0xxhelln.nuon.run. To brand this subdomain so your customers see your domain instead of nuon.run (e.g. <install-id>.installs.your-domain.com), see Custom Domains.

GitHub App

Create a GitHub App so Nuon can clone code for components from private repos. You’ll share the App ID, Client ID, app name, and PEM key with Nuon — Nuon configures them on your install.
  1. Go to GitHub App Settings and click New GitHub App.
  2. Configure the app with these settings:
SettingValue
GitHub App nameChoose any name (e.g., “Nuon BYOC”)
Homepage URLhttps://app.<your-root-domain>
Setup URLhttps://app.<your-root-domain>/connect
Redirect on UpdateChecked
WebhookUnchecked
  1. Set permissions:
PermissionAccess
ContentsRead-only
  1. Under “Where can this GitHub App be installed?”, select Only on this account (unless you need to access repos in other GitHub organizations).
  2. Click Create GitHub App.
  3. After creation, scroll to the bottom and click Generate a private key. Save the PEM file — you’ll provide it as a secret later.
  4. Note the App ID and Client ID from the app settings page — share these along with the app name and PEM file with Nuon.

Google OAuth

Nuon BYOC on GCP currently supports Google as the OIDC provider.
  1. Go to the Google Cloud Console and create or select a project.
  2. Navigate to APIs & Services > Credentials.
  3. Click Create Credentials > OAuth client ID and select Web application as the application type.
  4. Configure the OAuth client:
SettingValue
NameBYOC Nuon (or any name)
Authorized JavaScript originshttps://auth.<your-root-domain>
Authorized redirect URIshttps://auth.<your-root-domain>/auth
  1. Save the Client ID and Client Secret — you’ll need them for the install inputs and secrets.

Slack App (Optional)

If you would like Nuon BYOC to send notifications to your Slack workspace, you can configure a Slack app for it to integrate with. This is optional. You can skip this, or enable it later.
Since the Slack app requires secrets, enabling it later will require reprovisioning the install, so you can provide these secrets to the Stack.
Create the Slack app from the manifest below — it pre-configures scopes, the /nuon slash command, interactivity, and event subscriptions. You can edit any of these later from the Slack app’s settings.
  1. Copy the manifest below into a scratch buffer and replace both occurrences of <your-root-domain> with your actual root domain (e.g. nuon.my-domain.com). The host is the slack. subdomain in front of your install.
    display_information:
      name: Nuon
      description: Nuon BYOC deployment notifications in Slack.
      background_color: "#0b0b0f"
      long_description: |
        Nuon posts deployment lifecycle events from your installs, sandboxes,
        runners, and actions into the Slack channels you choose. Subscribe per
        org, filter by interest (failures, components, sandboxes, runners,
        actions).
    
    features:
      bot_user:
        display_name: Nuon
        always_online: true
      slash_commands:
        - command: /nuon
          url: https://slack.<your-root-domain>/slack/commands/nuon
          description: Manage Nuon notifications in Slack
          usage_hint: subscribe [install] | unsubscribe | status | help
          should_escape: false
    
    oauth_config:
      redirect_urls:
        - https://slack.<your-root-domain>/slack/oauth/callback
      scopes:
        bot:
          - chat:write
          - chat:write.public
          - channels:read
          - groups:read
          - team:read
          - commands
      pkce_enabled: false
    
    settings:
      org_deploy_enabled: false
      socket_mode_enabled: false
      token_rotation_enabled: false
      is_mcp_enabled: false
      interactivity:
        is_enabled: true
        request_url: https://slack.<your-root-domain>/slack/interactions
        message_menu_options_url: https://slack.<your-root-domain>/slack/interactions
      event_subscriptions:
        request_url: https://slack.<your-root-domain>/slack/events
        bot_events:
          - app_uninstalled
          - tokens_revoked
          - channel_rename
          - channel_archive
          - channel_left
    
  2. Go to Slack API: Your Apps and click Create New App → From a manifest. Select your own Slack workspace as the development workspace — this is where you’ll manage the app’s settings going forward. Customers will install the app into their own workspaces later via OAuth. Paste the manifest and create the app.
  3. Under Basic Information, copy your Client ID, Client Secret, and Signing Secret — you’ll provide these to Nuon as inputs and secrets.

Provision the Install Stack

Nuon will share an install.tfvars file with the values specific to your install. Apply the install stack module from the nuonco/install-stacks repo to provision the VPC, GKE cluster, Cloud SQL instances, Cloud Storage buckets, Artifact Registry, IAM service accounts, and Secret Manager that Nuon BYOC runs on.

1. Clone the install stack module

git clone https://github.com/nuonco/install-stacks.git
cd install-stacks/gcp
Create a backend.tf file to store Terraform state in GCS.
backend.tf
terraform {
  backend "gcs" {
    bucket = "<your-state-bucket>"
    prefix = "nuon/<your-install-id>"
  }
}

3. Save the install configuration

Save the install config Nuon shared with you as install.tfvars. The values fall into two categories. Provided by Nuon — these come from your install record and Nuon will share them with you:
VariableDescription
nuon_install_idYour Nuon install ID.
nuon_org_idYour Nuon org ID.
nuon_app_idThe Nuon app ID for the BYOC Nuon control plane.
runner_api_urlThe Nuon Runner API URL (typically https://runner.nuon.co).
runner_api_tokenThe auth token your Nuon Runner uses to poll Nuon Cloud.
runner_idThe Nuon Runner ID assigned to this install.
runner_init_script_urlURL to the runner bootstrap script.
phone_home_urlThe phone-home URL for the Runner heartbeat.
Configured by you — these define what the runner is allowed to do in your project:
VariableDescription
provision_predefined_rolePre-defined GCP role used as the base during provision (default roles/owner).
maintenance_predefined_rolePre-defined GCP role used during ongoing maintenance (default roles/owner).
deprovision_predefined_rolePre-defined GCP role used during deprovision, automatically disabled after use (default roles/owner).
provision_permissionsAdditional IAM permissions granted to the runner during provision.
maintenance_permissionsAdditional IAM permissions granted during ongoing maintenance.
deprovision_permissionsAdditional IAM permissions granted during deprovision.
break_glass_rolesMap of emergency-access roles for incident response. Empty by default.
custom_rolesMap of custom IAM roles to create in your project.
install_inputsOptional map of install input overrides. Usually left empty here and configured later in the Nuon dashboard.
auto_generate_secretsNames of secrets Nuon should auto-generate during provisioning (e.g. clickhouse_cluster_pw).

4. Apply the install stack

terraform init
terraform apply -var-file=install.tfvars
The Nuon Runner deployed in your project will then poll Nuon Cloud for jobs to deploy the control plane components.

Inputs

Once the install stack is applied, share these values with Nuon — Nuon configures them on your install.

DNS Configuration

InputValue
Root Domain (root_domain)The root domain from which Nuon services are served (e.g. nuon.my-domain.com).
Install DNS Delegation Domain (nuon_dns_domain)Domain used to provision Cloud DNS zones for installs (e.g. installs.my-domain.com).

GitHub Configuration

InputValue
GitHub App Name (github_app_name)Name of your GitHub App.
GitHub App ID (github_app_id)App ID from the app settings page.
GitHub App Client ID (github_app_client_id)Client ID from the app settings page.

OIDC Authentication

InputValue
Auth Provider Type (nuon_auth_provider_type)google
Auth Client ID (nuon_auth_client_id)Client ID from your Google OAuth credentials.
Auth Issuer URL (nuon_auth_issuer_url)https://accounts.google.com
Auth Redirect URL (nuon_auth_redirect_url)https://auth.<your-root-domain>/auth
Allowed Domains (nuon_auth_allowed_domains)Comma-delimited list of email domains allowed to sign in (e.g. mycompany.com).
Allow All Users (nuon_auth_allow_all_users)true to allow anyone matching Allowed Domains; false to require explicit user provisioning.

Nuon Configuration

InputValue
Environment (env)prod (use dev only if instructed by Nuon support).
Runner Image URL (runner_image_url)Image URL for runners managed by this control plane.
Runner Image Tag (runner_image_tag)Image tag for runners.

Email (Optional)

InputValue
Loops API Key (loops_api_key)Loops API key for transactional emails (welcome, invites, etc.).

Datadog (Optional)

InputValue
Datadog Enabled (datadog_enabled)true to ship logs and metrics to Datadog.
Datadog API Key (datadog_api_key)Datadog API key.
Datadog App Key (datadog_app_key)Datadog application key.

Cloud SQL Tiers (Optional)

InputValue
Cloud SQL Instance TierTier for the Nuon control-plane database.
Temporal Cloud SQL Instance TierTier for Temporal’s database.

Slack Configuration (Optional)

Provide these only if you created a Slack app in the Slack App section. Leave blank to disable the Slack integration.
InputValue
Slack Client ID (slack_client_id)Client ID from your Slack app’s Basic Information page.
Slack OAuth Redirect URL (slack_oauth_redirect_url)https://slack.<your-root-domain>/slack/oauth/callback

Secrets

When provisioning the install stack, provide these secrets:
SecretValue
github_app_keyYour GitHub App PEM key (paste directly — Terraform preserves newlines).
auth_client_secretClient secret from your Google OAuth credentials.
slack_client_secretClient Secret from your Slack app (optional — required only if using Slack).
slack_signing_secretSigning Secret from your Slack app (optional — required only if using Slack).
slack_state_jwt_secretA random high-entropy string (e.g. openssl rand -hex 32); signs the OAuth state JWT during Slack installation. Optional — required only if using Slack.

Reprovision the install

Once all inputs and secrets are configured:
  1. Return to your install in the Nuon dashboard.
  2. Click Reprovision Install from the Manage menu.
  3. Wait for the provision workflow to complete.

Configure DNS (Optional)

To host your BYOC Nuon instance under a custom domain, configure DNS for your root domain to point to the Cloud DNS zone created in the sandbox. After the sandbox provisions, you’ll receive:
  • A Zone Name for your public domain.
  • Nameserver records to add to your domain’s DNS.
Create NS records in your domain’s DNS pointing to the Cloud DNS nameservers provided.

Verify Installation

After successful provisioning, verify your installation by visiting these URLs.
ServiceURL
Dashboardhttps://app.<your-root-domain>
CTL APIhttps://api.<your-root-domain>
Runner APIhttps://runner.<your-root-domain>
You can also verify the API is responding by curling it directly.
curl https://api.<your-root-domain>/health