# Nuon documentation > Nuon is the BYOC (bring-your-own-cloud) deployment platform for software vendors. Deploy applications — Terraform, Helm, Kubernetes manifests, container images — into customer AWS, Azure, or GCP accounts with no cross-account IAM. Includes runners, operation roles for least-privilege IAM, drift detection, approval workflows, and policies for compliance. > ## Agent Instructions > Nuon installs a software company's application into its customers' AWS, Azure, or GCP accounts. A runner in each customer account polls the Nuon control plane for jobs, so Nuon needs no cross-account access. > In these docs, "you" is the software company using Nuon to ship its product, and "customer" is the company whose cloud account the product is installed into. Pages also call the software company the vendor. > Page index: https://docs.nuon.co/llms.txt. To evaluate Nuon, read https://docs.nuon.co/get-started/introduction.md, https://docs.nuon.co/guides/deployment-options.md, https://docs.nuon.co/security.md, and https://docs.nuon.co/architecture/platform.md. To build with Nuon, start at https://docs.nuon.co/get-started/quickstart.md. > To check which architectures Nuon supports (customer account, existing VPC or cluster, hybrid data plane, single-tenant, data residency, customer-managed keys, air-gapped), read https://docs.nuon.co/guides/byoc-architecture-patterns.md. > Pages under https://docs.nuon.co/config-ref/ are generated from the config schema. Treat them as the source of truth for config file fields. > Search these docs over MCP at https://docs.nuon.co/mcp. # create a static API token for your org Source: https://docs.nuon.co/api-ref/accounts/create-an-api-token post /v1/account/static-token Deprecated: create a service account with POST /v1/service-accounts, then a token with POST /v1/tokens. Personal tokens (token_identity "personal") are deprecated because they carry all of the creator's access. Creates a long-lived static API token. By default (token_identity "service_account") each token gets its own dedicated service account and only grants access to the current org; the role param controls the token's permissions (any role assignable to API tokens; see GET /v1/roles?context=api_token) and defaults to org_read_only. With token_identity "personal" the token is issued against your own account instead: it uses your account's existing roles, is not limited to the current org, and the role param must be empty. # delete a static API token Source: https://docs.nuon.co/api-ref/accounts/delete-an-api-token delete /v1/account/static-tokens/{token_id} Deprecated: use DELETE /v1/tokens/{token_id} instead. Deletes a static API token belonging to your current org. For service account tokens, the dedicated service account is deleted as well; for personal tokens, only the token is deleted and your account is untouched. Once deleted, the token can no longer be used to access the API. # list your org's static API tokens Source: https://docs.nuon.co/api-ref/accounts/list-api-tokens get /v1/account/static-tokens Deprecated: use GET /v1/tokens instead. Lists the static API tokens for your current org. Token secrets are never returned. # create action workflow config Source: https://docs.nuon.co/api-ref/actions/create-action-workflow-config post /v1/action-workflows/{action_workflow_id}/configs Create an action workflow configuration. # create an action workflow run for an install Source: https://docs.nuon.co/api-ref/actions/create-an-action-workflow-run-for-an-install post /v1/installs/{install_id}/action-workflows/runs AppWorkflowConfigId param has been deprecated and is no longer being consumed, the api uses currently install id to lookup related appworkflowconfigId # create an app action workflow Source: https://docs.nuon.co/api-ref/actions/create-an-app post /v1/apps/{app_id}/action-workflows Create an action workflow for an app. # delete an action workflow Source: https://docs.nuon.co/api-ref/actions/delete-an-app delete /v1/action-workflows/{action_workflow_id} Delete an action workflow. # get action workflow for an app Source: https://docs.nuon.co/api-ref/actions/get-action-workflow-for-an-app get /v1/action-workflows/{action_workflow_id}/configs Returns all action workflow configurations. # get action workflow runs by install id Source: https://docs.nuon.co/api-ref/actions/get-action-workflow-runs-by-install-id get /v1/installs/{install_id}/action-workflows/runs Returns all action workflow runs for an install. # get action workflow runs by install id and run id Source: https://docs.nuon.co/api-ref/actions/get-action-workflow-runs-by-install-id-and-run-id get /v1/installs/{install_id}/action-workflows/runs/{run_id} Return an install action workflow run by id. # get action workflows for an app Source: https://docs.nuon.co/api-ref/actions/get-action-workflows-for-an-app get /v1/apps/{app_id}/action-workflows Returns all action workflows for the provided app. # get an app action workflow by action workflow id Source: https://docs.nuon.co/api-ref/actions/get-an-app-action-workflow get /v1/action-workflows/{action_workflow_id} Return an app action workflow by id. # get an app action workflow Source: https://docs.nuon.co/api-ref/actions/get-an-app-action-workflow-1 get /v1/apps/{app_id}/action-workflows/{action_workflow_id} Return an app action workflow by id. # get an app action workflow config Source: https://docs.nuon.co/api-ref/actions/get-an-app-action-workflow-config get /v1/action-workflows/configs/{action_workflow_config_id} Return an action workflow configuration by id. # get latest runs for all action workflows by install id Source: https://docs.nuon.co/api-ref/actions/get-latest-runs-for-all-action-workflows-by-install-id get /v1/installs/{install_id}/action-workflows/latest-runs Returns the most recent workflow run for each install action workflow. # get recent runs for an action workflow by install id Source: https://docs.nuon.co/api-ref/actions/get-recent-runs-for-an-action-workflow-by-install-id get /v1/installs/{install_id}/action-workflows/{action_workflow_id}/recent-runs Returns recent workflow runs for an install action workflow. # patch an app Source: https://docs.nuon.co/api-ref/actions/patch-an-app patch /v1/action-workflows/{action_workflow_id} Update an app action workflow configuration. # create an app Source: https://docs.nuon.co/api-ref/apps/create-an-app post /v1/apps Create a new app. # Create an app installer Source: https://docs.nuon.co/api-ref/apps/create-an-app-installer post /v1/installers # Create an app runner config Source: https://docs.nuon.co/api-ref/apps/create-an-app-runner-config post /v1/apps/{app_id}/runner-config # create an app sandbox config Source: https://docs.nuon.co/api-ref/apps/create-an-app-sandbox-config post /v1/apps/{app_id}/sandbox-config Create a sandbox configuration for an app. # create an app secret Source: https://docs.nuon.co/api-ref/apps/create-an-app-secret post /v1/apps/{app_id}/secret Create an app secret that can be used to configure components. To reference an app secret, use `.nuon.secrets.`. **NOTE** secrets can only be written, or deleted, not read. # Create app input configs Source: https://docs.nuon.co/api-ref/apps/create-app-input-configs post /v1/apps/{app_id}/input-config App input configs allow you to declare the inputs for your application, and do things such as require customer inputs or expose configuration knobs in your application. # delete an app Source: https://docs.nuon.co/api-ref/apps/delete-an-app delete /v1/apps/{app_id} Delete an app. # Delete an app installer Source: https://docs.nuon.co/api-ref/apps/delete-an-app-installer delete /v1/installers/{installer_id} # delete an app secret Source: https://docs.nuon.co/api-ref/apps/delete-an-app-secret delete /v1/apps/{app_id}/secret/{secret_id} Delete an app secret. # get all apps for the current org Source: https://docs.nuon.co/api-ref/apps/get-all-apps-for-the-current-org get /v1/apps Returns all apps for the authenticated user. # get an app Source: https://docs.nuon.co/api-ref/apps/get-an-app get /v1/apps/{app_id} Return an app. # get an app config Source: https://docs.nuon.co/api-ref/apps/get-an-app-config get /v1/apps/{app_id}/config/{app_config_id} Fetch an app config by id. # get an app config template Source: https://docs.nuon.co/api-ref/apps/get-an-app-config-template get /v1/apps/{app_id}/template-config Create an application template which provides a fully rendered config that can be modified and used to kickstart any application. # Get an app installer Source: https://docs.nuon.co/api-ref/apps/get-an-app-installer get /v1/installers/{installer_id} # get app configs Source: https://docs.nuon.co/api-ref/apps/get-app-configs get /v1/apps/{app_id}/configs Returns all configs for the app. # Get app input configs Source: https://docs.nuon.co/api-ref/apps/get-app-input-configs get /v1/apps/{app_id}/input-config # get app runner configs Source: https://docs.nuon.co/api-ref/apps/get-app-runner-configs get /v1/apps/{app_id}/runner-configs Returns all runner configurations for the provided app. # get app sandbox configs Source: https://docs.nuon.co/api-ref/apps/get-app-sandbox-configs get /v1/apps/{app_id}/sandbox-configs Returns all sandbox configurations for the provided app. # get app secrets Source: https://docs.nuon.co/api-ref/apps/get-app-secrets get /v1/apps/{app_id}/secrets List all secrets for an app. **NOTE** this does not return any sensitive values, as secrets are write only. # get latest app config Source: https://docs.nuon.co/api-ref/apps/get-latest-app-config get /v1/apps/{app_id}/latest-config Returns the most recent config for the provided app. # get latest app input config Source: https://docs.nuon.co/api-ref/apps/get-latest-app-input-config get /v1/apps/{app_id}/input-latest-config Returns the most recent input config for the provided app. # get latest app runner config Source: https://docs.nuon.co/api-ref/apps/get-latest-app-runner-config get /v1/apps/{app_id}/runner-latest-config Returns the most recent runner config for the provided app. # get latest app sandbox config Source: https://docs.nuon.co/api-ref/apps/get-latest-app-sandbox-config get /v1/apps/{app_id}/sandbox-latest-config Returns the most recent sandbox config for the provided app. # Patch v1apps config Source: https://docs.nuon.co/api-ref/apps/patch-v1apps-config patch /v1/apps/{app_id}/config/{app_config_id} Update an app config, setting status and state. # Post v1apps config Source: https://docs.nuon.co/api-ref/apps/post-v1apps-config post /v1/apps/{app_id}/config Create an app config, by pushing the contents of a config file. The API will automatically configure the app according to the config file in the background. # Post v1apps input config Source: https://docs.nuon.co/api-ref/apps/post-v1apps-input-config post /v1/apps/{app_id}/input-config App input configs allow you to declare the inputs for your application, and do things such as require customer inputs or expose configuration knobs in your application. # Render an app installer Source: https://docs.nuon.co/api-ref/apps/render-an-app-installer get /v1/installer/{installer_slug}/render # update an app Source: https://docs.nuon.co/api-ref/apps/update-an-app patch /v1/apps/{app_id} Update an app's configuration. # Update an app installer Source: https://docs.nuon.co/api-ref/apps/update-an-app-installer patch /v1/installers/{installer_id} # create a component Source: https://docs.nuon.co/api-ref/components/create-a-component post /v1/apps/{app_id}/components Create a new component for an app. # create a helm component config Source: https://docs.nuon.co/api-ref/components/create-a-helm-component-config post /v1/components/{component_id}/configs/helm Create a helm component config. # create a terraform component config Source: https://docs.nuon.co/api-ref/components/create-a-terraform-component-config post /v1/components/{component_id}/configs/terraform-module Create a terraform component config. # create an external image component config Source: https://docs.nuon.co/api-ref/components/create-an-external-image-component-config post /v1/components/{component_id}/configs/external-image Create an external image component config. # create component build Source: https://docs.nuon.co/api-ref/components/create-component-build post /v1/components/{component_id}/builds Create a build for a component. # delete a component Source: https://docs.nuon.co/api-ref/components/delete-a-component delete /v1/components/{component_id} Delete a component. # get a build Source: https://docs.nuon.co/api-ref/components/get-a-build get /v1/components/builds/{build_id} Returns builds for one or all components in an app. # get a build for a component Source: https://docs.nuon.co/api-ref/components/get-a-build-for-a-component get /v1/components/{component_id}/builds/{build_id} Returns builds for one or all components in an app. # get a component Source: https://docs.nuon.co/api-ref/components/get-a-component get /v1/components/{component_id} Return a component by id. # get a component's dependencies Source: https://docs.nuon.co/api-ref/components/get-a-components-dependencies get /v1/components/{component_id}/dependencies Returns all dependencies for the provided component. # get a components for a specific app Source: https://docs.nuon.co/api-ref/components/get-a-components-for-a-specific-app get /v1/apps/{app_id}/component/{component_name_or_id} Return an app component by id or name. # Get all builds for a component Source: https://docs.nuon.co/api-ref/components/get-all-builds-for-a-component get /v1/components/{component_id}/builds # get all components for an app Source: https://docs.nuon.co/api-ref/components/get-all-components-for-an-app get /v1/apps/{app_id}/components Returns all components for the provided app. # get all components for an org Source: https://docs.nuon.co/api-ref/components/get-all-components-for-an-org get /v1/components Returns all components for the provided organization. # get all configs for a component Source: https://docs.nuon.co/api-ref/components/get-all-configs-for-a-component get /v1/components/{component_id}/configs Returns all configurations for the provided component. # get builds for components Source: https://docs.nuon.co/api-ref/components/get-builds-for-components get /v1/builds Returns all builds for the provided component. # Get component build logs Source: https://docs.nuon.co/api-ref/components/get-component-build-logs get /v1/components/{component_id}/builds/{build_id}/logs # Get component build plan Source: https://docs.nuon.co/api-ref/components/get-component-build-plan get /v1/components/{component_id}/builds/{build_id}/plan # get latest build for a component Source: https://docs.nuon.co/api-ref/components/get-latest-build-for-a-component get /v1/components/{component_id}/builds/latest Returns the most recent build for the provided component. # get latest config for a component Source: https://docs.nuon.co/api-ref/components/get-latest-config-for-a-component get /v1/components/{component_id}/configs/latest Returns the most recent config for the provided component. # update a component Source: https://docs.nuon.co/api-ref/components/update-a-component patch /v1/components/{component_id} Update a component's configuration. # Allow user to be added to an org waitlist. Source: https://docs.nuon.co/api-ref/general/allow-user-to-be-added-to-an-org-waitlist post /v1/general/waitlist Add an entry to the waitlist. # Get config for cli Source: https://docs.nuon.co/api-ref/general/get-config-for-cli get /v1/general/cli-config Returns CLI configuration and settings. `min_cli_version` is deprecated. It remains the warning floor for older CLIs. Prefer `min_cli_version_policy.warn`. `min_cli_version_policy.error` is the oldest CLI this control plane will run. An empty warn means the CLI does not warn. # Get current user Source: https://docs.nuon.co/api-ref/general/get-current-user get /v1/general/current-user Returns the current authenticated user account. # Get jsonschema for config file (deprecated query form) Source: https://docs.nuon.co/api-ref/general/get-jsonschema-for-config-file get /v1/general/config-schema Return jsonschemas for Nuon configs. These can be used in frontmatter in most editors that have a TOML LSP (such as [Taplo](https://taplo.tamasfe.dev/) configured. ```toml #:schema https://api.nuon.co/v1/general/config-schema/inputs description = "description" ``` You can pass in a valid source argument to render within a specific config file: - input - input-group - installer - sandbox - runner - docker_build - container_image - helm - terraform - runbook - job # Get regions for a cloud platform Source: https://docs.nuon.co/api-ref/general/get-regions-for-a-cloud-platform get /v1/general/cloud-platform/{cloud_platform}/regions Return region metadata for the Nuon supported cloud platforms. # Publish a metric from different nuon clients for telemetry purposes Source: https://docs.nuon.co/api-ref/general/publish-a-metric-from-different-nuon-clients-for-telemetry-purposes post /v1/general/metrics # Create an installer Source: https://docs.nuon.co/api-ref/installers/create-an-installer post /v1/installers # Delete an installer Source: https://docs.nuon.co/api-ref/installers/delete-an-installer delete /v1/installers/{installer_id} # Get an installer Source: https://docs.nuon.co/api-ref/installers/get-an-installer get /v1/installers/{installer_id} # Get installers for current org Source: https://docs.nuon.co/api-ref/installers/get-installers-for-current-org get /v1/installers # Render an installer Source: https://docs.nuon.co/api-ref/installers/render-an-installer get /v1/installer/{installer_id}/render # Update an installer Source: https://docs.nuon.co/api-ref/installers/update-an-installer patch /v1/installers/{installer_id} # create an app install Source: https://docs.nuon.co/api-ref/installs/create-an-app-install post /v1/apps/{app_id}/installs Create a new install for an app. # Create an app install from an installer Source: https://docs.nuon.co/api-ref/installs/create-an-app-install-from-an-installer post /v1/installer/{installer_slug}/installs # create install inputs Source: https://docs.nuon.co/api-ref/installs/create-install-inputs post /v1/installs/{install_id}/inputs Create input values for an install. # delete an install Source: https://docs.nuon.co/api-ref/installs/delete-an-install delete /v1/installs/{install_id} Delete an install. # deploy a build to an install Source: https://docs.nuon.co/api-ref/installs/deploy-a-build-to-an-install post /v1/installs/{install_id}/deploys Create a new deployment for an install. # deploy all components on an install Source: https://docs.nuon.co/api-ref/installs/deploy-all-components-on-an-install post /v1/installs/{install_id}/components/deploy-all Deploy all components to an install. This walks the graph order of the install's app, and will trigger a deploy for each on the specified install. # deprovision an install Source: https://docs.nuon.co/api-ref/installs/deprovision-an-install post /v1/installs/{install_id}/deprovision Deprovision an install sandbox. # get all deploys to an install Source: https://docs.nuon.co/api-ref/installs/get-all-deploys-to-an-install get /v1/installs/{install_id}/deploys Returns all deployments for an install. # get all installs for an app Source: https://docs.nuon.co/api-ref/installs/get-all-installs-for-an-app get /v1/apps/{app_id}/installs Returns all installs for the provided app. # get all installs for an org Source: https://docs.nuon.co/api-ref/installs/get-all-installs-for-an-org get /v1/installs Returns all installs for the provided organization. # get an install Source: https://docs.nuon.co/api-ref/installs/get-an-install get /v1/installs/{install_id} Return an install by id. # Get an install component Source: https://docs.nuon.co/api-ref/installs/get-an-install-component get /v1/installs/{install_id}/component/{component_id} # get an install component outputs Source: https://docs.nuon.co/api-ref/installs/get-an-install-component-outputs get /v1/installs/{install_id}/components/{component_id}/outputs Return the latest outputs for a component. **NOTE** requires a valid install. # get an install components deploys Source: https://docs.nuon.co/api-ref/installs/get-an-install-components-deploys get /v1/installs/{install_id}/components/{component_id}/deploys Returns all deployments for an install component. # get an install's latest deploy Source: https://docs.nuon.co/api-ref/installs/get-an-install-deploy get /v1/installs/{install_id}/deploys/latest Returns the most recent deployment for an install. # get an install deploy Source: https://docs.nuon.co/api-ref/installs/get-an-install-deploy-1 get /v1/installs/{install_id}/deploys/{deploy_id} Return a deployment for an install by id. # get an install event Source: https://docs.nuon.co/api-ref/installs/get-an-install-event get /v1/installs/{install_id}/events/{event_id} Get a single install event. # Get an installer install Source: https://docs.nuon.co/api-ref/installs/get-an-installer-install get /v1/installer/{installer_slug}/install/{install_id} # get an installs components Source: https://docs.nuon.co/api-ref/installs/get-an-installs-components get /v1/installs/{install_id}/components Returns all components for an install. # get an installs current inputs Source: https://docs.nuon.co/api-ref/installs/get-an-installs-current-inputs get /v1/installs/{install_id}/inputs/current Returns input values for an install. # get an installs inputs Source: https://docs.nuon.co/api-ref/installs/get-an-installs-inputs get /v1/installs/{install_id}/inputs Returns input values for an install. # Get an install's runner group Source: https://docs.nuon.co/api-ref/installs/get-an-installs-runner-group get /v1/installs/{install_id}/runner-group Return the runner group, including runners and settings for the provided install. # get an installs sandbox runs Source: https://docs.nuon.co/api-ref/installs/get-an-installs-sandbox-runs get /v1/installs/{install_id}/sandbox-runs Returns all sandbox runs for an install. # get events for an install Source: https://docs.nuon.co/api-ref/installs/get-events-for-an-install get /v1/installs/{install_id}/events # Get Install Events Return an event stream for an install. # Get install deploy plan Source: https://docs.nuon.co/api-ref/installs/get-install-deploy-plan get /v1/installs/{install_id}/deploys/{deploy_id}/plan # get install readme rendered with Source: https://docs.nuon.co/api-ref/installs/get-install-readme-rendered-with get /v1/installs/{install_id}/readme Returns the `app.readme` markdown with the values interpolated from the install inputs and component outputs. # Get install sandbox run logs Source: https://docs.nuon.co/api-ref/installs/get-install-sandbox-run-logs get /v1/installs/{install_id}/sandbox-run/{run_id}/logs # get the latest deploy for an install component Source: https://docs.nuon.co/api-ref/installs/get-the-latest-deploy-for-an-install-component get /v1/installs/{install_id}/components/{component_id}/deploys/latest Returns the most recent deployment for an install component. # reprovision an install Source: https://docs.nuon.co/api-ref/installs/reprovision-an-install post /v1/installs/{install_id}/reprovision Reprovision an install sandbox. # teardown an install component Source: https://docs.nuon.co/api-ref/installs/teardown-an-install-component post /v1/installs/{install_id}/components/{component_id}/teardown Teardown and remove an install component's resources. # teardown an install's components Source: https://docs.nuon.co/api-ref/installs/teardown-an-installs-components post /v1/installs/{install_id}/components/teardown-all Teardown all components on an install. # update an install Source: https://docs.nuon.co/api-ref/installs/update-an-install patch /v1/installs/{install_id} Update an install's settings. # Updates install input config for app Source: https://docs.nuon.co/api-ref/installs/update-an-install-input patch /v1/installs/{install_id}/inputs Update input values for an install. This endpoint accepts a partial subset of inputs and merges them with the install's existing inputs, so callers only need to send the inputs they want to change. Inputs sourced from the `install_stack` (customer source) are managed by the install stack and are rejected if supplied. # Updates install input config for app Source: https://docs.nuon.co/api-ref/installs/updates-install-input-config-for-app patch /v1/installs/{install_id}/inputs Update input values for an install. This endpoint accepts a partial subset of inputs and merges them with the install's existing inputs, so callers only need to send the inputs they want to change. Inputs sourced from the `install_stack` (customer source) are managed by the install stack and are rejected if supplied. # Add a user to the current org Source: https://docs.nuon.co/api-ref/orgs/add-a-user-to-the-current-org post /v1/orgs/current/user Add a user to an organization. # create a new org Source: https://docs.nuon.co/api-ref/orgs/create-a-new-org post /v1/orgs Create a new organization. # Delete an org Source: https://docs.nuon.co/api-ref/orgs/delete-an-org delete /v1/orgs/current Delete an organization. # Get an org Source: https://docs.nuon.co/api-ref/orgs/get-an-org get /v1/orgs/current Return an organization by id. # Get an orgs health checks Source: https://docs.nuon.co/api-ref/orgs/get-an-orgs-health-checks get /v1/orgs/current/health-checks # Get an orgs runner group Source: https://docs.nuon.co/api-ref/orgs/get-an-orgs-runner-group get /v1/orgs/current/runner-group # Invite a user to the current org Source: https://docs.nuon.co/api-ref/orgs/invite-a-user-to-the-current-org post /v1/orgs/current/invites Invite a user (by email) to an org. This user will receive an email, and when they next log into the application will be added to the org. # Return current user's orgs Source: https://docs.nuon.co/api-ref/orgs/return-current-users-orgs get /v1/orgs Returns all organizations for the authenticated user. # Return org invites Source: https://docs.nuon.co/api-ref/orgs/return-org-invites get /v1/orgs/current/invites Returns a list of all invites to the org. # Update current org Source: https://docs.nuon.co/api-ref/orgs/update-current-org patch /v1/orgs/current Update an organization's settings. # Create a release Source: https://docs.nuon.co/api-ref/releases/create-a-release post /v1/components/{component_id}/releases # Get a release Source: https://docs.nuon.co/api-ref/releases/get-a-release get /v1/releases/{release_id} # Get a release 1 Source: https://docs.nuon.co/api-ref/releases/get-a-release-1 get /v1/releases/{release_id}/steps # Get all releases for a component Source: https://docs.nuon.co/api-ref/releases/get-all-releases-for-a-component get /v1/components/{component_id}/releases # Get all releases for an app Source: https://docs.nuon.co/api-ref/releases/get-all-releases-for-an-app get /v1/apps/{app_id}/releases # List your org's roles Source: https://docs.nuon.co/api-ref/roles/list-roles get /v1/roles List your org's roles. Each role carries its display metadata (`title`, `description`) and the assignment surfaces it may be offered on via the `applies_to` field (`team`, `service_account`, `api_token`, `oidc_trust_policy`). A role with no `applies_to` entries exists and may be displayed, but cannot be newly assigned. Pass `?context=` to filter to the roles assignable on a single surface. # Cancel runner job Source: https://docs.nuon.co/api-ref/runners/cancel-runner-job delete /v1/runner-jobs/{runner_job_id}/cancel # get a log stream Source: https://docs.nuon.co/api-ref/runners/get-a-log-stream get /v1/log-streams/{log_stream_id} Return a log stream. # get runner job Source: https://docs.nuon.co/api-ref/runners/get-runner-job get /v1/runner-jobs/{runner_job_id} Return a runner job. # Get runner job execution Source: https://docs.nuon.co/api-ref/runners/get-runner-job-execution get /v1/runner-jobs/{runner_job_id}/executions/{runner_job_execution_id} # get runner job plan Source: https://docs.nuon.co/api-ref/runners/get-runner-job-plan get /v1/runner-jobs/{runner_job_id}/plan Return a plan for a runner job. # get runner jobs Source: https://docs.nuon.co/api-ref/runners/get-runner-jobs get /v1/runners/{runner_id}/jobs Return runner jobs. # read a log stream's logs Source: https://docs.nuon.co/api-ref/runners/read-a-log-streams-logs get /v1/log-streams/{log_stream_id}/logs Read OTEL formatted logs for a log stream. # Get a runner Source: https://docs.nuon.co/api-ref/runnersrunner/get-a-runner get /v1/runners/{runner_id} # Get runner job executions Source: https://docs.nuon.co/api-ref/runnersrunner/get-runner-job-executions get /v1/runner-jobs/{runner_job_id}/executions # get runner settings Source: https://docs.nuon.co/api-ref/runnersrunner/get-runner-settings get /v1/runners/{runner_id}/settings Return runner settings for the provided runner. # Get a sandbox Source: https://docs.nuon.co/api-ref/sandboxes/get-a-sandbox get /v1/sandboxes/{sandbox_id} # Get all sandboxes Source: https://docs.nuon.co/api-ref/sandboxes/get-all-sandboxes get /v1/sandboxes # Get sandbox releases Source: https://docs.nuon.co/api-ref/sandboxes/get-sandbox-releases get /v1/sandboxes/{sandbox_id}/releases # Create a service account for the current org Source: https://docs.nuon.co/api-ref/service-accounts/create-a-service-account post /v1/service-accounts Create a service account for the current org. Service accounts can be used to generate API tokens for automation and CI/CD workflows. Defaults to the `org_admin` role if `role` is not specified. Allowed roles are `org_admin`, `installer`, and `runner`. # Create a token for a service account in the current org Source: https://docs.nuon.co/api-ref/service-accounts/create-a-service-account-token post /v1/service-accounts/{account_id}/tokens Deprecated: use `POST /v1/tokens` with `account_id` instead. Create an API token for a service account in the current org. Defaults to a duration of one year (`8760h`) if `duration` is not specified. If `invalidate` is set, all existing tokens for the service account are invalidated before the new token is created. # Delete a service account for the current org Source: https://docs.nuon.co/api-ref/service-accounts/delete-a-service-account delete /v1/service-accounts/{account_id} Delete a service account from the current org. This removes the service account's roles in this org and invalidates all of its existing API tokens. # List service accounts for the current org Source: https://docs.nuon.co/api-ref/service-accounts/list-service-accounts get /v1/service-accounts List the service accounts that belong to the current organization, along with their roles. Supports offset-based pagination. Each account reports whether it is a system account, its purposes, and, for accounts managed by a resource, the owning resource. - `management` filters to `user` accounts, `system` accounts, or `all`. When set, it replaces `include_runners` and `include_stacks`. - `purpose` filters to accounts with that exact purpose. - `q` matches a case-insensitive substring of the account name, email, or ID, or of the owning resource's name or ID. # Update a service account for the current org Source: https://docs.nuon.co/api-ref/service-accounts/update-a-service-account patch /v1/service-accounts/{account_id} Update a service account's human-friendly name. The account's email and ID are immutable; only the display name changes. # Update the role of a service account for the current org Source: https://docs.nuon.co/api-ref/service-accounts/update-a-service-account-role patch /v1/service-accounts/{account_id}/role Update the role assigned to a service account in the current org. The service account's existing roles in this org are removed and replaced with the requested role. Allowed roles are `org_admin`, `installer`, and `runner`. # Create an API token for a service account in the current org Source: https://docs.nuon.co/api-ref/tokens/create-a-token post /v1/tokens Create an API token for a service account in the current org. Only service-account tokens are supported: `account_id` must be a service account in the current org (see `POST /v1/service-accounts`). The token uses the service account's role. The token secret is returned only in this response; it cannot be retrieved again. Defaults to a duration of one year (`8760h`) if `duration` is not specified. If `invalidate` is set, all existing tokens for the service account are revoked before the new token is created. # Delete an API token for a service account in the current org Source: https://docs.nuon.co/api-ref/tokens/delete-a-token delete /v1/tokens/{token_id} Revoke an API token for a service account in the current org. Once deleted, the token can no longer be used to access the API. The service account itself is not deleted. Only service-account tokens are supported. # List API tokens for service accounts in the current org Source: https://docs.nuon.co/api-ref/tokens/list-tokens get /v1/tokens List the API tokens for service accounts in the current org. Only service-account tokens are returned, and token secrets are never returned. Filter to a single service account with `account_id`, and search with `q`, which matches token names case-insensitively or a token ID exactly. Each result includes the owning account's `account_name` and `account_email`, plus `account_role`, the account's *current* role in this org (not the role copied onto the token at creation time). # Create a vcs connection for github Source: https://docs.nuon.co/api-ref/vcs/create-a-vcs-connection-for-github post /v1/vcs/connections # Get all vcs connected repos for an org Source: https://docs.nuon.co/api-ref/vcs/get-all-vcs-connected-repos-for-an-org get /v1/vcs/connected-repos # get vcs connection for an org Source: https://docs.nuon.co/api-ref/vcs/get-vcs-connection-for-an-org get /v1/vcs/connections Returns all VCS connections for the provided organization. # create a vcs connection from the github app install callback Source: https://docs.nuon.co/api-ref/vcs/public-connection-to-create-a-vcs-connection-via-a-callback post /v1/vcs/connection-callback Create a VCS connection after the GitHub App install redirect. The caller must be authenticated and have write access to `org_id`. `code` is the user-authorization code GitHub issues when the installing user completes the app's OAuth web flow. The API exchanges it and only attaches `github_install_id` if that user can see the installation; otherwise it responds `403`. The installation id on its own is not trusted because GitHub lets it be spoofed. # returns a vcs connection for an org Source: https://docs.nuon.co/api-ref/vcs/returns-a-vcs-connection-for-an-org get /v1/vcs/connections/{connection_id} Return a VCS connection by id. # Your App Deployment Diagram Source: https://docs.nuon.co/architecture/app-deployment Understand what gets deployed into a customer's cloud account when you ship your product through Nuon. When you install your app template through Nuon, your application runs inside your customer's cloud account instead of yours. Nuon makes this possible by layering infrastructure and execution components inside the customer's environment, all orchestrated remotely by the Nuon [Control Plane](/architecture/platform). Each deployment is called an [Install](/concepts/installs). ![Install Architecture](https://mintcdn.com/nuoninc/-tkjgIHWOIOYVOeD/images/architecture/byoc-architecture.png?fit=max\&auto=format\&n=-tkjgIHWOIOYVOeD\&q=85\&s=80c5086c38fac548a05db70c78719415) When an install is created, the layers build on each other from the bottom up: 1. **Cloud Account** - the customer's AWS account or Azure subscription. Everything Nuon deploys lives inside it. No cross-account access is required. 2. **[Stack](/concepts/stacks)** - an infrastructure template that provisions networking and the Runner. Nuon generates both a Terraform version and the platform's native IaC version (CloudFormation on AWS, Azure Resource Manager (Bicep) on Azure; on GCP, only Terraform is generated since Infrastructure Manager is Terraform-native). The customer deploys whichever format fits their tooling, using their own credentials. 3. **[Runner](/concepts/runners)** - picks up jobs from the Control Plane and executes all infrastructure operations locally inside the customer's environment. 4. **[Sandbox](/concepts/sandboxes)** - the base compute infrastructure (Kubernetes, VMs, serverless) provisioned by the Runner. 5. **[Components](/concepts/components)** - your application (Helm charts, Terraform modules, manifests, container images) deployed on top of the Sandbox. Everything is defined by the [App Config](/concepts/apps), a set of TOML files that define your app template: the stack, sandbox, components, inputs, secrets, and actions. Each install is an instance of this config deployed into a customer's cloud with their specific values. For how an install progresses from creation through ongoing updates, see [Installs](/concepts/installs) and [Updates and Operations](/concepts/updates-and-operations). # Platform Architecture Source: https://docs.nuon.co/architecture/platform How the Nuon Control Plane and Runners work together to orchestrate BYOC deployments. > [!NOTE] > > For an overview of what gets deployed into a customer's cloud account, see [Your App Deployment Diagram](/architecture/app-deployment). The Nuon platform consists of a Control Plane that remotely orchestrates [Runners](/concepts/runners) deployed into customer accounts. Runners are egress-only: they poll the Control Plane for jobs rather than receiving inbound commands. This allows the Control Plane to coordinate work across all installs without any access to the accounts Runners are hosted in. **No cross-account access is required.** ![runner-architecture](https://mintcdn.com/nuoninc/G2PoCELYi3TctR3M/images/runner-architecture.png?fit=max\&auto=format\&n=G2PoCELYi3TctR3M\&q=85\&s=3b0b74dae61a0ce48a5a5079a12d876d) ## Install Runner The Install Runner is a stateless Go binary deployed into each customer account as part of the [Stack](/concepts/stacks). It polls the Control Plane for jobs, executes them, and streams job logs back. The customer controls the Runner's access and can disable it at any time through the Stack. See [Runners](/concepts/runners) for more detail. ## Control Plane The Control Plane orchestrates and monitors jobs across all Install Runners and provides a single view of every install. ### Control API The central interface for managing app templates, installs, and jobs. The [Dashboard](/dashboard) and [CLI](/cli) are built on top of it, and you can integrate with it directly to build custom interfaces. > [!NOTE] > > [Nuon Cloud](https://app.nuon.co) is multi-tenant with logical isolation per org. Nuon can also be deployed as a BYOC application into a customer's own cloud account. See the [Nuon BYOC repo](https://github.com/nuonco/byoc) for details. ### Runner API A separate API that Runners use to poll for jobs and write logs and metrics. This is distinct from the Control API used by vendors and operators. ### Builds Before components can be deployed to installs, they are built into OCI artifacts by the Control Plane. All installs of an app share the same artifacts, and the Control Plane is the only part of the platform that touches your source code. > [!NOTE] > > Build artifacts are stored as OCI images in your cloud registry. # Runner Authentication Source: https://docs.nuon.co/architecture/runner-auth How runners prove their cloud identity to the Nuon Control Plane without storing credentials. AWS, GCP, and Azure each provide a way to cryptographically attest the identity of a virtual machine and the account it lives in. They do this by signing instance metadata with a private key and publishing the corresponding certificates publicly, so anyone can verify the signature without any special access or trust relationship with the cloud provider or the install's account. When a runner starts, it fetches this signed credential from the instance metadata service and presents it to Nuon. Nuon independently verifies the credential directly with the cloud provider, without relying on anything the runner claims about itself. On success, Nuon issues a token that the runner uses for all subsequent calls: polling for jobs and streaming logs. ## How It Works Every auth method follows the same three-step pattern: ``` Runner Cloud Provider Nuon | | | |--- request identity ---------->| | |<-- signed credential ----------| | | | | |--- request token ------------------------------------------>| | | | | |<-- verify credential ------| | |--- response -------------->| | | | |<-- token -------------------------------------------------- | ``` The runner sends a signed credential to Nuon, which independently verifies it by calling the cloud provider directly rather than trusting what the runner claims. It then checks that the identity matches the expected configuration for that install, before returning a Nuon auth token. ## AWS — Instance Identity Document The Instance Identity Document (IID) is a JSON document that AWS generates for every EC2 instance. It is signed by AWS using a region-specific RSA-2048 key and available from the instance metadata service (IMDSv2) without any credentials. **Document**: ```json theme={null} { "accountId": "123456789012", "instanceId": "i-0a1b2c3d4e5f67890", "instanceType": "t3.medium", "region": "us-east-1", "availabilityZone": "us-east-1a", "privateIp": "10.0.1.42", "pendingTime": "2024-01-15T10:30:00Z", "architecture": "x86_64", "imageId": "ami-0abcdef1234567890" } ``` **Signature**: ``` MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AaCAJIAEggGpeyJhY2NvdW50SWQiOiAiMTIzNDU2Nzg5MDEyIiwgImluc3Rh bmNlSWQiOiAiaS0wYTFiMmMzZDRlNWY2Nzg5MCIsIC4uLn0AAAAAAAAxggEY ... ``` ### Flow ``` Runner (EC2) IMDSv2 Nuon | | | |--- GET /identity --------->| | |<-- document + signature ---| | | | | |--- request token------------------------------------------>| | | | | | verify PKCS7 signature | | | (regional AWS cert) | | | | | | validate account ID | | | vs install stack | | | | |<-- token ------------------------------------------------- | ``` ### What the runner sends * The raw IID JSON document from IMDSv2 * The PKCS7 signature from IMDSv2 * The runner ID ### What Nuon verifies 1. Parses the IID and validates required fields (region, accountId) 2. Verifies the PKCS7 signature using the embedded AWS regional certificate for the region in the document 3. Looks up the runner by the provided runner ID 4. Validates that the account ID in the document matches the AWS account ID recorded in the install's stack outputs If the instance is in a different AWS account than the install expects, authentication fails. ## GCP — Identity Token GCP instances can fetch a signed identity JWT from the Compute Engine metadata service. The token is audience-scoped and signed by Google's JWKS. The runner also fetches an OAuth2 access token and constructs a presigned Compute API request so Nuon can independently read instance metadata. ### Flow ``` Runner (GCE) Metadata Service Nuon | | | |--- GET identity token -------->| | |<-- signed JWT -----------------| | |--- GET access token ---------->| | |<-- OAuth2 token ---------------| | | | | |--- request token ------------------------------------------>| | | | | | validate JWT (JWKS) | | | extract claims | | | | | |<-- Compute API call -------| | |--- instance metadata ----->| | | | | | cross-validate IDs | | | validate project + | | | service account vs | | | install stack | | | | |<-- token -------------------------------------------------- | ``` ### What the runner sends * The identity JWT from the metadata service * A presigned Compute API request (method, URL, Bearer token). The runner builds the request but does not execute it. ### What Nuon verifies 1. Validates the JWT signature using Google's JWKS 2. Extracts claims: project ID, instance ID, zone, service account 3. Independently executes the Compute API request to read instance metadata 4. Cross-validates the instance ID from the JWT against the Compute API response 5. Reads the runner ID from the instance's custom metadata key 6. Validates the project ID and service account email against the install's stack outputs ## Azure — Managed Identity Azure VMs with a user-assigned managed identity can fetch a JWT from the Azure Instance Metadata Service. The token contains the identity's tenant, subscription, and resource information and is signed by Microsoft's JWKS endpoint for the tenant. ### Flow ``` Runner (Azure VM) IMDS Nuon | | | |--- GET identity token ---->| | |<-- managed identity JWT ---| | | | | |--- request token--- -------------------------------------->| | | | | | extract tenant ID | | | fetch JWKS for tenant | | | validate JWT sig | | | extract claims | | | | | | extract runner ID | | | from xms_mirid claim | | | | | | validate tenant ID + | | | subscription ID vs | | | install stack | | | | |<-- token ------------------------------------------------- | ``` ### What the runner sends * The managed identity JWT from the Azure IMDS ### What Nuon verifies 1. Reads the tenant ID from the JWT without verifying it (needed to find the right JWKS endpoint) 2. Fetches the JWKS for that tenant 3. Validates the JWT signature and claims 4. Extracts the runner ID from the managed identity resource ID in the token 5. Validates the tenant ID and subscription ID against the install's stack outputs ## Token Issuance All three methods produce the same result: a token scoped to the runner, used for all subsequent API calls. Tokens are not stored by the runner between restarts. The runner re-authenticates on every startup. ## Security Properties * **No stored credentials.** Identity is derived from the runtime environment at startup. * **Server-side verification.** Nuon independently calls the cloud provider (Google JWKS, Azure JWKS) or verifies the credential locally (AWS PKCS7 signature with embedded regional cert). It does not trust the runner's self-reported identity. * **Install-scoped validation.** Every method validates the credential's cloud identity against the specific install's stack outputs. A runner in the wrong account, project, or tenant cannot authenticate, even with a valid credential. # CLI Source: https://docs.nuon.co/cli Install the Nuon CLI and keep it matched to your control plane. ## Installation ### Homebrew We publish an official tap you can install with [Homebrew](https://brew.sh/). ```sh theme={null} brew install nuonco/tap/nuon ``` This installs the latest release. If your control plane runs an older version, as Nuon BYOC and Self-Hosted control planes often do, install that version instead. See [Choosing a CLI version](#choosing-a-cli-version). After installation, you may need to refresh your shell session, for example with `source ~/.zshrc` or `source ~/.bashrc`. You can also enable autocomplete for you shell. Run `nuon completion` to see what shells we support. ```sh theme={null} source <(nuon completion ) ``` ### Install Script If you are not using Homebrew, you can use our install script to automatically download and install the correct binary for your platform (macOS or Linux). It requires `curl` and `jq`. ```sh theme={null} bash <(curl -sSL https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/install.sh) ``` The script detects your OS and architecture, installs the latest release of `nuon` and the `nuon-lsp` language server into `~/bin` (or `/usr/local/bin` if `~/bin` does not exist), and checks that the `nuon` on your `PATH` is the version it installed. To install a specific release, set `NUON_VERSION`. Pass `--no-input` to skip the confirmation prompt, for example in CI: ```sh theme={null} NUON_VERSION=0.19.1260 bash <(curl -sSL https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/install.sh) --no-input ``` ### Manual Binary Download You can also download binaries directly for macOS or Linux: * `darwin_amd64` * `darwin_arm64` * `linux_arm` * `linux_arm64` * `linux_386` * `linux_amd64` Binaries are published to `https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/$VERSION/nuon_$PLATFORM`, with a gzipped copy at the same URL plus `.gz`. The latest release number is published at `https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/latest.txt`. To pick the right version, see [Choosing a CLI version](#choosing-a-cli-version). An example of downloading version `0.19.1260` of the CLI for `darwin_arm64`: ```sh theme={null} curl -fsSL -o nuon https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/0.19.1260/nuon_darwin_arm64 ``` Once the binary has been downloaded, make it executable and move it into a directory on your `PATH`. ```sh theme={null} chmod +x nuon ``` ### Debug Mode In the case that something goes wrong, you can set the environment variable `NUON_DEBUG` to print verbose logs. These can be helpful to share with us, while debugging any issues. ```sh theme={null} NUON_DEBUG=true nuon apps list ``` ## Choosing a CLI version The CLI and the control plane are released together and share a version number. Install the CLI version that matches your control plane. | Deployment | CLI version to install | When to update | | - | - | - | | [Nuon Cloud](/guides/nuon-cloud) | The latest release | After each Nuon release. Nuon Cloud upgrades with every release. | | [Nuon BYOC](/guides/byoc) | Your control plane's version | After Nuon upgrades your control plane. | | [Nuon Self-Hosted](/guides/self-hosted) | Your control plane's version | After you upgrade your control plane. | ### Check your versions `nuon version` prints the CLI's version, your control plane's version, and the minimum CLI version your control plane requires, if it sets one: ```sh theme={null} nuon version ``` If the CLI isn't pointed at a control plane yet, or can't reach it, `nuon version` prints only the CLI's version. To look up the control plane's version without the CLI, for example in a script, query its `/version` endpoint. This uses Nuon Cloud unless `NUON_API_URL` is set: ```sh theme={null} curl -s "${NUON_API_URL:-https://api.nuon.co}/version" | jq -r .version ``` ### Update to the latest release On Nuon Cloud, update with Homebrew: ```sh theme={null} brew update brew upgrade nuonco/tap/nuon ``` If you installed with the install script, run it again. For manual installs, download the version in `latest.txt`. ### Install your control plane's version On Nuon BYOC or Self-Hosted, install the version your control plane reports. With the install script, you can look up the version and install it in one step: ```sh theme={null} export NUON_API_URL=https://api.your-byoc-instance.com NUON_VERSION=$(curl -fsS "$NUON_API_URL/version" | jq -r .version) \ bash <(curl -sSL https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/install.sh) --no-input ``` With Homebrew, every release is published as a versioned formula, `nuonco/tap/nuon@`. To install one, or to keep several versions and switch between them, see [Using multiple CLI versions](/guides/cli-versions). For a manual install, download the binary for your control plane's version as shown in [Manual Binary Download](#manual-binary-download). In GitHub Actions, the [Nuon GitHub Action](/guides/github-actions#choosing-the-cli-version) installs your control plane's version by default. ### Version warnings The control plane publishes two CLI floors on `GET /v1/general/cli-config`. `min_cli_version_policy.error` is the oldest CLI that control plane will run. Commands other than `version`, `help`, `docs`, and `login` stop when your CLI is older than that floor. `login` still signs you in and prints the message. `min_cli_version_policy.warn`, when set, prints a warning and the command still runs. An empty warn means the CLI does not warn. Nuon Cloud leaves warn empty so a routine promote does not nag. Nuon BYOC and Self-Hosted set warn when they want an upgrade nudge. `min_cli_version` is deprecated. It remains the warning floor for older CLIs, and is used only when `min_cli_version_warn` is empty. Set `min_cli_version_warn` to a version, or to `latest`, to follow Nuon's latest release. The control plane resolves `latest`. `min_cli_version_error` is a pinned version. `server_side_sync_min_cli_version` stays a separate warning on `nuon apps sync` for CLIs that predate server-side app config sync. When you see a warning or an error, update the CLI. On Nuon Cloud, [update to the latest release](#update-to-the-latest-release). On Nuon BYOC or Self-Hosted, [install your control plane's version](#install-your-control-planes-version). ### Using the CLI with Nuon BYOC or Self-Hosted If you use [Nuon BYOC](/guides/byoc) or [Nuon Self-Hosted](/guides/self-hosted), your control plane runs in your own infrastructure, and the CLI needs its API URL. By default, the CLI uses Nuon Cloud (`https://api.nuon.co`). `nuon auth login` asks which deployment you use. Choose Nuon BYOC and enter your control plane's API URL: ![Nuon auth login](https://mintcdn.com/nuoninc/l1xOeqOMK9hEo3iD/images/resources/cli/cli-auth-login.png?fit=max\&auto=format\&n=l1xOeqOMK9hEo3iD\&q=85\&s=675e9354a27753f73c301427eb9a1e04) Or set the API URL with `NUON_API_URL`, and login asks you to confirm it instead: ```sh theme={null} NUON_API_URL=https://api.acme-byoc.example.com nuon auth login ``` Login saves the API URL, your token, and your selected org to the CLI's config file, `~/.nuon`, so later commands use the same control plane. Logging in to another control plane replaces them. If you also use Nuon Cloud or another control plane, give each one its own config file with `NUON_CONFIG_FILE` (or `--config`): ```sh theme={null} NUON_CONFIG_FILE=~/.nuon-acme-byoc NUON_API_URL=https://api.acme-byoc.example.com nuon auth login NUON_CONFIG_FILE=~/.nuon-acme-byoc nuon apps list ``` A shell alias saves typing the config file each time: ```sh theme={null} alias nuon-byoc='NUON_CONFIG_FILE=~/.nuon-acme-byoc nuon' nuon-byoc apps list ``` Then [install your control plane's version](#install-your-control-planes-version) of the CLI. To keep it alongside the latest release for Nuon Cloud, and point an alias at each, see [Using multiple CLI versions](/guides/cli-versions). ## Nuon Preview Features We are working on a number of TUIs for the CLI. These include contextual TUIs for object selection and full-page TUIs for workflows and actions. These features can be enabled by setting `NUON_PREVIEW=true`. ![Nuon CLI TUI](https://mintcdn.com/nuoninc/jvitiYaP4mvn2f7m/images/resources/cli/workflow.png?fit=max\&auto=format\&n=jvitiYaP4mvn2f7m\&q=85\&s=4a302526ba6b4b2daeee3e4fce66c91f) At the time of writing, we have experimental TUIs for actions, workflows, and for creating new installs. ### Nuon CLI Extensions The `nuon` cli has support for extensions. You can browse nuon-authored extensions with `nuon ext browse` and author your own. At the time of writing, we have published a handful of extensions for public consumption. Try our api extension with `nuon install api`. ![Nuon Extensions](https://mintcdn.com/nuoninc/BZqGN-HJbuXp-0U2/images/resources/cli/extensions.png?fit=max\&auto=format\&n=BZqGN-HJbuXp-0U2\&q=85\&s=7c1c74947a09d71178c2895bbef43538) # Common commands Source: https://docs.nuon.co/cli-commands The Nuon CLI commands you'll reach for most, from auth to deploy. The commands you'll use most. Run `nuon --help` (or `nuon --help`) for the full set. ## Global flags These work on every command. | Flag | What it does | | - | - | | `--config `, `-C ` | Use a custom config file instead of `~/.nuon`. Can also be set with the `NUON_CONFIG_FILE` env var. | | `--output ` | Output format: `table` (default), `json`, or `agent`. Can also be set with `NUON_OUTPUT`. | | `--read-only` | Block any command that modifies state. Can also be set with `NUON_READ_ONLY=1`. | | `--debug` | Print per-request API timing to stderr. | ## Names and defaults Flags that take an app, install, component, action, runbook, or branch ID generally accept the resource's name as well. The `-i` (install) and `-a` (app) flags default to the install or app you last selected, so you can usually leave them off. ```sh theme={null} nuon actions create-run -i customer1 -w pg_status ``` ## Authenticate | Command | What it does | | - | - | | `nuon auth login` | Sign in (browser SSO). Run this first. | | `nuon auth logout` | Sign out. | ## Organizations | Command | What it does | | - | - | | `nuon orgs select` | Switch your active org. A new trial account has a single org that's selected automatically when you log in, so you only need this once you belong to more than one. | | `nuon orgs current` | Show the active org. | | `nuon service-accounts create --name --role ` | Create a [service account](/concepts/service-accounts) in the current org with a role (run `nuon roles list` or see [Access control](/concepts/access-control)). Requires org admin. | | `nuon service-accounts tokens create --id ` | Create a durable API token for a service account (shown once). Add `--name` to label it and `--duration` to change the one-year default. | | `nuon service-accounts tokens list` | List the org's service account API tokens. Add `--id ` to only list one service account's tokens, or `--search ` to search by name or ID. | | `nuon service-accounts tokens delete --token-id ` | Revoke a service account's API token. | | `nuon orgs update-user-role --user-id --role ` | Change an org member's role (run `nuon roles list` or see [Access control](/concepts/access-control)). Requires org admin. | ## Apps & config | Command | What it does | | - | - | | `nuon apps create --name ` | Create an app template in the control plane. | | `nuon apps validate [dir]` | Validate an app config directory (default: the current directory). Requires login, and it looks up the app by the directory's name, so an app with that name must exist. Run `nuon apps create` first. | | `nuon apps list` | List your apps. | | `nuon apps select` | Set your active app. | ## App branches These subcommands operate on the selected app. Use `nuon apps select` to choose it; commands that accept `--app-id` can use the ID from `nuon apps list` when you do not want to rely on the selected app. `nuon apps branches` is a deprecated alias; use `nuon branches`. | Command | What it does | | - | - | | `nuon branches sync --file ` | Reconcile branch settings from a TOML file or directory. Directory mode can propose deleting remote branches missing locally; a single file never deletes others. | | `nuon branches list` | List the selected app's branches. | | `nuon branches get --branch-id ` | Show a branch and its install groups. | | `nuon branches create --name ` | Create a branch without syncing a config file. | | `nuon branches trigger --branch-id ` | Start a real branch run. Add `--force` to rebuild every component. Add `--run-type` (`pr`, `tag`, or `commit`) and `--run-ref` to deploy a specific source. | | `nuon branches preview --branch-id --git-ref --mode plan-only` | Preview a committed Git ref. Use `--pr-number` for a pull request; `--mode` also accepts `apply` or `build-only`. | | `nuon branches runs --branch-id ` | List the selected app's branch runs and open one in the workflow TUI. | | `nuon branches delete --branch-id --confirm` | Delete a branch. | > [!NOTE] > > `nuon apps sync` and `nuon sync` are deprecated: app config ships through a branch file synced once with > `nuon branches sync`, then a push to the tracked git branch. Once they are turned off for your org, running > `nuon apps sync` in an interactive terminal offers to migrate: it writes a branch file, syncs it, and offers to move > your installs onto the branch. See [Migrating from `nuon apps sync`](/guides/app-branches#migrating-from-nuon-apps-sync). ## Installs | Command | What it does | | - | - | | `nuon installs create` | Create an install of the selected app. | | `nuon installs list` | List installs. Add `--labels k=v` (repeatable) to filter; all labels must match. | | `nuon installs get` | Show an install's details. | | `nuon installs labels set --install-id k=v ...` | Set labels on an install. Install group [label selectors](/guides/app-branches) match on these. | | `nuon installs labels list --install-id ` | List an install's labels. | | `nuon installs labels unset --install-id ...` | Remove labels from an install. | | `nuon installs components deploy-all` | Deploy all components to an install. | | `nuon installs outputs` | View an install's outputs. | ## Operate | Command | What it does | | - | - | | `nuon runbooks --install-id ` | View and run [runbooks](/guides/runbooks) for an install. | | `nuon actions` | Manage and run app [actions](/guides/actions). | | `nuon components` | Manage app components. | ## Agents / MCP Operate Nuon from an LLM client. See [Agents](/guides/agents/overview). | Command | What it does | | - | - | | `nuon agents help` | Setup guide. When an agent runs it, prints orientation markdown: auth, selected org/app/install, MCP HTTP URL, and the tool catalog. | | `nuon agents mcp` | Stdio MCP proxy (`--allow-writes` in examples so mutating tools are listed). Its URL is derived from the configured API hostname (`api.` becomes `mcp./mcp`). `--url` / `--name` override the upstream server and the name in the client's MCP list. Per-client registration: [MCP Install Guide](/guides/agents/setup). | ## Help | Command | What it does | | - | - | | `nuon --help` | Help for any command. | | `nuon docs` | Open the docs. | | `nuon completion ` | Generate shell autocompletion. | | `nuon version` | Show the CLI version, the control plane API version, and `min_cli_supported_version` when the control plane sets one. | # Access Control Source: https://docs.nuon.co/concepts/access-control How to control what team members and service accounts can do in your Nuon org. Every identity in your Nuon org — whether a team member or a [service account](/concepts/service-accounts) — must be assigned a **role**. The role determines what that identity can read and change in the org. Roles are org-scoped: a role assigned in one org grants no access in any other org. ## Available roles | Role | Value | Grants | | - | - | - | | **Admin** | `org_admin` | Full access to the org and everything in it, including team and credential management. | | **Read-only** | `org_read_only` | Read-only access to everything in the org; cannot make changes. | ## Assigning roles The same role set applies everywhere an identity is created. You choose a role when you: * [Invite a team member](/guides/team-management) — or change an existing member's role * Create a [service account](/concepts/service-accounts) * Create an [OIDC trust policy](/concepts/oidc-federation) [API tokens](/concepts/api-tokens) belong to a [service account](/concepts/service-accounts), and [OIDC trust policies](/concepts/oidc-federation) are each backed by a dedicated service account. The service account carries the role, so a token or an exchanged token acts as that service account, with exactly the access its role grants. Legacy personal API tokens are deprecated: they act as the team member who created them, with all of that person's access, and keep working only until they are revoked. > [!NOTE] > > An identity holds one role at a time; assigning a new role replaces the old one. ## Permission errors When an identity attempts something its role does not allow, Nuon returns a message describing the access the action requires and the role you currently hold — for example, "this action requires write access to installs in this organization." Ask an org admin to assign a role that grants the needed access. ## Reserved roles The **Runner** role is reserved for the machine accounts Nuon provisions for your runners. It is assigned automatically and is never user-selectable. The **Stack** role is reserved for the machine accounts Nuon provisions for install stacks managed with the Terraform module. It is assigned automatically, is never user-selectable, and — unlike the org-wide roles — grants access scoped to a single install. See [Stack service accounts](/concepts/service-accounts#stack-service-accounts) for details. # Actions Source: https://docs.nuon.co/concepts/actions Automate operational tasks and workflows in installs. Actions allow you to create automated workflows that can be run in installs. Actions are useful for debugging, running scripts, and implementing health checks. ## What are Actions? Actions are reusable workflows that can be configured to run on your installs. Each action consists of: * A trigger that determines when the action runs * One or more steps that define what the action does Actions can be used for: * Running [database migrations](/guides/database-migrations) * Executing maintenance scripts * Collecting diagnostic information * Automating operational tasks * Running custom health checks ## How do you configure an Action? Create an `actions` directory at the root of your app config directory, and create a TOML file for each action. e.g., `alb_healthcheck.toml` `deployment_restart.toml` `kubectl_logs.toml`. Actions along with components, the sandbox and app metadata are sent to the Nuon control plane by your [app branch](/concepts/app-branches): each push to the tracked git branch starts a run that uploads them. If you change or add actions, commit and push again to upload the changes. But unlike components, actions do not need to be built. The app template's **App actions** page lists each action with its triggers and steps. If actions need to connect to a VCS, use either a public repo (using a `public_repo` block) or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). For example, to pull logs from all Kubernetes pods in a namespace, you would write an action like this: ```toml actions/kubectl_logs.toml theme={null} # action name = "kubectl_logs" timeout = "30s" [[triggers]] type = "manual" [[steps]] name = "kubectl logs" inline_contents = """ #!/usr/bin/env sh kubectl logs -n $NAMESPACE --all-containers=true -l app.kubernetes.io/name=ctl-api-api """ [steps.env_vars] NAMESPACE = "default" ``` For example, if you wanted to implement a healthcheck for an AWS ALB, you would write something like this: ```toml actions/http_healthcheck.toml theme={null} # action name = "http_healthcheck" timeout = "0m15s" [[triggers]] type = "cron" cron_schedule = "*/5 * * * *" [[triggers]] type = "manual" [[steps]] name = "healthcheck" command = "./healthcheck" [steps.public_repo] repo = "nuonco/actions" branch = "main" directory = "common" [steps.env_vars] ENDPOINT = "https://your-app.{{.nuon.install.sandbox.outputs.public_domain.name}}" METHOD = "HEAD" EXPECTED_STATUS_CODE = "200" ``` > [!NOTE] > > We maintain a [collection of commonly-used > actions](https://github.com/nuonco/actions) in an open-source repo for you to > get started with. ## Container Actions By default an action's steps run directly on the install [runner](/concepts/runners) VM, so they are limited to the tooling that VM carries. An action can instead declare a container `image`, in which case every step runs inside that image and ships with whatever tools it needs: ```toml actions/db_migrate.toml theme={null} # action name = "db_migrate" timeout = "10m" image = "ghcr.io/acme/migrate-tools:v1.4.0" ``` The image can be a public reference, or the `image.ref` output of a [container image component](/guides/container-image-components) when the tools image is private. See [Container actions](/guides/container-actions) for how to configure one. ## Running Actions Actions can be triggered in several ways: * Manually via the dashboard or CLI * On a schedule * In response to events To run an action manually with the CLI: ```sh theme={null} nuon actions create-run -i -w ``` Pass `--env KEY=VALUE` (repeatable) or `--env-file ` to set environment variables for the run, and `--wait` to wait for completion and print the action's logs: ```sh theme={null} nuon actions create-run -i customer1 -w pg_status --env DEBUG=true --wait ``` With `--wait`, the command exits non-zero if the run does not finish successfully, including when it times out. ## Action Triggers Actions can run manually, on a cron schedule, or in response to install lifecycle events. The supported triggers that are not tied to a specific component are: * `manual` * `cron` * `pre-provision` * `post-provision` * `post-provision-sandbox` * `pre-reprovision` * `post-reprovision` * `pre-deprovision` * `post-deprovision` * `pre-deploy-all-components` * `post-deploy-all-components` * `pre-teardown-all-components` * `post-teardown-all-components` * `pre-deprovision-sandbox` * `post-deprovision-sandbox` * `pre-reprovision-sandbox` * `post-reprovision-sandbox` * `pre-update-inputs` * `post-update-inputs` * `pre-secrets-sync` * `post-secrets-sync` * `role-enabled` * `role-disabled` Each workflow trigger is called at the beginning or end of the workflow. In some cases, such as `pre-provision` or `pre-reprovision` that include a stack-run, the trigger will be called right after the runner is healthy. `post-provision-sandbox` runs immediately after the initial sandbox apply succeeds, before secrets sync, DNS provisioning, and component deployment. `post-provision` runs after the complete install provision workflow, including component deployment. ### Role change triggers The `role-enabled` and `role-disabled` triggers fire when a customer enables or disables an [operation role](/concepts/operation-roles) or [break glass role](/concepts/break-glass) in their install stack. Use these to run validation, auditing, or setup tasks whenever elevated permissions are granted or revoked. ### Component triggers The following triggers require a `component_name` field to be set, as they are tied to a specific component: * `pre-deploy-component` * `post-deploy-component` * `pre-teardown-component` * `post-teardown-component` * `pre-enable-component` * `post-enable-component` * `pre-disable-component` * `post-disable-component` The enable and disable triggers run when an input update changes a toggleable component's enabled state. > [!NOTE] > > `pre-component-deploy` and `post-component-deploy` have been renamed to > `pre-deploy-component` and `post-deploy-component` for consistency with other > triggers. `pre-sandbox-run` and `post-sandbox-run` have been deprecated, in > favor of `pre|post-reprovision`, `pre|post-provision`, and > `pre|post-deprovision` Action Triggers are documented in the [Changelog 009](/updates/009-action-triggers-secrets-configs#action-triggers). ## Action History On an install's **Actions** tab, each action shows its last run, duration, most recent trigger and status. Open an action to see its run history, triggers and configured steps. You can view the history of action runs using the CLI: ```sh theme={null} nuon actions recent-runs -i -w ``` Or get details about a specific run: ```sh theme={null} nuon actions get-run -i -r ``` ## Action Permissions Actions are run with the same permissions as the [Runner](/concepts/runners) in each install. # API Source: https://docs.nuon.co/concepts/api Create and manage installs programmatically via the Nuon Control Plane API. Use the [Nuon API](https://api.nuon.co/docs/index.html) to embed install management in your own product, automate provisioning at scale, or integrate Nuon into an existing workflow engine. ## End-to-end examples To let customers set up BYOC from your app, see [Build a UI integration](/guides/ui-integration). To let them change, approve, or remove their install afterward, see [Let customers manage their install](/guides/control-plane-integration). Endpoints that create a workflow accept an optional `request_id` so a retry returns the original workflow. See [Idempotent operations](/guides/idempotent-operations). # API Tokens Source: https://docs.nuon.co/concepts/api-tokens Durable tokens for authenticating to the Nuon Control Plane API. An **API token** authenticates requests to the [Nuon Control Plane API](/concepts/api). Use one to call the API, drive the CLI in CI/CD, or integrate Nuon into your own product. ## Token types * **Service account token** — the supported kind of API token. The token belongs to a [service account](/concepts/service-accounts) and acts as that account, with the account's role, in the current org only. Create a service account with the role you want, then create one or more tokens for it. * **Personal token** (legacy, deprecated) — a token issued against a person's own account. Personal tokens are deprecated because they carry all of their creator's access, in every org that person belongs to. Existing personal tokens keep working until they are revoked; org admins can find and revoke them in the dashboard under **Settings → API tokens**, in the legacy personal tokens section. ## Token properties | Property | Description | | - | - | | **Name** | A human-readable label to identify the token. Defaults to the service account's identity. | | **Duration** | How long the token is valid. Defaults to `8760h` (one year). | A token's permissions come from its service account's role. See [Access control](/concepts/access-control) for the available roles. Creating and managing API tokens requires **org admin** access. ## Managing tokens In the dashboard, go to **Settings → API tokens** to see and revoke the tokens in the org. In the CLI, tokens are managed through [service accounts](/concepts/service-accounts). A token's access comes from the account it belongs to, so you create a service account with the role you want, then create tokens for it. ### Creating a token Create a service account with a role, then create a token for it: ```sh theme={null} nuon service-accounts create --name ci --role org_read_only nuon service-accounts tokens create --id --name ci-token ``` Tokens expire after one year by default. Use `--duration` to change that: ```sh theme={null} nuon service-accounts tokens create --id --name ci-token --duration 720h ``` > [!NOTE] > > Tokens are shown **only once** at creation time. Store the value somewhere safe (a secret manager or CI secret); you cannot retrieve it again later. ### Listing tokens List every service account token in the org: ```sh theme={null} nuon service-accounts tokens list ``` Only list the tokens for one service account: ```sh theme={null} nuon service-accounts tokens list --id ``` Search tokens by name or ID: ```sh theme={null} nuon service-accounts tokens list --search ci ``` Token secrets are never returned. ### Revoking tokens Delete a token to revoke its access immediately: ```sh theme={null} nuon service-accounts tokens delete --token-id ``` > [!NOTE] > > The `nuon orgs api-tokens` commands are deprecated. They still work, but print a warning pointing to the commands above. ## Using a token To use a token, include it in API requests as a Bearer credential in the `Authorization` header: ```sh theme={null} curl https://api.nuon.co/v1/current-user \ -H "Authorization: Bearer " ``` You can also use a token with the CLI by setting it as the value of the `NUON_API_TOKEN` environment variable or the `api_token` config value. ```sh env theme={null} export NUON_API_TOKEN= ``` ```sh ~/.nuon theme={null} api_token: ``` # App Branches Source: https://docs.nuon.co/concepts/app-branches App branches connect a git branch to your app template, so a push rolls the change out across your fleet of customer installs through ordered install groups with a plan and an approval at every step. ## What is an App Branch? An app branch connects one git branch to your [app template](/concepts/apps). By default, a push to the tracked branch triggers Nuon to fetch the config at that commit, build whatever changed, and roll the new version out across your customer [installs](/concepts/installs) in an order you define, with a plan and approval gate for each install group. You can also start runs with a matching tag, an exact label on a merged pull request, or a manual trigger from the CLI, API, or dashboard. Opening or updating a pull request can start a preview, which reports changes without rolling out the fleet. Before app branches, updating a fleet meant syncing config from your laptop and driving each install yourself. An app branch makes the git event the trigger, and makes the rollout a single reviewable workflow. ## The end-to-end flow ```mermaid theme={null} flowchart TD push["Commit pushed to the tracked branch"] --> fetch["fetch commit
clone the repo at that SHA"] fetch --> config["fetch app config
parse and sync the app config"] config --> build["building components and sandbox
only what changed since the last successful run"] build --> plan1["plan install group: stage
diff per install"] plan1 -->|approve| deploy1["deploy install group: stage"] deploy1 --> plan2["plan install group: production
diff per install"] plan2 -->|approve| deploy2["deploy install group: production"] ``` Each box is a step in a single workflow, visible in the dashboard and in the CLI workflow TUI. The step names above are the real ones you will see. Two of them behave specially: * **`plan install group: `** is an approval step. It computes the config diff for every install in the install group and then waits. Nothing is applied to those installs until a human approves it in the dashboard, or an API caller advances it. * **`plan install group: `** and **`deploy install group: `** are skippable, so you can let a rollout move past an install group without deploying to it. > [!NOTE] > > **`building components and sandbox`** builds your components on every run, and builds the sandbox into an artifact > when the app has a sandbox config. See [sandbox builds](/guides/sandbox-builds). Install groups run in the order you declare, and the approval in front of each install group is what makes the rollout staged: the second install group does not start until you approve the first. ## Structuring branches and install groups An **app branch** is a release train: which git ref you watch, and how installs on that train are rolled out. An **install group** (`install_groups` in TOML) is a wave inside that train. It is the unit of order and approval. Install groups pick installs with a `label_selector`. Labels live on [install configs](/guides/install-configs); you apply them with `nuon installs sync`. Common layouts: * **Snowflake customers:** one app branch per customer (their own cadence and approvals). Install groups on that branch for `stage` → `production`. * **Homogeneous fleet:** one app branch for many installs that share the same app config (for example single-tenant customers in the vendor's cloud). Install groups for stage, then production across the fleet. * **Cadence cohorts:** more than one branch of the same app, such as `main` on every push for early customers and a slower branch (`on_tag`, `on_github_label`, or `manual_only`) for weekly or monthly updates. Whenever you declare install groups, **exactly one** install group must set `default = true`. That install group catches installs on the branch that match no other selector. An install belongs to **one** app branch at a time. See the [guide](/guides/app-branches#structure-branches-and-install-groups) for sketches of each pattern. ## What triggers an app branch run A **branch run** is the workflow Nuon starts for a change: it fetches the config at a git commit, builds what changed, then plans and deploys through your install groups (with a plan and approval at each step). Previews are optional but recommended for testing a change before it merges into the tracked branch. A preview run starts only from a pull request into the tracked branch (automatic `[preview]` defaults) or manually from the CLI or dashboard (`nuon branches preview`). It never rolls install groups. Fleet runs (push, tag, label, `nuon branches trigger`) are separate and do not use `[preview]`. A preview can stop at build, build and plan, or build, plan, and apply to a preview install. See [Previews](/guides/app-branches#previews). | Trigger (dashboard / CLI) | What starts it | Branch config | | - | - | - | | **Commit pushed** | Push to the tracked branch (fleet run) | `[run] mode = "push"` (default) | | **Pull request** | PR opened or updated against the tracked branch (**preview** only; no install groups) | `[preview]` settings (GitHub App for comments and statuses) | | **Manual run** | `nuon branches trigger`, API, or dashboard (fleet run) | Always available | | **Tag pushed** | Tag matching `tag_prefix` on that branch's history (fleet run) | `[run] mode = "on_tag"` | | **Label triggered** | Merged PR with an exact label (fleet run) | `[run] mode = "on_github_label"` | `[run] mode = "manual_only"` turns off automatic Commit pushed / tag / label starts; you still trigger runs by hand. ## Install groups An install group is a named subset of your installs that receives an update as a unit. Install groups are the unit of ordering and the unit of approval. Names are yours; common examples are `stage`, `production`, `uat`, `canary`, and `preview`. You declare them on the branch config as `[[install_groups]]`. Each install group picks installs with a `label_selector` (all listed labels must match). Prefer keeping those labels in install config files and applying them with `nuon installs sync`. ```toml branches/main.toml theme={null} name = "main" [connected_repo] repo = "acmeco/my-app-config" directory = "." branch = "main" [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] env = "prod" ``` `order` controls which install group deploys first: lower runs first. **Exactly one** install group must set `default = true` when you declare any install groups. ## Plans, diffs, and approvals Every change a branch run applies to an install is planned and reviewed first. Each `plan install group` step computes a diff per install in that install group. By default the plan waits for approval. Set `auto_approve_on_policies_passing = true` on an install group to approve automatically when policy checks pass. Try with your agent Approve a rollout ## Install version history Every config change to an install is recorded as an *app config version*. On the install, browse them under **Configuration → App branch → Applied config history**, or over the API; there is no dedicated CLI command. Each version includes the component diff for that change, not a picker between arbitrary versions. Because any past version can be applied again, the history doubles as a recovery path. The [rollback guide](/guides/rollback-install-config) walks through the exact calls. ## Notifications and automation Branch runs emit the same signals as the rest of the platform, so you can watch them without polling: * **[Slack](/guides/slack):** branch run notifications follow your org's existing Slack preferences. * **[Webhooks](/guides/webhooks):** branch runs emit workflow and workflow step lifecycle events (`com.nuon.workflow.lifecycle.v1`) with `data.workflow.owner_type` of `app_branches`, plus an event when an app config is synced. External systems can react to a plan being ready, or to an install group finishing, and can drive the next approval through the API. ## Rules and limits Know these constraints before you design your branch layout: * All branches of one app must point at the **same repository**. The branch and directory within it may differ. * An install can belong to **one app branch** at a time. * Two branches of the same app cannot use an **identical label selector**. * When `install_groups` is non-empty, **exactly one** install group must set `default = true`. * Every qualifying event on the tracked branch can start a run. Scope what a branch watches with `directory` on the repo block and, when several apps share a repo, `ignore_changes_regex`. ## Migrating to app branches If you’re moving off CLI-driven `nuon apps sync`, see the [App branch migration](/guides/app-branch-migration) guide. ## Next steps > [card] [Configure app branches](/guides/app-branches) > > Write a branch config, structure install groups, sync with `nuon branches sync`, and optionally set up previews. > [card] [Walkthrough](/get-started/app-branches-walkthrough) > > Add an app branch to the `eks-simple` example app template end to end. > [card] [Branch config reference](/config-ref/branch) > > Every field in a branch file. > [card] [Workflows](/concepts/workflows) > > How plans, approvals, and diffs work for an individual install. # Inputs Source: https://docs.nuon.co/concepts/app-inputs Inputs allow you to define customer provided values that can be used to configure each install of your app template. Inputs are variable parameters used to configure each install of your app template. Inputs can either be user facing or vendor facing. By default all inputs are vendor facing. ## Defining Inputs Inputs are configured in a `inputs.toml` file inside the root of your app directory. Add inputs to your App using the following configuration block ```toml inputs.toml theme={null} # inputs [[group]] name = "network" description = "Configure the install's network settings." display_name = "Network" name = "vpc_id" display_name = "VPC ID" group = "network" description = "ID of the VPC to install the app into." default = "" required = true sensitive = false ``` ### Customer facing inputs A customer facing input is a parameters that can be tweaked by customer via stack inputs (AWS CloudFormation, Azure Resource Manager (Bicep), GCP Terraform) during install creation or any time after that. To mark an input as customer facing mark the parameter `user_configurable = true` in the app input config. Example: ```toml inputs.toml theme={null} [[input]] name = "sub_domain" display_name = "Sub Domain" description = "The sub domain for the Whoami service" group = "dns" default = "whoami" sensitive = false type = "" user_configurable = true ``` Customer facing inputs cannot be modified via the vendor in any way, to modity the input value, customer must go to the install stack and update the input parameter. This triggers a callback to the install which then updates/deploys any/all components which depends on that particular input(s). ## Configuration Using Inputs Inputs can be used to configure both sandboxes and components. All inputs are made available via [variable](/guides/using-variables) configuration. Inputs are defined in a `inputs.toml` file inside the root of your app directory. All inputs are accessed using `{{.nuon.install.inputs.}}`. ### Configuring Sandboxes You can configure Sandboxes by using inputs as `var`s. For example, to use the `root_domain` input, as a variable to configure the sandbox: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-karpenter-sandbox" branch = "main" [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" ``` ### Configuring Components Depending upon the component type, you can use install inputs to configure components using Helm values, Terraform variables or environment variables. To use Inputs in a Terraform module. ```toml components.database.toml theme={null} # terraform type = "terraform_module" name = "database" terraform_version = "1.11.3" [public_repo] directory = "terraform" repo = "your-org/your-repo" branch = "main" [vars] DATABASE_PASSWORD = "{{.nuon.install.inputs.database_password}}" DATABASE_HOST = "{{.nuon.install.inputs.database_host}}" ``` To use inputs in a Helm chart Component. ```toml components/helm-database.toml theme={null} # helm type = "helm_chart" name = "helm-database" chart_name = "database" [public_repo] directory = "helm" repo = "your-org/your-repo" branch = "main" [values] DATABASE_PASSWORD = "{{.nuon.install.inputs.database_password}}" DATABASE_HOST = "{{.nuon.install.inputs.database_host}}" ``` ## App Input Groups You can organize inputs into groups, which are useful for structuring how they are visualized in the install. By default, all inputs are created in the `default` group. To create a group, and add an input to it, simply declare the group in your config or terraform and set the `group` field on any input belonging to it. ```toml inputs.toml theme={null} # inputs [[group]] name = "db" description = "Configuration for the database " display_name = "Database configuration" [[input]] name = "db_password" description = "Password to use for the database." default = "" sensitive = true display_name = "Password" group = "db" ``` ## Inputs For Customer Resources Inputs are commonly used to allow a customer to provide access to existing resources. For example, an input can be used for: * accepting a database url, or database ID to connect to * accepting a VPC ID to install an app into * accepting an existing S3 bucket name to use for storage * accepting an existing Kubernetes cluster ID to connect to * accepting a token to access a third party cloud provider or account ## Inputs when Installing an App When installing an app, the customer is presented with a modal form to fill out the inputs defined in the app's `inputs.toml` file. ![Inputs](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/inputs/inputs.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=8381a8ea95880f95edf618fa2ec6dba4) ## Updating Inputs If you add a required input *after* an install is created, the inputs must be added to the install before it can process any new sandbox updates or component provision/deprovision jobs. ![Updating inputs](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/inputs/inputs-update.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=bac17140a46c45ca873ec6666af4271a) > [!NOTE] > > We recommend avoiding adding backwards incompatible input changes in the same > app. # Secrets Source: https://docs.nuon.co/concepts/app-secrets Define and manage sensitive values, such as credentials, API keys, and tokens, used to configure the components and actions of your app template. Secrets allow you to configure components with sensitive values and keys. Secret metadata, but not secret values, is defined in `secrets.toml` and incorporated into the install instructions. The customer supplies values while setting up the install with their own cloud credentials. Values are stored in AWS Secrets Manager, Azure Key Vault, or GCP Secret Manager, depending on the install's cloud provider. > [!NOTE] > > Because the customer deploys the Nuon-generated Stack using their cloud credentials, the customer, not the vendor, > supplies the secret values. Neither Nuon nor the vendor sees these values because they are not stored in the Nuon > Control Plane. Secrets can be used to configure components and actions using [variables](/guides/using-variables). ## How do you configure a secret? Within your app directory, create a file named `secrets.toml`. This file will contain the configuration for your secrets. Alternatively, you can create a directory named `secrets` and place individual Secret files inside it, such as `github_app_key.toml`, `vendor_license_key`. ```toml secrets.toml theme={null} # secrets [[secret]] name = "github_app_key" display_name = "GitHub App Key" description = "Base64 encoded Github App Key" required = true format = "base64" [[kubernetes_sync_targets]] namespaces = ["control-plane"] name = "github" key = "app-key" [[secret]] name = "vendor_license_key" display_name = "Vendor license key" description = "Vendor license key" required = true [[kubernetes_sync_targets]] namespaces = ["app"] name = "vendor-license" key = "key" [[secret]] name = "rds_secret" display_name = "database password" description = "database password" required = true auto_generate = true [[kubernetes_sync_targets]] namespaces = ["workers", "control-plane"] name = "storage" key = "db-password" ``` Use the key-value pair `kubernetes_sync = true` to indicate that the secret should be synced to Kubernetes as a Secret object. The `kubernetes_secret_namespace` and `kubernetes_secret_name` fields specify where the secret will be created in Kubernetes. This workflow step is run after the provisioning of a Kubernetes sandbox and uses the key of `value` when creating the Kubernetes secret. ## Configuring components with secrets Reference secret identifiers from Stack outputs, and then use them in your component configuration. The following examples use AWS Secrets Manager and CloudFormation; Azure and GCP Stacks provide equivalent provider-specific outputs. ### Terraform components with secrets ```toml components/open_webui.toml theme={null} # terraform name = "open_webui" type = "terraform_module" terraform_version = "1.13.5" ... [vars] ... openai_secret_arn = "{{ .nuon.install_stack.outputs.openai_api_key_arn }}" ``` ### Helm components with secrets ```toml components/my-component theme={null} # helm name = "helm" type = "helm_chart" chart_name = "chart-name" [connected_repo] directory = "helm" repo = "org/repo" branch = "main" [[values_file]] contents = "./values/values.yaml" ``` ```yaml values.yaml theme={null} service: port: 80 targetPort: 3000 secrets: botTokenSecret: bot-user-oauth-token ``` Then reference the secret with the `value` key in the Helm chart template. ```yaml deployment.tpl theme={null} apiVersion: apps/v1 kind: Deployment --- containers: - name: slack-app image: '{{ .Values.image.repository }}:{{ .Values.image.tag }}' ports: - containerPort: { { .Values.deployment.containerPort } } env: - name: SLACK_BOT_TOKEN valueFrom: secretKeyRef: name: { { .Values.secrets.botTokenSecret } } key: value ``` ## Configuring actions with secrets Reference the secrets from AWS Secrets Manager as outputs from the CloudFormation stack, and then use them in your actions config. In this example, the secret is assigned to an action environment variable and then referenced in a script. Note the script is stored in the `src` directory of the app. ```toml actions/rds_secrets.toml theme={null} [[triggers]] type = "post-deploy-component" component_name = "rds_cluster" [[steps]] name = "Copy RDS Secret for deployment" command = "./rds_secrets/import.sh" [steps.env_vars] SECRET_ARN = "{{ .nuon.install_stack.outputs.rds_secret_arn }}" ``` ```sh src/rds_secrets/import.sh theme={null} #!/usr/bin/env bash secret_arn="$SECRET_ARN" echo "[rds-secrets import] reading db access secrets from AWS" secret=`aws --region $region secretsmanager get-secret-value --secret-id=$secret_arn` ``` ## Changing Secrets Outside of the App If you change an app secret directly in your cloud secret manager or by updating the Stack, Nuon will not automatically detect the change. In order for Nuon to be aware of the change, you will have to either reprovision the install or review the dependency graph in the dashboard and manually redeploy the components or actions that depend on the secret. > [!NOTE] > > `telemetry-export-config` is runner configuration, not an app-defined secret. The runner automatically detects changes > to that secret. See [Export Runner Audit Logs](/guides/export-runner-audit-logs). If your secrets are configured to sync with Kubernetes, go to the install dashboard and manually select sync secrets in the Manage drop-down. > [!NOTE] > > If you have a use case for working with secret values not covered here, Please [contact > us](https://nuon.co/contact-us). # App Variables Source: https://docs.nuon.co/concepts/app-variables App Variables allow you to store values through the API to be used across installs of an app template. App variables are values that you can store in the API to be used across all installs of an app template. App variables are meant for sensitive values that you want to manage through the API, but do not want included in the app as an input or secret. For example, an API key where you don't want it visible in the app's inputs TOML file as part of a git-backed repo. Nuon's API stores app variables in the Nuon data plane which is a PostgreSQL database with no encryption. ## Defining App Variables You can create app variables using the CLI. ```sh theme={null} nuon apps variables create --name=external_api_key --value=b25yYW5nZXRpZ2h0bHlhdHRlbXB0cGxlbnR5cmVhZGRvdWJsZXdlc3RleWVodW50d2g= ``` Once created you should be able to view the default using the CLI. ```sh theme={null} nuon apps variables list ``` If you no longer need the default, you can delete it using the CLI ``` nuon variables delete --id=app_variable_id ``` ## Using App Variables App variables are included in the install state, and are available in job plans. Using our example secret named `external_api_key`, you could reference its value in your app config with the template expression `{{ .nuon.app.variables.external_api_key }}`. > [!NOTE] > > If you add or update an app variable after an install has been created, you > will need to update that install's state before the value will be included in > plans. Running a deploy or sandbox provision will trigger a state update. # App Templates Source: https://docs.nuon.co/concepts/apps Your existing application, mapped to Nuon so it can install in any customer's environment. An app is your template for creating [installs](/concepts/installs) in a customer's account. You map your existing application, Nuon makes it deployable into any customer's environment.
    ## What you map * **[Components](/concepts/components)**: the Helm charts, Terraform modules, Kubernetes manifests, and container images you already use. * **[Inputs](/concepts/app-inputs)** and **[secrets](/concepts/app-secrets)**: what changes per customer, such as region or an API key. The app lives as TOML in your own git repo. The [configuration reference](/config-ref) covers every file. > [!TIP] > > Change your app any time. Push to git, and an [app branch](/concepts/app-branches) rolls the change out to your > installs. # Break Glass Source: https://docs.nuon.co/concepts/break-glass Customers can grant you elevated access when you need it. When a critical part of your app goes down, you need unusually high access, customer security teams will want auditability and scoped permissions. Nuon records when access was granted, what ran, and when it access was removed, so you can show them afterward. ## How it works **1. You define the emergency level of access** Define the role and permissions you'll need when something goes wrong. **2. Your customer controls when and how the role is created** Your customer's security team can review the role before it's ever created. **3. Your customer switches it on** When you have an incident, they switch the role on. **4. You run an action** Run an [action](/concepts/actions) or [runbook](/concepts/runbooks) with the role. **5. Your customer switches it off** Your customer switches the role off or removes it. **6. Share the Nuon-generated audit report** Share the post-incident report of everything done in their environment. ## When to use break glass * Debugging an incident * Recovering an install a normal deploy can't fix * [Restoring a database](/guides/database-migrations#use-break-glass-for-elevated-database-access) * Upgrading a Kubernetes cluster ## Break glass and operation roles If your customer switches the same role on every week, ask them to approve it as a standing [operation role](/concepts/operation-roles) instead. | | Break glass role | Operation role | | - | - | - | | Access | Granted when you need it, with a record of every use. | Standing. Your customer approves it once. | | Default | Off. Created only when your customer switches it on. | On. | | Declared in | `break_glass.toml` | `permissions.toml` or `permissions/` | ## Define a break glass role Declare roles in `break_glass.toml` at the root of your app config. Your customer sees each role's `display_name` and `description` when deciding whether to switch it on. ```toml break_glass.toml theme={null} [[role]] name = "{{.nuon.install.id}}-eks-upgrade" display_name = "EKS cluster upgrade" description = "Lets the vendor upgrade the EKS cluster." [[role.policies]] name = "eks-upgrade" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "eks:DescribeCluster", "eks:DescribeUpdate", "eks:UpdateClusterVersion", "eks:DescribeNodegroup", "eks:UpdateNodegroupVersion" ], "Resource": "*" } ] } """ ``` * On GCP, use `gcp_permissions` or `gcp_predefined_role` in place of `contents`. * Azure, use `azure_actions` or `azure_built_in_roles`. See the [config reference](/config-ref/break-glass) for Break Glass roles. ## Use a break glass role Set an action's `role` to the break glass role: ```toml actions/eks-upgrade.toml theme={null} name = "eks-upgrade" timeout = "30m" role = "{{.nuon.install.id}}-eks-upgrade" [[triggers]] type = "manual" [[steps]] name = "upgrade cluster" command = "aws eks update-cluster-version --name $CLUSTER_NAME --kubernetes-version 1.31" [steps.env_vars] CLUSTER_NAME = "{{.nuon.sandbox.outputs.cluster.name}}" ``` To use the role for a single run, pick it in the dashboard's role selector or pass `--role-name` to `nuon actions create-run`. ## Run actions when access is granted A `role-enabled` trigger runs an action as soon as your customer switches a role on. ```toml theme={null} [[triggers]] type = "role-enabled" ``` It fires for any role, so check `ROLE_NAME` first. See [Role change triggers](/concepts/actions#role-change-triggers). ## How your customer switches it on * **CloudFormation:** update the stack with the current template and set the role's `Enable…` parameter. * **Azure:** redeploy the stack with the role's enable parameter set. * **Terraform (stack module, AWS or GCP):** add the role to the module's `roles` map, such as `roles = { "eks-upgrade" = true }`, and apply. * **Terraform (generated files, AWS or GCP):** set `enabled = true` on the role in `break_glass_roles` and apply. ## Audit Every break glass session leaves a record: * **Access granted and removed:** each time a role is switched on or off, Nuon can send a [Slack notification](/guides/slack#role-change-notifications) and a [webhook](/guides/webhooks) event, if you've set them up. * **Work done:** each run shows the role it used in the dashboard. * **Actions in the account:** your customer's cloud audit logs, such as AWS CloudTrail, record each time the runner assumes the role. # CLI Source: https://docs.nuon.co/concepts/cli Manage the full install lifecycle from your terminal. ## Using the CLI to create and manage installs The CLI allows you to embed install management scripts, or install provisioning into your workflow. > [!NOTE] > > [CLI Reference documentation can be found here.](/cli) Every install command takes `--install-id`/`-i` to target a specific install, or you can pin a default with `nuon installs select` and omit the flag on subsequent commands. ### Create an install Before creating an install, run `nuon auth login` to authenticate and `nuon apps select` to make sure you are on the right app template. ```bash theme={null} nuon installs create ``` To see every flag: ```bash theme={null} nuon installs create --help ``` The most common flags are: * `--name` — the name for this install * `--region` — the cloud region to provision into * `--inputs` — `key=value` pairs for the app's [inputs](/concepts/app-inputs) A simple invocation: ```bash theme={null} nuon installs create --name acme-corp --region us-east-1 ``` Passing inputs inline: ```bash theme={null} nuon installs create \ --name acme-corp \ --region us-east-1 \ --inputs healthcheck_interval_seconds=10 ``` After the command runs, a list of your available apps appears. Select one and you'll be redirected to the install page in the browser. ### Find and select an install List, fetch, and pin installs: ```bash theme={null} nuon installs list nuon installs get -i nuon installs select # pins an install as the default for -i nuon installs deselect ``` Pinning is helpful when running several commands against the same install — each subsequent command skips `-i`. ### Inspect and update inputs ```bash theme={null} nuon installs current-inputs -i nuon installs update-input -i --inputs key=value ``` Updating inputs on a provisioned install triggers the workflows needed to propagate the change to any components that depend on them. ### Config-file-driven installs You can describe installs declaratively in TOML files and sync them to Nuon. This is the pattern used in CI and for managing many installs at once. ```bash theme={null} nuon installs sync -a -d nuon installs generate-config -i nuon installs toggle-sync -i --enable ``` For the install config file schema, see the [install config reference](/configuration-files#install-config). ### Deploy and redeploy components ```bash theme={null} nuon installs deploy-components -i nuon installs teardown-component -i --component-id nuon installs teardown-components -i ``` ### Manage workflows and approvals Install lifecycle events run as [workflows](/concepts/workflows). The CLI has an optional TUI that you can start with: ```bash theme={null} nuon installs workflows ``` Or you can jump right into a specific install with: ```bash theme={null} nuon installs workflows watch -i ``` ![Workflow TUI](https://mintcdn.com/nuoninc/5h1TRHoCZAFkTnFw/images/changelog/032-workflow-tui.png?fit=max\&auto=format\&n=5h1TRHoCZAFkTnFw\&q=85\&s=d636e52e3dd324302e4f56d16b8b3783) Or run the steps individually: ```bash theme={null} nuon installs workflows list -i nuon installs workflows steps approve -i --workflow-id --step-id nuon installs workflows steps reject -i --workflow-id --step-id nuon installs workflows steps retry -i --workflow-id --step-id ``` ### Reprovision, deprovision, forget ```bash theme={null} nuon installs reprovision -i nuon installs deprovision -i nuon installs forget -i ``` `forget` removes an install from the control plane without running deprovision workflows. Reserve it for installs that are stuck in an unrecoverable state. ## Extend the CLI The CLI is extensible — you can publish your own `nuon ` commands that ship alongside install management. For how to build, distribute, and auth custom commands, see the [CLI Extensions guide](/guides/cli-extensions). ## Command reference For the complete command list and every flag, run: ```bash theme={null} nuon installs --help ``` # Components Source: https://docs.nuon.co/concepts/components Connect and configure your app template using your existing container images, Helm charts, Kubernetes Manifests and Terraform code. Nuon supports several different component types that allow you to connect your existing container images, Helm charts, Kubernetes manifests and Terraform code to your app template. ## What is a Component? A component represents a part of your App. Nuon supports the following component types: * [Helm Charts](/guides/helm-chart-components) - Any Helm chart located in a repository * [Terraform](/guides/terraform-components) - Any Terraform module * [Kubernetes Manifest](/guides/kubernetes-manifest-components) - Any raw kubernetes manifest * [Container Images](/guides/container-image-components) - Any prebuilt OCI image ## How do you configure a component? A component is configured in an individual `.toml` file inside a directory called `components` in the root of your app directory. e.g., a Helm chart component named `grafana` would be defined in a file named `grafana.toml` inside a directory named `components`. Additional component configuration files can be added to the `components` directory or another directory in the app directory, and referenced in the Component's config file. e.g., you can have a `values.yaml` file for a Helm chart component to deploy observability platform from Grafana Labs located in `components/values/grafana` You can configure components to use either a public repo (using a `public_repo` block) or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). ```toml components/grafana.toml theme={null} # helm name = "grafana" type = "helm_chart" chart_name = "grafana" namespace = "grafana" storage_driver = "configmap" dependencies = ["prometheus"] [public_repo] repo = "grafana/helm-charts" directory = "charts/grafana" branch = "main" [[values_file]] contents = "./values/grafana/values.yaml" ``` By default, every component must have a `git` repository to store its source files, but you can include them in the app directory and reference the same app repo in the component TOML file. This example shows a component that uses the same repo as the app to store its AWS Terraform module to create the certificate in AWS: ```toml components/certificate.toml theme={null} [public_repo] repo = "nuonco/example-app-configs" directory = "grafana/src/components/certificate" branch = "main" ``` > [!NOTE] > > If you are iterating and making changes to the source files of a component, a branch run rebuilds the component only when its config also changes. After you push source-only changes, run `nuon branches trigger --branch-id --force`, or create a new build manually using the dashboard or CLI. During development, it is recommended to create a branch and use that branch in the component config file. ![Component Build](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/components/component-build.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=e03f1432b1525becab27c166fb6c1954) ## Component Management The [CLI](/cli) exposes many operational commands to manage components. To see all available commands, run: `nuon components --help`. > [!NOTE] > > Make sure to select an App using `nuon apps select` before using the `nuon > components` commands, or pass the `-a` flag to each `nuon component` command. ### Component Management > [!NOTE] > > There no longer is a `nuon components select` command to pin a component. > Instead, pass the `-c` flag to each command to specify the component by its id > or name. Commands for working with components: **List Components** - List components for an app. ```sh theme={null} nuon components list ``` **Get a component** ```sh theme={null} nuon components get -c ``` **Delete a component** - delete a component. > [!NOTE] > > It is not recommended to delete components using the CLI. Instead, manage them > by removing a component TOML file from the app directory, then committing and pushing to the git branch your app branch tracks. ```sh theme={null} nuon components delete -c component_id ``` **Print a component config** - Print the latest configuration for a component. ```sh theme={null} nuon components latest-config -c ``` ### Component Builds All components must be built before creating an install or updating an install. The first run of an [app branch](/concepts/app-branches), and any run where a component TOML or related Helm `values.yaml` has changed, will also trigger a build. The release commands support an `-auto-build` flag which will trigger a build. Any of the following CLI commands can use component\_id or component\_name with the `-c` flag to specify which component to build. **Create or re-create a Build** - Create a build using the latest component configuration in the dashboard or with the CLI. ![Component Build](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/components/component-build.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=e03f1432b1525becab27c166fb6c1954) ```sh theme={null} nuon builds create -c component_name ``` **List Builds** - List builds for a component with the CLI or dashboard. ```sh theme={null} nuon builds list -c component_name ``` > [!NOTE] > > If you do not pass the `-c` flag, all Builds for all components in the > currently selected app will be listed. ![Component Builds](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/components/component-builds.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=50359491f277cbf60e10958a6c86f6f6) **Get a Build** - Print out build details. ```sh theme={null} nuon builds get -b -c component_name ``` **Logs** - Show logs for a build by opening the dashboard. ```sh theme={null} nuon builds logs -b -c component_name ``` ![Component Build](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/components/component-build-logs.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=df36f5b452c1e70f673b3a811400faf7) ### Build and Deploy Timeouts Each component has configurable timeouts for build and deploy operations. If an operation exceeds its timeout, it will be marked as failed. You can override these in your component TOML file: ```toml theme={null} build_timeout = "30m" deploy_timeout = "1h" ``` The maximum allowed value for both is `1h`. The defaults vary by component type: | Component Type | Build Default | Deploy Default | | - | - | - | | Helm Chart | 5m | 30m | | Terraform Module | 5m | 60m | | Container Image | 15m | 5m | | Kubernetes Manifest | 5m | 15m | See the [configuration reference](/config-ref/index) for full details on each component type. # Auto Retries Source: https://docs.nuon.co/concepts/components/auto-retries Configure components to automatically re-plan and re-apply on transient failures by setting max_auto_retries. When a [component](/concepts/components) fails to deploy due to a transient error, you don't want it to get stuck and fail. You also don't want an actually-broken component to retry forever. `max_auto_retries` gives each component a bounded retry budget. The runner will re-plan and re-apply the component up to that many times before surfacing the failure to the [workflow](/concepts/workflows). If the component succeeds on a retry, the workflow continues normally. ## How it works Set `max_auto_retries` on any component TOML: * On a deploy failure, the runner re-plans and re-applies the component up to `N` more times. After `N` failed attempts, the workflow surfaces the failure as it would today. Each retry is a fresh plan + apply, so it picks up any state that has settled since the previous attempt (e.g. a slow IAM role becoming consistent, an upstream registry recovering). ## Configuring `max_auto_retries` `max_auto_retries` is supported on every component type: `helm_chart`, `terraform_module`, `kubernetes_manifest`, `container_image`, and `pulumi`. ### Helm chart ```toml components/penpot.toml theme={null} # helm name = "penpot" type = "helm_chart" chart_name = "penpot" namespace = "penpot" storage_driver = "configmap" max_auto_retries = 5 [public_repo] repo = "penpot/penpot-helm" directory = "charts/penpot" branch = "main" [[values_file]] contents = "./values/penpot.yaml" ``` ### Terraform module ```toml components/certificate.toml theme={null} # terraform name = "certificate" type = "terraform_module" terraform_version = "1.11.3" max_auto_retries = 5 [public_repo] repo = "nuonco/example-app-configs" directory = "penpot/src/components/certificate" branch = "main" [vars] install_id = "{{ .nuon.install.id }}" region = "{{ .nuon.install_stack.outputs.region }}" zone_id = "{{ .nuon.install.sandbox.outputs.nuon_dns.public_domain.zone_id }}" domain_name = "{{ .nuon.install.sandbox.outputs.nuon_dns.public_domain.name }}" ``` Both examples are taken from the [penpot app config](https://github.com/nuonco/example-app-configs/tree/main/penpot/components). ## Reference Looking for something else? Full per-component-type schemas are found here: * [Helm chart](/config-ref/helm) * [Terraform module](/config-ref/terraform) * [Kubernetes manifest](/config-ref/kubernetes-manifest) * [Container image](/config-ref/container-image) # Dashboard Source: https://docs.nuon.co/concepts/dashboard What you can do for installs in the Nuon dashboard. ## What the web app lets you do Once you've set up your app template, you can manage installs from the [Dashboard](https://app.nuon.co). ![Create install modal](https://mintcdn.com/nuoninc/Ve7FTilUzuBEvwij/images/concepts/dashboard/create-install.png?fit=max\&auto=format\&n=Ve7FTilUzuBEvwij\&q=85\&s=71a494b30b2aeace7965ae9bc29bdf2b) * **Create an install:** Fill in the install's inputs and generate the stack link to share with the customer. * **Share the stack link:** The link deploys a [Stack](/concepts/stacks) (CloudFormation on AWS, Azure Resource Manager (Bicep) on Azure, Terraform on GCP) into the customer's cloud account, which creates the runner. * **Monitor workflows:** Monitor install progress from sandbox creation to component deploys, everything that makes up the install. * **Review and approve changes:** See diffs and plans for each step, then approve, reject, or retry. * **Redeploy components:** Rebuild any component that has failed and needs updating for the install to succeed. * **Update inputs after provision:** Change inputs on a live install; the dashboard triggers the workflows needed to propagate the change. * **Run actions:** Trigger on-demand scripts defined in the app, such as health checks and remediations. Pick a [break glass role](/concepts/break-glass) for a run. * **Reprovision or deprovision:** As a heavier troubleshooting step, your customer can delete the resources created in their account, and you can reprovision in the dashboard. # Install Telemetry Source: https://docs.nuon.co/concepts/install-telemetry How application telemetry travels from customer installs to your observability backend. Install telemetry lets software vendors collect application logs, metrics, and traces from customer environments in their own observability backend. A private endpoint in each install receives the data, and a relay in the vendor's **Nuon BYOC deployment** forwards it to the backend. For setup instructions, see [Set Up Install Telemetry](/guides/byoc/telemetry). To change which installs send data, see [Manage Install Telemetry](/guides/manage-install-telemetry). ## What gets collected The install endpoint accepts OpenTelemetry logs, metrics, and traces sent by your application, an agent, or your own Collector. Enabling forwarding does not instrument the application, discover workloads, or automatically scrape metrics. You choose what to emit; your backend handles storage, queries, dashboards, and alerts. This is separate from two other kinds of telemetry: * **[Runner audit logs](/guides/export-runner-audit-logs)** record Nuon runner operations. Customers configure that export independently through a `telemetry-export-config` secret in their cloud account, using their own backend destination and credentials. The install telemetry toggle does not control audit export. * **Control-plane telemetry** describes Nuon's own services, not the applications running in customer installs. ## How data reaches your backend ```mermaid theme={null} flowchart TD subgraph install["Customer environment"] app["Application"] -->|Private OTLP/HTTP| collector["Runner Collector"] end subgraph byoc["Your Nuon BYOC deployment"] relay["Telemetry relay
    Verifies install identity
    Uses backend credentials if required"] end collector -->|"HTTPS
    Nuon-issued credentials"| byoc relay -->|"OTLP/HTTP(S)"| backend["Your observability backend
    Logs, metrics, traces"] ``` 1. The application sends data to the install's private OTLP/HTTP endpoint. 2. A Collector managed by the install runner queues the data and forwards it to the relay over HTTPS. The runner obtains and automatically renews short-lived credentials for that connection. 3. The relay authenticates the sender and attaches verified org, app template, and install IDs. 4. The relay forwards the data to the configured OTLP/HTTP backend using credentials stored in the BYOC deployment. All enabled installs using a relay share its backend destination. Applications do not need backend credentials, runner tokens, or the central relay URL. ## Private endpoints and network access The install stack exposes the endpoint as `telemetry_endpoint`. Current supported stacks enable private ingress by default, but a customer can disable it. Older stacks may need an update before the output is available. The private endpoint uses **OTLP/HTTP on port 4318**. It is not a public internet endpoint. Workloads must have network access through the install's cloud networking and firewall rules. The GCP stack requires clients in the same region; its default internal firewall source range is `10.128.0.0/16`. Use `http/protobuf` for application SDKs. The endpoint is a base URL: standard exporters append `/v1/logs`, `/v1/metrics`, or `/v1/traces`. A signal-specific endpoint setting must include the corresponding full path. The HTTP receiver also accepts OTLP/JSON. The private receiver does not require application credentials or provide TLS. Network access controls restrict who can send to it. The Collector-to-relay connection uses HTTPS and Nuon-issued credentials; the relay-to-backend connection uses HTTP(S) and the vendor's backend credentials, if required by the backend. ## What the telemetry setting controls The org default is disabled initially. An install follows the current org default unless it has an explicit enabled or disabled override. The control plane resolves these settings and sends the result to the runner. The runner refreshes settings every 15 seconds and starts or stops its telemetry Collector as needed. An offline runner cannot apply changes until it returns. If a settings refresh fails, the runner retains its active configuration until it can fetch settings again. Three things must be ready for data to flow: the central relay, the install's private ingress, and enabled forwarding on the install. Changing the forwarding setting does not provision ingress, deploy an application Collector component, or enable the relay. Likewise, a stack endpoint or an enabled setting is not proof of backend delivery. ## Identity in your backend The relay attaches these **verified resource attributes** using the authenticated sender identity: | Attribute | Identifies | | - | - | | `nuon.org.id` | Nuon organization | | `nuon.app.id` | Nuon app template | | `nuon.install.id` | Customer install | Caller-supplied copies of these IDs are removed throughout the payload before the relay stamps the resource. Matching is case-insensitive and includes underscored aliases such as `nuon_install_id`. A producer cannot use these fields to claim another install's identity, but this does not attest to the integrity of the emitting workload or its data. The runner also adds `nuon.org.name`, `nuon.app.name`, `nuon.install.name`, and `nuon.install.labels.` from its settings. These help with display and filtering, but the relay does not verify them against the IDs. The relay sets `nuon.telemetry.source` to `install` for this path. Use resource-aware queries to filter by the verified IDs. Some backends flatten or rename resource attributes into metric labels; check that mapping and any naming collisions before using those labels in dashboards or alerts. Names and custom install labels are not authoritative identity. ## Delivery behavior The runner Collector forwards asynchronously using a bounded disk-backed queue and retries transient export failures. The relay itself has no persistent queue or retry loop. A successful response from the install endpoint means local acceptance, not confirmation that the backend stored the data. Delivery is best effort, not exactly once. Retries can produce duplicates, while queue exhaustion, storage failures, permanent rejections, and some authentication or downstream failure responses can lose data. Do not rely on indefinite outage retention or automatic historical backfill. Monitor missing data in your backend. Runner audit export uses a separate Collector process and queue, but shares the runner host's resources. ## Next steps > [card] [Set up telemetry](/guides/byoc/telemetry) > > Connect your BYOC relay to a backend and send data from your first install. > [card] [Manage install telemetry](/guides/manage-install-telemetry) > > Change the org default, enable or disable installs, and troubleshoot collection. # Installs Source: https://docs.nuon.co/concepts/installs One deployment of your App Template in a customer's cloud account. An install is one copy of your App Template in a customer's cloud account. Every install runs on the same standard infrastructure, which the customer applies with their own credentials. No cross-account access is required. Nuon control plane Runner calls out. Outbound only. Customer cloud account AWS, Azure, or GCP [Stack](/concepts/stacks) [Runner](/concepts/runners) [Sandbox](/concepts/sandboxes) [Your components](/concepts/components) For example: API Database Storage bucket * **[Stack](/concepts/stacks)**: the customer applies it first. It creates the network, permissions, and runner. * **[Runner](/concepts/runners)**: runs every deploy, action, and runbook in the customer's account. * **[Sandbox](/concepts/sandboxes)**: base compute for your components, such as a Kubernetes cluster. ## How an install deploys The first [workflow](/concepts/workflows) provisions everything in order:
      Terraform, Helm, and Kubernetes manifest steps pause on a plan for your approval before they apply. ## Fit the customer's architecture The stack adapts to what the customer already has: * **[Stand-alone VPC](/concepts/stacks/stand-alone-vpc).** Nuon creates a new network for the install. * **[Customer VPC](/concepts/stacks/customer-vpc).** The install deploys into a network the customer already has. * **[Customer cluster](/concepts/stacks/customer-cluster).** Your components deploy into the customer's existing Kubernetes cluster. Each install also gets its own [inputs](/concepts/app-inputs), such as region or an API key. To create and configure installs, see [Creating Installs](/guides/install-configs). # OIDC Federation Source: https://docs.nuon.co/concepts/oidc-federation Exchange OIDC tokens from any trusted workload for short-lived Nuon API tokens — no stored secrets. **OIDC federation** lets a workload exchange an OIDC token it already has for a short-lived [Nuon API token](/concepts/api-tokens) — with no long-lived secret stored anywhere. You configure a **trust policy** that tells Nuon which issuer to trust and which token claims to require; any workload presenting a matching token gets a short-lived token in return. This works with **any OIDC-compatible identity**, and from any client, since the exchange is a plain API call. Unlike an [API token](/concepts/api-tokens) or a token minted for a [service account](/concepts/service-accounts), there is no credential to store, distribute, or rotate. Managing OIDC federation requires **org admin** access. ## How it works 1. A workload obtains its ambient OIDC token from its platform (for example, the ID token GitHub Actions issues to a job). 2. It calls the Nuon token-exchange endpoint with that token and your org ID. 3. Nuon verifies the token's signature against the issuer's JWKS and checks its issuer, audience, and claims against your trust policies. 4. On a match, Nuon mints a short-lived API token bound to the policy's service account and returns it. The workload uses it like any other Nuon API token. The exchange endpoint requires no Nuon credentials — trust is established entirely by the OIDC token and your trust policy. ## Trust policy properties | Property | Description | | - | - | | **Name** | A human-readable label to identify the policy. Required. | | **Issuer URL** | The exact `iss` of the OIDC provider to trust, e.g. `https://token.actions.githubusercontent.com`. Nuon fetches this issuer's JWKS to verify signatures. Required. | | **Audience** | The expected `aud` claim on the presented token. Required. | | **Claim conditions** | Claims the token must satisfy. A `sub` condition is required. | | **Role** | The permissions granted to exchanged tokens. Defaults to `org_read_only`. See [Access control](/concepts/access-control) for the available roles. | | **Token duration** | Lifetime of the exchanged token, in seconds. Defaults to `3600`; maximum `86400`. | | **Enabled** | Whether the policy accepts exchanges. | Each trust policy is backed by a dedicated [service account](/concepts/service-accounts) that carries its role. Creating and managing trust policies requires **org admin** access. ## Claim matching Every claim condition must match the presented token for a policy to apply — conditions are combined with AND. A `sub` condition is always required, so a policy can never trust *every* token from an issuer. Values support glob patterns. The `*` wildcard does not cross `:` segment boundaries, which makes it safe to match structured subjects like GitHub's `repo:acme/app:ref:refs/heads/main`: | Pattern | Matches | | - | - | | `repo:acme/app:ref:refs/heads/main` | Exactly that subject | | `repo:acme/app:*` | Any subject for the `acme/app` repo | | `repo:acme/*:ref:refs/heads/main` | The `main` ref of any repo in `acme` | ## Managing trust policies You can manage trust policies in the Dashboard under **Settings → OIDC federation**, or with the CLI. ### Creating a policy ```sh theme={null} nuon orgs oidc-trust-policies create \ --name github-actions \ --issuer https://token.actions.githubusercontent.com \ --audience https://api.nuon.co \ --role org_read_only \ --claim sub=repo:acme/app:ref:refs/heads/main ``` Pass `--claim` multiple times to require additional claims. Use `--ttl` to set a custom token duration in seconds. ### Listing and inspecting ```sh theme={null} nuon orgs oidc-trust-policies list nuon orgs oidc-trust-policies get --id ``` ### Updating and deleting ```sh theme={null} nuon orgs oidc-trust-policies update --id --role org_admin nuon orgs oidc-trust-policies delete --id ``` ## Exchanging a token ### Direct API exchange The exchange is a single unauthenticated API call — use it from any language or runtime. Send the workload's OIDC token and your org ID: ```sh theme={null} curl -X POST $NUON_API_URL/v1/oidc/token \ -H "Content-Type: application/json" \ -d '{"org_id": "", "token": ""}' ``` A successful response returns a short-lived token: ```json theme={null} { "authenticated": true, "token": "", "expires_at": "2026-01-01T00:00:00Z", "role": "org_read_only" } ``` Use the returned `token` as a Bearer credential on subsequent requests, exactly like an [API token](/concepts/api-tokens): ```sh theme={null} curl $NUON_API_URL/v1/current-user \ -H "Authorization: Bearer " ``` ### Using the CLI The [Nuon CLI](/cli) can perform the exchange for you. In GitHub Actions it detects the ambient OIDC token automatically — set your org ID and run any command: ```sh theme={null} export NUON_ORG_ID= nuon apps list ``` In other environments, provide the OIDC token yourself via `NUON_OIDC_TOKEN` (a raw JWT) or `NUON_OIDC_TOKEN_FILE` (a path to one), and the CLI will exchange it the same way. You can also exchange explicitly and capture the token, for example to export it for other tools: ```sh theme={null} export NUON_API_TOKEN=$(nuon auth exchange-token) ``` ## Example issuers Any OIDC provider that exposes a discovery document and JWKS can be used as a trust policy issuer, including: * **GitHub Actions** — `https://token.actions.githubusercontent.com` (see the [GitHub Actions guide](/guides/github-actions)) * **GitLab CI/CD** — your GitLab instance URL * **Buildkite** — `https://agent.buildkite.com` * **Cloud workloads** and **Kubernetes** service accounts with OIDC-issued tokens Set the policy's issuer to the provider's `iss` and its claim conditions to whatever uniquely identifies the workload you want to trust. ## Revocation Deleting a trust policy revokes its outstanding tokens immediately — the backing service account is removed, so any token minted through the policy stops working at once. Disabling a policy only stops new exchanges; tokens already issued remain valid until they expire. # Operation Roles Source: https://docs.nuon.co/concepts/operation-roles Operate your customer environments with tightly scoped access ## What is an operation role Roles that you can scope to the specific task, and use in [runbooks](/concepts/runbooks) so they have built in guardrails for your maintenance or upgrade activities. ## Required roles Every app config must define three standard roles in its permissions config: * **Provision:** provisions and reprovisions the install, and deploys all components. * **Deprovision:** deprovisions the install, and tears down all components. * **Maintenance:** everything else, such as single component deploys, action runs, and input changes. ## Scope custom operation roles to a task Add more specific roles matching how you manage your customer environments, for example: * **Deploy and teardown for one component:** a deploy role that can create and update the component's Lambda function, and a teardown role that can only delete it. See the [deploy and teardown example](/guides/operation-roles#example-separate-deploy-and-teardown-roles). * **An action that rotates a password:** a role that can only update that one secret, set on the action. See [assign a role to an entity](/guides/operation-roles#assign-a-role-to-an-entity). * **One role for every teardown:** an app-wide rule that sends all component teardowns to a delete-only role. See [set app-wide rules](/guides/operation-roles#set-app-wide-rules). > [!TIP] > > When you need to resolve a deeper issue or outage, use a [break glass role](/concepts/break-glass). ## When Nuon uses a role Each time Nuon changes something in your customer's account, the runner assumes a role to do it. That happens when it: * Sets up, updates, or removes the install's base infrastructure (the [sandbox](/concepts/sandboxes)) * Deploys or removes a [component](/concepts/components) * Runs an [action](/concepts/actions) By default, each of these uses one of the three standard roles. You can choose a different role in three places: * **On the sandbox, a component, or an action:** in its config file. * **For the whole app:** with rules in `operation_roles.toml`, such as one role for every component teardown. * **For a single run:** from the dashboard or command line. If you set a role in more than one place, see [which role a run uses](/guides/operation-roles#which-role-a-run-uses). ## Next steps * [Operation Roles guide](/guides/operation-roles): define roles, assign them, and override them for a run * [Break Glass](/concepts/break-glass): elevated access your customer switches on when you need it * [Permissions config reference](/config-ref/permissions): every field in `permissions.toml` # Nuon Overview Source: https://docs.nuon.co/concepts/overview Nuon primitives that enable you to scale a BYOC-deployed version of your app to any customer on any cloud. You define your app once. Each customer runs their own copy in their own cloud account. control plane [App template](/concepts/apps) your git repo acme Your product, described as TOML [Components](/concepts/components) API Database Storage bucket Per customer [Inputs](/concepts/app-inputs) [Secrets](/concepts/app-secrets) Each customer's cloud account AWS, Azure, or GCP [Install](/concepts/installs) globex [Stack](/concepts/stacks) applied by the customer [Runner Managed by Nuon](/concepts/runners) [Sandbox](/concepts/sandboxes) API Database Storage bucket [Install](/concepts/installs) initech * **[App templates](/concepts/apps)**: your product as TOML in your git repo. It lists your [components](/concepts/components), plus the [inputs](/concepts/app-inputs) and [secrets](/concepts/app-secrets) that change per customer. * **[Installs](/concepts/installs)**: one copy of your app in a customer's cloud account. The customer applies the [stack](/concepts/stacks) with their own credentials, and the [runner](/concepts/runners) deploys the [sandbox](/concepts/sandboxes) and your components. * **[Updates and operations](/concepts/updates-and-operations)**: push to git and an [app branch](/concepts/app-branches) rolls the change out in order, with a plan you can review first. [Actions](/concepts/actions) and [runbooks](/concepts/runbooks) handle migrations and day-2 work. ## How the pieces relate An app template has app branches. Each app branch splits its installs into install groups that deploy in order. Defined in your repo Runs in a customer's account [App template](/concepts/apps) [App branches](/concepts/app-branches) [Install groups](/concepts/app-branches#install-groups) [Installs](/concepts/installs) > [card] > [card] > [card] > [card] > [card] > [card] # Policies Source: https://docs.nuon.co/concepts/policies Enforce compliance, security, and operational standards across your infrastructure deployments. Policies allow you to enforce compliance, security, and operational standards across your infrastructure deployments. Policies are evaluated during builds and deploys, blocking or warning when violations are detected. ## What are Policies? Policies are rules written in [OPA Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) or [Kyverno](https://kyverno.io/) that validate your infrastructure before deployment. Each policy can either: * **Deny** - Block the build or deployment when a violation is detected * **Warn** - Log a warning but allow the build or deployment to continue Policies are evaluated at different phases depending on the component type: * **Build-time**: Policies run during the component build process * **Deploy-time**: Policies run after the plan is generated, before applying changes * **Sandbox runs**: Policies run during sandbox infrastructure provisioning ## Policy Types Nuon supports policies for different component types, each with its own input format: | Type | Applies To | Engine | Evaluation Phase | Input Format | | - | - | - | - | - | | `container_image` | External container images | OPA | Build | Image metadata (SBOM, signatures, attestations) | | `helm_chart` | Helm chart components | OPA | Build + Deploy | Kubernetes AdmissionReview | | `kubernetes_manifest` | Kubernetes manifest components | OPA | Deploy | Kubernetes AdmissionReview | | `terraform_module` | Terraform module components | OPA | Deploy | Terraform JSON plan | | `kubernetes_cluster` | Kubernetes cluster resources | Kyverno | Deploy | Kubernetes resources | | `sandbox` | Sandbox infrastructure | OPA | Sandbox run | Terraform JSON plan | ## Policy Engines ### OPA (Open Policy Agent) OPA policies are written in [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/), a declarative query language. Policies must be in the `nuon` package and use `deny` or `warn` rules. The input structure varies by policy type: | Policy Type | Input Structure | | - | - | | `terraform_module`, `sandbox` | `input.plan.resource_changes`, `input.plan.terraform_version` | | `helm_chart`, `kubernetes_manifest` | `input.review.object`, `input.review.kind` | | `container_image` | `input.image`, `input.tag`, `input.metadata` | **Example: Terraform policy** ```rego theme={null} package nuon # Deny unencrypted S3 buckets deny contains msg if { some resource in input.plan.resource_changes resource.type == "aws_s3_bucket" resource.change.actions[_] in ["create", "update"] not resource.change.after.server_side_encryption_configuration msg := sprintf("S3 bucket '%s' must have encryption enabled", [resource.address]) } # Warn about missing tags warn contains msg if { some resource in input.plan.resource_changes resource.change.actions[_] in ["create", "update"] not resource.change.after.tags.Environment msg := sprintf("Resource '%s' is missing Environment tag", [resource.address]) } ``` **Example: Kubernetes/Helm policy** ```rego theme={null} package nuon # Deny containers running as root deny contains msg if { input.review.kind.kind == "Pod" some container in input.review.object.spec.containers container.securityContext.runAsUser == 0 msg := sprintf("Container '%s' must not run as root", [container.name]) } ``` **Example: Container image policy** ```rego theme={null} package nuon # Deny unsigned images deny contains msg if { not input.metadata.signed msg := sprintf("Image %s:%s must be signed", [input.image, input.tag]) } ``` ### Kyverno Kyverno policies use YAML syntax and are designed for Kubernetes resources. Kyverno is only supported for `kubernetes_cluster` policy types: ```yaml theme={null} apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: name: require-labels spec: validationFailureAction: Enforce rules: - name: check-team-label match: any: - resources: kinds: - Pod validate: message: "All pods must have a 'team' label" pattern: metadata: labels: team: "?*" ``` ## How do you configure Policies? Policies are part of your app configuration. To create or update policies, add them to your app config, then commit and push to the git branch your [app branch](/guides/app-branches) tracks. The push starts a run that uploads them. ![Policies list](https://mintcdn.com/nuoninc/Fapi48xNf5VnZU_L/images/concepts/policies/policies-list.png?fit=max\&auto=format\&n=Fapi48xNf5VnZU_L\&q=85\&s=539eb1b1b218a485eeca2a68683ec3bf) Please go through the [Configuring Policies guide](/guides/configuring-policies) for details. Note that unlike components, policies do not need to be built, they are evaluated directly during build and deploy workflows. ### Scoping policies to components `components` lists the names of the components a policy runs for. ```toml theme={null} [[policy]] type = "terraform_module" engine = "opa" components = ["rds_cluster"] contents = "./policies/protect-stateful.rego" ``` When a policy omits `components`, it runs for every component of its type. `components = ["*"]` also selects every component of the type. `components` is ignored for `sandbox` and `kubernetes_cluster` policies. ### Skipping policies during teardown By default a policy also runs when a component is torn down or the sandbox is deprovisioned. Set `apply_on_teardown = false` to skip it then, so a policy that denies deletes during a deploy doesn't block an intentional teardown. ```toml theme={null} [[policy]] type = "terraform_module" engine = "opa" components = ["rds_cluster"] apply_on_teardown = false contents = "./policies/no-destructive-changes.rego" ``` This policy still denies a deploy that would delete or replace a stateful resource, including a deploy that removes the resource from the component's config. It doesn't run when the component is torn down. `apply_on_teardown` is supported for `terraform_module`, `helm_chart`, `kubernetes_manifest`, `pulumi` and `sandbox` policies, which are the types evaluated against teardown plans. > [!NOTE] > > Branch runs parse your config in the control plane, so `apply_on_teardown` does not depend on your CLI version. To > check it locally with `nuon apps validate`, use a [CLI version](/cli#choosing-a-cli-version) that supports it. ## Policy Reports ### Build-Time Evaluation Build-time policies are evaluated during the component build process: * **`container_image`**: Policies evaluate image metadata (SBOM, signatures, attestations) fetched from the registry * **`helm_chart`**: The chart is rendered during the build and policies evaluate the resulting Kubernetes AdmissionReview objects. This catches problems before the chart reaches any install. If a `deny` rule matches during build-time evaluation, the build fails with status `policy_failed`. ### Deploy-Time Evaluation Deploy-time policies are evaluated after the plan is generated, before applying changes: * **`terraform_module`**: Policies evaluate the Terraform JSON plan * **`helm_chart`**: Policies evaluate the Kubernetes AdmissionReview objects * **`kubernetes_manifest`**: Policies evaluate the Kubernetes AdmissionReview objects If a `deny` rule matches during deploy-time evaluation, the workflow step fails and changes are not applied. ### Sandbox Evaluation Sandbox policies (`type = "sandbox"`) are evaluated during sandbox infrastructure runs. They receive the Terraform JSON plan for the sandbox infrastructure. ## Viewing Policy Results ### Dashboard Policy violations are displayed in the workflow step details. The Policy Report card shows: * **Passed**: All policy checks passed successfully * **Denies**: Policy violations that blocked the workflow (red) * **Warnings**: Policy warnings that were logged but didn't block (orange) Each violation includes the policy name and the specific message from your `deny` or `warn` rule. ![Workflow policy violations](https://mintcdn.com/nuoninc/Fapi48xNf5VnZU_L/images/concepts/policies/workflow-policy-violations.png?fit=max\&auto=format\&n=Fapi48xNf5VnZU_L\&q=85\&s=9e65766632f9bda5feb822174479839f) You can also view a list of all policy reports for an install, or filter by their status, type etc. ![Policy reports list](https://mintcdn.com/nuoninc/Fapi48xNf5VnZU_L/images/concepts/policies/policy-evaluations-list.png?fit=max\&auto=format\&n=Fapi48xNf5VnZU_L\&q=85\&s=5f61c9b0f83997600aed41ccca4e6592) ### CLI Build failures due to policy violations show the `policy_failed` status: ```sh theme={null} nuon builds create -c my-component # Output: # ✗ component build failed policy check: Image nginx:latest must be signed ``` Workflow steps display policy violation counts in the output: ```sh theme={null} nuon installs workflows steps list -w # Output shows policy column with ✗ (denies) and ⚠ (warnings): # Step Status Policy # deploy-api error ✗ 2 # deploy-db success ✓ # deploy-cache success ⚠ 1 ``` Get detailed violation messages for a specific step: ```sh theme={null} nuon installs workflows steps get -w -s ``` ## Policy Examples > [!NOTE] > > We maintain a [collection of example policies](https://github.com/nuonco/policies) > organized by component type to help you get started. The example repository includes: * **`terraform/`** - Policies for Terraform modules (encryption, tagging, IAM security, cost controls) * **`kubernetes/`** - Policies for Helm charts and Kubernetes manifests (pod security, resource limits, networking) ## Related Resources * [External Image Policies Guide](/guides/external-image-policies) - Detailed reference for container image metadata and Rego patterns * [Policies Configuration Reference](/config-ref/policies) - Schema reference for policy configuration * [Example Policies Repository](https://github.com/nuonco/policies) - Ready-to-use policy examples # Runbooks Source: https://docs.nuon.co/concepts/runbooks Named, multi-step procedures, such as a database migration, that you run against one install or every install. A runbook turns a multi-step procedure, such as a version upgrade or a [database migration](/guides/database-migrations), into one file you run the same way on every install. Each step deploys or tears down a component, runs an [action](/concepts/actions), or reprovisions the sandbox. Steps run in order, and every run is a [workflow](/concepts/workflows) in the install's history. ## Running a runbook * **On one install.** Run it from the install's **Runbooks** tab in the dashboard, or with the CLI. * **On every install.** List it in the app branch's `post_deploy_runbooks`. It then runs on each install after that install's deploy succeeds. Runbooks live in `runbooks/` in your App Template and ship with it through your [app branch](/concepts/app-branches). See [Configure runbooks](/guides/runbooks) for the file format. # Runner Source: https://docs.nuon.co/concepts/runners Egress-only agents deployed in customer cloud accounts that execute all provisioning, deployment, and day-2 operations. Runners are deployed into each install, and are responsible for updating, monitoring and managing your running application. ## How do you configure a Runner? The Runner is hosted in a VM created in the customer's cloud account by the [Stack](/concepts/stacks). For each install, Nuon generates the Stack in both Terraform and the platform's native IaC language (e.g., AWS CloudFormation, Azure Resource Manager / Bicep), so the customer can apply whichever fits their tooling. When you create an install in the dashboard, Nuon outputs install instructions you share with your customer to create the Runner using your cloud credentials. The templates are generated by Nuon based on your app template's configuration, and include the runner configuration. ![Install stack](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/runner/install-stack.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=f676abd128fac3fc565a1df4f805a831) ## Runner Responsibilities The runner performs the following jobs, inside of an install: * provisioning or deprovisioning components * syncing container images into the local artifact store * monitoring running components by way of actions e.g., health checks * running actions, which can be used to perform Day 2 operational tasks * executing Terraform * forwarding configured telemetry to customer-controlled observability backends ## Customer-Owned Telemetry Export Customers can configure runners on AWS, Azure, and GCP to send runner audit events directly to their own OTLP-compatible backend. The destination and credentials are stored in the customer's cloud secret manager, and are not stored in the Nuon Control Plane. The install instructions identify the `telemetry-export-config` secret and configure the runner's access to it. The customer updates this secret after provisioning the Stack. See [Export Runner Audit Logs](/guides/export-runner-audit-logs) for the configuration reference and cloud-specific steps. ## Runner Permissions Each runner works by listening for jobs from the Nuon managed data plane server it belongs too. This server dispatches jobs, which the runner will pick up and then run tasks to perform. The runner will use different IAM roles for different component jobs, to minimize the permissions available on each job. These IAM roles are defined in each sandbox, and outputs are used to allow the runner to use them. Since the runner is deployed *into* the customer install, no long-lived permissions are required after the initial install. This creates a more secure operating environment, as the *only* thing that can dispatch work to the runner is the customer's data plane server it belongs to. ![Runner](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/runner/runner.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=cdb074cac288e2ba9e836c77064621bd) # Sandbox Source: https://docs.nuon.co/concepts/sandboxes Sandboxes manage the base layer infrastructure for your application in each customer's cloud account. ## What is a Sandbox? Sandboxes create a consistent, isolated environment that your application can be guaranteed to work with, across your installs. They are responsible for defining the basic networking, permissioning, and infrastructure compute primitives e.g., a Kubernetes cluster - to power your application. In a shared responsiblity model, a customer may provide some infrastructure in the sandbox, such as an existing VPC or Kubernetes cluster. In this case, sandboxes enable you to leverage this customer infrastructure to meet security requirements, while also having a consistent way to install and manage your app template in any account. Sandboxes can ensure isolation, reproducability and repeatability with each install - regardless of the account. ## How is a sandbox configured? A sandbox is configured in a `sandbox.toml` file inside the root of your app directory. To configure a sandbox, specify a repo and the correct parameters for your sandbox. Inputs and variables, are entered both inline in the `sandbox.toml` and also the `tfvars` file - to configure the sandbox, and these are passed to the Terraform code that is run by the sandbox. You can configure sandboxes to use either a public repo (using a `public_repo` block) such as Nuon's public repository of AWS and Azure sandboxes - or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" max_auto_retries = 3 [public_repo] directory = "." repo = "nuonco/aws-eks-sandbox" branch = "main" [vars] cluster_version = "1.33" cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" [[var_file]] contents = "./sandbox.tfvars" ``` ```toml sandbox.tfvars theme={null} additional_namespaces = ["grafana"] min_size = 2 max_size = 3 desired_capacity = 2 ``` `max_auto_retries` (optional, default `0`) auto-retries transient sandbox apply failures (provision, reprovision, and deprovision) up to the configured cap, so flaky infrastructure self-heals without a manual re-run. It matches the `max_auto_retries` field on [components](/concepts/components). ## How is a sandbox provisioned? By default a sandbox run clones your sandbox repo at the moment it runs, so what gets applied is whatever is at the configured ref that day. [Sandbox builds](/guides/sandbox-builds) change that: Nuon packages the sandbox into an immutable OCI artifact, pinned to an app config version, and installs provision from the artifact instead of cloning Git. Reprovisions apply what the install was built with, and nothing in your customer's account needs to reach your VCS. ## Nuon Managed Sandboxes We maintain managed sandboxes for [AWS](/platform-support/aws), [Azure](/platform-support/azure), and [GCP](/platform-support/gcp). Each platform has a turnkey sandbox (where all resources are provisioned). These sandboxes are designed to be a stable, configurable starting point and most relevant options around the network, cluster and compute are configurable. > [!NOTE] > > [Let us know](https://nuon.co/contact-us) if you have a use case for bringing > your own VPC or Kubernetes cluster, and we can show how to adjust the sandbox > configuration. We publish each sandbox as a GitHub repository and you can find detailed documentation for each sandbox there. These repositories are what you will reference in your `sandbox.toml`. [AWS EKS sandbox](https://github.com/nuonco/aws-eks-sandbox) [AWS EKS with Karpenter sandbox](https://github.com/nuonco/aws-eks-karpenter-sandbox) [AWS EKS Auto sandbox](https://github.com/nuonco/aws-eks-auto-sandbox) [AWS BYO EKS sandbox](https://github.com/nuonco/aws-byo-eks-sandbox) [AWS Min sandbox](https://github.com/nuonco/aws-min-sandbox) [Azure AKS sandbox](https://github.com/nuonco/azure-aks-sandbox) [Azure Min sandbox](https://github.com/nuonco/azure-min-sandbox) [GCP GKE sandbox](https://github.com/nuonco/gcp-gke-sandbox) [GCP Min sandbox](https://github.com/nuonco/gcp-min-sandbox) > [!NOTE] > > The AWS Min sandbox does not create a Kubernetes cluster, but still provisions > a Route 53 Zone and IAM roles for the install. See the [Lambda function > example](../get-started/app-aws-lambda) that leverages the AWS Min sandbox. ## Runner Types Update the `runner.toml` in your app config to specify the type of Cloud runner to use for your app. The runner is responsible for executing the deployment of your application into the customer's account. ```toml runner.toml theme={null} # runner runner_type = "aws" helm_driver = "configmap" ``` ```toml runner.toml theme={null} # runner runner_type = "azure" helm_driver = "configmap" ``` ## Sandbox Outputs Sandbox outputs are made accessible to all components [using variables](/guides/using-variables). You can use any output from your selected sandbox by setting a config value on your component. In this example, we are using the `account.region` output from the sandbox to configure a Helm chart component: ```toml components/e2e_helm.toml theme={null} name = "e2e_helm" type = "helm_chart" chart_name = "e2e-helm" [public_repo] repo = "org/repo" directory = "chart" branch = "main" [values] account_region = "{{.nuon.install.sandbox.outputs.account.region}}" ``` See the [outputs.tf](https://github.com/nuonco/aws-eks-sandbox/blob/main/outputs.tf) for the AWS EKS sandbox for a full list of available outputs or the [outputs.tf](https://github.com/nuonco/aws-min-sandbox/blob/main/outputs.tf) for the AWS Min sandbox. Example outputs include: * `account.id` - The AWS Account ID * `account.region` - The AWS Region * `vpc.id` - The VPC ID * `cluster.name` - The EKS Cluster name * `cluster.endpoint` - The EKS Cluster endpoint * `ecr.repository_url` - The ECR repository URL * `ecr.registry_url` - The ECR registry URL * `nuon_dns.public_domain.name` - The public root domain for the install * `nuon_dns.internal_domain.name` - The internal root domain for the install * `namespaces` - A list of namespaces created in the cluster Each `nuon_dns` domain is an object rather than a string: `name` holds the hostname, alongside `zone_id` and `nameservers`. Reference `.name` when you want the domain itself. ## Configure sandboxes Each sandbox has a set of variable inputs. Most variables are either supplied by the Nuon platform during install, via inputs, or by setting default values. ### Use Default Values To configure a sandbox parameter with a default value for your app, add a `vars` block to your `sandbox.toml` file, or the mandatory `sandbox.tfvars` file in the same directory as your `sandbox.toml`. The values in this block will be used as defaults for all installs of this App.: ```toml sandbox.toml theme={null} [vars] cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.install.id }}.nuon.run" internal_root_domain = "internal.{{ .nuon.install.id }}.nuon.run" [[var_file]] contents = "./sandbox.tfvars" ``` ```toml sandbox.tfvars theme={null} additional_namespaces = ["grafana"] min_size = 2 max_size = 3 desired_capacity = 2 ``` ### Use Inputs Inputs allow you to collect customer input in the dashboard at install for values such as resource IDs, tokens and more. These inputs are accesible to all components and your sandbox, [using variables](/guides/using-variables#inputs). To configure a sandbox parameter using an input, you can define an input in your `inputs.toml` file and then reference it in your `sandbox.toml` file. In this example, we define a root domain input and use it to set the `public_root_domain` variable in the sandbox: ```toml inputs.toml theme={null} [[group]] name = "dns" description = "DNS Configrations" display_name = "Configurations for the root domain for Route53" [[input]] name = "root_domain" description = "The root domain. Services will be made available at subdomains of this root domain." default = "app.example.com" display_name = "Root Domain" group = "dns" ``` ```toml sandbox.toml theme={null} [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" ``` ## Create a Custom Sandbox While our [open source Sandboxes](#nuon-managed-sandboxes) are a great starting point, you can always fork them, or create your own sandbox to support customizing. To use a custom sandbox, simply update your app's `sandbox.toml` to point to your new sandbox code. Custom Sandboxes can also use private GitHub repos, that are connected to Nuon. ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] repo = "your-org/private-repo" directory = "sandbox" branch = "main" ``` > [!NOTE] > > If one of our managed sandboxes does not work for you, and you are considering creating a custom sandbox, we would love to hear about your use case. Please [contact us](https://nuon.co/contact-us). # Service Accounts Source: https://docs.nuon.co/concepts/service-accounts Named machine identities for automation, CI/CD. A **service account** is a named machine identity in your Nuon org. Use service accounts for automation, CI/CD pipelines, and any integration that calls the Nuon API on behalf of a system rather than a person. Unlike a one-off [API token](/concepts/api-tokens), a service account is a persistent identity you manage. You can rename it, change its role, and mint (or invalidate) multiple tokens for it over time. Managing service accounts requires **org admin** access. ## Roles Every service account is assigned exactly one role, which determines its permissions. Roles are org-scoped. See [Access control](/concepts/access-control) for the available roles and what each grants — **Admin** (`org_admin`) and **Read-only** (`org_read_only`). You can list the available roles at any time using the CLI: ```sh theme={null} nuon roles list ``` ## Managing service accounts Service accounts can be managed in the Dashboard on the **Service accounts** page, and with the CLI `service-accounts` commands. ### Create Create a new service account. Both a name and a role are required. ```sh theme={null} nuon service-accounts create --name ci --role org_read_only ``` ### Mint a token Create a token for a service account. The duration will default to one year. ```sh theme={null} nuon service-accounts tokens create --id --name ci-token ``` The name is optional and labels the token in `tokens list`. Optionally set a custom duration. ```sh theme={null} nuon service-accounts tokens create --id --name ci-token --duration 720h ``` > [!WARNING] > > The token value is shown **only once**. Copy it immediately into your secret manager or CI secret store — you cannot retrieve it again. ### List tokens List the API tokens for every service account in the org, or only for one with `--id`. Token secrets are never returned. ```sh theme={null} nuon service-accounts tokens list nuon service-accounts tokens list --id ``` Use `--search` to filter by token name or ID. ### Delete a token Delete a single API token. The service account itself is not deleted. ```sh theme={null} nuon service-accounts tokens delete --token-id ``` Tokens created with the deprecated `nuon orgs api-tokens create` command each came with their own service account. Deleting one of those tokens this way leaves its service account in place; remove it with `nuon service-accounts delete --id `. Service accounts created that way are named after their token, which makes them easy to find in `nuon service-accounts list`; ones created before this change have no name. ### Update a service account You can change a service account's name or role. ```sh theme={null} nuon service-accounts update-name --id --name new-name ``` ```sh theme={null} nuon service-accounts update-role --id --role org_admin ``` A service account can only have one role at a time. Updating the role will replace the service account's current role. ### List List active service accounts. ```sh theme={null} nuon service-accounts list ``` ### Delete Deleting a service account will remove its roles and invalidate all of its tokens. ```sh theme={null} nuon service-accounts delete --id ``` ## Runner service accounts Every runner is backed by its own machine identity — a service account with the special `runner` role. This is an implementation detail you can mostly ignore. You do not need to create or manage these service accounts yourself. Because they're managed for you, runner service accounts are hidden from `nuon service-accounts list` by default, but you can see them with the `--include-runners` flag. ```sh theme={null} nuon service-accounts list --include-runners ``` ## Stack service accounts When an install is provisioned with the stack Terraform module, Nuon creates a service account for it with the reserved `stack` role. This is the identity the `nuonco/stack` provider authenticates as when it reads the install's configuration and reports phone-home data. You don't create these yourself — one is created with the install. Unlike other roles, the stack role is scoped to a single install: a token minted for one install's stack service account cannot read any other install's configuration. Tokens for it are created from the **Await install stack** step's TF Module tab. See [Provision Stacks with a Terraform Module](/guides/provision-stacks-with-terraform-module) for the full flow. Like runner accounts, stack service accounts are hidden from listings by default. The dashboard's **Service accounts** page has a "Show stack accounts" checkbox to reveal them, and the CLI accepts an `--include-stacks` flag. ```sh theme={null} nuon service-accounts list --include-stacks ``` # Stack Source: https://docs.nuon.co/concepts/stacks Customers use Stacks to install an app template in their account. A Stack is the first thing deployed in a customer's cloud account when an install is created. It provisions the foundational resources needed to deploy and operate your application. For each install, Nuon generates a Stack template in both Terraform and the platform's native IaC language. Both formats produce the same resources, so you or your customer can use whichever one fits into your tooling and processes the best. * On **AWS**, the native format is a CloudFormation stack. * On **Azure**, the native format is an Azure Resource Manager (Bicep) deployment. * On **GCP**, only Terraform is generated — Google Cloud's Infrastructure Manager runs Terraform natively. ## What does a Stack create? Every Stack provisions the same three things: * The network your application runs in * The [permissions the Runner needs](/concepts/operation-roles) to deploy and operate your application * The Nuon-powered [Runner](/concepts/runners) itself The network can either be **created** by the Stack or **selected** from resources the customer already has. See [Stand-Alone VPC](/concepts/stacks/stand-alone-vpc), [Customer VPC](/concepts/stacks/customer-vpc), and [Customer Cluster](/concepts/stacks/customer-cluster) for each pattern. ## How is a Stack deployed? When a vendor creates an install, Nuon generates Stack templates (Terraform and the platform's native IaC, where applicable) along with links and CLI snippets the vendor can share with the customer. The customer deploys whichever format fits their tooling, using their own credentials. This is how access is granted: the customer provisions the Stack themselves. No cross-account access is required. The customer retains full ownership and visibility of all infrastructure created by the Stack. ![Install stack](https://mintcdn.com/nuoninc/F-BAY1nbCezSKuB6/images/concepts/runner/install-stack.png?fit=max\&auto=format\&n=F-BAY1nbCezSKuB6\&q=85\&s=f676abd128fac3fc565a1df4f805a831) ## Customer Control The Stack gives the customer full control over the Runner's access to their cloud account. Through the Stack parameters, the customer can: * **Enable or disable the Runner** to stop it from executing jobs * **Configure [operation roles](/concepts/operation-roles)** and their policies to control what the Runner can do * **Turn on [break glass roles](/concepts/break-glass)** when the vendor needs urgent access, and turn them off when it's done * **Trigger automated actions** when roles are enabled or disabled. Use the `role-enabled` and `role-disabled` [action triggers](/concepts/actions#role-change-triggers) to run auditing, validation, or setup tasks This means the customer always has a killswitch. See [Customer-Controlled Runner Shutdown](/guides/runner-kill-switch). ## Stack Inputs Stacks accept customer-provided values at deploy time. They come in three forms: * **[Secrets](/concepts/app-secrets)** — entered by the customer as CloudFormation/Bicep parameters or Terraform variables, then stored in AWS Secrets Manager, Azure Key Vault, or GCP Secret Manager. * **[Customer-facing inputs](/concepts/app-inputs#customer-facing-inputs)** marked `user_configurable` — passed through the Stack at deploy time. * **VPC and cluster IDs** — required when the app template uses the [Customer VPC](/concepts/stacks/customer-vpc) or [Customer Cluster](/concepts/stacks/customer-cluster) pattern. The customer enters them in the Stack's parameter form alongside any other inputs. # Customer Cluster Source: https://docs.nuon.co/concepts/stacks/customer-cluster The Stack deploys into a Kubernetes cluster the customer already runs. ## Deploying an Example App If you're still designing your BYOC architecture, it is helpful to deploy a sample app template. For the Customer Cluster architecture, see [`byo-eks`](https://github.com/nuonco/example-app-configs/tree/main/byo-eks) in `nuonco/example-app-configs`. ## Overview [Custom nested stacks](/guides/custom-nested-stacks) wire the Runner into the cluster. Common when your product is an agent or operator that needs in-cluster access, or when the customer requires a single shared cluster for all vendor applications. ## App config Start from the [Customer VPC](/concepts/stacks/customer-vpc) pattern, then add [custom nested stacks](/guides/custom-nested-stacks) to wire the Runner into the existing cluster. Customer Cluster is natively supported via the Nuon-generated CloudFormation template. Terraform deployments are also possible but require forking the published modules at [`install-stacks`](https://github.com/nuonco/install-stacks) — see the Terraform section below. ### CloudFormation The vendor's `stack.toml` references CloudFormation nested templates plus the custom nested stacks that wire the Runner into the cluster: ```toml stack.toml theme={null} vpc_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.4.0/byo-vpc/default/stack.yaml" runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.7.0/runner/asg/stack.yaml" [[custom_nested_stacks]] name = "runner_sg_eks_access" # grant the Runner SG access to the cluster template_url = "CUSTOMER_CLOUD_DEPENDENT" index = 0 [[custom_nested_stacks]] name = "k8s_namespaces" # create namespaces for the app template_url = "CUSTOMER_CLOUD_DEPENDENT" index = 1 [[custom_nested_stacks]] name = "eks_access_entries" # add EKS access entries for Runner roles template_url = "CUSTOMER_CLOUD_DEPENDENT" index = 2 ``` The customer enters the VPC and subnet IDs (plus the cluster name) when deploying the stack. ### Terraform > [!WARNING] > > Custom nested stacks are CloudFormation-only. To support Terraform deployments for this pattern, fork [`install-stacks`](https://github.com/nuonco/install-stacks) and add equivalent resources (BYO-VPC inputs, cluster security-group access, namespaces, EKS access entries) directly in the Terraform module — see [Customizing Terraform Stack Templates](/guides/customizing-terraform-stack-templates). ### Sandbox The Sandbox skips cluster provisioning and consumes the customer's cluster name plus the subnet IDs from install stack outputs: ```toml sandbox.toml theme={null} [vars] cluster_name = "{{.nuon.inputs.inputs.cluster_name}}" public_subnet_ids = "{{.nuon.install_stack.outputs.public_subnets}}" private_subnet_ids = "{{.nuon.install_stack.outputs.private_subnets}}" runner_subnet_id = "{{.nuon.install_stack.outputs.runner_subnet}}" ``` # Customer VPC Source: https://docs.nuon.co/concepts/stacks/customer-vpc The Stack deploys into a VPC the customer already owns. ## Deploying an Example App If you're still designing your BYOC architecture, it is helpful to deploy a sample app template. For the Customer VPC architecture, see [`byo-vpc`](https://github.com/nuonco/example-app-configs/tree/main/byo-vpc) in `nuonco/example-app-configs`. ## Overview The customer provides VPC and subnet IDs at deploy time, common when the customer prefers you use their VPC. ## App config Customer VPC is natively supported via the Nuon-generated CloudFormation template. Terraform deployments are also possible but require forking the published modules at [`install-stacks`](https://github.com/nuonco/install-stacks) to add BYO-VPC inputs — see the Terraform section below. ### CloudFormation The vendor's `stack.toml` references CloudFormation nested templates. Point `vpc_nested_template_url` at the `byo-vpc/default` template — it accepts existing VPC and subnet IDs as parameters instead of creating them: ```toml stack.toml theme={null} vpc_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.4.0/byo-vpc/default/stack.yaml" runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.7.0/runner/asg/stack.yaml" ``` The customer enters `VpcID`, `RunnerSubnetID`, `PublicSubnetIDs`, and `PrivateSubnetIDs` in the CloudFormation Quick Create form. ### Terraform > [!WARNING] > > The default Terraform modules at [`install-stacks`](https://github.com/nuonco/install-stacks) always create a fresh VPC — they don't accept existing VPC or subnet IDs as inputs. To support Terraform deployments of this pattern, fork the module and add BYO-VPC variables — see [Customizing Terraform Stack Templates](/guides/customizing-terraform-stack-templates). ### Sandbox Whichever format the customer deploys, the Stack reports the VPC and subnet IDs back to Nuon as install stack outputs. The vendor's `sandbox.toml` wires them into the [Sandbox](/concepts/sandboxes) so it attaches to the customer's subnets instead of creating its own: ```toml sandbox.toml theme={null} [vars] vpc_id = "{{.nuon.install_stack.outputs.vpc_id}}" public_subnet_ids = "{{.nuon.install_stack.outputs.public_subnets}}" private_subnet_ids = "{{.nuon.install_stack.outputs.private_subnets}}" runner_subnet_id = "{{.nuon.install_stack.outputs.runner_subnet}}" ``` # Stand-alone VPC Source: https://docs.nuon.co/concepts/stacks/stand-alone-vpc The Stack template creates a brand-new VPC dedicated to the install. ## Deploying an Example App If you're still designing your BYOC architecture, it is helpful to deploy a sample app template. For the Stand-Alone VPC architecture, see [`eks-simple-auto`](https://github.com/nuonco/example-app-configs/tree/main/eks-simple-auto) in `nuonco/example-app-configs`. ## Overview When the customer deploys the Nuon-generated CloudFormation/Bicep or Terraform template that [you provide](/guides/install-configs), a fresh VPC is provisioned alongside the Runner and its permissions, all inside the customer's account. ## App config Each install supports two deployment formats: a Nuon-generated CloudFormation/Bicep template and the Terraform modules Nuon publishes at [`install-stacks`](https://github.com/nuonco/install-stacks) (AWS and GCP subfolders). ### CloudFormation/Bicep The vendor's `stack.toml` references nested templates. Set `type` to the cloud's native format — `aws-cloudformation` or `azure-bicep` — and point `vpc_nested_template_url` at the matching template. **AWS (CloudFormation)** — point at `vpc/eks/default` to create a new VPC: ```toml stack.toml theme={null} type = "aws-cloudformation" vpc_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.4.0/vpc/eks/default/stack.yaml" runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.7.0/runner/asg/stack.yaml" ``` The customer deploys via the CloudFormation Quick Create form (or `aws cloudformation deploy`) — no further input is needed beyond account and region. **Azure (Bicep)** — point at the `vnet.json` and `runner.json` templates in [`install-stacks/azure`](https://github.com/nuonco/install-stacks/tree/main/azure): ```toml stack.toml theme={null} type = "azure-bicep" vpc_nested_template_url = "https://raw.githubusercontent.com/nuonco/install-stacks/main/azure/vnet.json" runner_nested_template_url = "https://raw.githubusercontent.com/nuonco/install-stacks/main/azure/runner.json" ``` See [`aca-simple`](https://github.com/nuonco/example-app-configs/tree/main/aca-simple) for a complete Bicep example. ### Terraform Nuon publishes Terraform modules for both AWS and GCP at [`install-stacks`](https://github.com/nuonco/install-stacks) that provision the same resources. The customer clones (or wraps) their cloud's module and runs `terraform apply` against it. See [Customizing Terraform Stack Templates](/guides/customizing-terraform-stack-templates) if you need to fork. ### Sandbox The [Sandbox](/concepts/sandboxes) runs after the Stack and provisions the app's compute layer inside the new VPC. It picks up the VPC by reading the Stack's outputs: ```toml sandbox.toml theme={null} [vars] region = "{{.nuon.install_stack.outputs.region}}" vpc_id = "{{.nuon.install_stack.outputs.vpc_id}}" ``` # Triggers Source: https://docs.nuon.co/concepts/triggers Automate Nuon using external events with triggers. A **trigger** is an inbound webhook endpoint. External systems — a Git host, a cloud pub/sub topic, a CI provider — send events to a per-trigger **ingress URL**, and Nuon authenticates, deduplicates, and routes each event to a target: an **app branch run** or an **install runbook**. Use triggers to react to external events automatically — for example, kick off a build when a branch is pushed, or run a runbook when a cloud alert fires. ## How it works 1. You create a trigger, which gives you a unique, secret **ingress URL**. 2. An external system POSTs an event to that URL. Nuon verifies its authenticity, unwraps any envelope, and stores it as an **event**. 3. The event is evaluated against your **rules** (authored in your app config). Each matching rule produces a **dispatch**. 4. Each dispatch starts its target — an app branch run or an install runbook — passing along values mapped from the event payload. ## Concepts | Concept | Description | | - | - | | **Trigger** | The inbound endpoint. Holds the ingress URL, authentication settings, and signing secrets. | | **Rule** | A routing rule that matches events and starts a target. Authored in your app config — see [Configure triggers](/guides/triggers). | | **Event** | A single received payload, stored with its headers, body, and routing outcome. | | **Dispatch** | One target execution produced by a matching rule, with its own status and retry state. | ## Authentication Triggers verify that incoming events are genuine. Choose an authentication type when you create a trigger: | Auth type | Description | | - | - | | `none` | No verification. Use only for testing or when the ingress URL is the sole secret. | | `hmac` | Verify an HMAC signature computed over the request body with a shared secret. The default. | | `api_key` | Verify a static key sent in a header. | | `basic` | Verify HTTP Basic credentials. | | `bearer_jwt` | Verify a bearer JWT (optionally against an expected audience, subject, or email). | | `sns_signature` | Verify an AWS SNS message signature. | ### Presets Presets configure authentication and payload parsing for a known provider so you don't have to set the details by hand. Supported presets: `github`, `slack-events`, `datadog`, `aws-eventbridge`, `aws-sns`, `google-pubsub`, and `azure-event-grid`. ### Envelopes Some providers wrap the real payload in a transport envelope. Set an envelope so Nuon unwraps it before evaluating rules: `none` (default), `pubsub_push`, `cloudevents`, or `sns`. ## Secrets Each trigger has one or more signing secrets used to verify incoming events. Secrets support rotation: you can add a new secret, reveal it once, and revoke old ones without downtime. ## Status A trigger is either `active` (accepting events) or `suspended` (rejecting them). Disable a trigger to stop processing events without deleting it. ## Managing triggers Manage triggers in the Dashboard on the **Triggers** page, or with the `nuon triggers` CLI commands. ```sh theme={null} nuon triggers create my-trigger --preset github nuon triggers list nuon triggers reveal-ingress-url ``` To define how events are routed, author rules in your app config and inspect received events and dispatches — see [Configure triggers](/guides/triggers). # Updates and Operations Source: https://docs.nuon.co/concepts/updates-and-operations Ship a change to every install with a git push, change one install, and run migrations with actions and runbooks. To update your installs, push a change to the git branch your app branch tracks.
        ## Ship to every install * **Push to git.** A push to the tracked branch runs the [app branch](/concepts/app-branches). It builds what changed, then plans and deploys it one [install group](/concepts/app-branches#install-groups) at a time. * **Review before it ships.** Each install group waits for you to approve its Terraform plan or Helm diff, or approves itself when every [policy](/concepts/policies) check passes. ## Change one install * **Edit its config.** Change that install's [config](/guides/install-configs), such as its inputs or a [component override](/guides/component-overrides). * **Roll back.** [Re-apply an earlier config version](/guides/rollback-install-config) on that install. ## Run migrations and day-2 work * **[Actions](/concepts/actions)** run scripts by hand, on a schedule, or around a deploy. * **[Runbooks](/guides/runbooks)** chain deploys and actions into one procedure, such as a [database migration](/guides/database-migrations). Run one against a single install, or list it in the app branch's `post_deploy_runbooks` to run it on each install after its deploy. * **[Operation roles](/concepts/operation-roles)** give each run only the access it needs. * **[Break glass](/concepts/break-glass)** lets your customer grant more access when you need to service their install. * **[Health checks](/guides/health-checks)** show whether every component is running, with alerts to Slack and webhooks. Every run is a [workflow](/concepts/workflows) that records its steps and logs, so you can see what ran, when, and against which install. # Workflows Source: https://docs.nuon.co/concepts/workflows Workflows are scheduled and manual lifecycles of deploying, updating or tearing down installs of your app template, including components and actions. ## What is a Workflow? A workflow represents the complete lifecycle of deploying, updating or tearing down an install of your app template and its components. Workflows also manage the execution of actions. > [!NOTE] > > If new to Nuon, familiarize yourself with the [App Templates, installs, and updates](/concepts/overview) first. Each install has a **Workflows** tab that lists its workflows newest first, with each workflow's status and how long ago it ran. Open a workflow to see its steps in order, its pending approvals and how many steps have completed. ## Workflow Types ### Install An install workflow covers all of the steps required to install an app from scratch. This includes creating the install stack, creating the virtual machine and starting the Nuon runner, provisioning the sandbox, syncing secrets, deploying the components of the app with Terraform, Helm or Kubernetes manifests e.g., databases, applications, certificates, application load balancers, and executing actions which are bash scripts to perform additional configurations like initializing a database or performing a health check. ### Component A component workflow deploys a component. If there are dependent components, the user can instruct Nuon to deploy those components as well. ### Action An action workflow executes the script associated with an action. e.g., initialize a database, run a health check on a component, make a one-off configuration change. ## Workflow States **Success (green checkmark)**: A step or install component completed successfully **Error (red X)**: One or more steps failed **Cancelled (yellow X)**: An install or step was cancelled by the user **In-progress (brown circle pulsing or clockwise spinning blue circle)**: A component or action is underway ## Workflow Approvals Components using Terraform, Helm and Kubernetes manifests run a plan step which requires the user to approve or reject the step before proceeding to the apply or deploying of the sandbox and components. A plan step waiting on you shows **Awaiting approval** in the step list. Open it to see each resource the plan will create, update, delete or read, then choose **Approve plan**, **Deny plan** or **Retry plan**. You can approve plan steps in bulk at two levels. To approve every plan step on an install automatically, turn on auto approval in the install's settings. To approve the remaining plan steps in one workflow, click **Approve all** on that workflow. ## Workflow Diffs If a component using Terraform, Helm or a Kubernetes manifest has been changed by the user, re-synced to an app and therefore re-built, the plan step will visually show the diff, aka the before and after proposed change, and require the user to approve or reject/deny the change. Learn more about [Understanding diffs](../updates/012-approval-diffs-plan-only). A Helm plan, for example, opens with how many resources it will add, change and destroy, then shows the diff of each manifest. Try with your agent Review and approve a plan ## Drift Detection [Drift Detection](../updates/023-drift-workflow-improvements) allows you to automatically identify discrepancies between your defined infrastructure in Nuon and what’s actually running. You can schedule periodic drift checks or manual drift scans from the dashboard. Drilling into the relevant Workflow will show the drift. To see drift scans in an install's workflow list, turn on the **Drift scan** filter. A scan's plan step lists each drifted resource under **Resource drift**, with its expected and actual values. # Action Source: https://docs.nuon.co/config-ref/action JSON Schema reference for action configuration # Action ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the action The action name is displayed in the Actions tab of the Nuon dashboard | **✅ Required** | `"http_healthcheck"`, `"database_migration"` | | **`timeout`** string | timeout for action execution Maximum time the action can run. Maximum allowed is 1 hour. Must be a valid Go duration string (e.g., 30s, 5m, 30m) | **✅ Required** | `"15s"`, `"5m"`, `"30m"` | | **`triggers`** [array](#triggers) | triggers that execute this action Actions can be triggered manually, on a cron schedule, or by install lifecycle events (provision, deploy, teardown, etc). Define multiple triggers if needed | **✅ Required** | - | | **`steps`** [array](#steps) | steps to execute in this action Ordered list of steps to execute. Each step requires a command and can optionally load scripts from repositories | **✅ Required** | - | | **`labels`** object | key/value labels for the action Arbitrary key/value metadata used to group and categorize actions | **Optional** | - | | **`dependencies`** array | component dependencies referenced in this action Automatically extracted from template references in steps (e.g., \{\{.component.component\_name}}) | **Optional** | `"database"`, `"api-server"` | | **`break_glass_role`** string | deprecated: use role Deprecated. Set role to the break glass role name instead. If both are set, break\_glass\_role wins. See [https://docs.nuon.co/concepts/break-glass](https://docs.nuon.co/concepts/break-glass) | **Optional** | `"bucket-operations-break-glass"`, `"database-migration-break-glass"` | | **`role`** string | role name for action execution An operation or break glass role in the install stack. If not set, operation\_roles rules apply, then the default role. If the role is off, the default role is used | **Optional** | `"{{.nuon.install.id}}-maintenance"` | | **`enable_kube_config`** boolean | whether to fetch and inject kubeconfig for this action When set to false, the action runner will not fetch the install's kubeconfig or set the KUBECONFIG env var. Defaults to true. Set to false for... | **Optional** | `"true"`, `"false"` | | **`is_healthcheck`** boolean | whether this action is an install health check When true, the install health view lists this action and a failed run marks the install unhealthy. Defaults to false | **Optional** | `"true"`, `"false"` | | **`image`** string | container image the action's steps run inside Optional container image supplying the tools the action needs. Each step's command, inline\_contents, or repo-backed script runs inside it via the mount... | **Optional** | `"ghcr.io/acme/kubernetes-tools:v1"`, `"{{.nuon.components.runbook-tools.outputs.image.ref}}"` | | **`kubernetes_context`** string | kubernetes context this action targets Name of a top-level kubernetes\_context binding to target when this action runs. When set, the action's runner receives the cluster connection details from tha... | **Optional** | `"compute"`, `"data-cluster"` | ### `triggers` | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | type of trigger Supported trigger types: manual, cron, pre-provision, post-provision, post-provision-sandbox, pre-reprovision, post-reprovision, pre-deprovision, post-deprovision, pre-deploy-all-co... | **✅ Required** | `"manual"`, `"cron"`, `"post-provision"` | | **`index`** integer | index for manual trigger Used to differentiate multiple manual triggers in the same action | **Optional** | `"0"`, `"1"` | | **`cron_schedule`** string | cron schedule expression for scheduled triggers Standard cron format (minute hour day month weekday). For example, '\*/5 \* \* \* \*' runs every 5 minutes | **Optional** | `"*/5 * * * *"`, `"0 */4 * * *"` | | **`component_name`** string | component name for component-specific triggers Required for pre-deploy-component, post-deploy-component, pre-teardown-component, post-teardown-component, pre-enable-component, post-enable-component... | **Optional** | `"database"`, `"api-server"` | ### `steps` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the step Displayed in action logs and the Nuon dashboard | **✅ Required** | `"healthcheck"`, `"database_migration"` | | **`env_vars`** object | environment variables to pass to the step Map of environment variables that will be available to the command. Supports Go templating for values | **Optional** | - | | **`public_repo`** PublicRepoConfig | public repository containing the step script Clone a public GitHub repository to load scripts from. Requires 'repo', 'branch', and optionally 'directory' fields | **Optional** | - | | **`connected_repo`** ConnectedRepoConfig | connected repository containing the step script Use a Nuon-connected repository to load scripts from. Requires 'repo', 'branch', and optionally 'directory' fields | **Optional** | - | | **`command`** string | command to execute Single-line command to execute. Mutually exclusive with inline\_contents. Supports Go templating (e.g., \{\{.nuon.install.id}}). Runs on the install runner, or inside the action... | **Optional** | `"./healthcheck"`, `"bash -c 'curl https://example.com'"` | | **`inline_contents`** string | inline script contents Embed script contents directly in the config file. Supports Go templating and external URLs: HTTP(S) ([https://example.com/script.sh](https://example.com/script.sh)), git repositories (git::[https://github.co](https://github.co)... | **Optional** | `"./src/healthcheck.sh"`, `"#!/usr/bin/env sh\nkubectl get pods -n default"` | # Branch Source: https://docs.nuon.co/config-ref/branch JSON Schema reference for branch configuration # Branch ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the app branch | **✅ Required** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected GitHub repo the branch tracks | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public git repo the branch tracks | **Optional** | - | | **`install_groups`** [array](#install_groups) | ordered deployment groups for this branch | **Optional** | - | | **`preview`** [AppBranchPreviewConfig](#preview) | default preview run settings for this branch | **Optional** | - | | **`run`** [AppBranchRunConfig](#run) | controls which VCS events automatically run this branch | **Optional** | - | | **`post_deploy_runbooks`** array | names of runbooks to run on each install, in order, after its deploy succeeds; resolved to IDs at sync time | **Optional** | - | | **`ignore_changes_regex`** string | RE2 regex matched against every changed file path; a run whose entire changed file set matches is not attempted | **Optional** | - | | **`send_statuses_on_ignore`** boolean | whether to send a successful commit status when a run is ignored by ignore\_changes\_regex | **Optional** | - | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `install_groups` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the install group | **✅ Required** | - | | **`order`** integer | deployment order (lower runs first) | **Optional** | - | | **`label_selector`** object | label key-value pairs to dynamically match installs | **Optional** | - | | **`default`** boolean | whether unmatched installs owned by this branch deploy in this group | **Optional** | - | | **`auto_approve_on_policies_passing`** boolean | Auto-approve this group's plan when all policy checks pass. Defaults to false | **Optional** | - | ### `preview` | Property | Description | Values | Example | | - | - | - | - | | **`mode`** string | preview run mode: none, plan-only, apply, or build-only | **Optional** `"none"`, `"plan-only"`, `"apply"`, `"build-only"` | - | | **`install_id`** string | default install ID for preview runs | **Optional** | - | | **`install_name`** string | default install name for preview runs, resolved to an ID at sync time | **Optional** | - | | **`label_selector`** object | label key-value pairs to select the default preview install | **Optional** | - | | **`set_statuses`** boolean | whether to set GitHub commit statuses for preview runs | **Optional** | - | | **`comment`** boolean | whether to comment on the pull request with preview results | **Optional** | - | | **`ignore_drafts`** boolean | skip preview runs for draft pull requests until they are marked ready for review. Defaults to true | **Optional** | - | | **`react`** boolean | whether to add a GitHub eyes reaction when a preview run starts. Defaults to true | **Optional** | - | ### `run` | Property | Description | Values | Example | | - | - | - | - | | **`mode`** string | automatic run mode: push, on\_tag, on\_github\_label, or manual\_only | **Optional** `"push"`, `"on_tag"`, `"on_github_label"`, `"manual_only"` | - | | **`tag_prefix`** string | case-sensitive git tag prefix required by on\_tag | **Optional** | - | | **`github_label`** string | exact pull request label required by on\_github\_label | **Optional** | - | # Break Glass Source: https://docs.nuon.co/config-ref/break-glass JSON Schema reference for break-glass configuration # Break Glass ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`role`** [array](#role) | Roles your customer can turn on in their install stack for elevated access. Off by default. See [https://docs.nuon.co/concepts/break-glass](https://docs.nuon.co/concepts/break-glass) | **Optional** | - | ### `role` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the role Name used for the role in the target cloud platform. Supports Go templating using standard template variables (e.g., \{\{.nuon.install.id}}) | **✅ Required** | `"app-{{.nuon.install.id}}-role"`, `"admin-role"` | | **`description`** string | description of the role Human-readable description that explains the role's purpose. Rendered in the installer to customers. Supports templating | **✅ Required** | `"Provides S3 bucket access for the application"`, `"Database migration role with elevated permissions"` | | **`type`** string | role type in permission directory Used when defining permissions in a directory. Indicates when the role is active (provision, maintenance, or deprovision). Supports templating | **Optional** | `"provision"`, `"maintenance"`, `"deprovision"` | | **`cloud_platform`** string | target cloud platform Cloud platform this role targets. Determines which downstream renderer processes the role (e.g., AWS CloudFormation vs GCP IAM). Defaults to aws if omitted | **Optional** `"aws"`, `"azure"`, `"gcp"` | `"aws"`, `"gcp"` | | **`display_name`** string | display name of the role Human-readable display name shown in the installer UI. Supports templating | **Optional** | `"Application S3 Access"`, `"Database Admin"` | | **`policies`** array | policy definitions for the role List of policies to attach to the role. Each policy defines cloud-specific permissions (AWS IAM policies, GCP IAM permissions, or GCP predefined roles). May be omitt... | **Optional** | - | | **`permissions_boundary`** string | \[AWS] permissions boundary policy \[AWS only] Optional ARN of a permissions boundary policy. Limits the maximum permissions the role can have. Supports templating and external file sources: HTTP(S) ... | **Optional** | `"./provision_boundary.json"`, `"./maintenance_boundary.json"` | | **`enabled_in_stack`** boolean | whether the role is on by default CloudFormation and Azure only. Defaults to true, or false for break glass roles. When false, the role is created once the customer turns it on | **Optional** | - | | **`named_policies`** array | named IAM policies to attach Named IAM policies to attach to this role, referenced by name. Use \[\[named\_policies]] like \[\[policies]]. The name must match a named policy defined under permissions. T... | **Optional** | - | # Container Image Source: https://docs.nuon.co/config-ref/container-image JSON Schema reference for container-image configuration # Container Image ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"container_image"`, `"external_image"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`aws_ecr`** [AWSECRConfig](#aws_ecr) | AWS ECR image configuration Authentication comes from the verified ECR identity saved for the exact image repository in Settings > Image repositories or with `nuon image-repositories create`. | **Optional** | - | | **`gcp_gar`** [GCPGARConfig](#gcp_gar) | GCP Artifact Registry image configuration Authentication comes from the verified GAR identity saved for the exact image repository in Settings > Image repositories or with \`nuon image-repositories... | **Optional** | - | | **`azure_acr`** [AzureACRConfig](#azure_acr) | Azure Container Registry image configuration Authentication comes from the verified ACR identity saved for the exact image repository in Settings > Image repositories or with \`nuon image-repositor... | **Optional** | - | | **`public`** [PublicImageConfig](#public) | public registry image configuration Configuration for pulling images from public container registries (Docker Hub, Quay.io, GCR, etc) | **Optional** | - | | **`verification`** [Verification](#verification) | container image signature verification policy Require the resolved image digest to satisfy at least one configured Sigstore keyless identity or Cosign public key before Nuon copies it | **Optional** | - | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 15m. Max: 1h | **Optional** Default: `"15m"` | `"30m"`, `"1h"` | | **`deploy_timeout`** string | deploy operation timeout Duration string for deploy operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | `"30m"`, `"1h"` | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `aws_ecr` | Property | Description | Values | Example | | | | - | - | - | - | - | - | | **`region`** string | AWS region for the ECR repository AWS region where the ECR repository is located | **✅ Required** | `"us-east-1"`, `"us-west-2"`, `"eu-west-1"` | | | | **`image_url`** string | ECR image URL Full URL to the ECR image (without tag). Format: \.dkr.ecr.\.amazonaws.com/\/\ | **✅ Required** | `"123456789012.dkr.ecr.us-east-1.amazonaws.com/myapp/api"`, `"123456789012.dkr.ecr.us-west-2.amazonaws.com/myapp/worker"` | | | | **`tag`** string | image tag Tag or version of the container image to deploy. Either tag or update\_policy must be set. Supports templating (e.g., \{\{.nuon.install.id}}) | **Optional** | `"v1.0.0"`, `"latest"`, `"{{.nuon.install.id}}"` | | | | **`update_policy`** string | semver constraint for tag resolution Semver constraint for picking a tag at build time. When set, at each build the runner lists tags from the registry, filters to those that parse as semver and sa... | **Optional** | `"~1.25.0"`, `"^2.0.0"`, `"\u003e=1.0.0,\u003c2.0.0"`, `"1.x"`, \`"^1.0 | | ^2.0"\` | ### `gcp_gar` | Property | Description | Values | Example | | | | - | - | - | - | - | - | | **`gcp_project_id`** string | GCP project ID Google Cloud project ID where the Artifact Registry repository is located | **✅ Required** | `"my-gcp-project"` | | | | **`region`** string | GCP region for the GAR repository Google Cloud region where the Artifact Registry repository is located | **✅ Required** | `"us-central1"`, `"us-east1"`, `"europe-west1"` | | | | **`image_url`** string | GAR image URL Full URL to the GAR image (without tag). Format: \-docker.pkg.dev/\/\/\ | **✅ Required** | `"us-central1-docker.pkg.dev/my-project/my-repo/my-image"` | | | | **`tag`** string | image tag Tag or version of the container image to deploy. Either tag or update\_policy must be set. Supports templating (e.g., \{\{.nuon.install.id}}) | **Optional** | `"v1.0.0"`, `"latest"`, `"{{.nuon.install.id}}"` | | | | **`update_policy`** string | semver constraint for tag resolution Semver constraint for picking a tag at build time. When set, at each build the runner lists tags from the registry, filters to those that parse as semver and sa... | **Optional** | `"~1.25.0"`, `"^2.0.0"`, `"\u003e=1.0.0,\u003c2.0.0"`, `"1.x"`, \`"^1.0 | | ^2.0"\` | ### `azure_acr` | Property | Description | Values | Example | | | | - | - | - | - | - | - | | **`image_url`** string | ACR image URL Full URL to the ACR image (without tag). Format: \.azurecr.io/\/\ | **✅ Required** | `"myregistry.azurecr.io/myapp/api"` | | | | **`registry_url`** string | ACR login server Azure Container Registry login server. Format: \.azurecr.io | **✅ Required** | `"myregistry.azurecr.io"` | | | | **`tag`** string | image tag Tag or version of the container image to deploy. Either tag or update\_policy must be set. Supports templating (e.g., \{\{.nuon.install.id}}) | **Optional** | `"v1.0.0"`, `"latest"`, `"{{.nuon.install.id}}"` | | | | **`update_policy`** string | semver constraint for tag resolution Semver constraint for picking a tag at build time. When set, at each build the runner lists tags from the registry, filters to those that parse as semver and sa... | **Optional** | `"~1.25.0"`, `"^2.0.0"`, `"\u003e=1.0.0,\u003c2.0.0"`, `"1.x"`, \`"^1.0 | | ^2.0"\` | ### `public` | Property | Description | Values | Example | | | | - | - | - | - | - | - | | **`image_url`** string | container image URL Full URL to the container image from a public registry (Docker Hub, Quay.io, etc). Format: \[registry/]\/\ | **✅ Required** | `"nginx:latest"`, `"docker.io/library/postgres"`, `"quay.io/myorg/myapp"`, `"gcr.io/myproject/myapp"` | | | | **`tag`** string | image tag Tag or version of the container image to deploy. Either tag or update\_policy must be set. Supports templating (e.g., \{\{.nuon.install.id}}) | **Optional** | `"v1.0.0"`, `"latest"`, `"{{.nuon.install.id}}"` | | | | **`update_policy`** string | semver constraint for tag resolution Semver constraint for picking a tag at build time. When set, at each build the runner lists tags from the registry, filters to those that parse as semver and sa... | **Optional** | `"~1.25.0"`, `"^2.0.0"`, `"\u003e=1.0.0,\u003c2.0.0"`, `"1.x"`, \`"^1.0 | | ^2.0"\` | ### `verification` | Property | Description | Values | Example | | - | - | - | - | | **`require_signature`** boolean | - | **Optional** | - | | **`authorities`** array | - | **Optional** | - | # Helm Source: https://docs.nuon.co/config-ref/helm JSON Schema reference for helm configuration # Helm ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"helm_chart"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`chart_name`** string | Helm release name Sets the Helm release name, which need not match the chart's own name. The chart itself comes from helm\_repo.chart or the repo path. Must be a valid DNS label, 5-62 characters | **✅ Required** | `"karpenter-nodepools"`, `"prometheus"`, `"cert-manager"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`values`** object | inline Helm values Map of Helm values as key-value pairs. These are passed to helm install/upgrade as --set arguments. Supports Nuon templating | **Optional** | - | | **`values_file`** [array](#values_file) | Helm values files Array of external Helm values files to load. Each entry can specify a path to a local file or inline contents. Supports Nuon templating and external file sources | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public repository with the Helm chart Configuration for a public Git repository containing the Helm chart source. Mutually exclusive with connected\_repo and helm\_repo | **Optional** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected repository with the Helm chart Configuration for a Nuon-connected private repository containing the Helm chart source. Mutually exclusive with public\_repo and helm\_repo | **Optional** | - | | **`helm_repo`** [HelmRepoConfig](#helm_repo) | Helm chart repository Configuration for pulling a chart from a Helm repository (e.g., a public chart registry). Mutually exclusive with public\_repo and connected\_repo | **Optional** | - | | **`namespace`** string | Kubernetes namespace to deploy into Kubernetes namespace where the Helm release will be installed. Defaults to \{\{.nuon.install.id}}. Supports Nuon templating | **Optional** | `"clickhouse"`, `"monitoring"`, `"{{.nuon.install.id}}"` | | **`storage_driver`** string | Helm storage driver Backend storage driver for Helm release metadata. Defaults to configmap | **Optional** `"configmap"`, `"secret"` | `"configmap"` | | **`take_ownership`** boolean | adopt existing Helm releases If true, Nuon will adopt an existing Helm release with the same name and namespace that was not originally managed by Nuon. Useful when migrating existing deployments t... | **Optional** | - | | **`skip_crds`** boolean | skip Helm chart CRDs If true, Helm will not install CRDs from the chart's crds directory. CRDs rendered from templates are not skipped | **Optional** Default: `"false"` | `"true"` | | **`drift_schedule`** string | drift detection schedule Cron expression for periodic drift detection. If not set, drift detection is disabled | **Optional** | `"0 2 * * *"` | | **`health`** [ComponentHealthConfig](#health) | component health configuration Live health checking configuration for this component. Health checking is enabled by default; use this block to tune the stabilization window or make deploys block on... | **Optional** | - | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | `"30m"`, `"1h"` | | **`deploy_timeout`** string | deploy operation timeout Duration string for deploy operations (e.g., "30m", "1h"). Default: 30m. Max: 1h | **Optional** Default: `"30m"` | `"30m"`, `"1h"` | | **`max_auto_retries`** integer | maximum automatic retry attempts on deploy failure Maximum number of automatic retry attempts for failed deployments. Set to 0 to disable auto-retry. Default: 0 (disabled) | **Optional** Default: `"0"` | `"3"`, `"5"` | | **`skip_noops`** boolean | Skip the deploy step when the plan has no changes (a no-op). Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`auto_approve_on_policies_passing`** boolean | Auto-approve the deploy when all policy checks pass. Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`value`** [array](#value) | deprecated: use values map instead Deprecated: Array of name/value pairs for Helm values. Use the values map instead | **Optional** | - | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `values_file` | Property | Description | Values | Example | | - | - | - | - | | **`source`** string | \[DEPRECATED: use 'path' instead] | **Optional** | - | | **`contents`** string | Contents of the values file. | **Optional** | `"./values/whoami.yaml"` | | **`path`** string | Path to the values file. | **Optional** | `"./values/clickhouse-operator.yaml"`, `"./values/coder.yaml"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `helm_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo_url`** string | URL of the helm chart repository | **✅ Required** | `"https://prometheus-community.github.io/helm-charts"` | | **`chart`** string | name of the chart in the repository | **✅ Required** | `"kube-prometheus-stack"` | | **`version`** string | version of the chart to use | **Optional** | `"79.4.1"` | ### `health` | Property | Description | Values | Example | | - | - | - | - | | **`enabled`** boolean | enable live health checking Whether live health checking and the health verdict apply to this component. Default: true | **Optional** Default: `"true"` | `"false"` | | **`stabilization_window`** string | health stabilization window How long the component must hold healthy after a deploy applies before the deploy step is considered done. Duration string (e.g., "3m", "10m"). Default: 3m. Max: 1h | **Optional** Default: `"3m"` | `"3m"`, `"10m"` | | **`block_deploy`** boolean | fail the deploy when health does not stabilize When true, the deploy step fails if health does not stabilize inside the window. When false, the step still completes and only records what health did... | **Optional** Default: `"false"` | `"true"` | | **`probes`** array | synthetic health probes Probes the runner executes from inside the install to assert the component is actually serving. Each probe reports as its own health resource, and a failing probe makes the ... | **Optional** | - | | **`required_checks`** array | - | **Optional** | - | ### `value` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | helm value name | **Optional** | `"replicaCount"`, `"image.tag"` | | **`value`** string | helm value | **Optional** | `"3"`, `"{{.nuon.install.id}}"` | # Configuration Reference Source: https://docs.nuon.co/config-ref/index Complete reference for Nuon configuration file schemas # Configuration Reference This section provides detailed JSON Schema references for all Nuon configuration types. ## Available Configurations > [card] [Action](/config-ref/action) > [card] [Branch](/config-ref/branch) > [card] [Break Glass](/config-ref/break-glass) > [card] [Container Image](/config-ref/container-image) > [card] [Helm](/config-ref/helm) > [card] [Input](/config-ref/input) > [card] [Input Group](/config-ref/input-group) > [card] [Inputs](/config-ref/inputs) > [card] [Install](/config-ref/install) > [card] [Installer](/config-ref/installer) > [card] [Installs Config](/config-ref/installs-config) > [card] [Job](/config-ref/job) > [card] [Kubernetes Context](/config-ref/kubernetes-context) > [card] [Kubernetes Contexts](/config-ref/kubernetes-contexts) > [card] [Kubernetes Manifest](/config-ref/kubernetes-manifest) > [card] [Metadata](/config-ref/metadata) > [card] [Permission](/config-ref/permission) > [card] [Permission Policy](/config-ref/permission-policy) > [card] [Permissions](/config-ref/permissions) > [card] [Policies](/config-ref/policies) > [card] [Policy](/config-ref/policy) > [card] [Pulumi](/config-ref/pulumi) > [card] [Runbook](/config-ref/runbook) > [card] [Runner](/config-ref/runner) > [card] [Sandbox](/config-ref/sandbox) > [card] [Secret](/config-ref/secret) > [card] [Secrets](/config-ref/secrets) > [card] [Stack](/config-ref/stack) > [card] [Terraform](/config-ref/terraform) # Input Source: https://docs.nuon.co/config-ref/input JSON Schema reference for input configuration # Input ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`display_name`** string | display name of the input Human-readable name shown in the installer UI to customers | **✅ Required** | `"API Token"`, `"Database URL"` | | **`description`** string | input description Detailed explanation of what this input is for, rendered in the installer to guide users | **✅ Required** | `"The API token for authenticating with the external service"`, `"Connection string for the PostgreSQL database"` | | **`group`** string | input group name Name of the input group this field belongs to. Must match a defined group in the inputs section | **✅ Required** | `"database"`, `"integrations"` | | **`name`** string | input name Used to reference the input via variable templating (e.g., \{\{.nuon.inputs.input\_name}}) | **Optional** | `"api_token"`, `"database_url"` | | **`default`** object | default value for the input Default value used if customer does not provide one. Type must match the input type | **Optional** | `"production"`, `"5432"` | | **`required`** boolean | whether input is required If true, customer must provide a value during installation. If false, can be skipped | **Optional** | - | | **`sensitive`** boolean | whether input is sensitive If true, the value will be masked/hidden in the UI and logs after the install is created. Use for passwords, tokens, and API keys | **Optional** | - | | **`type`** string | input type Data type for the input. Supported types: string, number, list, json, bool, yaml, hcl | **Optional** | `"string"`, `"number"`, `"json"`, `"bool"`, `"yaml"`, `"hcl"` | | **`internal`** boolean | Deprecated: this field has no effect and will be ignored. | **Optional** | - | | **`user_configurable`** boolean | whether input is user configurable If true, input can be modified by end users after installation | **Optional** | - | # Input Group Source: https://docs.nuon.co/config-ref/input-group JSON Schema reference for input-group configuration # Input Group ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | Group name, which must be referenced by each input. | **✅ Required** | `"database"`, `"compute"` | | **`description`** string | Human readable description which is rendered in the installer. | **✅ Required** | `"Database configuration options"`, `"How many nodes to provision to support environments"` | | **`display_name`** string | Human readable name which is rendered in the installer. | **Optional** | `"Database Settings"`, `"Kubernetes Nodes"` | # Inputs Source: https://docs.nuon.co/config-ref/inputs JSON Schema reference for inputs configuration # Inputs ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`input`** [array](#input) | list of inputs Array of input definitions that customers can configure during installation | **Optional** | - | | **`group`** [array](#group) | list of input groups Array of input group definitions that organize related inputs in the installer UI | **Optional** | - | | **`sources`** array | external input source files Array of paths to external files containing additional input definitions. Each file is loaded and merged into the inputs configuration. Supports YAML, JSON, and TOML for... | **Optional** | - | ### `input` | Property | Description | Values | Example | | - | - | - | - | | **`display_name`** string | display name of the input Human-readable name shown in the installer UI to customers | **✅ Required** | `"API Token"`, `"Database URL"` | | **`description`** string | input description Detailed explanation of what this input is for, rendered in the installer to guide users | **✅ Required** | `"The API token for authenticating with the external service"`, `"Connection string for the PostgreSQL database"` | | **`group`** string | input group name Name of the input group this field belongs to. Must match a defined group in the inputs section | **✅ Required** | `"database"`, `"integrations"` | | **`name`** string | input name Used to reference the input via variable templating (e.g., \{\{.nuon.inputs.input\_name}}) | **Optional** | `"api_token"`, `"database_url"` | | **`default`** object | default value for the input Default value used if customer does not provide one. Type must match the input type | **Optional** | `"production"`, `"5432"` | | **`required`** boolean | whether input is required If true, customer must provide a value during installation. If false, can be skipped | **Optional** | - | | **`sensitive`** boolean | whether input is sensitive If true, the value will be masked/hidden in the UI and logs after the install is created. Use for passwords, tokens, and API keys | **Optional** | - | | **`type`** string | input type Data type for the input. Supported types: string, number, list, json, bool, yaml, hcl | **Optional** | `"string"`, `"number"`, `"json"`, `"bool"`, `"yaml"`, `"hcl"` | | **`internal`** boolean | Deprecated: this field has no effect and will be ignored. | **Optional** | - | | **`user_configurable`** boolean | whether input is user configurable If true, input can be modified by end users after installation | **Optional** | - | ### `group` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | Group name, which must be referenced by each input. | **✅ Required** | `"database"`, `"compute"` | | **`description`** string | Human readable description which is rendered in the installer. | **✅ Required** | `"Database configuration options"`, `"How many nodes to provision to support environments"` | | **`display_name`** string | Human readable name which is rendered in the installer. | **Optional** | `"Database Settings"`, `"Kubernetes Nodes"` | # Install Source: https://docs.nuon.co/config-ref/install JSON Schema reference for install configuration # Install ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the install Unique identifier for this install configuration | **✅ Required** | `"production"`, `"staging"`, `"customer-acme"` | | **`app_branch`** string | app branch name or ID App branch this install belongs to, by name or ID. Changing it moves the install and applies the branch's latest run. | **✅ Required** | `"main"` | | **`app_branch_group`** string | app branch deployment group Deployment group this install belongs to within its app branch. This explicit selection takes precedence over label matching. | **Optional** | `"canary"` | | **`approval_option`** string | approval option for the install Controls how deployments are approved. Options: 'approve-all' (automatic approval) or 'prompt' (requires confirmation) | **Optional** | `"approve-all"`, `"prompt"` | | **`telemetry`** [InstallTelemetry](#telemetry) | Install telemetry settings | **Optional** | - | | **`labels`** object | key/value labels for the install Tag installs with arbitrary metadata like environment, region, or version. Values can use the .nuon templating syntax to render from install state, and re-render as... | **Optional** | `{"env":"production","region":"{{ .nuon.cloud_account.aws.region }}"}` | | **`aws_account`** [AWSAccount](#aws_account) | AWS account configuration AWS-specific settings for this install, including region and other account details | **Optional** | - | | **`gcp_account`** [GCPAccount](#gcp_account) | GCP account configuration GCP-specific settings for this install, including project ID and region | **Optional** | - | | **`azure_account`** [AzureAccount](#azure_account) | Azure account configuration Azure-specific settings for this install, including the deployment location | **Optional** | - | | **`cloud_connection`** string | cloud connection name or ID AWS cloud connection this install uses for provisioning, by name or ID. The connection must exist in the organization and be verified. When omitted, the install falls ba... | **Optional** | `"demo-aws"` | | **`inputs`** array | input values Array of input groups with key-value pairs for customer inputs provided during installation | **Optional** | - | | **`stack_overrides`** [InstallStackOverrides](#stack_overrides) | Stack template overrides Per-install overrides for the app-level stack template configuration. For cloud-connected installs, Git config creation provisions the managed stack; changes reprovision it... | **Optional** | - | | **`cloudformation`** [CloudFormation](#cloudformation) | Per-install CloudFormation configuration Root and nested stack parameters supported by Git-backed install config sync only, not nuon installs sync. Requires an AWS cloud\_connection. Values merge ov... | **Optional** | - | | **`component_toggles`** object | - | **Optional** | - | | **`components`** object | - | **Optional** | - | ### `telemetry` | Property | Description | Values | Example | | - | - | - | - | | **`enabled`** boolean | Enable telemetry Enable or disable telemetry for this install. Omit to preserve the current setting; new installs inherit the organization default. | **Optional** | - | ### `aws_account` | Property | Description | Values | Example | | - | - | - | - | | **`region`** string | AWS region AWS region where the infrastructure will be deployed | **✅ Required** | `"us-east-1"`, `"us-west-2"`, `"eu-west-1"` | | **`account_id`** string | AWS account ID AWS account this install targets. Required when phone home authentication is enabled for the organization. Immutable once the install exists. | **Optional** | `"123456789012"` | ### `gcp_account` | Property | Description | Values | Example | | - | - | - | - | | **`project_id`** string | GCP project ID GCP project where the infrastructure will be deployed | **Optional** | `"my-gcp-project"` | | **`region`** string | GCP region GCP region where the infrastructure will be deployed | **Optional** | `"us-central1"`, `"europe-west1"` | ### `azure_account` | Property | Description | Values | Example | | - | - | - | - | | **`location`** string | Azure location Azure location/region where the infrastructure will be deployed | **✅ Required** | `"eastus"`, `"westus2"`, `"westeurope"` | | **`subscription_id`** string | Azure subscription ID Azure subscription this install targets. Required when phone home authentication is enabled for the organization. Immutable once the install exists. | **Optional** | `"00000000-0000-0000-0000-000000000000"` | ### `stack_overrides` | Property | Description | Values | Example | | - | - | - | - | | **`vpc_nested_template_url`** string | VPC nested template URL override Per-install override for the VPC nested CloudFormation template URL. Overrides the app-level default from stack.toml. | **Optional** | `"https://nuon-artifacts.s3.us-west-2.amazonaws.com/templates/custom-vpc.yaml"` | | **`runner_nested_template_url`** string | Runner nested template URL override Per-install override for the runner nested CloudFormation template URL. Overrides the app-level default from stack.toml. | **Optional** | `"https://nuon-artifacts.s3.us-west-2.amazonaws.com/templates/custom-runner.yaml"` | | **`ui_definition`** string | Azure createUiDefinition override Per-install override for the Azure createUiDefinition path. Only supported when the app stack type is azure-bicep. | **Optional** | `"./arm/ui.json"` | | **`custom_nested_stacks`** object | Custom nested stack overrides Per-install overrides for custom install stacks. Entries with the same name as app-level stacks replace them; new names are appended. Supports AWS CloudFormation, Azur... | **Optional** | - | | **`runner_image_auto_update`** boolean | Runner image auto-update override Per-install override for runner.toml image\_auto\_update. Set true to resolve the latest runner image at every launch for this install only, or false to turn it off ... | **Optional** | `"true"` | | **`runner_image_id`** string | Runner image pin override Per-install override for runner.toml image\_id. Pins this install's runner host to a specific image (an AMI ID for aws), overriding auto-update. Only applies to aws runners... | **Optional** | `"ami-0abcdef1234567890"` | ### `cloudformation` | Property | Description | Values | Example | | - | - | - | - | | **`root`** CloudFormationStack | Root CloudFormation stack Parameters passed on root stack creation and update, not embedded as template defaults. Omit parameters to preserve saved overrides; an empty parameters table clears them. | **Optional** | - | | **`nested_stacks`** object | Nested CloudFormation parameters Stack configurations keyed by custom stack name, or VPC / RunnerAutoScalingGroup for built-in stacks. Override individual parameters without repeating template URLs... | **Optional** | - | # Installer Source: https://docs.nuon.co/config-ref/installer JSON Schema reference for installer configuration # Installer ## Properties | Property | Description | Values | Example | | | - | - | - | - | - | | **`name`** string | installer name Human-readable name for the installer | **Optional** | `"My SaaS Installer"` | | | **`description`** string | installer description Detailed description of what this installer does | **Optional** | `"Complete installer for My SaaS application"` | | | **`slug`** string | URL-safe slug URL-friendly identifier for the installer | **Optional** | `"my-saas-installer"` | | | **`apps`** array | list of app names Array of app names to include in this installer | **Optional** | `"api"`, `"web-ui"` | | | **`documentation_url`** string | documentation URL Link to the application documentation | **Optional** | `"https://docs.example.com"` | | | **`community_url`** string | community URL Link to community resources or forum | **Optional** | `"https://community.example.com"` | | | **`homepage_url`** string | homepage URL Link to the application homepage | **Optional** | `"https://example.com"` | | | **`github_url`** string | GitHub repository URL Link to the GitHub repository | **Optional** | `"https://github.com/example/repo"` | | | **`logo_url`** string | logo URL URL to the application logo image | **Optional** | `"https://example.com/logo.png"` | | | **`favicon_url`** string | favicon URL URL to the favicon image | **Optional** | `"https://example.com/favicon.ico"` | | | **`og_image_url`** string | OpenGraph image URL URL to the image displayed when sharing the installer on social media | **Optional** | `"https://example.com/og-image.png"` | | | **`demo_url`** string | demo URL Link to a live demo of the application | **Optional** | `"https://demo.example.com"` | | | **`post_install_markdown`** string | post-install markdown Markdown content displayed to users after successful installation | **Optional** | `"## Next Steps\n\nYour application is now installed!"` | | | **`copyright_markdown`** string | copyright markdown Markdown content for copyright information | **Optional** | `"© 2025 Acme Inc. All rights reserved."` | | | **`footer_markdown`** string | footer markdown Markdown content displayed in the installer footer | **Optional** | \`"[Documentation](https://docs.example.com) | [Support](https://support.example.com)"\` | # Installs Config Source: https://docs.nuon.co/config-ref/installs-config JSON Schema reference for installs-config configuration # Installs Config ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected GitHub repo containing install config TOML files | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public git repo containing install config TOML files | **Optional** | - | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | # Job Source: https://docs.nuon.co/config-ref/job JSON Schema reference for job configuration # Job ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"job"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`image_url`** string | job container image URL Docker image URL to execute. Can be a public Docker registry or private registry | **✅ Required** | `"ubuntu:22.04"`, `"ghcr.io/myorg/myjob:v1.0.0"` | | **`tag`** string | image tag Docker image tag to use | **✅ Required** | `"latest"`, `"v1.0.0"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`cmd`** array | command to execute Command to run in the job container | **Optional** | `"python"`, `"bash"` | | **`env_vars`** object | environment variables Map of environment variables to pass to the job container | **Optional** | - | | **`args`** array | command arguments Arguments to pass to the command | **Optional** | `"-c 'echo hello'"`, `"script.py"` | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | `"30m"`, `"1h"` | | **`deploy_timeout`** string | deploy operation timeout Duration string for job execution (e.g., "30m", "1h"). Default: 15m. Max: 1h | **Optional** Default: `"15m"` | `"30m"`, `"1h"` | | **`env_var`** [array](#env_var) | - | **Optional** | - | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `env_var` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | environment variable name | **Optional** | `"NAMESPACE"`, `"INGRESS_NAME"`, `"LOG_LEVEL"` | | **`value`** string | environment variable value | **Optional** | `"kube-system"`, `"{{.nuon.install.id}}-public"`, `"info"` | # Kubernetes Context Source: https://docs.nuon.co/config-ref/kubernetes-context JSON Schema reference for kubernetes-context configuration # Kubernetes Context ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | context name Unique name for this kubernetes context within the app. Components reference this name via the top-level kubernetes\_context field | **✅ Required** | `"data-cluster"`, `"shared-prod"` | | **`component`** string | source peer component Name of the peer component that produces cluster connection details. Must be a terraform\_module or pulumi component, and must expose a `cluster` output object | **✅ Required** | `"data-eks"`, `"shared-aks"` | # Kubernetes Contexts Source: https://docs.nuon.co/config-ref/kubernetes-contexts JSON Schema reference for kubernetes-contexts configuration # Kubernetes Contexts ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`kubernetes_context`** [array](#kubernetes_context) | list of kubernetes contexts Array of named kubernetes context bindings. Each context references a peer component that produces cluster connection details. Components opt into a context via the top-... | **Optional** | - | ### `kubernetes_context` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | context name Unique name for this kubernetes context within the app. Components reference this name via the top-level kubernetes\_context field | **✅ Required** | `"data-cluster"`, `"shared-prod"` | | **`component`** string | source peer component Name of the peer component that produces cluster connection details. Must be a terraform\_module or pulumi component, and must expose a `cluster` output object | **✅ Required** | `"data-eks"`, `"shared-aks"` | # Kubernetes Manifest Source: https://docs.nuon.co/config-ref/kubernetes-manifest JSON Schema reference for kubernetes-manifest configuration # Kubernetes Manifest ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"kubernetes_manifest"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`namespace`** string | Kubernetes namespace Kubernetes namespace where the manifest will be deployed. Supports template variables | **✅ Required** | `"default"`, `"clickhouse"`, `"{{.nuon.install.id}}"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`manifest`** string | Kubernetes manifest Path to a YAML manifest file or inline manifest content for Kubernetes resources. Supports templating with variables like \{\{.nuon.install.id}}. Mutually exclusive with kusto... | **Optional** | `"./manifests/deployment.yaml"` | | **`kustomize`** [KustomizeConfig](#kustomize) | local-only Kustomize configuration Requires public\_repo or connected\_repo; excludes manifest. Remote inputs, Helm inflation, and directory-backed plugin configurations are unsupported. | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public repository with kustomize source Configuration for a public Git repository containing kustomize overlays. Only valid when using kustomize, not inline manifests | **Optional** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected repository with kustomize source Configuration for a Nuon-connected private repository containing kustomize overlays. Only valid when using kustomize, not inline manifests | **Optional** | - | | **`drift_schedule`** string | drift detection schedule Cron expression for periodic drift detection. If not set, drift detection is disabled | **Optional** | `"0 2 * * *"` | | **`health`** [ComponentHealthConfig](#health) | component health configuration Live health checking configuration for this component. Health checking is enabled by default; use this block to tune the stabilization window or make deploys block on... | **Optional** | - | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | `"30m"`, `"1h"` | | **`deploy_timeout`** string | deploy operation timeout Duration string for deploy operations (e.g., "30m", "1h"). Default: 15m. Max: 1h | **Optional** Default: `"15m"` | `"30m"`, `"1h"` | | **`max_auto_retries`** integer | maximum automatic retry attempts on deploy failure Maximum number of automatic retry attempts for failed deployments. Set to 0 to disable auto-retry. Default: 0 (disabled) | **Optional** Default: `"0"` | `"3"`, `"5"` | | **`skip_noops`** boolean | Skip the deploy step when the plan has no changes (a no-op). Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`auto_approve_on_policies_passing`** boolean | Auto-approve the deploy when all policy checks pass. Defaults to false | **Optional** Default: `"false"` | `"true"` | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `kustomize` | Property | Description | Values | Example | | - | - | - | - | | **`path`** string | kustomization directory path Path to the kustomization directory, relative to the source root. | **✅ Required** | `"overlays/production"`, `"."` | | **`patches`** array | additional patch files Additional patch files to apply after kustomize build. | **Optional** | `"patches/namespace.yaml"` | | **`enable_helm`** boolean | unsupported Helm chart inflation Must be omitted or false. Helm chart inflation is not supported; use a separate helm\_chart component. | **Optional** | - | | **`load_restrictor`** string | file load restrictor Controls how kustomize loads files. Only rootOnly is supported. Default: rootOnly. | **Optional** | `"rootOnly"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `health` | Property | Description | Values | Example | | - | - | - | - | | **`enabled`** boolean | enable live health checking Whether live health checking and the health verdict apply to this component. Default: true | **Optional** Default: `"true"` | `"false"` | | **`stabilization_window`** string | health stabilization window How long the component must hold healthy after a deploy applies before the deploy step is considered done. Duration string (e.g., "3m", "10m"). Default: 3m. Max: 1h | **Optional** Default: `"3m"` | `"3m"`, `"10m"` | | **`block_deploy`** boolean | fail the deploy when health does not stabilize When true, the deploy step fails if health does not stabilize inside the window. When false, the step still completes and only records what health did... | **Optional** Default: `"false"` | `"true"` | | **`probes`** array | synthetic health probes Probes the runner executes from inside the install to assert the component is actually serving. Each probe reports as its own health resource, and a failing probe makes the ... | **Optional** | - | | **`required_checks`** array | - | **Optional** | - | # Metadata Source: https://docs.nuon.co/config-ref/metadata JSON Schema reference for metadata configuration # Metadata ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`version`** string | config file version Version of the configuration file format | **✅ Required** | `"1.0.0"`, `"2.0.0"` | | **`description`** string | app description Detailed description of the application, displayed in the installer UI | **Optional** | `"A powerful SaaS platform for managing deployments"` | | **`display_name`** string | app display name Human-readable name for the application, shown in the installer | **Optional** | `"My SaaS App"`, `"Enterprise Platform"` | | **`slack_webhook_url`** string | Slack webhook URL Slack webhook URL to receive deployment notifications and updates | **Optional** | `"https://hooks.slack.com/services/YOUR/WEBHOOK/URL"` | | **`readme`** string | README content Markdown content displayed as README documentation for the application | **Optional** | `"./README.md"` | | **`label_colors`** object | label key color codes Map of label key names to hex color codes for customizing label display in the dashboard | **Optional** | `"{\"env\": \"#FF5733\", \"region\": \"#33FF57\"}"` | | **`default_labels`** object | default labels for all installs Labels applied to every install of the app. Values may use the templating syntax (\{\{ .nuon.\* }}). These labels cannot be edited or removed on individual installs... | **Optional** | `"{\"tier\": \"prod\", \"region\": \"{{ .nuon.cloud_account.aws.region }}\"}"` | # Permission Source: https://docs.nuon.co/config-ref/permission JSON Schema reference for permission configuration # Permission ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the role Name used for the role in the target cloud platform. Supports Go templating using standard template variables (e.g., \{\{.nuon.install.id}}) | **✅ Required** | `"app-{{.nuon.install.id}}-role"`, `"admin-role"` | | **`description`** string | description of the role Human-readable description that explains the role's purpose. Rendered in the installer to customers. Supports templating | **✅ Required** | `"Provides S3 bucket access for the application"`, `"Database migration role with elevated permissions"` | | **`type`** string | role type in permission directory Used when defining permissions in a directory. Indicates when the role is active (provision, maintenance, or deprovision). Supports templating | **Optional** | `"provision"`, `"maintenance"`, `"deprovision"` | | **`cloud_platform`** string | target cloud platform Cloud platform this role targets. Determines which downstream renderer processes the role (e.g., AWS CloudFormation vs GCP IAM). Defaults to aws if omitted | **Optional** `"aws"`, `"azure"`, `"gcp"` | `"aws"`, `"gcp"` | | **`display_name`** string | display name of the role Human-readable display name shown in the installer UI. Supports templating | **Optional** | `"Application S3 Access"`, `"Database Admin"` | | **`policies`** [array](#policies) | policy definitions for the role List of policies to attach to the role. Each policy defines cloud-specific permissions (AWS IAM policies, GCP IAM permissions, or GCP predefined roles). May be omitt... | **Optional** | - | | **`permissions_boundary`** string | \[AWS] permissions boundary policy \[AWS only] Optional ARN of a permissions boundary policy. Limits the maximum permissions the role can have. Supports templating and external file sources: HTTP(S) ... | **Optional** | `"./provision_boundary.json"`, `"./maintenance_boundary.json"` | | **`enabled_in_stack`** boolean | whether the role is on by default CloudFormation and Azure only. Defaults to true, or false for break glass roles. When false, the role is created once the customer turns it on | **Optional** | - | | **`named_policies`** [array](#named_policies) | named IAM policies to attach Named IAM policies to attach to this role, referenced by name. Use \[\[named\_policies]] like \[\[policies]]. The name must match a named policy defined under permissions. T... | **Optional** | - | ### `policies` | Property | Description | Values | Example | | - | - | - | - | | **`managed_policy_name`** string | \[AWS] managed policy name \[AWS only] Name or ARN of an AWS managed policy to attach to the IAM role. Mutually exclusive with contents | **Optional** | `"AmazonS3FullAccess"`, `"ReadOnlyAccess"` | | **`name`** string | policy name Name for the policy. Used across all cloud platforms when creating the permission grant. Optional for a bare AWS managed\_policy\_name attachment, which needs no separate name. Supports N... | **Optional** | `"app-{{.nuon.install.id}}-policy"`, `"s3-access-policy"` | | **`contents`** string | \[AWS] inline policy document \[AWS only] JSON policy document defining inline IAM permissions. Mutually exclusive with managed\_policy\_name. Supports Nuon templating and external file sources: HTTP(S... | **Optional** | `"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}]}"` | | **`gcp_permissions`** array | \[GCP] individual permissions \[GCP only] List of individual GCP IAM permission strings to include in a custom role bound to the service account. Use this for fine-grained permission control. Mutuall... | **Optional** | `"compute.instances.get"`, `"storage.objects.list"` | | **`gcp_predefined_role`** string | \[GCP] predefined role \[GCP only] Name of a GCP predefined role to bind to the service account. This is the GCP equivalent of AWS managed policies — a Google-managed bundle of permissions. Mutually ... | **Optional** | `"roles/editor"`, `"roles/owner"` | | **`azure_actions`** array | \[Azure] individual RBAC actions \[Azure only] List of Azure RBAC action strings to include in a custom role definition bound to the operation's managed identity. Use this for fine-grained permission... | **Optional** | `"Microsoft.Compute/*"`, `"Microsoft.Resources/subscriptions/resourceGroups/*"` | | **`azure_built_in_roles`** array | \[Azure] built-in roles \[Azure only] Names of Azure built-in roles to assign to the operation's managed identity (e.g. Contributor, Reader). This is the Azure equivalent of AWS managed policies. Mut... | **Optional** | `"Contributor"`, `"Reader"` | ### `named_policies` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | named IAM policy name Must match the name of a named IAM policy defined under permissions. Same string as the policy's name field, including any templates | **✅ Required** | `"{{.nuon.install.id}}-alb-create"` | # Permission Policy Source: https://docs.nuon.co/config-ref/permission-policy JSON Schema reference for permission-policy configuration # Permission Policy ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | AWS IAM managed policy name Name used for the customer-managed IAM policy in the install account, and the identifier roles use in \[\[named\_policies]]. Supports Nuon templating | **✅ Required** | `"{{.nuon.install.id}}-alb-create"`, `"shared-logs-policy"` | | **`contents`** string | IAM policy document JSON policy document for the customer-managed IAM policy. Created in the install stack even when no role is enabled. Supports Nuon templating and external file sources: HTTP(S) ... | **✅ Required** | `"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"logs:*\",\"Resource\":\"*\"}]}"` | | **`description`** string | description of the policy Human-readable description of the named IAM policy | **Optional** | `"Shared CloudWatch Logs access for runner roles"` | # Permissions Source: https://docs.nuon.co/config-ref/permissions JSON Schema reference for permissions configuration # Permissions ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`provision_role`** [AppAWSIAMRole](#provision_role) | provisioning IAM role IAM role used during initial provisioning of the install with permissions to set up resources | **Optional** | - | | **`deprovision_role`** AppAWSIAMRole | deprovisioning IAM role IAM role used for tearing down the install and cleaning up resources | **Optional** | - | | **`maintenance_role`** AppAWSIAMRole | maintenance IAM role IAM role used for day-to-day maintenance, updates, and operational tasks | **Optional** | - | | **`custom_roles`** array | custom IAM roles Additional IAM roles for specialized operations beyond the standard provision/maintenance/deprovision lifecycle. Each role must have type set to 'custom' | **Optional** | - | | **`roles`** array | list of permission roles Array of role definitions in directory-based permission structure. Each role must have a type field (provision, maintenance, deprovision, or custom) | **Optional** | - | | **`named_policies`** [array](#named_policies) | named IAM policies Customer-managed IAM policies created independently of any role's Enable parameter. Attach them from a role with named\_policies. Distinct from the root policies/ directory, which... | **Optional** | - | ### `provision_role` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the role Name used for the role in the target cloud platform. Supports Go templating using standard template variables (e.g., \{\{.nuon.install.id}}) | **✅ Required** | `"app-{{.nuon.install.id}}-role"`, `"admin-role"` | | **`description`** string | description of the role Human-readable description that explains the role's purpose. Rendered in the installer to customers. Supports templating | **✅ Required** | `"Provides S3 bucket access for the application"`, `"Database migration role with elevated permissions"` | | **`type`** string | role type in permission directory Used when defining permissions in a directory. Indicates when the role is active (provision, maintenance, or deprovision). Supports templating | **Optional** | `"provision"`, `"maintenance"`, `"deprovision"` | | **`cloud_platform`** string | target cloud platform Cloud platform this role targets. Determines which downstream renderer processes the role (e.g., AWS CloudFormation vs GCP IAM). Defaults to aws if omitted | **Optional** `"aws"`, `"azure"`, `"gcp"` | `"aws"`, `"gcp"` | | **`display_name`** string | display name of the role Human-readable display name shown in the installer UI. Supports templating | **Optional** | `"Application S3 Access"`, `"Database Admin"` | | **`policies`** array | policy definitions for the role List of policies to attach to the role. Each policy defines cloud-specific permissions (AWS IAM policies, GCP IAM permissions, or GCP predefined roles). May be omitt... | **Optional** | - | | **`permissions_boundary`** string | \[AWS] permissions boundary policy \[AWS only] Optional ARN of a permissions boundary policy. Limits the maximum permissions the role can have. Supports templating and external file sources: HTTP(S) ... | **Optional** | `"./provision_boundary.json"`, `"./maintenance_boundary.json"` | | **`enabled_in_stack`** boolean | whether the role is on by default CloudFormation and Azure only. Defaults to true, or false for break glass roles. When false, the role is created once the customer turns it on | **Optional** | - | | **`named_policies`** array | named IAM policies to attach Named IAM policies to attach to this role, referenced by name. Use \[\[named\_policies]] like \[\[policies]]. The name must match a named policy defined under permissions. T... | **Optional** | - | ### `named_policies` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | AWS IAM managed policy name Name used for the customer-managed IAM policy in the install account, and the identifier roles use in \[\[named\_policies]]. Supports Nuon templating | **✅ Required** | `"{{.nuon.install.id}}-alb-create"`, `"shared-logs-policy"` | | **`contents`** string | IAM policy document JSON policy document for the customer-managed IAM policy. Created in the install stack even when no role is enabled. Supports Nuon templating and external file sources: HTTP(S) ... | **✅ Required** | `"{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"logs:*\",\"Resource\":\"*\"}]}"` | | **`description`** string | description of the policy Human-readable description of the named IAM policy | **Optional** | `"Shared CloudWatch Logs access for runner roles"` | # Policies Source: https://docs.nuon.co/config-ref/policies JSON Schema reference for policies configuration # Policies ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`policy`** [array](#policy) | list of policies Array of policy definitions that enforce compliance and security rules across your infrastructure | **Optional** | - | ### `policy` | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | policy type Type of policy that determines where and how it is enforced | **Optional** `"kubernetes_cluster"`, `"terraform_module"`, `"helm_chart"`, `"kubernetes_manifest"`, `"container_image"`, `"pulumi"`, `"sandbox"` | `"kubernetes_cluster"`, `"terraform_module"` | | **`engine`** string | policy engine The policy engine used to evaluate the policy. Must be compatible with the policy type. | **Optional** `"kyverno"`, `"opa"` | `"kyverno"`, `"opa"` | | **`name`** string | policy name Human-readable name for the policy. If not specified, will be derived from the source filename when parsing from a policies/ directory. | **Optional** | `"disallow-ingress-nginx-custom-snippets"`, `"set-karpenter-non-cpu-limits"` | | **`contents`** string | policy document Policy content in the appropriate format for the policy type. Supports Nuon templating and external file sources: HTTP(S) URLs ([https://example.com/policy.json](https://example.com/policy.json)), git repositories (g... | **Optional** | `"./disallow-ingress-nginx-custom-snippets.yaml"`, `"./block-mutable-tags.rego"` | | **`components`** array | target components Names of the components this policy applies to. Omit to apply to all components of the specified type. Ignored when type is 'sandbox'. | **Optional** | `"rds_cluster"` | | **`apply_on_teardown`** boolean | run on teardown Whether this policy is evaluated when a component is torn down or the sandbox is deprovisioned. Set to false to allow deletes during a teardown that the policy denies during a deplo... | **Optional** | `"false"` | # Policy Source: https://docs.nuon.co/config-ref/policy JSON Schema reference for policy configuration # Policy ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | policy type Type of policy that determines where and how it is enforced | **Optional** `"kubernetes_cluster"`, `"terraform_module"`, `"helm_chart"`, `"kubernetes_manifest"`, `"container_image"`, `"pulumi"`, `"sandbox"` | `"kubernetes_cluster"`, `"terraform_module"` | | **`engine`** string | policy engine The policy engine used to evaluate the policy. Must be compatible with the policy type. | **Optional** `"kyverno"`, `"opa"` | `"kyverno"`, `"opa"` | | **`name`** string | policy name Human-readable name for the policy. If not specified, will be derived from the source filename when parsing from a policies/ directory. | **Optional** | `"disallow-ingress-nginx-custom-snippets"`, `"set-karpenter-non-cpu-limits"` | | **`contents`** string | policy document Policy content in the appropriate format for the policy type. Supports Nuon templating and external file sources: HTTP(S) URLs ([https://example.com/policy.json](https://example.com/policy.json)), git repositories (g... | **Optional** | `"./disallow-ingress-nginx-custom-snippets.yaml"`, `"./block-mutable-tags.rego"` | | **`components`** array | target components Names of the components this policy applies to. Omit to apply to all components of the specified type. Ignored when type is 'sandbox'. | **Optional** | `"rds_cluster"` | | **`apply_on_teardown`** boolean | run on teardown Whether this policy is evaluated when a component is torn down or the sandbox is deprovisioned. Set to false to allow deletes during a teardown that the policy denies during a deplo... | **Optional** | `"false"` | # Pulumi Source: https://docs.nuon.co/config-ref/pulumi JSON Schema reference for pulumi configuration # Pulumi ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"pulumi"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`runtime`** string | Pulumi runtime The Pulumi runtime to use for the program (go, nodejs, python) | **✅ Required** | `"go"`, `"nodejs"`, `"python"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`pulumi_version`** string | Pulumi version Version of the Pulumi CLI to use for deployments. If not specified, uses the latest version | **Optional** | `"3.100.0"` | | **`config`** object | Pulumi stack config Map of Pulumi stack configuration values as key-value pairs. Supports templating. Keys use the format 'namespace:key' (e.g., 'aws:region') | **Optional** | - | | **`env_vars`** object | environment variables Map of environment variables passed to Pulumi as key-value pairs | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public repository configuration Configuration for a public repository accessible without authentication | **Optional** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected repository configuration Configuration for a private repository connected to the Nuon platform | **Optional** | - | | **`drift_schedule`** string | drift detection schedule Cron expression for periodic drift detection. If not set, drift detection is disabled. Supports templating | **Optional** | `"0 2 * * *"` | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | - | | **`deploy_timeout`** string | deploy operation timeout Duration string for deploy operations (e.g., "30m", "1h"). Default: 60m. Max: 1h | **Optional** Default: `"60m"` | - | | **`max_auto_retries`** integer | maximum automatic retry attempts on deploy failure Maximum number of automatic retry attempts for failed deployments. Set to 0 to disable auto-retry. Default: 0 (disabled) | **Optional** Default: `"0"` | `"3"`, `"5"` | | **`skip_noops`** boolean | Skip the deploy step when the plan has no changes (a no-op). Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`auto_approve_on_policies_passing`** boolean | Auto-approve the deploy when all policy checks pass. Defaults to false | **Optional** Default: `"false"` | `"true"` | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | # Runbook Source: https://docs.nuon.co/config-ref/runbook JSON Schema reference for runbook configuration # Runbook ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the runbook The runbook name is displayed in the Runbooks tab of the Nuon dashboard and used to identify it during sync | **✅ Required** | `"v2.3-update"`, `"database-migration"` | | **`steps`** [array](#steps) | ordered steps to execute in the runbook Sequential list of deploy and action steps. Each step executes in order. Deploy steps can include dependency deployment. Action steps can reference existing ... | **✅ Required** | - | | **`description`** string | - | **Optional** | - | | **`readme`** string | readme file for the runbook Markdown file with runbook documentation and instructions. Supports Go templating and external file sources: HTTP(S) URLs, git repositories, file paths, and relative paths | **Optional** | `"./release-notes.md"` | | **`labels`** object | - | **Optional** | - | | **`triggers`** [array](#triggers) | triggers that execute this runbook Runbooks can be triggered manually or on a cron schedule. When omitted, manual triggering is enabled | **Optional** | - | | **`input`** [array](#input) | - | **Optional** | - | | **`dependencies`** array | - | **Optional** | - | ### `steps` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | name of the step Displayed in the workflow UI and runbook detail page | **✅ Required** | `"deploy-database"`, `"run-migrations"` | | **`type`** string | type of step One of: 'component\_deploy' (deploy a component; 'deploy' is accepted as a legacy alias), 'component\_tear\_down' (tear down a component), 'action' (run an action), 'sandbox\_reprovision',... | **✅ Required** | `"component_deploy"`, `"component_tear_down"`, `"action"`, `"sandbox_reprovision"` | | **`plan_only`** boolean | generate a plan without applying it Only applies to 'component\_deploy' and 'sandbox\_reprovision' steps. When true, the step generates its plan but does not apply it. Plan-only sandbox reprovision s... | **Optional** | - | | **`component_name`** string | component to deploy or tear down (for component steps) Name of the component to deploy or tear down. Required when type is 'component\_deploy' or 'component\_tear\_down' | **Optional** | `"database"`, `"api-server"` | | **`deploy_dependents`** boolean | also deploy transitive dependents When true, deploys the component and all components that transitively depend on it (downstream), in dependency order. Only applies to component\_deploy steps | **Optional** | - | | **`tear_down_dependents`** boolean | also tear down transitive dependents When true, tears down the component and all components that transitively depend on it (downstream), with dependents torn down first. Only applies to component\_t... | **Optional** | - | | **`deploy_dependencies`** boolean | legacy alias for deploy\_dependents \[DEPRECATED: use 'deploy\_dependents' instead] | **Optional** | - | | **`skip_component_deploys`** boolean | skip component deployments after sandbox reprovision Only applies to 'sandbox\_reprovision' steps. When true, only the sandbox infrastructure is reprovisioned and components are NOT redeployed on to... | **Optional** | - | | **`action_name`** string | existing action to run (for action steps) Name of a previously defined action workflow to execute. Mutually exclusive with inline action fields (command, inline\_contents) | **Optional** | `"database-migration"` | | **`command`** string | command to execute (for inline action steps) Shell command for an inline action. Supports Go templating | **Optional** | `"./validate.sh"` | | **`inline_contents`** string | inline script contents (for inline action steps) Embed script contents directly or reference an external file. Supports Go templating and external URLs | **Optional** | `"./scripts/validate.sh"` | | **`env_vars`** object | environment variables for inline action steps Map of environment variables passed to the inline action command | **Optional** | - | | **`timeout`** string | timeout for inline action steps Maximum execution time for inline action steps. Must be a valid Go duration string | **Optional** | `"30s"`, `"5m"` | | **`role`** string | IAM role for inline action execution IAM role name to use when executing the inline action step | **Optional** | - | | **`trigger`** string | trigger to wait on Required for wait\_for\_event steps. The matched normalized event is available to later action steps by step name, for example \{\{.runbook\_outputs.wait\_for\_tag.event.payload.tag}... | **Optional** | - | | **`event_types`** array | event types that can resume this step For wait\_for\_event steps, the step resumes when an event from trigger has one of these types and matches every configured filter | **Optional** | - | | **`filters`** array | - | **Optional** | - | | **`match_all`** boolean | explicitly match all event types For wait\_for\_event steps, permits matching all event types, including when filters contain only exclusion predicates | **Optional** | - | ### `triggers` | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | type of trigger Supported trigger types: manual and cron | **✅ Required** | `"manual"`, `"cron"` | | **`cron_schedule`** string | cron schedule expression for scheduled triggers Standard five-field cron format evaluated in UTC | **Optional** | `"0 0 * * *"` | ### `input` | Property | Description | Values | Example | | - | - | - | - | | **`display_name`** string | - | **✅ Required** | - | | **`description`** string | - | **✅ Required** | - | | **`name`** string | - | **Optional** | - | | **`default`** object | - | **Optional** | - | | **`required`** boolean | - | **Optional** | - | | **`sensitive`** boolean | - | **Optional** | - | | **`type`** string | - | **Optional** | - | # Runner Source: https://docs.nuon.co/config-ref/runner JSON Schema reference for runner configuration # Runner ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`runner_type`** string | type of runner Specifies how the runner executes deployments | **✅ Required** | `"aws"` | | **`env_vars`** object | environment variables Map of environment variables to pass to the runner as key-value pairs | **Optional** | `"DEBUG=true"`, `"LOG_LEVEL=info"` | | **`helm_driver`** string | Helm driver configuration Specifies the backend driver for Helm operations (e.g., 'configmap', 'secret') | **Optional** | `"configmap"`, `"secret"` | | **`init_script_url`** string | initialization script URL URL to a script that runs during runner initialization. Supports HTTP(S), git, file, and relative paths (./). Examples: [https://example.com/script.sh](https://example.com/script.sh), ./scripts/init.sh, g... | **Optional** | `"https://raw.githubusercontent.com/nuonco/runner/refs/heads/main/scripts/aws/init-mng-v2.sh"` | | **`phone_home_script_url`** string | phone-home Lambda source URL URL to the Python source for the install stack's phone-home Lambda, fetched when the stack template is rendered and embedded inline. Leave unset to use the pinned defau... | **Optional** | `"https://raw.githubusercontent.com/nuonco/runner/refs/tags/aws-v0.1.4/scripts/aws/phonehome.py"` | | **`instance_type`** string | machine/instance type for the install runner Cloud machine/instance type used for the install runner host. Cloud-specific value mapped per runner\_type (an EC2 instance type for aws, a machine type ... | **Optional** | `"t3a.medium"`, `"e2-medium"`, `"Standard_D2s_v5"` | | **`image_auto_update`** boolean | resolve the latest runner image at every launch When true, the install runner host picks up the latest base image every time an instance launches. When false (the default), the image is resolved on... | **Optional** | `"true"` | | **`image_id`** string | pin the runner host image Pins the install runner host to a specific image, overriding image\_auto\_update. Use it to hold runners on a known-good image. For aws this is an AMI ID. Only applies to aw\... | **Optional** | `"ami-0abcdef1234567890"` | | **`runner_api_url`** string | custom runner API endpoint Set this to proxy all runner API calls (heartbeats, job polling, logs) through your own domain instead of Nuon's. | **Optional** | `"https://runner-api.example.com"` | | **`public_api_url`** string | custom public API endpoint Set this to proxy phone-home calls through your own domain instead of Nuon's. | **Optional** | `"https://runner-api.example.com"` | | **`env_var`** [array](#env_var) | deprecated: use env\_vars map instead Deprecated: Array of name/value pairs for environment variables. Use the env\_vars map instead | **Optional** | - | ### `env_var` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | environment variable name | **Optional** | `"NAMESPACE"`, `"INGRESS_NAME"`, `"LOG_LEVEL"` | | **`value`** string | environment variable value | **Optional** | `"kube-system"`, `"{{.nuon.install.id}}-public"`, `"info"` | # Sandbox Source: https://docs.nuon.co/config-ref/sandbox JSON Schema reference for sandbox configuration # Sandbox ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | sandbox IaC type IaC type for this sandbox: 'terraform' (default) or 'pulumi'. | **Optional** | `"terraform"`, `"pulumi"` | | **`terraform_version`** string | Terraform version Version of Terraform to use for deployments. Required when type=terraform | **Optional** | `"1.5.0"`, `"1.6.0"`, `"latest"` | | **`runtime`** string | Pulumi runtime The Pulumi runtime to use for the program (go, nodejs, python). Required when type=pulumi | **Optional** | `"go"`, `"nodejs"`, `"python"` | | **`pulumi_version`** string | Pulumi version Version of the Pulumi CLI to use. If not specified, uses the latest version | **Optional** | `"3.100.0"` | | **`pulumi_config`** object | Pulumi stack config Map of Pulumi stack configuration values as key-value pairs. Keys use the format 'namespace:key' (e.g., 'gcp:project'). Supports templating | **Optional** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected repository configuration Configuration for a private repository connected to the Nuon platform | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public repository configuration Configuration for a public repository accessible without authentication | **Optional** | - | | **`drift_schedule`** string | drift detection schedule Cron expression for periodic drift detection. If not set, drift detection is disabled | **Optional** | `"0 2 * * *"`, `"*/10 * * * *"` | | **`env_vars`** object | environment variables Map of environment variables passed to Terraform as key-value pairs | **Optional** | - | | **`vars`** object | Terraform variables Map of Terraform input variables as key-value pairs. Supports templating | **Optional** | - | | **`var_file`** [array](#var_file) | Terraform variable files Array of external Terraform variable files to load. Each file contents support templating and external file sources: HTTP(S) URLs ([https://example.com/vars.tfvars](https://example.com/vars.tfvars)), git rep... | **Optional** | - | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of sandbox operations to IAM role names. Allows using different roles for different operations (provision, deprovision, reprovision). Roles must be defin... | **Optional** | - | | **`max_auto_retries`** integer | maximum automatic retry attempts on sandbox apply failure Maximum number of automatic retry attempts for failed sandbox provision, reprovision, and deprovision applies. Set to 0 to disable auto-ret... | **Optional** Default: `"0"` | `"3"`, `"5"` | | **`skip_noops`** boolean | Skip the sandbox apply when the plan has no changes (a no-op). Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`auto_approve_on_policies_passing`** boolean | Auto-approve the sandbox apply when all policy checks pass. Defaults to false | **Optional** Default: `"false"` | `"true"` | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `var_file` | Property | Description | Values | Example | | - | - | - | - | | **`contents`** string | variable file contents Contents of a Terraform .tfvars file. Supports Nuon templating and external file sources: HTTP(S) URLs ([https://example.com/vars.tfvars](https://example.com/vars.tfvars)), git repositories (git::[https://githu](https://githu)... | **Optional** | `"./sandbox.tfvars"`, `"./variables/production.tfvars"` | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | # Secret Source: https://docs.nuon.co/config-ref/secret JSON Schema reference for secret configuration # Secret ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | secret name Identifier for the secret used to reference it via variable templating (e.g., \{\{.nuon.secrets.name}}). Supports templating | **✅ Required** | `"database_password"`, `"api_key"` | | **`description`** string | secret description Detailed explanation of what this secret is for, displayed to users during installation | **✅ Required** | `"Master password for the database"`, `"API key for external service authentication"` | | **`display_name`** string | display name Human-readable name shown in the installer UI. Supports templating | **Optional** | `"Database Password"`, `"API Key"` | | **`required`** boolean | whether secret is required If true, customer must provide a value during installation. If false, can be skipped | **Optional** | - | | **`auto_generate`** boolean | whether to auto-generate secret If true, a random secret will be generated if customer does not provide one. Cannot be used with required or default | **Optional** | - | | **`format`** string | secret format Format of the secret value. Supported values: 'base64' for base64-encoded secrets, or empty for plain text | **Optional** | `"base64"` | | **`default`** string | default value Default value used if customer does not provide one. Cannot be used with required or auto\_generate | **Optional** | - | | **`kubernetes_sync`** boolean | sync to Kubernetes If true, the secret will be synced to a Kubernetes Secret resource | **Optional** | - | | **`kubernetes_secret_namespace`** string | Kubernetes namespace Kubernetes namespace where the secret will be created. Required if kubernetes\_sync is true. Supports templating | **Optional** | `"default"`, `"{{.nuon.install.id}}-namespace"` | | **`kubernetes_secret_name`** string | Kubernetes secret name Name of the Kubernetes Secret resource. Required if kubernetes\_sync is true. Supports templating | **Optional** | `"app-secret"`, `"{{.nuon.install.id}}-secret"` | | **`kubernetes_sync_targets`** [array](#kubernetes_sync_targets) | Kubernetes sync targets List of Kubernetes destinations to sync this secret to. When present, Kubernetes sync is enabled. Each target writes the secret value into a given key of a named secret acro... | **Optional** | - | ### `kubernetes_sync_targets` | Property | Description | Values | Example | | - | - | - | - | | **`namespaces`** array | target namespaces List of Kubernetes namespaces the secret will be created in. Supports templating | **✅ Required** | `"datadog"` | | **`name`** string | Kubernetes secret name Name of the Kubernetes Secret resource. Supports templating | **✅ Required** | `"datadog-api-key"` | | **`key`** string | Kubernetes secret key Key within the Kubernetes Secret to write the value to. Supports templating | **✅ Required** | `"api-key"` | # Secrets Source: https://docs.nuon.co/config-ref/secrets JSON Schema reference for secrets configuration # Secrets ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`secret`** [array](#secret) | list of secrets Array of secret definitions that customers can provide during installation or that are auto-generated | **Optional** | - | ### `secret` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | secret name Identifier for the secret used to reference it via variable templating (e.g., \{\{.nuon.secrets.name}}). Supports templating | **✅ Required** | `"database_password"`, `"api_key"` | | **`description`** string | secret description Detailed explanation of what this secret is for, displayed to users during installation | **✅ Required** | `"Master password for the database"`, `"API key for external service authentication"` | | **`display_name`** string | display name Human-readable name shown in the installer UI. Supports templating | **Optional** | `"Database Password"`, `"API Key"` | | **`required`** boolean | whether secret is required If true, customer must provide a value during installation. If false, can be skipped | **Optional** | - | | **`auto_generate`** boolean | whether to auto-generate secret If true, a random secret will be generated if customer does not provide one. Cannot be used with required or default | **Optional** | - | | **`format`** string | secret format Format of the secret value. Supported values: 'base64' for base64-encoded secrets, or empty for plain text | **Optional** | `"base64"` | | **`default`** string | default value Default value used if customer does not provide one. Cannot be used with required or auto\_generate | **Optional** | - | | **`kubernetes_sync`** boolean | sync to Kubernetes If true, the secret will be synced to a Kubernetes Secret resource | **Optional** | - | | **`kubernetes_secret_namespace`** string | Kubernetes namespace Kubernetes namespace where the secret will be created. Required if kubernetes\_sync is true. Supports templating | **Optional** | `"default"`, `"{{.nuon.install.id}}-namespace"` | | **`kubernetes_secret_name`** string | Kubernetes secret name Name of the Kubernetes Secret resource. Required if kubernetes\_sync is true. Supports templating | **Optional** | `"app-secret"`, `"{{.nuon.install.id}}-secret"` | | **`kubernetes_sync_targets`** array | Kubernetes sync targets List of Kubernetes destinations to sync this secret to. When present, Kubernetes sync is enabled. Each target writes the secret value into a given key of a named secret acro... | **Optional** | - | # Stack Source: https://docs.nuon.co/config-ref/stack JSON Schema reference for stack configuration # Stack ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | stack name Name of the install stack when deployed in the customer account or project. Supports Go templating | **✅ Required** | `"myapp-{{.nuon.install.id}}"`, `"production-stack"` | | **`description`** string | stack description Description of the install stack. Supports Go templating | **✅ Required** | `"Infrastructure stack for MyApp application"` | | **`type`** string | stack type Type of infrastructure stack. Supported values: 'aws-cloudformation', 'azure-bicep' (Azure), 'gcp-terraform' (Google Cloud). | **Optional** | `"aws-cloudformation"`, `"azure-bicep"`, `"gcp-terraform"` | | **`vpc_nested_template_url`** string | VPC nested template URL URL to the CloudFormation nested template for VPC resources | **Optional** | `"https://s3.amazonaws.com/bucket/vpc-template.yaml"` | | **`runner_nested_template_url`** string | runner nested template URL URL to the CloudFormation nested template for the Nuon runner infrastructure | **Optional** | `"https://s3.amazonaws.com/bucket/runner-template.yaml"` | | **`deployment_scope`** string | deployment scope Scope the generated install stack root template deploys at. Only supported for 'azure-bicep'. Supported values: 'resource\_group' (the default) confines every resource to the instal... | **Optional** | `"subscription"` | | **`ui_definition`** string | Azure createUiDefinition Optional path or URL of an Azure createUiDefinition. Only supported when type is 'azure-bicep'. The portal quick link merges this document with the generated definition. | **Optional** | `"./arm/ui.json"` | | **`custom_nested_stacks`** object | custom nested stacks Custom install-stack resources to include. Each entry has a name, template\_url, index, and optional parameters. AWS uses CloudFormation templates, Azure uses compiled ARM JSON,... | **Optional** | - | # Terraform Source: https://docs.nuon.co/config-ref/terraform JSON Schema reference for terraform configuration # Terraform ## Properties | Property | Description | Values | Example | | - | - | - | - | | **`type`** string | component type Type of component to deploy. Determines which configuration block is required (helm\_chart, terraform\_module, container\_image, kubernetes\_manifest, or job) | **✅ Required** `"terraform_module"` | - | | **`name`** string | component name Unique identifier for the component within the app. Used for referencing in dependencies and templates | **✅ Required** | `"database"`, `"api-server"`, `"frontend"` | | **`terraform_version`** string | Terraform version Version of Terraform to use for deployments | **✅ Required** | `"1.5.0"`, `"1.6.0"`, `"latest"` | | **`var_name`** string | variable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name | **Optional** | `"db_endpoint"`, `"api_host"` | | **`labels`** object | Key/value labels used to organize and filter components. Metadata only; does not affect deployment | **Optional** | - | | **`dependencies`** array | component dependencies List of other components that must be deployed before this component. Automatically extracted from template references | **Optional** | `"database"`, `"infrastructure"` | | **`operation_roles`** [array](#operation_roles) | operation-specific IAM role assignments Map of component operations to IAM role names. Allows using different roles for different operations (provision, deprovision, update). Roles must be defined ... | **Optional** | - | | **`toggleable`** boolean | - | **Optional** | - | | **`default_enabled`** boolean | - | **Optional** | - | | **`kubernetes_context`** string | kubernetes context binding Optional. Name of a kubernetes\_context defined at the app level. If set, the component targets the cluster produced by that context's source component. If omitted, the co... | **Optional** | `"data-cluster"` | | **`env_vars`** object | environment variables Map of environment variables passed to Terraform as key-value pairs | **Optional** | - | | **`vars`** object | Terraform variables Map of Terraform input variables as key-value pairs. Supports templating | **Optional** | - | | **`var_file`** [array](#var_file) | Terraform variable files Array of external Terraform variable files to load. Each file contents support templating and external file sources: HTTP(S) URLs ([https://example.com/vars.tfvars](https://example.com/vars.tfvars)), git rep... | **Optional** | - | | **`public_repo`** [PublicRepoConfig](#public_repo) | public repository configuration Configuration for a public repository accessible without authentication | **Optional** | - | | **`connected_repo`** [ConnectedRepoConfig](#connected_repo) | connected repository configuration Configuration for a private repository connected to the Nuon platform | **Optional** | - | | **`drift_schedule`** string | drift detection schedule Cron expression for periodic drift detection. If not set, drift detection is disabled. Supports templating | **Optional** | `"0 2 * * *"`, `"*/10 * * * *"` | | **`build_timeout`** string | build operation timeout Duration string for build operations (e.g., "30m", "1h"). Default: 5m. Max: 1h | **Optional** Default: `"5m"` | `"30m"`, `"1h"` | | **`deploy_timeout`** string | deploy operation timeout Duration string for deploy operations (e.g., "30m", "1h"). Default: 60m. Max: 1h | **Optional** Default: `"60m"` | `"30m"`, `"1h"` | | **`max_auto_retries`** integer | maximum automatic retry attempts on deploy failure Maximum number of automatic retry attempts for failed deployments. Set to 0 to disable auto-retry. Default: 0 (disabled) | **Optional** Default: `"0"` | `"3"`, `"5"` | | **`skip_noops`** boolean | Skip the deploy step when the plan has no changes (a no-op). Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`auto_approve_on_policies_passing`** boolean | Auto-approve the deploy when all policy checks pass. Defaults to false | **Optional** Default: `"false"` | `"true"` | | **`teardown`** [ComponentTeardownConfig](#teardown) | teardown behavior Controls what happens to the component's resources when it is torn down. Resources listed in retain are removed from Terraform state and left in place instead of being destroyed | **Optional** | - | | **`var`** [array](#var) | deprecated: use vars map instead Deprecated: Array of name/value pairs for Terraform variables. Use the vars map instead | **Optional** | - | | **`env_var`** [array](#env_var) | deprecated: use env\_vars map instead Deprecated: Array of name/value pairs for environment variables. Use the env\_vars map instead | **Optional** | - | ### `operation_roles` | Property | Description | Values | Example | | - | - | - | - | | **`operation`** string | operation type Type of operation: provision, deprovision, update, reprovision, or trigger | **✅ Required** | `"provision"`, `"deploy"`, `"deprovision"` | | **`role`** string | IAM role name Name of the IAM role to use for this operation (not ARN). Role must exist in install stack outputs | **✅ Required** | `"{{.nuon.install.id}}-maintenance"`, `"{{.nuon.install.id}}-provision"` | ### `var_file` | Property | Description | Values | Example | | - | - | - | - | | **`contents`** string | variable file contents Contents of a Terraform .tfvars file. Supports Nuon templating and external file sources: HTTP(S) URLs ([https://example.com/vars.tfvars](https://example.com/vars.tfvars)), git repositories (git::[https://githu](https://githu)... | **Optional** | `"./sandbox.tfvars"`, `"./variables/production.tfvars"` | ### `public_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository URL HTTPS URL to the public Git repository | **✅ Required** | `"https://github.com/user/repo.git"`, `"https://github.com/user/terraform-modules.git"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `connected_repo` | Property | Description | Values | Example | | - | - | - | - | | **`repo`** string | repository identifier Identifier of the connected repository configured in the Nuon platform | **✅ Required** | `"my-repo"`, `"production-infrastructure"` | | **`directory`** string | directory path Path within the repository to the configuration files | **✅ Required** | `"terraform"`, `"infra/terraform"` | | **`branch`** string | Git branch Git branch to checkout and use for deployments | **✅ Required** | `"main"`, `"develop"`, `"production"` | ### `teardown` | Property | Description | Values | Example | | - | - | - | - | | **`retain`** array | resources to leave in place on teardown Terraform resource or module addresses that are removed from state instead of destroyed when the component is torn down. An address without an index selects ... | **Optional** | `["aws_rds_cluster.main","aws_s3_bucket.data[\"logs\"]","module.buckets"]` | ### `var` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | terraform variable name | **Optional** | `"cluster_name"`, `"install_id"`, `"region"` | | **`value`** string | terraform variable value | **Optional** | `"{{.nuon.install.id}}"`, `"true"`, `"us-west-2"` | ### `env_var` | Property | Description | Values | Example | | - | - | - | - | | **`name`** string | environment variable name | **Optional** | `"NAMESPACE"`, `"INGRESS_NAME"`, `"LOG_LEVEL"` | | **`value`** string | environment variable value | **Optional** | `"kube-system"`, `"{{.nuon.install.id}}-public"`, `"info"` | # Configuration Files Source: https://docs.nuon.co/configuration-files Configure app templates using TOML configuration files Config files allow you to define an app template using TOML files. You keep them in git, and Nuon reads them from there each time your app branch runs. ## Create an app template **Create a directory for your app config** in a GitHub repository. It can be the repository root or any directory inside it, with any name. It will contain your app's configuration files. ```sh nuon theme={null} mkdir your-app cd your-app ``` Create the app template in Nuon: ```sh nuon theme={null} nuon apps create --name=your-app ``` ## Ship your config Config ships through an [app branch](/guides/app-branches). Add a branch file that points at the repository, the config directory, and the git branch to track: ```toml branches/main.toml theme={null} name = "main" [connected_repo] repo = "your-org/your-repo" directory = "your-app" branch = "main" ``` Sync the branch file once to create the app branch, which also starts its first run: ```sh nuon theme={null} nuon branches sync --file branches/main.toml ``` From then on, every push to the tracked git branch starts a run that rolls the change out. To check the config before you push, run `nuon apps validate`. It looks up the app by the directory's name, so it works when the directory and the app share a name. ## Language Server Protocol (LSP) Nuon has a Language Server with a [VS Code extension](https://marketplace.visualstudio.com/items?itemName=Nuon.nuon-lsp) that provides autocompletion, validation, and inline documentation for Nuon configuration TOML files. > [!NOTE] > > The Language Server is a beta feature and included in [Nuon Labs](https://labs.nuon.co/) so please report any bugs or inconsistencies as a [GitHub issue](https://github.com/nuonco/nuon/issues). The Language Server requires the [Nuon CLI](./cli) so please download it first. Future versions of the Language Server will include the CLI. The Language Server reads the component type from a `#` comment at the top of each Nuon configuration TOML file. The CLI ignores this comment — it reads the `type` field — so the comment is only needed for editor autocompletion and inline validation. ```toml components/certificate.toml theme={null} # terraform name = "certificate" type = "terraform_module" terraform_version = "1.11.3" ``` [Here are the valid component types](https://github.com/nuonco/nuon/blob/main/pkg/config/schema/types.go#L15) in the Nuon OSS repository. ## Breaking up Config Files Since configs can get complex as your application grows, we follow a structured approach to organize your configuration files. Create a `components` directory in your project root with individual files for each component. e.g., `components/helm_deploy.toml`. ```toml components/helm_deploy.toml theme={null} # helm name = "whoami" type = "helm_chart" chart_name = "whoami" namespace = "whoami" storage_driver = "configmap" [public_repo] repo = "nuonco/demo" directory = "eks-simple/src/components/whoami" branch = "main" [[values_file]] contents = "./whoami.yaml" ``` See our [`example-app-configs` repository](https://github.com/nuonco/example-app-configs) for common directory structures. ## Reference ### Input Define [inputs](/concepts/app-inputs) for an app using `inputs.toml` file. To configure a sensitive `api_key` and `vpc_id` input: ```toml inputs.toml theme={null} # inputs [[input]] name = "vpc_id" description = "vpc_id to install application into" default = "" sensitive = false display_name = "VPC ID" type = "string" [[input]] name = "api_key" description = "API key" default = "" sensitive = true display_name = "API Key" type = "string" ``` > [!NOTE] > > Inputs are not required, unless you are using a sandbox or components that require inputs. > e.g., `root_domain` for the `aws-eks-sandbox`. ### Sandbox Define the [sandbox](/concepts/sandboxes) using the `sandbox.toml` file. To define an `aws-eks-sandbox` Sandbox: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-sandbox" branch = "main" [vars] cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" [[var_file]] contents = "./sandbox.tfvars" ``` Nuon maintains [managed sandboxes](./concepts/sandboxes#nuon-managed-sandboxes) for the platforms we support. > [!NOTE] > > Notice how variables can be defined in the `vars` block and with `var_file`. ### Component Config You can define components by creating `.toml` files in a `components` directory. Components must declare a `type` field and any relevant component-specific configuration. ### Component Dependencies Dependencies can be explicitly defined using the dependencies field in each component’s configuration file. You can specify which components a given component depends on by listing their names in the dependencies array. Learn more about depencencies [here](/guides/component-dependencies). In this example, an application load balancer component requires certificate and whoami helm components are deployed first. ```toml components/alb.toml theme={null} # helm name = "application_load_balancer" type = "helm_chart" chart_name = "application-load-balancer" dependencies = ["certificate", "whoami"] ``` ### Terraform Module Component To define a [terraform module component](/guides/terraform-components) use the `terraform_module` type. To configure a terraform component using a connected repo: ```toml components/terraform.toml theme={null} # terraform name = "terraform" type = "terraform_module" terraform_version = "1.11.3" [connected_repo] directory = "infra" repo = "org/repo" branch = "main" [env_vars] AWS_REGION = "{{.nuon.install.sandbox.outputs.account.region}}" [vars] account_id = "{{.nuon.install.sandbox.outputs.account.id}}" ``` ### Pulumi Component To define a [pulumi component](/guides/pulumi-components) use the `pulumi` type. To configure a pulumi component using a connected repo: ```toml components/pulumi.toml theme={null} # pulumi name = "pulumi_infra" type = "pulumi" runtime = "go" [connected_repo] directory = "components/pulumi" repo = "org/repo" branch = "main" [config] "aws:region" = "{{.nuon.install_stack.outputs.region}}" [env_vars] PULUMI_SKIP_UPDATE_CHECK = "true" ``` ### Helm Chart Component To define a [helm chart component](/guides/helm-chart-components) use the `helm_chart` type. To configure a helm chart in a connected repo: ```toml components/helm.toml theme={null} # helm name = "helm" type = "helm_chart" chart_name = "chart-name" [connected_repo] directory = "helm" repo = "org/repo" branch = "main" [values] "api.ingresses.public_domain" = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name}}" ``` ### Kubernetes Manifest Component To define a [kubernetes manifest component](/guides/kubernetes-manifest-components) use the `kubernetes_manifest` type. ```toml manifest-db-secret.toml theme={null} # kubernetes-manifest name = "grafana_secrets" type = "kubernetes_manifest" dependencies = ["grafana_postgres"] namespace = "grafana" manifest = """ # Secret for Grafana's internal database connection apiVersion: v1 kind: Secret metadata: name: grafana-postgres-secret namespace: grafana type: Opaque stringData: GF_DATABASE_URL: "postgres://grafana:grafana@postgresql.grafana.svc.cluster.local:5432/grafana?sslmode=disable&connect_timeout=10" """ ``` ### Container Image Component To define a [container image component](/guides/container-image-components) use the `container_image` type. To configure a public container image: ```toml components/container_image.toml theme={null} # container-image name = "container_image" type = "container_image" [public] image_url = "kennethreitz/httpbin" tag = "latest" ``` To configure a container image from an ECR repo: ```toml components/container_image_ecr.toml theme={null} # container-image name = "container_image_ecr" type = "container_image" [aws_ecr] image_url = "ecr-url" tag = "latest" region = "us-west-2" ``` ### Install Configs You can create and manage [installs](/concepts/installs) by creating `.toml` files in an `installs` directory managed separately from the apps. An install must declare a `name` field and any relevant install-specific configuration. Install config files allow you to update multiple installs simultaneously, offering a more streamlined experience than the dashboard. By defining these configurations in code, you can automate your workflow using a CI system like [GitHub Actions](/guides/github-actions). The inputs are defined as a list of input groups. This is just for logical grouping, and inputs from different groups can be defined together. Note that if an input is defined multiple times, the last defined value would be used. Input configs will be grouped together, reflecting the input groups you have defined in the app. Sensitive inputs will be excluded, to avoid saving them in plain text in version control. When syncing install config files, sensitive inputs will be ignored. They can still be managed manually via the dashboard. > [!NOTE] > > Currently only AWS installs are supported using install config files. **Generate an Install Config File** To manage existing installs using CI, use the CLI command `nuon installs generate-config` to export an existing install to stdout. Create a TOML config file for the install in the `installs` folder of your app's config and paste the stout. ```bash theme={null} mkdir -p installs touch installs/.toml nuon installs generate-config -i > installs/.toml ``` **Update an Install** The `nuon installs sync` command can be used with a single install config file or with a directory containing multiple install config files. ```bash theme={null} nuon installs sync -a -d ``` In the dashboard, see the newly-created workflow to track the install's upgrade process. **An Example Install Config File** ```toml installs/install.toml theme={null} # install name = "" app_branch = "main" # configure Auto Approval settings for an install approval_option = "prompt" # set this to "approve-all" to enable auto approval [aws_account] region = "us-east-1" [[inputs]] input_string = "sample" [[inputs]] input_number = "100" input_bool = "true" input_json = '{"key": "value"}' ``` > [!NOTE] > > All input values should be defined as strings. They will be parsed into the > correct type by Nuon. ### Install Config Syncing You can connect install config files to a Git repository using an `installs.toml` file or the `[installs_config]` section in your app config. When connected, a push to that repo updates every install to match, and a config file naming an install that does not exist yet proposes creating it for approval. ```toml installs.toml theme={null} [connected_repo] repo = "org/repo" branch = "main" directory = "installs" ``` Or in your app config: ```toml nuon.toml theme={null} [installs_config.connected_repo] repo = "org/repo" branch = "main" directory = "installs" ``` For the full property list, see the [Installs Config reference](/config-ref/installs-config). See [Syncing Install Configs from Git](/guides/install-config-syncing) for the full guide. # Dashboard Source: https://docs.nuon.co/dashboard Manage your Nuon app templates and installs using the web-based dashboard ## Apps With Nuon, [app templates](./concepts/apps) are created with the Nuon [CLI](./cli), and their config ships to the Nuon control plane through [app branches](./guides/app-branches). Once those steps are completed, apps, their components, and installs, can be administered in the web-based dashboard. Access the dashboard at [https://app.nuon.co](https://app.nuon.co) The default page is a list of apps created in your org. ![Dashboard - Apps List](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/apps.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=629fe69cd4b5f42b1f052f315167bdbd) ## Installs [Installs](./concepts/installs) of apps are accessible from both the left navigation bar or within an app's detail page. ![Dashboard - Installs List](https://mintcdn.com/nuoninc/30fAI5KSwDAilqdm/images/resources/dashboard-ui/installs.png?fit=max\&auto=format\&n=30fAI5KSwDAilqdm\&q=85\&s=dd9ea79e4848f6335139bf99fe67aea7) After clicking into an app, there is a `README.md` describing the app and tabs for the components, installs and actions. ![Dashboard - App Detail](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/app.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=04207f4268e233391235cb5c0b24e936) After clicking into an install, there is the same app README.md with templated values for the install, inputs, state and tabs for the runner, stack, sandbox, components, actions and workflows. ![Dashboard - Install Detail](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/install.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=07b8c9ce2b8eef9d08fa66d9972f9aba) The [runner](./concepts/runners) tab shows the real-time status and health of the Nuon runner which communicates from the install’s cloud account to the Nuon control plane for install and maintenance jobs. ![Dashboard - Install Detail](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/install-runner.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=683b03347a51b17ca025defdab3edf74) The [components](./concepts/components) tab lists the building blocks of the app such as Helm charts, Kubernetes manifests, Terraform modules, and container images. The tab also shows which build of an app’s component is used and has menu items to re-build and re-deploy components. ![Dashboard - Install Components](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/component-list.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=2a90f7b9e228021e0f3621f67193e51a) [Actions](./concepts/actions) are bash scripts that perform install operations e.g., initialize a database and day-2 operations like debug, perform health checks, and run emergency repairs with a [break glass role](./concepts/break-glass). ![Dashboard - Install Actions](https://mintcdn.com/nuoninc/mlJahEwCBrm-KrG5/images/resources/dashboard-ui/actions.png?fit=max\&auto=format\&n=mlJahEwCBrm-KrG5\&q=85\&s=178a65c58f77b31febfb80c7fc5f3e1d) [Workflows](./concepts/workflows) are orchestrated steps to perform an app or individual component installation aka provisioning, de-provisioning an install or a component, tear-down, or run actions, the bash scripts discussed earlier. ![Dashboard - Install Workflows](https://mintcdn.com/nuoninc/30fAI5KSwDAilqdm/images/resources/dashboard-ui/workflow-history.png?fit=max\&auto=format\&n=30fAI5KSwDAilqdm\&q=85\&s=079bec22e199d6cad0b13eff163dbe6a) Here is a manual action workflow prompting the Nuon operator for inputs before executing the action script. # Create An AWS EC2 App Template Source: https://docs.nuon.co/get-started/app-aws-ec2 Learn how to package and install a Cloud Development Environment (CDE) on AWS EC2. > [!NOTE] > > This [app template](/concepts/apps) can be found in the [cde directory](https://github.com/nuonco/example-app-configs/tree/main/cde) of the example-app-configs repository. The CDE app is a straightforward EC2 VM, but it is a good example of how much Nuon can do beyond basic provisioning. It ships with optional Claude Code support — customers can bring their own Anthropic API key and get a fully configured AI coding environment in their own AWS account, with the key stored as an encrypted SSM SecureString that never leaves their cloud. It also demonstrates several platform features working together: * **Actions** — eleven actions handle everything from post-provision setup (installing Docker, VS Code Web, Claude Code) to day-2 ops (start/stop VM, add SSH keys) to automated healthchecks that run every 5 minutes * **Conditional inputs** — inputs like `install_vscode_web` and `install_claude_code` gate what gets installed; if VS Code Web is disabled, the ALB and ACM certificate are never created; if Claude Code is enabled, the Anthropic API key is injected into the customer's shell environment on first boot * **Policies** — four OPA policies enforce guardrails on the Terraform plan, including blocking independent Elastic IP deletion and warning on oversized instance types * **README templating** — the install page renders a live status view using Go templates that read action outputs, showing VM state, SSH reachability, and active connections without any external monitoring * **Cost controls** — auto-stop cron jobs are installed on the VM at provision time, controlled entirely by install inputs ## Prerequisites * [Signup for the self-service free trial](https://app.nuon.co). You will need a login and an org in Nuon's cloud. * [Set up an AWS account](https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-overview.html). This is the account you will install the app in, as if you were a customer of the software vendor. ## What You Will Create This tutorial will walk you through creating the following: * An [app template](/concepts/apps) * A Terraform [component](/concepts/components) to provision the EC2 instance, Elastic IP, DNS record, and security group * [Actions](/concepts/actions) for post-provision setup and day-2 operations (start/stop VM, healthchecks) * An [install](/concepts/installs), using our [AWS minimal sandbox](/concepts/sandboxes#nuon-managed-sandboxes) > [!NOTE] > > We recommend you clone the [`example-app-configs` > repository](https://github.com/nuonco/example-app-configs) which includes the > `cde` app versus creating each config file manually. This guide is > meant to explain the concepts behind the config files, so you can > create your own app templates in the future. ## Configure App To configure the app, you will create several TOML config files. In each section below we will provide you with configuration snippets for the app itself as well as its components. ### Create App Clone the `example-app-configs` repository, cd into the `cde` directory, and create the app in Nuon. This will create the app in `app.nuon.co`. ```sh theme={null} git clone https://github.com/nuonco/example-app-configs cd example-app-configs/cde nuon auth login nuon orgs select nuon apps create -n cde ``` ![App List](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/app-config-list.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=8941d0b54270210bcedbbeb8e7019407) ### Inputs Inputs are values passed into the install at creation time. There are two kinds: * **Vendor inputs** — set by the software vendor in the Nuon dashboard or CLI. These configure app-level defaults like OS choice, instance type, and which optional tools to install. * **Customer inputs** (`user_configurable = true`) — surfaced to the end customer when they apply the install stack. These are entered in the CloudFormation Quick-Create form or the customer portal. Examples include the SSH public key, git identity, and any secrets like the VS Code Web password or Anthropic API key. In the app root directory, notice the file named `inputs.toml`: ```toml inputs.toml theme={null} [[group]] name = "developer" display_name = "Developer Configuration" description = "SSH access and instance sizing for your development environment" [[input]] name = "ssh_public_key" display_name = "SSH Public Key" description = "Paste the contents of your public key file (e.g. cat ~/.ssh/id_rsa.pub)" user_configurable = true group = "developer" [[input]] name = "os" display_name = "Operating System" description = "VM operating system. ubuntu-24.04 (Ubuntu 24.04 LTS, recommended for development, uses apt) or al2023 (Amazon Linux 2023, uses dnf)" default = "ubuntu-24.04" group = "developer" [[input]] name = "instance_type" display_name = "Instance Type" description = "EC2 instance type. t3a.medium (2vCPU/4GB), t3a.large (2vCPU/8GB), t3a.xlarge (4vCPU/16GB), t3a.2xlarge (8vCPU/32GB), m7i.large (2vCPU/8GB consistent), m7i.xlarge (4vCPU/16GB consistent)" default = "t3a.xlarge" group = "developer" [[input]] name = "git_user_name" display_name = "Git User Name" description = "Your full name for git commits (e.g. Jane Smith). Sets git config user.name globally." default = "" user_configurable = true group = "developer" [[input]] name = "git_user_email" display_name = "Git Email" description = "Email address for git commits. Sets git config user.email globally." default = "" user_configurable = true group = "developer" [[group]] name = "optional_tools" display_name = "Optional Tools" description = "Tools installed via the post-provision action. Each can be re-run or updated independently." [[input]] name = "dotfiles_repo" display_name = "Dotfiles Repo URL" description = "HTTPS URL of your dotfiles git repository (e.g. https://github.com/you/dotfiles). If set, the repo is cloned to ~/.dotfiles and install.sh is run after provisioning." default = "" user_configurable = true group = "optional_tools" [[input]] name = "install_docker" display_name = "Install Docker" description = "Install Docker and enable it as a system service (true/false)" default = "false" group = "optional_tools" [[input]] name = "install_vscode_web" display_name = "Install VS Code Web" description = "Install code-server (VS Code in the browser) over HTTPS via ALB and ACM cert (true/false)" default = "false" group = "optional_tools" [[input]] name = "vscode_password" display_name = "VS Code Web Password" description = "Password to access VS Code Web. Set this now so it is ready if you enable VS Code Web later. Not used if Install VS Code Web is false." sensitive = true user_configurable = true group = "optional_tools" [[input]] name = "install_claude_code" display_name = "Install Claude Code" description = "Install the Claude Code CLI (true/false)" default = "false" group = "optional_tools" [[input]] name = "anthropic_api_key" display_name = "Anthropic API Key" description = "Your Anthropic API key for Claude Code (from console.anthropic.com). Only required if Install Claude Code is true." default = "" sensitive = true user_configurable = true group = "optional_tools" [[group]] name = "cost_controls" display_name = "Cost Controls" description = "Automatic shutdown options to prevent idle instances from accumulating charges" [[input]] name = "auto_stop_inactive_hours" display_name = "Inactive Auto-Stop (hours)" description = "Shut down the VM after this many hours with no active SSH or VS Code connections. Leave blank to disable." default = "2" group = "cost_controls" [[input]] name = "auto_stop_max_hours" display_name = "Force Auto-Stop (hours)" description = "Shut down the VM after this many hours of uptime since last start, regardless of activity. Leave blank to disable." default = "4" group = "cost_controls" ``` Two customer inputs have no default and must be provided: `ssh_public_key` (the public key used to access the instance) and `vscode_password` (set it now so it is ready if VS Code Web is enabled later). All other inputs have sensible defaults the customer can accept or override. Cost controls default to shutting the VM down after 2 hours of inactivity and 4 hours of total uptime, keeping idle cloud spend in check. ![App Inputs](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/inputs.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=ae95f82e4fa82d9619342842e5112819) ### Sandbox Nuon provides a set of [Nuon Managed Sandboxes](/concepts/sandboxes#nuon-managed-sandboxes) that can be used to provision the infrastructure needed for your app. The `aws-min-sandbox` is a lightweight sandbox for workloads that don't require Kubernetes. It provisions only the minimum shared infrastructure: an ECR repository for container images and Route53 hosted zones for DNS. The VPC, subnets, and NAT gateway are already provided by the install stack — the sandbox and your components build on top of them. In the app root directory, notice the file named `sandbox.toml`: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.4" [public_repo] directory = "." repo = "nuonco/aws-min-sandbox" branch = "main" [vars] enable_nuon_dns = "true" public_root_domain = "{{ .nuon.install.id }}.nuon.run" internal_root_domain = "internal.{{ .nuon.install.id }}.nuon.run" ``` With `enable_nuon_dns` set to `true`, the sandbox creates a Route53 DNS zone for the install. The install id is used as the subdomain, giving each install its own unique `nuon.run` domain. Unlike some other example apps, this sandbox does not require any domain-related inputs — the domain is derived entirely from the install id. ### Components Components are the building blocks of your app. This app has a single component: a Terraform module that provisions the EC2 instance along with its Elastic IP, Route53 A record, and security group. If VS Code Web is enabled, the component also creates an ALB and ACM certificate. In the app root directory, navigate to the `components` directory. Notice the single file `1-ec2.toml`: ```toml 1-ec2.toml theme={null} # terraform name = "ec2" type = "terraform_module" terraform_version = "1.11.4" max_auto_retries = 5 [public_repo] repo = "nuonco/example-app-configs" directory = "cde/src/components/ec2" branch = "main" [vars] install_id = "{{.nuon.install.id}}" region = "{{.nuon.sandbox.outputs.account.region}}" subnet_id_0 = "{{index .nuon.sandbox.outputs.vpc.public_subnet_ids 0}}" subnet_id_1 = "{{index .nuon.sandbox.outputs.vpc.public_subnet_ids 1}}" vpc_id = "{{.nuon.sandbox.outputs.vpc.id}}" dns_zone_id = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.zone_id}}" dns_zone_name = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name}}" os = "{{.nuon.install.inputs.os}}" instance_type = "{{.nuon.install.inputs.instance_type}}" ssh_public_key = "{{.nuon.install.inputs.ssh_public_key}}" install_vscode_web = "{{.nuon.install.inputs.install_vscode_web}}" anthropic_api_key = "{{.nuon.install.inputs.anthropic_api_key}}" ``` Notice how the component vars pull from two sources: sandbox outputs (VPC IDs, subnet IDs, DNS zone) and install inputs (OS, instance type, SSH key). This templating pattern is how Nuon passes context from the sandbox and the customer's choices into your Terraform modules. ![Terraform Component](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/tf-component.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=176559e1e947063fb671de39c21907e2) ### Actions [Actions](/concepts/actions) are scripts that the runner executes on demand or on a schedule. They are how you handle day-2 operations — setup, maintenance, and monitoring — without requiring the customer to SSH into the instance themselves. This app includes the following actions: * `post_provision_setup` — runs automatically after provisioning and is also re-runnable manually. Installs Docker, VS Code Web, and Claude Code based on the install inputs, configures git user name and email, and sets up the auto-stop cron jobs on the VM. * `install_dotfiles` — clones the customer's dotfiles repo to `~/.dotfiles` and runs `install.sh`. Triggered automatically after provision and re-runnable at any time from the portal. * `add_ssh_key` — appends an additional SSH public key to `~/.ssh/authorized_keys`. Manual only. * `start_dev_env` / `stop_dev_env` — start or stop the VM to control costs. Manual. * `healthcheck_ec2`, `healthcheck_ssh`, `healthcheck_code_server`, `healthcheck_alb`, `connections_status` — run on a 5-minute cron and report their results in the install README. ![Actions](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/actions.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=aa03bd12e751787622668659adc0d038) ### Policies [Policies](/concepts/policies) let the vendor enforce guardrails on Terraform plans before they are applied to the customer's account. This app ships four OPA policies scoped to the `ec2` component: two warnings and two hard denies. * `warn-large-instance-type` — warns if the instance type is larger than `medium`, prompting the vendor to confirm the cost is intentional. * `warn-ssh-open-to-world` — warns if the SSH security group rule is open to `0.0.0.0/0`, flagging a potential overly permissive configuration. * `deny-eip-deletion` — blocks deletion of the Elastic IP unless the EC2 instance is also being destroyed in the same plan, preserving DNS stability. * `deny-instance-type-change` — blocks in-place instance type changes, which would require a stop/start and could cause unexpected downtime. ![policies](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/policies.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=395a29dd9eeaa0dd97c93667f1d712c0) ### Security The CDE app is designed so that the customer's data never leaves their AWS account and the vendor has no network access to the instance. A few specifics worth understanding: * **SSH key auth only.** Password authentication is disabled at provision time. The public key the customer provides at install time is the only authorized key. * **Minimal inbound surface.** The security group allows only TCP:22. If VS Code Web is enabled, HTTPS:443 is also opened via an ALB — but the security group only allows ALB traffic to reach port 8080 on the instance, not direct inbound access. Post-provision setup (Docker, VS Code Web, Claude Code) is delivered by the runner via AWS SSM Run Command, an outbound-only control channel, so no additional ports need to be opened for provisioning. * **VS Code Web is TLS-only and password-protected.** If enabled, code-server runs on port 8080 inside the VPC. The ALB terminates HTTPS with an ACM-managed certificate, and only ALB traffic is allowed to reach the port — direct inbound access is blocked. * **Anthropic API key is stored as an SSM SecureString.** The key is encrypted at rest with AWS KMS in the customer's account. The EC2 instance profile is granted least-privilege access to read only its own parameter path. The vendor never sees the key. * **Runner permissions are bounded.** The runner's IAM role has a permissions boundary scoped to only the AWS services this app requires: `ec2`, `iam`, `ssm`, `elasticloadbalancing`, `acm`, and `route53`. It cannot access other resources in the customer's account. ### Sync the App Branch You now have a complete Nuon app template. Its config ships through an [app branch](/concepts/app-branches): a branch file that tells Nuon which repository, directory, and git branch hold the app config. The `cde` directory already includes one at `branches/main.toml`. It points at the example repo: ```toml branches/main.toml (excerpt) theme={null} name = "main" [public_repo] repo = "nuonco/example-app-configs" directory = "cde" branch = "main" ``` From the `cde` directory, sync the branch file: ```sh theme={null} nuon branches sync --file branches/main.toml ``` The sync creates the branch and starts its first run. The run fetches the app config from the example repo at the latest commit on `main` and builds its components. Because the branch tracks the example repo, local edits to your clone do not ship. To ship your own changes, push the config to a repository you control and point the branch file at it, as described in [Configure app branches](/guides/app-branches). Once the run finishes building, select the app in the dashboard, and you should now see the inputs, sandbox, components, and actions. ![App](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/app.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=aa25f6f7cfbb5ffec0286ce04841166d) ## Create an Install Click the Create Install button in the top right corner of the app page in the Dashboard. Give your install a name and choose an AWS Region. Notice the inputs you defined in the `inputs.toml` file are displayed here. Two fields require values from the customer: `ssh_public_key` (paste the output of `cat ~/.ssh/id_rsa.pub`) and `vscode_password` (set it now so it is ready if you enable VS Code Web later). You can accept the defaults for all other inputs. Click the Create Install button at the bottom of the page to start the workflow. The provision workflow generates two [install stack](/concepts/stacks) formats — a CloudFormation Quick-Create / CLI snippet, and Terraform `inputs.auto.tfvars` and `secrets.auto.tfvars` files for the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module — so the customer can apply whichever fits their tooling. ![Create Install](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/inputs.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=ae95f82e4fa82d9619342842e5112819) ### Monitoring Installs As soon as you kick off the install provisioning, you should see the new install's workflow in the dashboard. ![Install workflow](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/workflow.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=43e618132f3b9c24af67b8824db47fe7) ### Apply the Install Stack in AWS In this step, you are switching personas, from the software vendor to the end customer, authorizing the install of the app in your cloud account. Apply the install stack using whichever format fits your workflow. Either way, the resulting resources are the same: a VPC, the IAM policies Nuon expects, an Autoscaling Group, and a VM running the Nuon Build Runner that will provision the install of your app. #### Option A: CloudFormation Click or copy the CloudFormation Quick-Create link to open it in your AWS account and log in. The form will include the customer inputs defined in `inputs.toml` — required fields like `ssh_public_key` and `vscode_password` are marked as required and must be filled in before the stack can be created. Scroll to the bottom, accept the IAM acknowledgement, and click **Create Stack**. #### Option B: Terraform Download the generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files from the dashboard, set up a `backend.tf` (snippet provided in the dashboard), and run: ```sh theme={null} terraform init terraform apply ``` against the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module. ### Monitor the Install Stack creation in AWS Monitor the stack creation in the AWS console (CloudFormation) or the Terraform output. This will take a few minutes to complete. You can also pull up the AWS EC2 console and see the EC2 VM appear at some point with the install id in its name. The Nuon Dashboard will not provide feedback until the runner is up and connected to Nuon. ### Monitor the Remainder of the Install Workflow If plan steps require approvals, you will need to approve them in the dashboard. You can also monitor the progress of the install in the dashboard. ![Workflow](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/workflow.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=43e618132f3b9c24af67b8824db47fe7) ### Connect to Your Development Environment When the install has provisioned and the deploys have completed, open the install page in the dashboard. The README tab shows the connection strings for your instance, populated with the actual hostname and SSH user once provisioning is complete. **SSH:** ```sh theme={null} ssh @ ``` ![SSH](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/ssh.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=740cccd500da5b9a4e5da06e004885ab) **VS Code (Remote - SSH extension):** Open the [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension, then `Cmd+Shift+P` → `Remote-SSH: Connect to Host` → enter the same `@`. ![VS Code](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/vs-code.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=16037f70ead08ec7dbe588db4207581c) **Zed:** ```sh theme={null} zed ssh://@ ``` ![Zed](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/zed.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=663d0b374abbb4dd9e724eefef3734af) **VS Code Web** (if you enabled it): ![VS Code Web](https://mintcdn.com/nuoninc/yPTBToY26s2oX_wT/images/get-started/cde/vs-code-web.png?fit=max\&auto=format\&n=yPTBToY26s2oX_wT\&q=85\&s=c2ef466289adeaa4b0d2812ea23e9701) The README will include a direct HTTPS link to the ALB. Open it in a browser and enter the password you set in the `vscode_password` input. ![README](https://mintcdn.com/nuoninc/x5PYmEc-eBUI63d0/images/get-started/cde/readme.png?fit=max\&auto=format\&n=x5PYmEc-eBUI63d0\&q=85\&s=945d7f624a49436a5d9e8a8dea2c1bdb) ## Observability The install page displays a live README rendered from `README.md` in the app root. It uses Go templating to read action outputs and display the current state of the VM and its services. The five healthcheck actions — `healthcheck_ec2`, `healthcheck_ssh`, `healthcheck_code_server`, `healthcheck_alb`, and `connections_status` — run on a 5-minute cron via the runner and write their results to action outputs. The README reads those outputs through `{{.nuon.actions.workflows.*}}` template variables to show a per-service status summary, active SSH session count, and connected client IPs. No additional monitoring infrastructure is needed — the runner handles execution via SSM and the results surface directly on the install page. ## Cost Controls Two automatic shutdown mechanisms are installed as cron jobs by `post_provision_setup`, controlled by install inputs: * **Inactive auto-stop** (`auto_stop_inactive_hours`, default 2h) — monitors active SSH and VS Code Web connections every 10 minutes and shuts down the VM after N consecutive hours with no active sessions. * **Force auto-stop** (`auto_stop_max_hours`, default 4h) — shuts down the VM after N hours of total uptime since last start, regardless of activity. Both can be disabled by leaving the input blank. The `stop_dev_env` and `start_dev_env` actions provide manual control. The Elastic IP and Route53 DNS record persist through stop/start cycles, so the SSH hostname never changes. ## Deprovision the Install Nuon is mindful of your public cloud spend, so provide the following deprovisioning steps. Deprovisioning the install is a two-step process. First, deprovision the install in the Nuon dashboard, which will tear down the EC2 instance and all associated resources. Once that is completed successfully, tear down the install stack — delete the CloudFormation stack in the AWS console, or run `terraform destroy` against the install module — to remove the runner by destroying the EC2 VM, ASG, and VPC. > [!NOTE] > > Be sure to back up any data you want to keep before deprovisioning the > install, as this will delete all resources created by the install. ## Manually Deprovision the Install If deprovisioning the install in the dashboard fails, tearing down the install stack — deleting the CloudFormation stack in AWS, or running `terraform destroy` against the install module — will delete all of the component resources and the VPC. ## Wrapping Up and Next Steps Congratulations, you just deployed a Cloud Development Environment to AWS! A few suggestions for where to go next: * Review other example apps in the [example-app-configs repository](https://github.com/nuonco/example-app-configs) to see how to deploy a more complex app. * Dig into our [app template](/concepts/apps) guide to learn how to configure more complex apps. # Create an AWS EKS App Template Source: https://docs.nuon.co/get-started/app-aws-k8s Learn how to package a Helm application as an app template and deploy it to AWS EKS. > [!NOTE] > > This [app template](/concepts/apps) can be found in the [eks-simple directory](https://github.com/nuonco/example-app-configs/tree/main/eks-simple) of the example-app-configs repository. ## Prerequisites * [Signup for the self-service free trial](https://app.nuon.co). You will need a login and an org in Nuon's cloud. * [Set up an AWS account](https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-overview.html). This is the account you will install the app in. ## What You Will Create This tutorial will walk you through creating the following: * An [App Template](/concepts/apps) * A [Whoami component](/concepts/components) * An [Install](/concepts/installs), using our [AWS EKS sandbox](/concepts/sandboxes#nuon-managed-sandboxes) > [!NOTE] > > We recommend you clone the [`example-app-configs` > repository](https://github.com/nuonco/example-app-configs) which includes the > `eks-simple` app versus creating each config file manually. This guide is > meant to explain the concepts behind some of the config files, so you can > create your own app templates in the future. ## Configure App To configure the app, you will create several TOML config files. In each section below we will provide you with configuration snippets for the app itself as well as it's components. ### Create App Clone the `example-app-configs` repository, cd into the `eks-simple` directory, and create the app in Nuon. This will create the app in `app.nuon.co` ```sh theme={null} git clone https://github.com/nuonco/example-app-configs cd example-app-configs/eks-simple nuon auth login nuon orgs select nuon apps create -n eks-simple ``` You should see the new app in the dashboard. ![App List](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-2.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=6a003a3d14a04b092e3fea838a02c5b1) ### Inputs Inputs are customer-specific configs that are entered when you install the app in the customer's cloud account. They will be displayed in the dashboard. Inputs are optional. In the app root directory, create a file named `inputs.toml` and add the following: ```toml inputs.toml theme={null} # inputs [[group]] name = "dns" description = "DNS Configrations" display_name = "Configurations for the root domain for Route53" [[input]] name = "domain" description = "domain for the whoami endpoint e.g., nuon.run" default = "nuon.run" display_name = "Domain" group = "dns" [[input]] name = "sub_domain" description = "The sub domain for the Whoami service" default = "whoami" display_name = "Sub Domain" group = "dns" ``` This Input defines a domain, which will default to nuon.run and a subdomain for the Whoami service that will be deployed in the customer's AWS account. The customer will be prompted to enter this value when they create an install of the app. The subdomain will default to `whoami`, but the customer can change it to whatever they want. ### Sandbox Nuon provides a set of [Nuon Managed Sandboxes](/concepts/sandboxes#nuon-managed-sandboxes) that can be used to provision the infrastructure needed for your app. The `aws-eks-sandbox` will provide everything you need to run an EKS, from the EKS cluster down to the VPC. Your app references these Sandboxes in the `sandbox.toml` file. In the app root directory, create a file named `sandbox.toml` and add the following: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-sandbox" branch = "main" [vars] cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.install.id }}.{{.nuon.inputs.inputs.domain}}" internal_root_domain = "internal.{{ .nuon.install.id }}.{{.nuon.inputs.inputs.domain}}" [[var_file]] contents = "./sandbox.tfvars" ``` With `enable_nuon_dns` set to `true`, the sandbox will create a Route53 DNS zone for the install, allowing you to access the services deployed in the customer's AWS account using a Nuon-managed domain. The config uses the install id as the subdomain, which will be unique for each install. The sandbox expects variables, some of which are defined in the `vars` section while others are defined in the `sandbox.tfvars` file. In the app root directory, create a file named `sandbox.tfvars` and add the following: ```hcl sandbox.tfvars theme={null} maintenance_role_eks_access_entry_policy_associations = { eks_admin = { policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy" access_scope = { type = "cluster" } } eks_view = { policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy" access_scope = { type = "cluster" } } } additional_namespaces = ["whoami"] maintenance_cluster_role_rules_override = [{ "apiGroups" = ["*"] "resources" = ["*"] "verbs" = ["*"] }] min_size = 2 max_size = 3 desired_size = 2 ``` ### Components Components are the building blocks of your App and where a software vendor's application is installed on top of the Sandbox infrastructure. In this example, we will create a component to deploy Traefik's [Whoami](https://github.com/traefik/whoami) service with Helm. Whoami is a Tiny Go webserver that prints OS information and HTTP request headers. In the app root directory, create directory called `components` and within it, a file named `whoami.toml` and add the following: ```toml whoami.toml theme={null} # helm name = "whoami" type = "helm_chart" chart_name = "whoami" namespace = "whoami" storage_driver = "configmap" [public_repo] repo = "nuonco/example-app-configs" directory = "eks-simple/src/components/whoami" branch = "main" [[values_file]] contents = "./values/whoami.yaml" ``` You will also need ALB and Certificate components to expose the Whoami service to the internet. In the `components` directory, create a file named `alb.toml` and add the following: ```toml alb.toml theme={null} # helm name = "application_load_balancer" type = "helm_chart" chart_name = "application-load-balancer" dependencies = ["whoami"] [public_repo] repo = "nuonco/components" directory = "aws/alb" branch = "main" [values] domain_certificate = "{{.nuon.components.certificate.outputs.public_domain_certificate_arn}}" domain = "{{.nuon.inputs.inputs.sub_domain}}.{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name}}" https_port = "443" service_name = "whoami" service_port = "80" install_name = "{{.nuon.install.id}}" ``` In the components directory, create a file named `certificate.toml` and add the following: ```toml certificate.toml theme={null} # terraform name = "certificate" type = "terraform_module" terraform_version = "1.11.3" [public_repo] repo = "nuonco/example-app-configs" directory = "eks-simple/src/components/certificate" branch = "main" [vars] install_id = "{{ .nuon.install.id }}" region = "{{ .nuon.install_stack.outputs.region }}" zone_id = "{{ .nuon.install.sandbox.outputs.nuon_dns.public_domain.zone_id }}" domain_name = "*.{{ .nuon.install.sandbox.outputs.nuon_dns.public_domain.name }}" ``` ### Actions [Actions](/concepts/actions) are used to perform operations on your app, such as healthchecks or running `kubectl` commands. In the app root directory, create directory called `actions` and within it, two actions. Create a file named `healthcheck.toml` and add the following to check the ALB status. See the eks-simple directory of the example repo for the `healthcheck.sh` script referenced below. ```toml healthcheck.toml theme={null} # action name = "alb_healthcheck" timeout = "30s" [[triggers]] type = "manual" [[steps]] name = "alb-healthcheck" command = "./healthcheck.sh" [steps.public_repo] repo = "nuonco/example-app-configs" directory = "eks-simple/src/actions/alb" branch = "main" [steps.env_vars] INGRESS_NAME = "{{.nuon.install.id}}-public" INGRESS_NAMESPACE = "whoami" ``` ### Other Configuration Files Look at the `eks-simple` app in the [`example-app-configs` repository](https://github.com/nuonco/example-app-configs) for the remaining and required directory structure and files. The files created above are marked in \*\*. ``` - **eks-simple** - **actions** - **healthcheck.toml** - **simple_action.toml** - **components** - **alb.toml** - **certificate.toml** - **whoami.toml** - permissions - deprovision_boundary.json - deprovision.toml - maintenance_boundary.json - maintenance.toml - provision_boundary.json - provision.toml - policies - disallow-ingress-nginx-custom-snippets.yml - set-karpenter-non-cpu-limits.yaml - src - components - whoami - templates - deployment.yaml - service.yaml - Chart.yaml - break_glass.toml - **inputs.toml** - installer.toml - metadata.toml - policies.toml - README.md - runner.toml - **sandbox.tfvars** - **sandbox.toml** - secrets.toml - stack.toml ``` ### Sync the App Branch You now have a complete Nuon app template. Its config ships through an [app branch](/concepts/app-branches): a branch file that tells Nuon which repository, directory, and git branch hold the app config. The `eks-simple` directory already includes one at `branch.toml`. It points at the example repo: ```toml branch.toml (excerpt) theme={null} name = "main" [public_repo] repo = "nuonco/example-app-configs" directory = "eks-simple" branch = "main" ``` From the `eks-simple` directory, sync the branch file: ```sh theme={null} nuon branches sync --file branch.toml ``` The sync creates the branch and starts its first run. The run fetches the app config from the example repo at the latest commit on `main` and builds its components. Because the branch tracks the example repo, local edits to your clone do not ship. To ship your own changes, push the config to a repository you control and point the branch file at it, as described in [Configure app branches](/guides/app-branches). Once the run finishes building, select the app in the dashboard, and you should now see the inputs, sandbox, components, and runner configuration. ![App](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-3.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=c6daf26c9498ad9d3261182bf015e877) ## Create an Install Click the Create Install button in the top right corner of the app page in the Dashboard. Give your install a name choosethe AWS Region. Notice the inputs you defined in the `inputs.toml` file are displayed here, allowing the customer to enter their own values. After entering the inputs, click the Create Install button at the bottom of the page to start the Workflow. The provision workflow generates two install stack formats — a CloudFormation Quick-Create / CLI snippet, and Terraform `inputs.auto.tfvars` and `secrets.auto.tfvars` files for the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module — so the customer can apply whichever fits their tooling. ![Create Install](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-4.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=40d5ba58f4b609279a5af8113c2216ef) ### Monitoring Installs As soon as you kick off the install provisioning, you should see the new install's workflow in the dashboard. ![Install List](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-9.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=5f6342aded4a29c2cbce763eb80d2c93) ### Apply the Install Stack in AWS Apply the install stack using whichever format fits your workflow. Either way, the resulting resources are the same: a VPC, the IAM policies Nuon expects, an Autoscaling Group, and a VM running the Nuon Build Runner that will provision the install of your app. #### Option A: CloudFormation Click or copy the CloudFormation Quick-Create link to open it in your AWS account, log in, scroll to the bottom, accept the defaults, and click **Create Stack**. ![CloudFormation Stack](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-7.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=84d492dd241b7872124bd733f53fc478) #### Option B: Terraform Download the generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files from the dashboard, set up a `backend.tf` (snippet provided in the dashboard), and run: ```sh theme={null} terraform init terraform apply ``` against the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module. ### Monitor the Install Stack creation in AWS Monitor the stack creation in the AWS console (CloudFormation) or the Terraform output. This takes a few minutes to complete. You can also pull up the AWS EC2 console and see the EC2 VM appear with the install id in its name. The Nuon Dashboard will not provide feedback until the runner is up and connected to Nuon. ![Stack Log](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-8.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=1b0a4fcfab4ff1fe2b9daaefb60734b1) ### Monitor the Remainder of the Install Workflow If plan steps require approvals, you will need to approve them in the dashboard. You can also monitor the progress of the install in the dashboard. ![Workflow](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-10.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=dd31347298bb2958e9d508e942575841) In the AWS console, you can see the EKS cluster being created. ![Cluster](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-11.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=6f3b827c2a7dbe191384b847102f16fb) In the AWS console, you can see the Application Load Balancer being created and the Target Group being created for the Whoami service. ![ALB](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/get-started/create-your-first-app/tutorial-12.jpeg?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=c3793bfae42d8f73a820ca795f5df8d9) ### Inspect the Install When the install has provisioned, and the deploys have completed, click the URL link in the install's README.md visible on the install page in the dashboard. Alternatively, copy the link and open a terminal and curl the API to verify it's running. ```sh theme={null} curl https://whoami.{install_id}.nuon.run ``` You should see a response similar to the following: ```bash theme={null} Hostname: whoami-78ffb6cbf9-rhtlb IP: 127.0.0.1 IP: ::1 IP: 10.128.130.230 IP: fe80::1076:d7ff:fe3c:3bab RemoteAddr: 10.128.0.10:11270 GET / HTTP/1.1 Host: whoami.inlgekffpkqv08yy8ayt7mxuyy.nuon.run User-Agent: curl/8.7.1 Accept: */* X-Amzn-Trace-Id: Root=1-6864407f-5e2b57f16533e41347ae8c8c X-Forwarded-For: 136.49.24.124 X-Forwarded-Port: 443 ``` ## Deprovision the Install Nuon is mindful of your public cloud spend, so we provide the following deprovisioning steps. Deprovisioning the Install is a two-step process. First, you need to deprovision the install in the Nuon dashboard, which will deprovision the resources to install your App. Once that is completed successfully, tear down the install stack — delete the CloudFormation stack in the AWS console, or run `terraform destroy` against the install module — to remove the Build Runner by destroying the EC2 VM, ASG, and VPC. > [!NOTE] > > Be sure to back up any data you want to keep before deprovisioning the > install, as this will delete all resources created by the Install. ## Manually Deprovision the Install If deprovisioning the install in the dashboard fails, there is a `error-destroy.sh` script in the [Nuon Managed Sandboxes](/concepts/sandboxes#nuon-managed-sandboxes) repository that you can use to manually deprovision the install. This script will remove all resources created by the install, including the EKS cluster, ALB, certificates, and Route53 DNS records. > [!NOTE] > > You still have to tear down the install stack — delete the CloudFormation > stack in the AWS console, or run `terraform destroy` against the install > module — after running this script to remove the runner, ASG, EC2 VM, and VPC. ## Wrapping Up and Next Steps Congratulations, you just deployed an app to AWS! A few suggestions for where to go next: * Review other example apps in the [example-app-configs repository](https://github.com/nuonco/example-app-configs) to see how to deploy a more complex app. * Dig into our [app template](/concepts/apps) guide to learn how to configure more complex apps. # Create An AWS Lambda App Template Source: https://docs.nuon.co/get-started/app-aws-lambda Learn how to package an AWS Lambda application as an app template and install it. > [!NOTE] > > This [app template](/concepts/apps) can be found in the [aws-lambda directory](https://github.com/nuonco/example-app-configs/tree/main/aws-lambda) of the example-app-configs repository. ## Prerequisites * [Signup for the self-service free trial](https://app.nuon.co). You will need a login and an org in Nuon's cloud. * [Set up an AWS account](https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-overview.html). This is the account you will install the app in. ## What You Will Create This tutorial will walk you through creating the following: * An [app template](/concepts/apps) * Several [components](/concepts/components) including a Lambda function, Docker image, DynamoDB table, Certificate and API Gateway * An [install](/concepts/installs), using our [AWS minimal sandbox](/concepts/sandboxes#nuon-managed-sandboxes) > [!NOTE] > > We recommend you clone the [`example-app-configs` > repository](https://github.com/nuonco/example-app-configs) which includes the > `aws-lambda` app versus creating each config file manually. This guide is > meant to explain the concepts behind some of the config files, so you can > create your own app templates in the future. ## Configure App To configure the app, you will create several TOML config files. In each section below we will provide you with configuration snippets for the app itself as well as it's components. ### Create App Clone the `example-app-configs` repository, cd into the `aws-lambda` directory, and create the app in Nuon. This will create the app in `app.nuon.co` ```sh theme={null} git clone https://github.com/nuonco/example-app-configs cd example-app-configs/aws-lambda nuon auth login nuon orgs select nuon apps create -n aws-lambda ``` You should see the new app in the dashboard. ![App List](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/app-config-list.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=0f4cc61c9c63358924e4cfed8c409264) ### Inputs Inputs are customer-specific configs that are entered when you install the App in the customer's cloud account. They will be displayed in the dashboard. Inputs are optional. In the app root directory, notice the file named `inputs.toml`: ```toml inputs.toml theme={null} # inputs [[group]] name = "dns" description = "DNS Configrations" display_name = "Configurations for the root domain for Route53" [[input]] name = "domain" description = "domain for the AWS API Gateway e.g., nuon.run or stage.nuon.run" default = "nuon.run" display_name = "Domain" group = "dns" [[input]] name = "sub_domain" description = "The sub domain for the AWS API Gateway" default = "api" display_name = "Sub Domain" group = "dns" ``` This input defines a domain, which will default to the install id as subdomain prepended to `nuon.run` and a second-level subdomain for the API Gateway service that will be deployed in the customer's AWS account. The customer will be prompted to enter these values when they create an install of the app. For this tutorial, you can accept the defaults. ### Sandbox Nuon provides a set of [Nuon Managed Sandboxes](/concepts/sandboxes#nuon-managed-sandboxes) that can be used to provision the infrastructure needed for your app. The `aws-min-sandbox` is very streamlined compared to the Kubernetes sandboxes so will provide DNS delegation needed for nuon.run. Your app references these Sandboxes in the `sandbox.toml` file. In the app root directory, notice the file named `sandbox.toml`: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.4" [public_repo] directory = "." repo = "nuonco/aws-min-sandbox" branch = "main" [vars] enable_nuon_dns = "true" public_root_domain = "{{ .nuon.install.id }}.{{.nuon.inputs.inputs.domain}}" internal_root_domain = "internal.{{ .nuon.install.id }}.{{.nuon.inputs.inputs.domain}}" [[var_file]] contents = "./sandbox.tfvars" ``` With `enable_nuon_dns` set to `true`, the sandbox will create a Route53 DNS zone for the install, allowing you to access the services deployed in the customer's AWS account using a Nuon-managed `nuon.run` domain. The config uses the install id as the subdomain, which will be unique for each install. ### Components Components are the building blocks of your app and where a software vendor's application is installed on top of the sandbox infrastructure. In this example, there are several components that make up the AWS Lambda app, including: * A pre-built container image stored in ECR * A DynamoDB table to store data * A Lambda function to process requests * An API Gateway to expose the Lambda function to the internet * A Certificate to secure the API Gateway In the app root directory, navigate to the `components` directory. Notice there are several files here, one for each component. Numbers are prefixed to the file names to easily show the dependency order. The external image component references the pre-built container image containing the Go application, stored in ECR. ```toml 0-docker-image.toml theme={null} # docker-image name = "docker_image" type = "external_image" image_url = "public.ecr.aws/acme/aws-lambda/api:latest" ``` The DynamoDB component creates a DynamoDB table using Terraform to store data from the Lambda function POST route. ```toml 1-dynamodb-table.toml theme={null} # terraform name = "dynamodb_table" type = "terraform_module" terraform_version = "1.11.4" [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda/src/components/dynamodb-table" branch = "main" [vars] name = "widgets-{{.nuon.install.id}}" hash_key = "ID" install_id = "{{.nuon.install.id}}" region = "{{.nuon.install_stack.outputs.region}}" ``` The Lambda component creates a Lambda function using Terraform that references the Docker image in ECR. ```toml 2-lambda-function.toml theme={null} # terraform name = "lambda_function" type = "terraform_module" terraform_version = "1.11.4" dependencies = ["dynamodb_table"] [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda/src/components/lambda-function" branch = "main" [vars] install_id = "{{.nuon.install.id}}" region = "{{.nuon.sandbox.outputs.account.region}}" function_name = "widgets-{{.nuon.install.id}}" image_uri = "{{.nuon.components.docker_image.outputs.image.repository}}:{{.nuon.components.docker_image.outputs.image.tag}}" dynamodb_table_arn = "{{.nuon.components.dynamodb_table.outputs.dynamodb_table_arn}}" ``` The certificate component creates a Certificate using Terraform for the API Gateway to use. ```toml 3-certificate.toml theme={null} # terraform name = "certificate" type = "terraform_module" terraform_version = "1.11.4" [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda/src/components/certificate" branch = "main" [vars] zone_id = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.zone_id}}" domain_name = "*.{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name}}" install_id = "{{.nuon.install.id}}" region = "{{.nuon.install_stack.outputs.region}}" # https://registry.terraform.io/modules/terraform-aws-modules/acm/aws/latest ``` The API Gateway component creates an API Gateway using Terraform that exposes the Lambda function to the internet. Notice how the certificate, Route53 zone, and Lambda function are all referenced in this component through template variables. ```toml 4-api-gateway.toml theme={null} # terraform name = "api_gateway" type = "terraform_module" terraform_version = "1.11.4" [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda/src/components/api-gateway" branch = "main" [vars] install_id = "{{.nuon.install.id}}" region = "{{.nuon.install_stack.outputs.region}}" name = "{{.nuon.inputs.inputs.sub_domain}}" domain_name = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name }}" domain_name_certificate_arn = "{{.nuon.components.certificate.outputs.public_domain_certificate_arn}} " lambda_function_arn = "{{.nuon.components.lambda_function.outputs.lambda_function.lambda_function_arn}}" zone_id = "{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.zone_id}}" ``` ### Sync the App Branch You now have a complete Nuon app template. Its config ships through an [app branch](/concepts/app-branches): a branch file that tells Nuon which repository, directory, and git branch hold the app config. Add a branch file at `branches/main.toml` in the `aws-lambda` directory: ```toml branches/main.toml theme={null} name = "main" [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda" branch = "main" ``` From the `aws-lambda` directory, sync the branch file: ```sh theme={null} nuon branches sync --file branches/main.toml ``` The sync creates the branch and starts its first run. The run fetches the app config from the example repo at the latest commit on `main` and builds its components. Because the branch tracks the example repo, local edits to your clone do not ship. To ship your own changes, push the config to a repository you control and point the branch file at it, as described in [Configure app branches](/guides/app-branches). Once the run finishes building, select the app in the dashboard, and you should now see the inputs, sandbox, components, and runner configuration. ![App](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/app-config-components.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=ba5a172dc58cc6152c492d10ed6d5ff5) ## Create an Install Click the Create Install button in the top right corner of the app page in the Dashboard. Give your install a name choose the AWS Region. Notice the inputs you defined in the `inputs.toml` file are displayed here, allowing the customer to enter their own values. Just accept the defaults for this tutorial. Click the Create Install button at the bottom of the page to start the Workflow. The provision workflow generates two install stack formats — a CloudFormation Quick-Create / CLI snippet, and Terraform `inputs.auto.tfvars` and `secrets.auto.tfvars` files for the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module — so the customer can apply whichever fits their tooling. ![Create Install](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/inputs.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=b305fe83df9466962f1ac4c2ae1fa585) ### Monitoring Installs As soon as you kick off the install provisioning, you should see the new install's workflow in the dashboard. ![Install List](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/install-stack.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=395c5b87ce0e255135130ebce2da5c8e) ### Apply the Install Stack in AWS In this step, you are switching personas, from the software vendor, to the end customer, authorizing the install of the app in your cloud account. Apply the install stack using whichever format fits your workflow. Either way, the resulting resources are the same: a VPC, the IAM policies Nuon expects, an Autoscaling Group, and a VM running the Nuon Build Runner that will provision the install of your app. #### Option A: CloudFormation Click or copy the CloudFormation Quick-Create link to open it in your AWS account, log in, scroll to the bottom, accept the defaults, and click **Create Stack**. ![CloudFormation Stack](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/cloudformation.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=174f0bc07328234ffe0aa7561761f67e) #### Option B: Terraform Download the generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files from the dashboard, set up a `backend.tf` (snippet provided in the dashboard), and run: ```sh theme={null} terraform init terraform apply ``` against the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module. ### Monitor the Install Stack creation in AWS Monitor the stack creation in the AWS console (CloudFormation) or the Terraform output. This will take a few minutes to complete. You can also pull up the AWS EC2 console and see the EC2 VM appear at some point with the install id in its name. The Nuon Dashboard will not provide feedback until the runner is up and connected to Nuon. ![Stack Log](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/cf-detail.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=dd8937dff190629217d5611fcab4ad6b) ### Monitor the Remainder of the Install Workflow If plan steps require approvals, you will need to approve them in the dashboard. You can also monitor the progress of the install in the dashboard. ![Workflow](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/lambda-plan.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=8546e62efe7a4efde5e637020c7cba21) ### Inspect the Install When the install has provisioned, and the deploys have completed, click the URL link in the Install's README.md visible on the install page in the dashboard. Alternatively, copy the link and open a terminal and curl the API to verify it's running. ![README](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/install-complete-readme.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=e6eeb2b9ecb6762a95492c151e5f59d3) #### Create a Widget record in DynamoDB via a Lambda function ```sh theme={null} curl -X POST https://.nuon.run/widgets \ -H Content-Type:"application/json" \ -d '{"id":"7"}' ``` The Go app called by the Lambda function will not return anything when it successfully POSTs the value of 7 to the DynamoDB table called widgets. #### Retrieve a Widget record from DynamoDB via a Lambda function Verify the widget record was created with the GET request: ```bash theme={null} curl https://.nuon.run/widgets/7 ``` You should see the following response: ```json theme={null} { "id": "7" } ``` You can also verfify the POST and GET requests in the CloudWatch logs for the Lambda function in the AWS console. ![CloudWatch](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/cloudwatch-post-get.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=6a53ad122516acda94a168e89732c1ee) ## Deprovision the Install Nuon is mindful of your public cloud spend, so provide the following deprovisioning steps. Deprovisioning the install is a two-step process. First, you need to deprovision the install in the Nuon dashboard, which will deprovision the resources to install your app. Once that is completed successfully, tear down the install stack — delete the CloudFormation stack in the AWS console, or run `terraform destroy` against the install module — to remove the runner by destroying the EC2 VM, ASG, and VPC. ![Deprovision](https://mintcdn.com/nuoninc/oCB2rKA_ktQ7dkgF/images/get-started/aws-lambda/deprovision-install.png?fit=max\&auto=format\&n=oCB2rKA_ktQ7dkgF\&q=85\&s=11d1da8158573b99407aff41e2a17106) > [!NOTE] > > Be sure to back up any data you want to keep before deprovisioning the > install, as this will delete all resources created by the install. ## Manually Deprovision the Install If deprovisioning the install in the dashboard fails, tearing down the install stack — deleting the CloudFormation stack in AWS, or running `terraform destroy` against the install module — will delete all of the component resources and the VPC. ## Wrapping Up and Next Steps Congratulations, you just deployed an app to AWS! A few suggestions for where to go next: * Review other example apps in the [example-app-configs repository](https://github.com/nuonco/example-app-configs) to see how to deploy a more complex app. * Dig into our [app template](/concepts/apps) guide to learn how to configure more complex apps. # Roll out a change Source: https://docs.nuon.co/get-started/app-branches-walkthrough Sync the eks-simple example app's built-in branch config, then plan and deploy a change across its installs. > [!NOTE] > > This walkthrough builds on the [`eks-simple` > directory](https://github.com/nuonco/example-app-configs/tree/main/eks-simple) of the example-app-configs. [App branches](/concepts/app-branches) turn a change to your app config into a single, reviewable rollout across your installs. `eks-simple` already ships its branch config. This walkthrough syncs it into your org and rolls a change out: plan each install group, approve, deploy. You can run a **manual** plan-only [preview](/guides/app-branches#previews) (or later a PR preview) before the fleet run; that is separate from the rollout and not required. ## Prerequisites * Finish [Create an AWS EKS App Template](/get-started/app-aws-k8s) first, or otherwise have the `eks-simple` app template in Nuon with **at least one install** on its `main` branch that has finished provisioning. * The [Nuon CLI](/cli), authenticated with `nuon auth login` and pointed at your org with `nuon orgs select`. * A clone of [`example-app-configs`](https://github.com/nuonco/example-app-configs). ## What You Will Create * An [app branch](/concepts/app-branches) named `main` **in your org**, created by syncing the branch config that ships in the `eks-simple` directory of the example repository. * Two [install groups](/concepts/app-branches#install-groups) named `stage` and `production`, which select their installs by label. * A labeled install, so it lands in the `stage` install group. * A real fleet run you approve install group by install group (optionally a separate plan-only [preview](/guides/app-branches#previews) first via CLI, or later via PR). ## Review the Branch Config ### `branch.toml` The branch config is a single file at the root of the app config directory, alongside `metadata.toml`. `eks-simple` already includes it. Open [`eks-simple/branch.toml`](https://github.com/nuonco/example-app-configs/blob/main/eks-simple/branch.toml) in your clone and read it against what follows: ```toml branch.toml theme={null} name = "main" [public_repo] directory = "eks-simple" repo = "nuonco/example-app-configs" branch = "main" [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] env = "prod" ``` Reading it top to bottom: * **`name = "main"`** is the branch's name in Nuon. It comes from this key, not from the filename, and it is what you pass as `--branch-id` to `nuon branches` commands. * **`[public_repo]`** is the repository the branch tracks. `directory` is the path to the app config inside that repo, so `eks-simple` here rather than `"."`. All three fields are required. * **Two `[[install_groups]]`**: `stage` first (`order = 1`), then `production` (`order = 2`). Lower `order` deploys first, and each install group's plan waits for your approval before its deploy runs. Exactly one install group must set `default = true` (here, `production`); that install group catches installs that match no other selector. * **`[install_groups.label_selector]`** picks each install group's installs by label. An install labeled `env = "stage"` is in the `stage` install group; one labeled `env = "prod"` is in `production`. Nothing is hard-coded to a particular install, so adding a customer to an install group is a matter of labeling it. ### Label your install The `stage` install group is empty until an install carries `env = "stage"`. Label the install you provisioned earlier: ```sh theme={null} nuon installs labels set --install-id env=stage ``` Then confirm the selector matches it: ```sh theme={null} nuon installs list --labels env=stage ``` The example app also declares its CI installs as tracked config files, and sets the labels there instead: ```toml installs/eks-simple-ci-stage.toml theme={null} #:schema https://api.nuon.co/v1/general/config-schema?type=install name = "eks-simple-ci-stage" app_branch = "main" [labels] env = "stage" approval_option = "approve-all" [aws_account] region = "us-east-1" [[inputs]] domain = "nuon.run" sub_domain = "whoami" ``` Either route sets the same label. Install config files have their own sync command, separate from app or branch sync: ```sh theme={null} nuon installs sync -a -d installs/ ``` Managing labels in the files means install group membership is version-controlled along with everything else about the install. ### Sync the branch From the `eks-simple` directory (start in the directory where you cloned `example-app-configs`): ```sh theme={null} cd example-app-configs/eks-simple nuon apps select # no flags: pick eks-simple from the list nuon branches sync --file branch.toml --confirm ``` This creates the `main` branch in your org with the stage and production install groups. The first sync also starts an app branch run that fetches the tracked ref, syncs the app config, and builds OCI artifacts for components and the sandbox (when configured). With no installs on the branch yet, that run stops after the build. Later syncs only update branch settings; shipping config through install groups is a [fleet run](#deploy-the-change) from a push or `nuon branches trigger` (below). > [!NOTE] > > New apps use app branches. `nuon branches sync` is how you create and update branch settings. > `nuon apps sync` still works for apps that are not on app branches yet, and is deprecated. Check what Nuon now has. You already selected the app, so branch commands do not need `--app-id`: ```sh theme={null} nuon apps list nuon branches list ``` You should see one branch, `main`. In the dashboard, open the app and you will see the branch there too. ## Preview a Change Optional but recommended: preview a change before it merges into the tracked branch. A preview run is separate from the fleet rollout: start one manually with the CLI (below), or later from a pull request that uses `[preview]` defaults. You can skip to [Deploy the Change](#deploy-the-change) and use `nuon branches trigger` instead. Edit the `sub_domain` input default in `inputs.toml` (this is an excerpt; leave the rest of the file as it is): ```toml inputs.toml (excerpt) theme={null} [[input]] name = "sub_domain" description = "The sub domain for the Whoami service" default = "hello" display_name = "Sub Domain" group = "dns" ``` > [!NOTE] > > A changed **default** only shows up in the diff for installs that inherit it. An install that sets `sub_domain` > explicitly (including `eks-simple-ci-stage`, whose config file pins it) shows an empty diff for this change. To > see the diff on every install, change something unconditional instead, or remove the explicit value from your > install first. Branch runs always use a **git-reachable** config. Commit and push the change to a repository Nuon tracks, then preview that ref. With the stock `public_repo` pointing at `nuonco/example-app-configs`, you cannot push your edit there. Fork (or copy) the config into a repo you control, update the repo block, and sync (see [Trigger From a Git Push](#trigger-from-a-git-push)). Once the commit is on a tracked repo: ```sh theme={null} nuon branches preview --branch-id main --git-ref --mode plan-only ``` Nothing is applied to any install. The command prints the run's ID and returns; watch the run in the dashboard, or with `nuon branches runs --branch-id main`, which opens the workflow TUI. > [!NOTE] > > A preview run (CLI or pull request) does not create install group plan/deploy steps. It builds and plans against > the preview target only (or build-only with no install). Fleet install groups run later from push, trigger, or > another non-preview start. ## Deploy the Change After the change is on the tracked branch (merge or push to `main`), start a real rollout: ```sh theme={null} nuon branches trigger --branch-id main ``` If the branch's `[run]` mode includes push (the default), a push to the tracked branch starts the same kind of run without a CLI step. A real run walks these steps: 1. `fetch commit`: clone the repo at the run's SHA 2. `fetch app config`: parse and sync the app config from that commit 3. `building components and sandbox`: rebuilds only what changed. The sandbox half needs [sandbox builds](/guides/sandbox-builds) for your org; without it, components only. 4. `plan install group: stage`: computes the diff for every install in the install group, then **waits** for you 5. `deploy install group: stage`: runs once you approve 6. `plan install group: production`: same for production 7. `deploy install group: production`: runs once you approve ### Approve the plan The run pauses at `plan install group: stage`. In the diff, installs that inherit the default show `sub_domain` moving from `whoami` to `hello`; installs that pin `sub_domain` explicitly show no change for it (see the note in Preview a Change). Approve the plan and the install group deploys. The run then stops at `plan install group: production`. An install group with no matching installs still pauses; **Skip install group** moves the run past it. By default the plan waits for approval. Set `auto_approve_on_policies_passing = true` on an install group to approve automatically when policy checks pass. ### Watch runs from the CLI ```sh theme={null} nuon branches runs --branch-id main ``` This lists the branch's runs and opens the one you pick in the workflow TUI. ## Trigger From a Git Push So far the stock `branch.toml` tracks `nuonco/example-app-configs`, a repository you cannot push to. To preview your own edits and get push-triggered runs, point the branch at a repository of your own. **1. Push the config to your own repository** Fork `example-app-configs`, or copy the `eks-simple` directory into a repository you control. **2. Connect it to Nuon** Connect the Nuon GitHub App for your repository's owner (see [connecting a repository](/guides/vcs)). This is what makes pushes start runs and pull requests get previews. It is an org-level connection keyed on the owner, so it covers any branch tracking a repo under that owner, whether the branch config uses `[connected_repo]` or `[public_repo]`. **3. Update the repo block** Swap `[public_repo]` for `[connected_repo]`, pointing at your repository and the directory the config lives in: ```toml branch.toml theme={null} name = "main" [connected_repo] directory = "eks-simple" repo = "your-org/example-app-configs" branch = "main" [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] env = "prod" ``` **4. Sync the branch file, then push it** ```sh theme={null} nuon branches sync --file branch.toml --confirm git commit -am "point app branch at my repo" git push origin main ``` The push starts a run on its own. From here on, a commit to `main` is the trigger, with no CLI step in between. **5. Open a pull request** Stock `eks-simple` has no `[preview]` block. Add one with a preview target (for example `label_selector` or `install_name`), sync the branch, then open a pull request against `main` with a config change. Nuon starts a preview from those defaults (usually `plan-only`) and posts a comment headed `## Nuon Preview` plus the branch's `name` (not the app's), with a table of what changed, plus a commit status named `nuon///main preview (plan-only)` linked to the preview run. Push another commit and the same comment is updated in place. Without a preview target, automatic PR previews are skipped; use `nuon branches preview` instead (see [Previews](/guides/app-branches#previews)). ## Inspect the History Every config change to an install is recorded as an app config version. There is no dedicated CLI command for versions, diffs, or re-apply: on the install, open **Configuration → App branch → Applied config history**, or use the API (create an API token in the dashboard's org settings; the install ID comes from `nuon installs list`): ```sh theme={null} curl -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ "https://api.nuon.co/v1/installs/$INSTALL_ID/app-config-versions" ``` Any earlier version can be applied again, which is the path back if a change turns out badly. The guide walks through [rolling back to a previous version](/guides/rollback-install-config). ## Next Steps You now have a git branch wired to a fleet: a change to the config produces a build, a diff per install, and an approval gate in front of each install group. Where to go next: > [card] [Configure app branches](/guides/app-branches) > > Multiple branches, label-driven groups, and the full command reference. > [card] [How app branches work](/concepts/app-branches) > > Run types, previews, and version history in depth. > [card] [Branch config reference](/config-ref/branch) > > Every field in a branch file. > [card] [Webhooks](/guides/webhooks) > > Have your own systems react to branch runs. # Create Your First App Template Source: https://docs.nuon.co/get-started/create-your-first-app Use an example app template to learn Nuon or package your product as a Nuon app template. Your first app template can take one of two forms, and both install into your cloud account: * **An example app (recommended)**: the fastest way to see Nuon work end to end. Use one of our pre-built [example apps](https://github.com/nuonco/example-app-configs). * **Your own app template**: your product packaged in Nuon's configuration format, referencing your existing Terraform, Helm, Kubernetes, and Docker assets. > [!TIP] > > New to Nuon? Read [Nuon App Templates](/concepts/apps) to understand how apps are packaged, installed and managed with Nuon. ## Use an Example App Each guide below deploys a working example into your AWS account: * [eks-simple](/get-started/app-aws-k8s): An AWS EKS (Kubernetes) Traefik `whoami` application (\~35 min) * [cde](/get-started/app-aws-ec2): An AWS EC2 VM you connect to with `ssh` and VS Code Web (\~26 min) * [aws-lambda](/get-started/app-aws-lambda): A Lambda function with DynamoDB and API Gateway (\~26 min) Estimated times above include creating the initial VPC, Subnets, Nat Gateway, ASG, EC2 VM, and a healthy Nuon runner (\~11 min). For the fastest duration, approve all workflow steps when the app install begins. cde and aws-lambda are less resource and cost intensive than eks-simple which provisions a Kubernetes cluster with 3 nodes. For these and other examples, clone the [example-app-configs repository](https://github.com/nuonco/example-app-configs). Each example ships through an [app branch](/concepts/app-branches). If the example's directory has no branch file (`branch.toml` or `branches/main.toml`), add `branches/main.toml`: ```toml branches/main.toml theme={null} name = "main" [public_repo] repo = "nuonco/example-app-configs" directory = "" branch = "main" ``` Then run: ```sh theme={null} brew install nuonco/tap/nuon nuon auth login cd example-app-configs/ nuon apps create --name nuon branches sync --file branches/main.toml # or: --file branch.toml; starts the first run nuon installs create --name --region ``` On Nuon BYOC or Self-Hosted, install the CLI version that matches your control plane instead of the latest. See [Choosing a CLI version](/cli#choosing-a-cli-version). ## Use Your Own App When you're ready to try your product with Nuon, package your existing Terraform, Helm, Kubernetes manifest, and container image assets into a Nuon app template, then install it into your AWS, Azure or GCP. See [Configuration Files](/configuration-files) to structure your app, and [Connect GitHub](/guides/vcs) to use private repositories. Use agents like Claude Code to build your app template by learning from Nuon's example apps. See our [AI and App Template Building docs](/guides/agents/ai-and-apps) for more info. ## Prerequisites * [Sign up for the free trial](https://app.nuon.co). You'll get a login and an org in Nuon Cloud. * The example apps above need an AWS account to install into. [Set up an AWS account](https://docs.aws.amazon.com/SetUp/latest/UserGuide/setup-overview.html) if you don't have one. Nuon also has apps for Azure and GCP [in our example apps repo](https://github.com/nuonco/example-app-configs). # Day-2 Operations Overview Source: https://docs.nuon.co/get-started/day-2-operations BYOC primitives for scaling your deployments ## Workflows A workflow is the lifecycle of an install or a component. It plans the change, surfaces a diff, runs through any approvals you've configured. Each workflow run's logs and step state are visible in the dashboard, CLI, and TUI. [How it works → Workflows](/concepts/workflows) ## Install Telemetry Install telemetry is the logs, metrics, and traces your application produces while running in a customer's cloud account. Nuon can forward this data to your observability backend so you can monitor performance and troubleshoot issues across installs. [How it works → Install Telemetry](/concepts/install-telemetry) ## Audit Logs Install runners on AWS, Azure, and GCP can forward deployment, action workflow, and sandbox audit events directly to a customer-controlled OTLP logging backend. The destination and credentials remain in the customer's cloud account. Only Nuon audit events are forwarded, not application logs or general runner logs. [How to → Export Runner Audit Logs](/guides/export-runner-audit-logs) ## Actions An action is a custom script you run on a live install. Define it in TOML, point it at a repo, set environment variables. It runs inside the customer's account — on a cron, on a lifecycle event (`post-deploy-component`, `pre-reprovision`, etc.), on a manual trigger, or as a one-off from the dashboard. Typical uses: healthchecks, [database migrations](/guides/database-migrations), runbooks, debugging stuck installs. [How it works → Actions](/concepts/actions) ## Policies A policy is an OPA or Kyverno rule that gates what can be deployed. Policies validate Terraform plans, Helm charts, Kubernetes manifests, container images, and sandbox configurations before they apply. Every evaluation is logged on a per-app analytics page, scoped to the install, component, action, or deploy that triggered it. Use policies to enforce compliance, security baselines, or organization conventions across every customer install at once, instead of relying on review discipline per install. [How it works → Policies](/concepts/policies) ## Operation Roles An operation role is a specific IAM role the runner assumes for one class of work: provisioning, deploys, or individual actions. For urgent elevated access, use [break glass](/concepts/break-glass) roles. Each role is defined by the vendor and approved by the customer through the Stack, so the runner never holds more permissions than the task at hand requires. Roles can be scoped per component or per action; every workflow run records which role was used. [How it works → Operation Roles](/concepts/operation-roles) # Glossary Source: https://docs.nuon.co/get-started/glossary Basic terminology of the Nuon Platform. This page defines terms you will see throughout our product and documentation. ## User Terms | Term | Definition | | - | - | | Vendor | A BYOC software provider. | | Customer | A BYOC software consumer. | | Customer Account | The cloud account where a Vendor installs their App Template. Owned by their Customer. | ## System Components | Term | Definition | | - | - | | Nuon Platform | The software that we provide to Vendors and Customers to support providing and consuming BYOC applications. | | Nuon Control Plane | The part of the Nuon platform that orchestrates jobs for runners. | | Nuon Runner | The part of the Nuon platform that executes jobs. The runners being orchestrated by the Nuon Control Plane can collectively be considered the Data Plane. | | Organization | A business unit that operates Apps and Installs. A Vendor will be given one or more Orgs to use. | | App Template | What a Vendor builds in Nuon to deliver their product as BYOC: a sandbox, inputs, components, and actions that point to the Terraform modules, Helm charts, Kubernetes manifests, and container images behind that product. Each Install is one deployment of the App Template in a Customer Account. The docs often shorten it to "App". | | Build | An OCI artifact packaging a Component. Stored in a private OCI registry alongside the Nuon Control Plane. | | Inputs | A Vendor-defined input for an App, that can be set by a Customer when creating an Install. Input values can be used by the Sandbox, Components, and Action Workflows of the App. | | Sandbox | The “root” component of an App. Defines the base infrastructure required by the App Components. | | Component | Part of an App. Nuon supports Terraform modules, Helm charts, Docker files, and container images. Can be deployed and updated independently of the rest of the app. | | Action Workflow | A series of commands, defined by a Vendor, that can be run in an Install. | | Build Runner | A Nuon Runner that builds docker images and packages OCI artifacts for Install runners to pull. Deployed alongside the Nuon Control Plane, but technically part of the Data Plane. Single-tenant. | | Install Runner | The Nuon Runner deployed in the Customer Account for an Install. It executes tasks to sync artifacts, provision, maintain, and deprovision the sandbox and components, and run actions in the Install. Single-tenant. | | Install | A single-tenant deployment of an App Template. Typically deployed into a cloud account owned by a Customer. | ## Processes | Term | Definition | | - | - | | Provision | The process of creating an Install in a Customer’s cloud account. | | Reprovision | The process of re-creating an Install in a Customer’s account. Basically a factory reset of the Install. | | Deprovision | The process of removing an Install from a Customer’s account. | | Sync | The process of copying a Build from the Control Plane’s registry to an Install’s registry. | | Sandbox Run | The process of provisioning the Sandbox in an Install. | | Component Deploy | The process of provisioning a Component in an Install. | | Action Workflow Run | The process of executing an Action Workflow in an Install. | | Release | A process that orchestrates Deploys of a Component in one or more Installs. | ## Continuous Delivery | Term | Definition | | - | - | | App Branch | A link between one git branch and an App. A push to that branch triggers an App Branch Run. See [App Branches](/concepts/app-branches). | | App Branch Run | A single execution of an App Branch's workflow: fetch the config at a commit, build what changed, then plan and deploy each Deployment Group in order. Triggered by a push (`git-run`), a pull request (`git-preview-run`), or by hand from the CLI, API, or dashboard (`manual-run`). | | Deployment Group | A named subset of an App's Installs that receives an update as a unit, and the unit of ordering and approval within an App Branch Run. Selected by label, install ID, or install name. The dashboard calls these deployment groups; the TOML key is `install_groups` and the API routes use `install-groups`. | | Label Selector | A set of key/value pairs on a Deployment Group. Any Install carrying all of them belongs to the group, so membership re-evaluates on every run. Set an Install's labels with `nuon installs labels set`. | | Plan | The diff an App Branch Run computes for each Install in a Deployment Group, showing what would change before anything is applied. Its workflow step is an approval gate. | | App Config Version | A snapshot of the config an Install was expected to be running at a point in time. Nuon records one per change, keeps the diff between versions, and can apply any earlier version again. | | PR Preview | A preview App Branch Run (`git-preview-run`) started by opening or updating a pull request against a tracked branch, using the branch's `[preview]` defaults (`plan-only`, `apply`, or `build-only`). It does not roll install groups. Nuon can post a pull request comment and commit status that link to the preview run. Requires the Nuon GitHub App connected in your Org for the repository's owner. You can also start a preview manually with `nuon branches preview`. | # Docs Home Source: https://docs.nuon.co/get-started/introduction Continuous delivery into your customer's cloud. ## What Nuon is Nuon is a deployment platform for software companies that need to run their product inside their customers' cloud accounts, a model called BYOC (bring your own cloud). You package your existing Terraform modules, Helm charts, Kubernetes manifests, and container images as an app template. Nuon installs that template into each customer's AWS, Azure, or GCP account and keeps every install updated from one control plane. ## Supported architectures The deployment architectures enterprise customers ask for, and whether Nuon supports each. [BYOC architecture patterns](/guides/byoc-architecture-patterns) explains how to build each. | Customer requirement | Nuon | | - | - | | Run in the customer's own cloud account, operated by you | [Supported](/guides/byoc-architecture-patterns#dedicated-account-full-byoc) | | Deploy into the customer's existing VPC and subnets | [Supported](/guides/byoc-architecture-patterns#existing-customer-vpc) | | Install into the customer's existing Kubernetes cluster | [Supported](/guides/byoc-architecture-patterns#existing-customer-kubernetes-cluster) | | Hybrid: your hosted product stays the control plane, an agent or worker runs next to customer data | [Supported](/guides/byoc-architecture-patterns#agent-or-worker-next-to-customer-data-hybrid-data-plane) | | Operate a Helm chart the customer self-hosts today | [Supported](/guides/byoc-architecture-patterns#self-hosted-package-you-want-to-operate-for-the-customer) | | Dedicated single-tenant deployment per customer | [Supported](/guides/byoc-architecture-patterns#single-tenant-per-customer) | | Keep data in a specific region | [Supported](/guides/byoc-architecture-patterns#data-residency-and-region-pinning) | | Customer-managed encryption key | [Build with components](/guides/byoc-architecture-patterns#customer-managed-encryption-key) | | Customer-owned storage bucket | [Build with components](/guides/byoc-architecture-patterns#customer-owned-storage-bucket) | | Customer database on their managed service | [Build with components](/guides/byoc-architecture-patterns#customer-database) | | Customer's own model provider, such as Amazon Bedrock | [Build with components](/guides/byoc-architecture-patterns#model-provider-in-the-customer-account) | | Fully air-gapped, with no outbound network access | [Contact us](/guides/byoc-architecture-patterns#fully-air-gapped-installs) | ## How it works 1. **App template.** Your app is TOML config in your own git repo. It defines [components](/concepts/components), [inputs](/concepts/app-inputs), [secrets](/concepts/app-secrets), and a [sandbox](/concepts/sandboxes), the base infrastructure such as a VPC and Kubernetes cluster. See [App templates](/concepts/apps). 2. **Install.** For each customer, Nuon creates an [install](/concepts/installs) and generates a [stack](/concepts/stacks) template (CloudFormation on AWS, Bicep on Azure, Terraform on all three). The customer deploys the stack with their own credentials. It creates the runner and the [operation roles](/concepts/operation-roles) the runner uses. 3. **Runner.** The [runner](/concepts/runners) runs in the customer's account and polls the control plane for jobs. Connections are outbound only, so neither you nor Nuon needs cross-account access to your customer's account. The customer can turn the runner off at any time through the stack. 4. **Updates and operations.** You push config changes to git, and [app branches](/concepts/app-branches) roll them out across installs with plan review and approvals. [Actions](/concepts/actions), [runbooks](/concepts/runbooks), and [policies](/concepts/policies) cover day-2 work. ## Ways to run Nuon * **Nuon Cloud:** managed, multi-tenant, hosted by Nuon. * **Nuon BYOC:** a single-tenant control plane in your own AWS or GCP account, operated remotely by Nuon. Requires a paid license. * **Nuon Self-Hosted:** the same software, operated entirely by you. Open source; a paid license is needed only for support. See [Choose how to run Nuon](/guides/deployment-options). ## Where to go next * **Evaluating Nuon:** [Security](/security), [Platform architecture](/architecture/platform), [Choose how to run Nuon](/guides/deployment-options). * **Building with Nuon:** [Quickstart](/get-started/quickstart), [Create your first app template](/get-started/create-your-first-app), [Configuration reference](/config-ref). * **Operating Nuon from an agent:** [Agents overview](/guides/agents/overview) covers the Nuon MCP server. ![](https://mintcdn.com/nuoninc/RZoWFEpvSvd8sGqW/images/introduction/hero-bg.svg?fit=max\&auto=format\&n=RZoWFEpvSvd8sGqW\&q=85\&s=aa4229bd48bd21310171c1f211643206) ## Get started with your product, or [deploy an example app today](https://github.com/nuonco/example-app-configs#example-apps-on-nuon) [Sign up ](https://app.nuon.co/) ![Connect your app](/images/introduction/guides.svg) Step 1 ### [Connect your app](/concepts/apps) Wrap your existing Terraform, Helm, Kubernetes, and Docker assets into a Nuon app template. Define inputs, secrets, and a sandbox once. Learn more → ![Deploying to a Customer](/images/introduction/getstarted.svg) Step 2 ### [Deploying to a Customer](/concepts/installs) Install into AWS, Azure, or GCP accounts you don't own — no cross-account access required. Learn more → ![Continuous Delivery](/images/introduction/concepts.svg) Step 3 ### [Continuous Delivery](/get-started/day-2-operations) Run workflows, detect drift, enforce policies, and ship releases across every customer install — operated centrally from one control plane. Learn more → ## Quickstart at a glance The fastest way to try Nuon is to deploy an [example app](https://github.com/nuonco/example-app-configs) into a test cloud account (AWS, Azure, or GCP) — see the [full quickstart](/get-started/quickstart) for detail. **1. Create your account** [Sign up for the free trial](https://app.nuon.co/). **2. Install the CLI** Run `brew install nuonco/tap/nuon`. **3. Log in** Run `nuon auth login`. **4. Grab an example app** Run `git clone https://github.com/nuonco/example-app-configs`, then `cd example-app-configs/eks-simple`. **5. Define and deploy it** Run `nuon apps create --name eks-simple`, then `nuon branches sync --file branch.toml` (which starts the first run), then `nuon installs create --name --region `. # Quickstart Source: https://docs.nuon.co/get-started/quickstart Install your first app template with Nuon in a few minutes by shipping an example Kubernetes app into an AWS account. > [!NOTE] > > You'll need two things before you start: > > * A Nuon Cloud account — [sign up for the free trial](https://app.nuon.co/). > * An AWS account to deploy the app into. Copy and paste the flow below, or follow the walkthrough underneath for detail on each step of the Quickstart. ```sh theme={null} # 1. Install the CLI brew install nuonco/tap/nuon # 2. Authenticate with Nuon Cloud nuon auth login # 3. Clone Nuon's example apps repo git clone https://github.com/nuonco/example-app-configs # 4. Create the app and sync its app branch, which starts the first run. (Kubernetes on AWS shown here) cd example-app-configs/eks-simple nuon apps create --name eks-simple nuon branches sync --file branch.toml # 5. Install the app in your AWS account nuon installs create --name --region ``` ## Install the CLI ```sh theme={null} brew install nuonco/tap/nuon ``` If you are not using Homebrew, refer to our [CLI](/cli) documentation for other installation options. If you use Nuon BYOC or Self-Hosted, install the CLI version that matches your control plane instead. See [Choosing a CLI version](/cli#choosing-a-cli-version). ## Authenticate to Nuon Cloud ```sh theme={null} nuon auth login ``` Follow the prompt in the browser and log in with a Google account. ## Clone the Example Apps Repo Nuon maintains a [example apps](https://github.com/nuonco/example-app-configs) repo to demonstrate how to package various applications as app templates on AWS, Azure and GCP with various architectures like Kubernetes, VM and serverless. ```sh theme={null} git clone https://github.com/nuonco/example-app-configs ``` ## Create the Example App and Run Its Branch For the Quickstart, we're using an AWS EKS (Kubernetes) app template called eks-simple with a whoami Helm component, an ACM certificate, and an Application Load Balancer to access the whoami service. View the app configuration in the [example apps repo](https://github.com/nuonco/example-app-configs/tree/main/eks-simple) or with your IDE and the cloned repo. Create the app in Nuon, then sync its [app branch](/concepts/app-branches). The branch file, `branch.toml`, tells Nuon which repository, directory, and git branch hold the app config: ```toml branch.toml (excerpt) theme={null} name = "main" [public_repo] directory = "eks-simple" repo = "nuonco/example-app-configs" branch = "main" ``` ```sh theme={null} cd example-app-configs/eks-simple nuon apps create --name eks-simple nuon branches sync --file branch.toml ``` The sync shows the branch it will create and asks you to confirm. Creating the branch also starts its first run. The run fetches the config from the example repo and builds the app's components (e.g., images, Helm, Kubernetes manifests, Terraform) into OCI artifacts stored in your org's container registry. Nuon uses these artifacts when installing your app. With no installs on the branch yet, the run stops after the build. Watch it with `nuon branches runs --branch-id main`, and wait for the build to finish before you create an install. ## Install the Example App in AWS Now create an install to deploy the app into your AWS account: ```sh theme={null} nuon installs create --name --region ``` * `--name` (`-n`) names this install. * `--region` (`-r`) is the AWS region to provision into, for example `us-east-1`. The CLI asks which app branch owns the install. Pick `main`. In a script, pass `--app-branch-id` with the branch ID that `nuon branches list` prints. ## Guided Walkthroughs For guided walkthroughs including this eks-simple app and EC2 and serverless apps, see [Create Your First App Template](/get-started/create-your-first-app). ## Deploy Your Own App When you're ready to package your own software, wrap your existing Terraform, Helm, Kubernetes manifest, and container image assets into a Nuon app template. Commit the app config to your own GitHub repository, add a branch file that points at it, and the commands are the same (`nuon apps create`, `nuon branches sync`, then `nuon installs create`). After that, pushing to the tracked git branch rolls changes out. See [Configure app branches](/guides/app-branches). Use agents like Claude Code to build your app template by learning from Nuon's example apps. See our [AI and App Template Building docs](/guides/agents/ai-and-apps) for more info. # Configure actions Source: https://docs.nuon.co/guides/actions Define and remotely execute custom action workflows in your installs. Actions let you define and remotely execute custom workflows in installs. You can automate common tasks, implement healthchecks, and even automate runbooks to handle incidents. To learn more about actions, see the [Actions](/concepts/actions) concept page. For one-off scripts you don't want to commit to TOML, see [Run adhoc actions](/guides/adhoc-actions). To run an action's steps inside a container image you build, see [Container actions](/guides/container-actions). ## Configuring action workflows Action workflows can be configured in your app template's TOML config. For example, to define an HTTP healthcheck: ```toml actions/http_healthcheck.toml theme={null} # action name = "http_healthcheck" timeout = "0m15s" [[triggers]] type = "cron" cron_schedule = "*/5 * * * *" [[triggers]] type = "manual" [[steps]] name = "healthcheck" command = "./healthcheck" [steps.public_repo] repo = "nuonco/actions" branch = "main" directory = "common" [steps.env_vars] ENDPOINT = "https://your-app.{{.nuon.install.sandbox.outputs.public_domain.name}}" METHOD = "HEAD" EXPECTED_STATUS_CODE = "200" ``` ```toml actions/.toml theme={null} # action version = "v1" description = "Your app on AWS." display_name = "Your App" [[actions]] source = "./actions/alb_healthcheck.toml" ``` Once configured and synced, you will see the workflow in the "Actions" tab for your app. Following that example, we can describe the parts of a workflow. ### Timeout Each workflow should have a timeout limiting how long it can run. The maximum allowed timeout is 1 hour. Timeouts must be provided as valid Golang `time.Duration` strings. An action without a timeout gets 5 minutes. A run that exceeds its timeout is stopped and ends with status `timed-out`. Time spent waiting in the install's queue or for the runner to pick up the job does not count toward the timeout. The example workflow will time out after 15 seconds, more than enough time to make a simple HTTP request. ### Action triggers Actions can run manually, on a cron schedule, or in response to install lifecycle events. The supported triggers that are not tied to a specific component are: * `manual` * `cron` * `pre-provision` * `post-provision` * `post-provision-sandbox` * `pre-reprovision` * `post-reprovision` * `pre-deprovision` * `post-deprovision` * `pre-deploy-all-components` * `post-deploy-all-components` * `pre-teardown-all-components` * `post-teardown-all-components` * `pre-deprovision-sandbox` * `post-deprovision-sandbox` * `pre-reprovision-sandbox` * `post-reprovision-sandbox` * `pre-update-inputs` * `post-update-inputs` * `pre-secrets-sync` * `post-secrets-sync` * `role-enabled` * `role-disabled` Each workflow trigger is called at the beginning or end of the workflow. In some cases, such as `pre-provision` or `pre-reprovision` that include a stack-run, the trigger will be called right after the runner is healthy. `post-provision-sandbox` runs immediately after the initial sandbox apply succeeds, before secrets sync, DNS provisioning, and component deployment. `post-provision` runs after the complete install provision workflow, including component deployment. #### Role change triggers The `role-enabled` and `role-disabled` triggers fire when a customer enables or disables an [operation role](/concepts/operation-roles) in their install stack. Use these to run validation, auditing, or setup tasks whenever elevated permissions are granted or revoked. ```toml actions/role_audit.toml theme={null} # action name = "role_audit" timeout = "30s" [[triggers]] type = "role-enabled" [[triggers]] type = "role-disabled" [[steps]] name = "audit" inline_contents = """ #!/usr/bin/env sh echo "Role change detected — running audit" """ ``` The following triggers require a `component_name` field to be set, as they are tied to a specific component: * `pre-deploy-component` * `post-deploy-component` * `pre-teardown-component` * `post-teardown-component` * `pre-enable-component` * `post-enable-component` * `pre-disable-component` * `post-disable-component` The enable and disable triggers run when an input update changes a toggleable component's enabled state. If an action on a `pre-` or `post-` trigger fails, the workflow pauses until someone retries or skips it. After three failed retries, the workflow continues. Actions can be triggered manually, on a cron, or by install events. You can define multiple triggers for an action. The example action defines two triggers. It will run every five minutes, and can also be triggered manually at any time. ```toml actions/.toml theme={null} # action [[triggers]] type = "cron" cron_schedule = "*/5 * * * *" [[triggers]] type = "manual" ``` ### Steps Each step in an action requires a command to be run. You can optionally load a script from a repo and provide env vars to configure the environment the command will run in. The example action is pretty simple, so it has only one step. It loads a curl script from our [open-source repo of commonly-used scripts](https://github.com/nuonco/actions), and sets a few env vars to configure it. ```toml actions/.toml theme={null} # action [[steps]] name = "healthcheck" command = "./healthcheck" [steps.public_repo] repo = "nuonco/actions" branch = "main" directory = "common" [steps.env_vars] ENDPOINT = "https://your-app.{{.nuon.install.sandbox.outputs.public_domain.name}}" METHOD = "HEAD" EXPECTED_STATUS_CODE = "200" ``` ### Running steps in a container image Steps run on the install runner VM by default, which means any tool a step needs beyond the runner's own toolchain has to be installed by the script at run time. Setting `image` on the action runs every step inside a container image you build instead: ```toml actions/db_migrate.toml theme={null} # action name = "db_migrate" timeout = "10m" image = "ghcr.io/acme/migrate-tools:v1.4.0" [[triggers]] type = "manual" [[steps]] name = "migrate" command = "migrate -database \"$DATABASE_URL\" -path /migrations up" ``` Steps can use `command`, `inline_contents`, or a repo (`public_repo` / `connected_repo`). Container actions run on AWS, Azure, and GCP VM install runners. See [Container actions](/guides/container-actions) for the full guide, and [Database migrations](/guides/database-migrations) for a migration example. ## Running and monitoring actions Try with your agent Run an action Action workflow runs can be monitored on the "Actions" tab in each install. You can see a list of all workflow runs, and inspect each run to see logs, what triggered the run, and whether it succeeded or not. # Run adhoc actions Source: https://docs.nuon.co/guides/adhoc-actions Run a one-off command or bash script on an install without defining it in your app's TOML config. Adhoc actions let you run a one-off command or bash script on an install without defining it in your app's TOML config. This is useful for debugging, running database migrations manually, or any other operational task that doesn't need a recurring or lifecycle-triggered workflow. To learn more about actions, see the [Actions](/concepts/actions) concept page. ## Running an adhoc action Navigate to an install in the dashboard and click **Manage** > **Run adhoc action**. You'll be prompted to configure the run: * **Name** (optional) — a display name shown in workflow history. * **Single Command / Bash Script** — choose between a single-line shell command or a multi-line bash script. * **Timeout** — execution timeout in seconds (1–3600, default: 300). * **Environment Variables** — key/value pairs injected into the execution environment. Values support Go templating (see below). * **Role** — the IAM role the runner will assume when executing the action. After submitting, you'll be taken directly to the workflow run to monitor logs and status. ## Templating Both commands and scripts support Go template syntax for injecting install state at execution time. For example: ```bash theme={null} #!/bin/bash curl -f "https://{{.nuon.install.sandbox.outputs.public_domain.name}}/health" ``` Environment variable values also support templates: ```bash theme={null} #!/bin/bash curl -f "$HEALTH_ENDPOINT" ``` ``` HEALTH_ENDPOINT = "https://{{.nuon.install.sandbox.outputs.public_domain.name}}/health" ``` ## Rerunning an adhoc action From the workflow run detail view, you can rerun a previous adhoc action. The form will be pre-populated with the original command, script, environment variables, and role — you can edit before submitting. # AI and App Template Building Source: https://docs.nuon.co/guides/agents/ai-and-apps Use AI agents to generate and manage your Nuon app configuration. You can use any terminal-based AI agent to build Nuon app configurations — instead of writing TOML files by hand, describe your application and let the agent scaffold everything for you. To operate orgs, installs, and workflows after config is synced, connect MCP and use [sample queries](/guides/agents/sample-queries). ## Getting started Clone the [example app templates repo](https://github.com/nuonco/example-app-configs) and start your agent from that directory. The repo includes an `AGENTS.md` file (with a `CLAUDE.md` symlink) that gives any agent the context it needs: links to the Nuon OSS repo, example configs, and sandbox infrastructure references. ```bash theme={null} git clone https://github.com/nuonco/example-app-configs cd example-app-configs claude # or: gemini, amp, etc. ``` When starting the agent, also point it at your own resources — Helm charts, Terraform modules, and any relevant documentation — so it can tailor the config to your stack. > [!TIP] > > Works with any agent: Claude Code, Google Gemini CLI, Amp Code, and others. For agents that don't read `CLAUDE.md`, create a symlink — e.g., `ln -s AGENTS.md GEMINI.md`. ## Other skills Nuon also publishes skills for two narrower tasks: [writing policies](/guides/agents/writing-policies) and [customizing READMEs](/guides/agents/customizing-readmes). # Customizing READMEs Source: https://docs.nuon.co/guides/agents/customizing-readmes Use the write-readme skill to have your coding agent write app and runbook READMEs. The `write-readme` skill teaches your coding agent to write app and runbook [READMEs](/guides/using-readmes). It covers the `` display components and defensive rendering, so a README never fails to render. ## Install the skill If your client is [connected to the Nuon MCP server](/guides/agents/setup), ask for the skill by name and it loads on demand. Otherwise, install the skills from [nuonco/skills](https://github.com/nuonco/skills) using npx. ```sh theme={null} npx skills add nuonco/skills ``` You can also install individual skills. ```sh theme={null} npx skills add nuonco/skills/write-readme ``` ## Try it ``` Load the write-readme skill and add a section to my app README that shows each install's public URL. ``` # Agents Source: https://docs.nuon.co/guides/agents/overview How to use an agent with Nuon. ## Set up A one-time step: register the Nuon MCP server with your client. See the [MCP Install Guide](/guides/agents/setup) for other clients and sign-in details. MCP client [Other clients, project config and custom MCP URLs →](/guides/agents/setup) Use your agent for everything from setup to managing a fleet of BYOC installs. ## Day 0: Write your app config > [!NOTE] > > Read the docs while your agent works: [App Templates](/concepts/apps) Your app config is TOML in git, so any coding agent can write it. * Turn your existing Helm charts, Terraform modules, and container images into components, starting from the [example app templates](/guides/agents/ai-and-apps). * Check each file against the app config schema, then run `nuon apps validate` before you push. * Add [policies](/guides/agents/writing-policies) and install [READMEs](/guides/agents/customizing-readmes) with Nuon's skills. ## Day 1: Install for a customer > [!NOTE] > > Read the docs while your agent works: [Customer Installs](/concepts/installs) * Set the new install's inputs, such as region or instance size. * Watch the install workflow as the stack, runner, sandbox, and components come up. * Review each plan before it applies, and approve it when it looks right. * When a step fails, read its logs, then retry or skip it. ## Day 2 Operations: Operate your customers' installs > [!NOTE] > > Read the docs while your agent works: [Updates and Operations](/concepts/updates-and-operations) * Roll a release out across [install groups](/concepts/app-branches), approving each group's plan. * Deploy a component and confirm it [stays healthy](/guides/health-checks). * Run [runbooks](/guides/runbooks) and [actions](/guides/actions) on a customer's install. * Find which installs are unhealthy or have failing workflows, and why. Anything that changes an install needs writes enabled and [Admin](/concepts/access-control) on your account. See [Sample queries](/guides/agents/sample-queries) for prompts, and the [tools catalog](/guides/agents/tools) for everything your agent can call. # Sample queries Source: https://docs.nuon.co/guides/agents/sample-queries Prompts to paste into an LLM client after Nuon MCP is connected. Copy a prompt into your LLM client after [MCP is connected](/guides/agents/setup). The client should pick tools from the [catalog](/guides/agents/tools); you do not need to name them. Write prompts need `--allow-writes` on the stdio proxy and [Admin](/concepts/access-control) (`org_admin`) on the identity. Replace names like `acme-prod` with your own install, app, or workflow IDs. ## Review org status > [accordion] Find recently-updated installs > > ``` > Which installs have been updated in the last 24 hours? > ``` > [accordion] Find unhealthy installs > > ``` > Are any installs in this org in an unhealthy state? > ``` > [accordion] Find pending approvals > > ``` > Are there any pending workflow approvals in this org? For each one, tell me the install, workflow, and what is waiting. > ``` ## Manage workflows > [accordion] Watch a workflow > > ``` > Watch workflow until it finishes. Tell me when the status changes and when it reaches a terminal state. > ``` > [accordion] Approve or reject a plan > > ``` > Walk through workflow . At each approval, give me a menu: review the current plan diffs, approve this step, reject this step, approve all, or stop. When I ask to review, load every diff page and show them together. When the workflow is waiting on the install stack, show me how to create it, then keep watching. Continue until the workflow finishes. > ``` > > Write. The agent should present each pending approval's `next_actions`. Review loads every `get_approval_plan_diff` page, following `continue_review`, before it replies. It waits for confirmation before `approve_step`, `reject_step`, or `approve_all`. `approve_all` appears only when the workflow is still set to prompt. On the await install stack step, it shows `stack_setup` and keeps watching. Pass `cursor` from each `watch_workflow` response into the next call. > [accordion] Retry a failed step > > ``` > Workflow failed. Tell me which step failed and whether it is retryable. If I say yes, retry it and watch until it finishes. > ``` > > Write. > [accordion] Cancel a workflow > > ``` > Cancel in-progress workflow on install acme-prod. Confirm with me first, then verify it stopped. > ``` > > Write. ## Deploy app versions to installs > [accordion] Review an app branch > > ``` > What's the latest on the default branch for app ? Did the last run succeed, what changed, and how far have install-group deploys gotten? > ``` > [accordion] Review changes in a branch run or PR preview > > ``` > What changed in the most recent run of the default branch for app ? > ``` > > Variants: `In the preview run for PR , what changed?` and `Show progress for branch run , including updated installs and what is left.` > [accordion] Preview a PR or git ref > > ``` > Preview PR for app against install acme-prod. Use plan-only unless I ask you to apply. Follow the returned run_id and workflow_id, then summarize the result. > ``` > > Write. Same as `nuon branches preview`. Ask before `apply`. > > HTTP MCP cannot read the local workspace. To preview local changes, push them to a git branch first, then preview that git ref. > [accordion] See why a build failed > > ``` > Why did the latest build for component fail? Show the git ref and the relevant log lines. > ``` > [accordion] See why a deploy failed > > ``` > Why did the latest deploy on install acme-prod fail? Pull the deploy and workflow step logs and quote the error. > ``` ## Debug installs > [accordion] Open an install summary > > ``` > Show me the summary for install acme-prod. Lead with the applied commit, then components, health, any failing workflows, and inputs. Then give me Health, Resources, Deployments, or an update. Wait for me to choose. > ``` > > Variant without a named install: > > ``` > Show me an install summary. Ask whether to use the currently selected install or pick one from a list, then wait for me to choose. > ``` > > When the prompt names an install, the agent calls `install_summary` once and renders that page before its `next_actions`. It does not call `get_install` for this flow. When the prompt does not name an install, the agent first asks whether to use the CLI-selected install or pick one from `list_installs`. It should not call every inspection tool. After an inspection, Back returns to the summary and Do nothing ends the flow. Make an update opens a second menu before any write is attempted. > [accordion] Review the status of an install > > ``` > What's the status of install acme-prod? Include components, recent workflows, and anything unhealthy. > ``` > [accordion] Find actions you can run for an install > > ``` > What actions can I run on install acme-prod? For each one, say whether it can be triggered manually. > ``` > [accordion] Run an action > > ``` > Run the action on install acme-prod. Confirm the action with me before triggering it, then watch the workflow. > ``` > > Write. Call the returned `next_action`. Each `watch_workflow` returns when a step starts or finishes. After every result, show `step_progress`, then call watch again with `cursor`. A row of watch calls with no progress between them is wrong. > [accordion] See what runbooks you can run for an install > > ``` > Show the runbooks available for install acme-prod. Summarize the steps in each one. > ``` > [accordion] Run a runbook > > ``` > Run the runbook on install acme-prod. Show its inputs and a checklist of every step, all enabled, and let me turn steps off. Ask me before triggering it, then ask if I want to watch the workflow. > ``` > > Write. The `run_runbook` description requires a prompt first: load the install-pinned runbook, confirm inputs, show the step checklist with every step enabled, and let the user turn steps off before triggering. Then ask whether the user wants to watch. Call the returned `next_action` only if they do. Each `watch_workflow` returns when a step starts or finishes. After every result, show `step_progress`, then call watch again with `cursor`. A row of watch calls with no progress between them is wrong. ## Get help writing app config > [accordion] Write a README > > ``` > Write a README for this app. Include a status section and links to the runbooks. > ``` > [accordion] Add a policy > > ``` > Add a policy that blocks public S3 buckets on the rds_cluster component. > ``` > [accordion] Add a component > > ``` > Add a helm component named api to this app config. Load the helm schema first, write components/api.toml with the #helm header, then validate the directory. Do not sync. > ``` > > Read. `get_app_config_schema` returns the file schema. When validating for this MCP server, use the Nuon CLI binary that started it, such as `nuon-dev apps validate` when the server is `nuon-dev`, and the same `-C` value if that server was started with `-C`. Do that only for work done for the MCP server. More on these: [Writing policies](/guides/agents/writing-policies) and [Customizing READMEs](/guides/agents/customizing-readmes). ## Update installs > [accordion] Deprovision or reprovision an install > > ``` > Plan a reprovision of install acme-prod. Do not apply until I confirm. List available roles for reprovision first if I want a non-default IAM role. If I ask to deprovision, require an explicit confirm from me first. > ``` > > Write. Deprovision requires `confirm=true`. `plan_only` does not. After the write, ask whether the user wants to watch. Call the returned `next_action` only if they do. > [accordion] Inspect or update install inputs > > ``` > What are the current inputs on install acme-prod? Propose an update for and wait for my approval before writing it. > ``` > > Sensitive input values are redacted. Do not reuse a redacted value in an update request. # MCP Install Guide Source: https://docs.nuon.co/guides/agents/setup Sign in and register the Nuon MCP server with your LLM client. ## Prerequisites Sign in. This writes the token every setup below reads: ```bash theme={null} nuon auth login # writes api_token to ~/.nuon ``` `nuon agents help` prints this page, checked against your own config. When an agent runs that command, it prints markdown instead. ## Connect **Recommended:** register the stdio proxy so the client runs `nuon agents mcp --allow-writes`. Token and org stay in `~/.nuon`, so nothing secret goes into the client config. The proxy derives its URL from the configured API hostname (`api.` becomes `mcp./mcp`). ### Setup (stdio) Nuon MCP uses stdio. The client starts a local process and exchanges MCP messages on that process's standard input and output. Every MCP connection should spawn `nuon` with arguments `agents`, `mcp`, and `--allow-writes`. > [tab] Claude Code > > ```bash theme={null} > claude mcp add --transport stdio nuon -- nuon agents mcp --allow-writes > ``` > > Or `.mcp.json` in a project: > > ```json theme={null} > { > "mcpServers": { > "nuon": { > "command": "nuon", > "args": ["agents", "mcp", "--allow-writes"] > } > } > } > ``` > [tab] Cursor > > Cursor has no `mcp add`. Save this as `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project), then enable it: > > ```json theme={null} > { > "mcpServers": { > "nuon": { > "command": "nuon", > "args": ["agents", "mcp", "--allow-writes"] > } > } > } > ``` > > ```bash theme={null} > agent mcp enable nuon > ``` > [tab] Amp > > ```bash theme={null} > amp mcp add nuon -- nuon agents mcp --allow-writes > > # this workspace only > amp mcp add nuon --workspace -- nuon agents mcp --allow-writes > ``` > > Or `~/.config/amp/settings.json` (user) / `.amp/settings.json` (workspace). Amp's key is `amp.mcpServers`: > > ```json theme={null} > { > "amp.mcpServers": { > "nuon": { > "command": "nuon", > "args": ["agents", "mcp", "--allow-writes"] > } > } > } > ``` > [tab] Other > > Use that client's MCP docs for the file path and JSON key. Point it at the `nuon` binary with arguments `agents`, `mcp`, and `--allow-writes`. ### Overriding the MCP URL The proxy derives its upstream URL from `api_url` in your CLI config when the hostname starts with `api.` or `app.` (`https://api.nuon.co` and `https://app.nuon.co` both resolve to `https://mcp.nuon.co/mcp`). Pass `--url` when the MCP URL does not follow from the API URL, for example a self-hosted or Nuon BYOC control plane, or any deployment where the two hostnames differ. To change the name in the client's MCP list, pass `--name`. Put those flags on the command the client runs, next to `--allow-writes`: ```bash theme={null} nuon agents mcp --allow-writes --url https://mcp.example.nuon.co/mcp --name nuon-example claude mcp add --transport stdio nuon -- nuon agents mcp --allow-writes --url https://mcp.example.nuon.co/mcp --name nuon-example amp mcp add nuon -- nuon agents mcp --allow-writes --url https://mcp.example.nuon.co/mcp --name nuon-example ``` For a client configured by file, extra flags go inside `args`. Use that client's JSON key (examples above): ```json theme={null} { "mcpServers": { "nuon": { "command": "nuon", "args": ["agents", "mcp", "--allow-writes", "--url", "https://mcp.example.nuon.co/mcp"] } } } ``` A non-default CLI config (`nuon -C /path/to/config agents mcp --allow-writes`) carries its own token, org, and `api_url`. Put `-C` and `--allow-writes` on the registered command (in `args` when the client is configured by file). Run `nuon agents help` to confirm which MCP URL resolves before registering. After the client is connected, paste a first prompt from [Sample queries](/guides/agents/sample-queries). # Tools Source: https://docs.nuon.co/guides/agents/tools Control-plane tools available to LLM clients via MCP. Writes are hidden from the stdio proxy unless `--allow-writes` is set. Setup examples always include that flag. HTTP MCP lists writes when the identity has [Admin](/concepts/access-control) (`org_admin`). Timestamps in tool JSON are UTC (Zulu) RFC3339 and end in `Z` (for example `2026-09-04T04:23:00Z`). If you name a calendar day, clock time, or age, convert that UTC instant to the local machine’s timezone first. Do not say “today” or “yesterday” from the UTC date digits. That calendar day can be a day ahead of local time. List tools return a page (default 20, max 100) plus `has_more`. They do not keep fetching until the full set is loaded. If `has_more` is true, tell the user there are more results and only pass `offset=next_offset` when they need the next page. `get_install_inputs` redacts values for inputs marked sensitive. It is safe to use for inspection, but do not use its redacted values to construct an update. For prompts to paste into a client, see [Sample queries](/guides/agents/sample-queries). To connect, see [MCP Install Guide](/guides/agents/setup). For skills covering specific tasks, see [Writing policies](/guides/agents/writing-policies) and [Customizing READMEs](/guides/agents/customizing-readmes). ## Catalog | Domain | Read | Write | | - | - | - | | Orgs | `whoami`, `list_orgs` | | | Skills | `list_skills`, `load_skill` | | | Apps | `list_apps`, `get_app`, `get_app_config_schema`, `list_app_branches`, `get_app_branch`, `list_app_branch_runs`, `get_app_branch_run`, `list_app_branch_preview_sources` | `preview_app_branch` | | Components | `list_components`, `get_component`, `list_builds`, `get_build` | | | Installs | `list_installs`, `install_summary`, `get_install`, `get_install_readme`, `get_install_health`, `list_install_resources`, `list_install_components`, `get_install_inputs`, `list_available_roles`, `list_workflows`, `get_workflow`, `get_workflow_step`, `watch_workflow`, `get_pending_approvals`, `get_approval_plan_diff`, `list_deploys`, `get_deploy` | `update_install_inputs`, `deploy_install_components`, `reprovision_install`, `reprovision_sandbox`, `deprovision_install`, `deprovision_sandbox`, `approve_step`, `approve_all`, `reject_step`, `retry_step`, `skip_step`, `cancel_workflow` | | Actions | `list_install_actions`, `get_action` | `run_action` | | Logs | `get_workflow_step_logs`, `get_deploy_logs`, `get_build_logs` | | | Runbooks | `list_runbooks`, `get_runbook` | `run_runbook` | ## Organization Org-scoped tools read `X-Nuon-Org-ID` on that request. `whoami` and `list_orgs` work without the header. `whoami` returns the account, the org on that request, and an org count. `list_orgs` returns only orgs the account belongs to. It is paged and accepts `query` to match a name or id. The stdio proxy sends the CLI config org as `X-Nuon-Org-ID`. Pass `x_nuon_org_id` on a tool call to use a different org for that request. The proxy removes `x_nuon_org_id` before forwarding and does not store it. Direct HTTP clients set `X-Nuon-Org-ID` themselves. ## Install summary `install_summary` is the entry point for investigating or updating one install. Do not use `get_install` for that request. If the user did not name an install, ask whether to use the CLI-selected install or pick one from `list_installs`, and wait for the answer. When no install is selected, go straight to the list. A named install skips that question. Render the summary like the install detail page, in this order: identity, applied commit (and the expected commit when it differs), each component, health, any failing workflows, then inputs grouped by name with their redacted values. Present `next_actions` after that page and wait. Health, Resources, and Deployments match the detail-page tabs. Inspect failing workflow appears only when a workflow is failing. The Make an update choice contains a second menu. Its choices prepare an existing write flow by loading current inputs or available IAM roles; opening either menu does not mutate the install. After an inspection, offer Back to install summary or Do nothing. Back calls `install_summary` again. ## App config `get_app_config_schema` returns the file schema. When validation is done for this MCP server, use the Nuon CLI binary that started it, for example `nuon-dev apps validate` when the server command is `nuon-dev`, and the same `-C` value when that server was started with `-C`. That match is only for local CLI work done for the MCP server. There is no MCP tool that accepts config file contents. ## Fallback When you need the HTTP API calls you can make, fetch the OpenAPI schema at `{api host}/oapi/v3` (for example `https://api.nuon.co/oapi/v3`). Use an MCP tool when one covers the operation. When none does, use the Nuon CLI that started this server, including the same `-C` value. When the CLI has no command for it, use `nuon api --raw` if that command is already available. Ask before installing the api extension if missing. Call the HTTP API with curl only as a last resort. The stdio proxy repeats this in its server instructions, with the binary, `-C`, and schema URL filled in. ## Writes Mutating tools are prefixed with `WRITE OPERATION:` in their descriptions. The stdio proxy hides them unless you pass `--allow-writes`. The identity still needs [Admin](/concepts/access-control) (`org_admin`), not Read-only. ### Destructive tools These tools carry the MCP `destructiveHint` annotation. The annotation is advisory: your client decides whether to prompt. | Tool | Requires `confirm: true` | | - | - | | `deprovision_install` | Yes | | `deprovision_sandbox` | Yes | | `reprovision_install` | No | | `reprovision_sandbox` | No | | `deploy_install_components` | No | | `approve_step` | No | | `reject_step` | No | | `cancel_workflow` | No | | `run_runbook` | No | | `preview_app_branch` | No | The two deprovision calls are rejected until the agent passes `confirm: true`, and their descriptions tell it to ask you first. `plan_only: true` is exempt, since nothing is applied. You cannot turn this off: `confirm` is an argument on those two tools, not a proxy flag or a client setting. Write tools that take `role` use an IAM role name from the install's stack. Call `list_available_roles` first (with the matching `operation_type` / `principal_type`) and pass a returned `name`, or omit `role` to use the default. A role the install cannot assume is rejected before any workflow starts, and the error lists the names that are available. # Writing policies Source: https://docs.nuon.co/guides/agents/writing-policies Use the write-rego-policy skill to have your coding agent write OPA/Rego policies for your app template. The `write-rego-policy` skill teaches your coding agent to write OPA/Rego [policies](/concepts/policies) in your app config's `policies/` directory. It covers every policy type, when to warn versus deny, and testing a policy before you ship it. ## Install the skill If your client is [connected to the Nuon MCP server](/guides/agents/setup), ask for the skill by name and it loads on demand. Otherwise, install the skills from [nuonco/skills](https://github.com/nuonco/skills) using npx. ```sh theme={null} npx skills add nuonco/skills ``` You can also install individual skills. ```sh theme={null} npx skills add nuonco/skills/write-rego-policy ``` ## Try it ``` Load the write-rego-policy skill and help me add a policy that blocks public S3 buckets. ``` # App branch migration Source: https://docs.nuon.co/guides/app-branch-migration Migrate your app template from Nuon CLI-driven syncs to App Branches and Install Groups. App Branches were introduced in [changelog 040](/updates/040-app-branches). Use this guide to migrate from `nuon apps sync` to app branches and install groups. *Shortcut: Ask Nuon to enable the feature flag, then run `nuon apps sync`. The CLI walks you through the migration.* ## What's changing Previously, running `nuon apps sync` validated, synced, and built your app template directly from the Nuon CLI. With App Branches, Nuon directly fetches your app template Git repository and syncs it to the Nuon control plane. This unlocks features like automated previews and install rollouts. ## Migration Steps ### Step 1: Create Your App Branch 1. Add a `branch.toml` to your app template. 2. Sync it to the Nuon control plane with `nuon branches sync`. For `branch.toml` examples and how to write one, see the [App Branches docs](/guides/app-branches#write-a-branch-config). ### Step 2: Automations and Triggers Nuon automatically starts the first branch run on sync, which pulls the app template and builds the sandbox and components. Confirm that run succeeds. You can now trigger updates to your installs using: * Git pushes * Git tags * Pull Request (PR) labels * Manual runs Automate these triggers using a GitHub Webhook or the [GitHub Action (GHA)](/guides/github-actions#trigger-a-branch-run-from-your-workflow). ### Step 3: Create Install Groups Install rollouts were previously managed on an install-by-install basis using the Nuon CLI or dashboard. With App Branches, installs are categorized into Install Groups which are vendor-defined ways to rollout upgrades to similar installs. 1. Add [labels](/guides/install-configs#labeling-installs) to your installs or [install configs](/guides/install-configs#install-configs) so they join an install group on the app branch. 2. Push to the app branch’s tracked git branch to roll the update out to those installs. For how to structure Install Groups, see the [App Branches docs](/concepts/app-branches#structuring-branches-and-install-groups). ### Step 4: Setup Previews Validate changes on your app template’s git branch before merging them into the branch your app is configured to use. When you open a pull request or create a feature branch, you can preview changes in three distinct modes: 1. Validate and Build: Validates your config and builds your components. 2. Plan Only: Previews deploys and updates against a single test install without applying changes. 3. Apply: Runs and executes changes on a single test install. For how to set up Previews, see the [App Branches docs](/guides/app-branches#previews). ## Next Steps & Advanced Setup Now that your base migration is complete, expand your setup with these advanced features: * Set up [GitHub Actions](/guides/github-actions#trigger-a-branch-run-from-your-workflow) for Branch Syncing * Automate deployment group rollouts with git pushes, tags, or PR labels * Set up [pull request previews](/guides/app-branches#previews) that comment and set checks on your PRs # Configure app branches Source: https://docs.nuon.co/guides/app-branches Connect a git branch to your app template, organize installs into install groups, and roll changes out across your fleet from a git push. This guide walks through setting up an [app branch](/concepts/app-branches) on an existing app template: writing the branch config, choosing how to structure branches and install groups, syncing settings into Nuon, triggering runs, and approving them. ## Prerequisites * An [app template](/concepts/apps) already in Nuon, with at least one install. * The [Nuon CLI](/cli) installed and authenticated (`nuon auth login`). * For pull request previews, the **Nuon GitHub App connected in your org for the repository's owner**. See [connecting a repository](/guides/vcs). ## Write a branch config Add a `branch.toml` at the root of your app config directory (next to `metadata.toml`), **or** put one file per branch under `branches/` (for example `branches/main.toml`). You cannot use both layouts in the same app directory. ```toml branches/main.toml theme={null} name = "main" [connected_repo] repo = "acmeco/my-app-config" directory = "." branch = "main" [run] mode = "push" [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] env = "prod" ``` ### Key fields * **The repo block.** Use `[connected_repo]` for a repository connected through the Nuon GitHub App, or `[public_repo]` for a public one. Exactly one of the two. `repo` is typically `owner/name` (for example `acmeco/my-app-config`). `directory` is the path to your app config within the repo, or `"."` at the root. * **`name`** is the branch's name in Nuon (from this key, not the filename). Pass it to `nuon branches trigger` and related commands. * **Install group order and default.** Lower `order` deploys first. When you declare any `install_groups`, **exactly one** install group must set `default = true` (usually your catch-all / production wave). Sync fails if none or more than one is default. * **`[preview]` (optional but recommended).** Defaults for preview runs only (pull request or manual CLI/dashboard). Use them to test a change before it merges into the tracked branch. Not used by fleet runs. See [Previews](#previews). Full field list: [branch config reference](/config-ref/branch). ### Control when the branch runs Omit `[run]` (or set `mode = "push"`) to run on every qualifying push to the tracked branch. Other modes: ```toml theme={null} [run] mode = "on_tag" tag_prefix = "foobar/" ``` `on_tag` starts a run when a tag matching `tag_prefix` lands on that branch's history. ```toml theme={null} [run] mode = "on_github_label" github_label = "deploy-cadence-daily" ``` `on_github_label` starts a run when a merged pull request carries that exact label. It requires `[connected_repo]`. Use `manual_only` when nothing automatic should start a fleet run. Manual triggers (`nuon branches trigger`, dashboard) remain available in every mode. Full trigger table: [What triggers an app branch run](/concepts/app-branches#what-triggers-an-app-branch-run). ### One branch file or several Use either a root `branch.toml` or `branches/*.toml`, not both. The `name` key inside each file is the Nuon app branch name, not the filename. Use `branches/` when the app has more than one app branch (for example one per snowflake customer, or cadence cohorts). Which pattern to pick is under [Structure branches and install groups](#structure-branches-and-install-groups) and in [concepts](/concepts/app-branches#structuring-branches-and-install-groups). ## Structure branches and install groups Pick a layout that matches how your customers take updates. Labels on **install configs** are what install groups select; branch files only declare the selectors. Install group names are yours (for example `stage`, `production`, `uat`, `canary`, `preview`); sketches below use `stage` then `production`. ### Snowflake customers Use one app branch per customer to give each its own approvals and cadence. Install groups on that branch define environment waves: ```toml branches/acme.toml theme={null} name = "acme" [connected_repo] repo = "acmeco/my-app-config" directory = "." branch = "main" [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] customer = "acme" env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] customer = "acme" env = "prod" ``` Each customer's installs carry `customer` + `env` labels in their install TOMLs. ### Homogeneous fleet One app branch, many installs that share the same app config (for example single-tenant customers in the vendor's cloud). Install groups are environment waves across the fleet: ```toml theme={null} [[install_groups]] name = "stage" order = 1 [install_groups.label_selector] env = "stage" [[install_groups]] name = "production" order = 2 default = true [install_groups.label_selector] env = "prod" ``` ### Cadence cohorts Two (or more) branches of the **same** app and repo: fast customers on every push, slower customers on a gated mode. * `branches/main.toml`: `[run] mode = "push"`, with install groups for installs labeled `cadence = "continuous"`. * `branches/monthly.toml`: `[run] mode = "on_tag"` (or `on_github_label` / `manual_only`), install groups for `cadence = "monthly"`. Remember: two branches of one app cannot share an identical `label_selector`, and an install can sit on only one branch. ## Sync the branch config Use **`nuon branches sync`** to reconcile branch settings into Nuon. Do not use `nuon apps sync` for branch settings: ```sh theme={null} nuon apps select nuon branches sync --file branch.toml --confirm # or, for a directory of branch files: nuon branches sync --file branches/ --confirm ``` This creates or updates the branch in Nuon: install groups, and any `[run]` / `[preview]` you set. The first sync for a branch (with a connected or public repo) also starts an app branch run that fetches the tracked ref, syncs the app config, and builds OCI artifacts for components and the sandbox (when configured). With no installs on the branch yet, that run stops after the build. Later syncs update branch settings; shipping config to installs is a [branch run](#trigger-a-run) from a push, tag, label, or `nuon branches trigger`. Confirm: ```sh theme={null} nuon branches list nuon branches get --branch-id main ``` ## Label your installs Pin each install to a branch with `app_branch`, and set the labels install groups select. Prefer install config files: ```toml installs/customer-acme.toml theme={null} name = "customer-acme" app_branch = "main" [labels] env = "prod" ``` Changing `app_branch` moves the install and applies the branch's latest non-preview run. Omitting it leaves the install's current branch unchanged. Apply them: ```sh theme={null} nuon installs sync -d installs/ --app-id --confirm ``` Or set labels imperatively: ```sh theme={null} nuon installs labels set --install-id customer-acme env=prod nuon installs labels list --install-id customer-acme nuon installs list --labels env=prod --limit 200 ``` All labels passed to `--labels` must match (same AND semantics as an install group's `label_selector`). ## Trigger a run Once the branch exists, a qualifying **Commit pushed** to the tracked branch starts a run that fetches that commit's app config, runs **`building components and sandbox`**, then plans and deploys each install group: ```sh theme={null} git commit -am "bump chart version" git push origin main ``` You can also start a run without waiting for a push: ```sh theme={null} # Runs against the tracked branch's latest commit. nuon branches trigger --branch-id main # Rebuild every component instead of only what changed. nuon branches trigger --branch-id main --force # Deploy a specific git source (PR number, tag name, or commit SHA). nuon branches trigger --branch-id main --run-type commit --run-ref abc1234 nuon branches trigger --branch-id main --run-type tag --run-ref v1.2.3 nuon branches trigger --branch-id main --run-type pr --run-ref 42 ``` By default the trigger uses the tracked branch's latest commit. With `--run-type` (`pr`, `tag`, or `commit`) and a matching `--run-ref`, it deploys that source instead. To test a committed ref without starting a fleet run, use `nuon branches preview` as described in [Previews](#previews). The CLI does not send uncommitted local files to an app branch run. Watch runs with `nuon branches runs --branch-id main` (workflow TUI) or in the dashboard **Branches** view. See the [TUI reference](/tui). ### What a run rebuilds A run rebuilds what changed in the files Nuon watches. Some changes live outside those files, so a run can't see them: | What changed | What rebuilds it | | - | - | | TOML files, or files they reference such as Helm values | The next branch run, automatically | | Source in another git repository, such as a Terraform module or Helm chart | A forced rebuild | | Source in your app repository whose config did not change | A forced rebuild, after you push the branch | > [!TIP] > > When a component's source lives in your app repository, set its `branch` to the branch your > [branch file](#write-a-branch-config) tracks. Each branch run then builds the component from that run's commit. With a > different `branch`, the component builds from the latest commit on that branch instead. ```toml branches/main.toml theme={null} [connected_repo] repo = "acmeco/my-app" directory = "." branch = "main" ``` ```toml components/api.toml theme={null} [connected_repo] repo = "acmeco/my-app" directory = "api" branch = "main" # same branch as branches/main.toml ``` ## Approve or skip an install group A run pauses at each install group's plan step until someone acts on it. In the dashboard, open the app's **Branches** view, then the run, and you will see the **Deployment plan** with each install group's steps. For each install group: * **Approve install group plan:** read the per-install diff, then approve to let the install group's deploy step run. * **Skip install group:** move the rollout past this install group's deploy without applying it. The run stops at the next install group's plan step, so each install group is approved or skipped on its own. By default the plan waits for approval. Set `auto_approve_on_policies_passing = true` on an install group to approve automatically when policy checks pass. You can also subscribe to [webhook](/guides/webhooks) events and approve through the API. ## Previews Previews are optional but recommended for testing a change before it merges into the tracked branch. A branch can roll out from push, tag, label, or manual trigger with no `[preview]` block. `[preview]` sets defaults for **preview runs** only. A preview never rolls install groups. It shares the early steps of a fleet run (fetch, sync config, build), then plans or applies against a single **preview target install** only: ```mermaid theme={null} flowchart TD start["PR or nuon branches preview"] --> fetch["fetch commit"] fetch --> config["fetch app config"] config --> build["building components and sandbox"] build --> plan["plan against preview target"] plan -->|"optional: apply mode"| apply["apply to preview install only"] ``` `build-only` stops after build, `plan-only` after plan, and `apply` continues to the preview install. Fleet runs (push, tag, label, `nuon branches trigger`) are separate and do not run `[preview]`. A preview run starts in one of two ways: | How it starts | What happens | | - | - | | **Pull request** | Open or update a PR into the tracked branch (head is usually your feature branch). Uses `[preview]` defaults. Comments and statuses need the GitHub App. | | **Manual** | CLI or dashboard (`nuon branches preview`) against a committed ref or PR number — including a branch that is not the tracked branch. | For most preview modes you need a **`[preview]` block** that sets depth and (when required) the target install. See [connecting a repository](/guides/vcs) for the GitHub App. ### Modes | Mode | What it does | | - | - | | `build-only` | Build and validate. No install target. | | `plan-only` | Build and plan against the preview target. Default when the block is present and mode is omitted. | | `apply` | Build, plan, and apply to the preview target install only. | | `none` | Turn automatic PR previews off. | ### `[preview]` fields | Field | Purpose | | - | - | | `mode` | `none`, `plan-only`, `apply`, or `build-only` | | `label_selector` | Labels that select the preview install (preferred) | | `install_name` | Preview install by name (resolved at sync) | | `install_id` | Preview install by ID | | `set_statuses` | Post GitHub commit statuses for preview runs (default true) | | `comment` | Comment on the pull request with preview results (default true) | | `ignore_drafts` | Skip draft PRs until ready for review (default true) | | `react` | Add a GitHub eyes reaction when a preview starts (default true) | Use **one** of `label_selector`, `install_name`, or `install_id`. For `plan-only` and `apply`, a target is required. `build-only` and `mode = "none"` do not take a target install. ```toml theme={null} [preview] mode = "plan-only" set_statuses = true comment = true ignore_drafts = true react = true [preview.label_selector] preview = "true" ``` Create a dedicated preview install and sync it before you rely on `apply`. ### Start a preview **Manual** (CLI or dashboard), with an optional `--mode`: ```sh theme={null} nuon branches preview --branch-id main --git-ref my-feature --mode plan-only nuon branches preview --branch-id main --git-ref my-feature --mode apply nuon branches preview --branch-id main --git-ref my-feature --mode build-only ``` **Pull request:** open or update a PR into the tracked branch (starts automatically from `[preview]`), or preview by number: ```sh theme={null} nuon branches preview --branch-id main --pr-number 123 ``` After you connect the GitHub App once for an owner, every branch tracking a repo under that owner can post PR feedback. A `[public_repo]` branch is fine if the owner is connected. ## Multiple apps in one repository In a repository with several app configs (for example `example-app-configs`), set `ignore_changes_regex` so this branch only runs when something under *its* tree changed. The value is an RE2 pattern matched against **every** changed file path; if the entire changed set matches, the run is not attempted. ```toml theme={null} # Skip runs when every changed path is outside this app's directory (here: my-app/). ignore_changes_regex = "^([^m]|m([^y]|y([^-]|-([^a]|a([^p]|p[^/]))))).*" send_statuses_on_ignore = true ``` `send_statuses_on_ignore` posts a successful commit status when a run is skipped so a required check does not block the PR. ## Roll back a change Every config change to an install is recorded as an app config version, and any earlier version can be applied again, to one install or to a whole install group, with a plan in front of it. The [rollback guide](/guides/rollback-install-config) walks through the exact calls. ## Command reference | Command | What it does | | - | - | | `nuon branches sync --file ` | Reconcile branch TOML (file or directory) into Nuon. Directory mode can propose deleting remote branches missing locally; a single file never deletes others. | | `nuon branches list` | List the selected app's branches. | | `nuon branches get --branch-id ` | Show a branch, including install groups. | | `nuon branches trigger --branch-id ` | Start a real branch run. Add `--force` to rebuild every component. Add `--run-type` (`pr`, `tag`, or `commit`) and `--run-ref` to deploy a specific source. | | `nuon branches preview --branch-id --git-ref --mode plan-only` | Preview a committed Git ref without starting a fleet rollout. Use `--pr-number` for a pull request; `--mode` also accepts `apply` or `build-only`. | | `nuon branches runs --branch-id ` | List runs and open one in the workflow TUI. | | `nuon branches delete --branch-id --confirm` | Delete a branch. | | `nuon installs sync -d --app-id ` | Sync install configs (labels, inputs) for an app. | | `nuon installs labels set --install-id k=v ...` | Set labels used by install group selectors. | | `nuon installs list --labels k=v` | Preview which installs a selector matches. | `nuon apps branches` is a deprecated alias of `nuon branches`. ## Troubleshooting **Sync failed: one install group must be default.** When `install_groups` is non-empty, set `default = true` on exactly one install group. **Sync failed: more than one default.** Only one install group may be default. **The branch synced but has no install groups.** The branch config is missing its `[connected_repo]` / `[public_repo]` block, or install groups were omitted. Add them and `nuon branches sync` again. **A push did not start a run.** Check `[run].mode`, that `branch` matches the ref you pushed, and `ignore_changes_regex` (a change outside this app's tree in a shared repo is skipped on purpose). **The pull request has no Nuon comment.** Your org has no GitHub App connection for that repository's owner, or `[preview].comment` is false. The preview run itself can still succeed. **Preview sync failed needing an install target.** For `plan-only` or `apply`, set `preview.label_selector`, `install_name`, or `install_id`, and sync that install first. **An install group deployed to nothing.** No install carried the selector's labels. Check with `nuon installs list --labels ...`. ## Next steps > [card] [How app branches work](/concepts/app-branches) > > Triggers, structure patterns, and install version history. > [card] [Walkthrough](/get-started/app-branches-walkthrough) > > Roll a change through the `eks-simple` example app end to end. > [card] [Roll back an install](/guides/rollback-install-config) > > Re-apply a previous config version to an install or a whole install group. > [card] [Branch config reference](/config-ref/branch) > > Every field in a branch file. > [card] [Webhooks](/guides/webhooks) > > React to branch runs from your own systems. # Building Nuon Apps Source: https://docs.nuon.co/guides/building-nuon-apps Create your first app with the Nuon CLI and get to a valid config. The [CLI](/cli) is the primary interface for managing apps. To see all available commands, run `nuon apps --help`. ## Creating an App Create a directory for your app config files in a GitHub repository, then create the app: ```sh theme={null} mkdir your-app cd your-app nuon apps create --name=your-app ``` The directory can have any name. The app branch's `directory` setting tells Nuon where to find it. `nuon apps create` also selects the new app. ## Adding the Required Files A valid app needs these three files. The [sandbox](/concepts/sandboxes) and [runner](/concepts/runners) are part of Nuon's [install infrastructure](/concepts/installs). ```toml metadata.toml theme={null} # App details. Only the config version is required. version = "v2" ``` ```toml sandbox.toml theme={null} # Base infrastructure for each install, such as a VPC and cluster terraform_version = "1.11.4" [public_repo] directory = "." repo = "nuonco/aws-min-sandbox" branch = "main" ``` ```toml runner.toml theme={null} # The runner that deploys into each customer's cloud account runner_type = "aws" ``` Then add a [component](/concepts/components) for each Helm chart, Terraform module, or container image you deploy. The [configuration reference](/config-ref) covers every file and field. ## Validating the Config Check the directory before you push: ```sh theme={null} nuon apps validate ``` It looks up the app by the directory's name, so it works when the directory and the app share a name. ## Selecting an App Select an app to make it the default for all app commands, avoiding the need to pass `-a` each time: ```sh theme={null} nuon apps select nuon apps get # show the selected app nuon apps deselect # clear the selection ``` ## Common Commands ```sh theme={null} nuon apps list # list all apps nuon apps get # get info about the selected app nuon apps rename --name=new-name # rename an app ``` Next, ship your config with an app branch. See [Multiple App Configurations](/guides/multiple-app-configurations). # Nuon BYOC Source: https://docs.nuon.co/guides/byoc A single tenant instance of Nuon, that you own Nuon BYOC is a single-tenant Nuon control plane that runs in your own AWS or GCP account. Nuon operates it remotely: a BYOC runner in your account polls Nuon for jobs, then installs and updates your Nuon instance. Your installs still run in your customers' AWS, Azure, or GCP accounts. If Nuon must have no path into your account, see [Nuon Self-Hosted](/guides/self-hosted). Nuon BYOC requires a paid license. [Contact sales](https://nuon.co/contact-sales) to get started. ## Architecture We support running Nuon BYOC on AWS and GCP. The shape of the architecture is the same across platforms, but using the services native to each cloud. ![Three stacked layers: Nuon at the top; your cloud account (AWS or GCP) in the middle, containing a BYOC Runner and your Nuon instance; and your customers' clouds (AWS, Azure, or GCP) at the bottom, containing an Install Runner and Installs. The BYOC Runner polls Nuon for jobs and installs and updates your Nuon instance. The Install Runner polls your Nuon instance for jobs, pulls artifacts, and deploys installs.](https://mintcdn.com/nuoninc/r6pVmUGhxSCMYE6x/images/guides/byoc/byoc-overview.png?fit=max\&auto=format\&n=r6pVmUGhxSCMYE6x\&q=85\&s=174b2796e2ba805c535aa1cef2587649) > [tab] AWS > > * **Compute:** EKS cluster in a dedicated VPC > * **Databases:** RDS for the Nuon control plane and Temporal > * **Artifacts and storage:** ECR for OCI artifacts, S3 for object storage > > **Before you start** > > * Admin permissions in the account > * Quota headroom for VPCs, Elastic IPs, and Internet Gateways > * A paid account. Nuon's resource requirements exceed AWS Free Tier. > [tab] GCP > > * **Compute:** GKE cluster in a dedicated VPC network > * **Databases:** Cloud SQL for the Nuon control plane and Temporal > * **Artifacts and storage:** Artifact Registry for OCI artifacts, Cloud Storage for object storage > > **Before you start** > > Enable these APIs in your project: > > * **Compute and Kubernetes:** Compute Engine, Kubernetes Engine > * **Data:** Cloud SQL Admin, Artifact Registry > * **Networking:** Cloud DNS, Service Networking, Certificate Manager > * **Project, identity, and secrets:** Cloud Resource Manager, IAM Service Account Credentials, Secret Manager # BYOC architecture patterns Source: https://docs.nuon.co/guides/byoc-architecture-patterns Which BYOC architectures Nuon supports for enterprise customers, and how to build each one. Use this page to match an enterprise customer's requirement to an architecture you can build with Nuon. Each pattern lists what the customer asks for, how to build it, and a reference app in [`nuonco/example-app-configs`](https://github.com/nuonco/example-app-configs). Every pattern shares the same base: * The customer deploys a [stack](/concepts/stacks) with their own credentials. It creates the [runner](/concepts/runners) and the [operation roles](/concepts/operation-roles) it uses. * The runner connects outbound only, so you need no cross-account access. The customer can [turn it off](/guides/runner-kill-switch) at any time. * [Secrets](/concepts/app-secrets) stay in the customer's cloud secret manager, and [break glass roles](/concepts/break-glass) cover incidents. * Customers can [export runner audit logs](/guides/export-runner-audit-logs) to their own logging backend. For the full security model, see [Security](/security). ## Supported patterns ### Dedicated account (full BYOC) **The customer asks:** "Run your product in our AWS, Azure, or GCP account, but you operate it." **Build it:** Use the [stand-alone VPC](/concepts/stacks/stand-alone-vpc) stack, which creates a new VPC for the [install](/concepts/installs). The [sandbox](/concepts/sandboxes) creates the base infrastructure, such as a Kubernetes cluster. Your [components](/concepts/components) deploy your Helm charts, Terraform modules, Kubernetes manifests, and container images on top. **Reference apps:** [`eks-simple-auto`](https://github.com/nuonco/example-app-configs/tree/main/eks-simple-auto) (AWS), [`gke-simple`](https://github.com/nuonco/example-app-configs/tree/main/gke-simple) (GCP), [`aks-simple`](https://github.com/nuonco/example-app-configs/tree/main/aks-simple) (Azure). See [platform support](/platform-support/introduction) for what each cloud supports. ### Existing customer VPC **The customer asks:** "Deploy into our VPC and subnets." **Build it:** Use the [customer VPC](/concepts/stacks/customer-vpc) stack. On AWS, the Nuon-generated CloudFormation template accepts the customer's VPC and subnet IDs, and the sandbox attaches to those subnets. The default Terraform stack modules always create a new VPC, so Terraform deployments of this pattern need a fork of [`install-stacks`](https://github.com/nuonco/install-stacks). See [customizing Terraform stack templates](/guides/customizing-terraform-stack-templates). **Reference app:** [`byo-vpc`](https://github.com/nuonco/example-app-configs/tree/main/byo-vpc). ### Existing customer Kubernetes cluster **The customer asks:** "Install into our shared cluster," or your product is an agent or operator that needs in-cluster access. **Build it:** Start from the customer VPC pattern, then add [custom nested stacks](/guides/custom-nested-stacks) that give the runner access to the cluster. See [customer cluster](/concepts/stacks/customer-cluster). **Reference app:** [`byo-eks`](https://github.com/nuonco/example-app-configs/tree/main/byo-eks). ### Agent or worker next to customer data (hybrid data plane) **The customer asks:** "Keep our data in our network. Your hosted product can still manage the work." **Build it:** Your hosted product stays the control plane for your users. Package the agent or worker that touches customer data as a [Helm chart](/guides/helm-chart-components), [Kubernetes manifest](/guides/kubernetes-manifest-components), or [container image](/guides/container-image-components) component, and Nuon installs and upgrades it in each customer account. To run it in a cluster the customer already has, use the [existing cluster pattern](#existing-customer-kubernetes-cluster). **Reference apps:** [`datadog-operator`](https://github.com/nuonco/example-app-configs/tree/main/datadog-operator) (operator in the customer's cluster), [`ecs-simple`](https://github.com/nuonco/example-app-configs/tree/main/ecs-simple) (ECS). ### Self-hosted package you want to operate for the customer **The customer asks:** "We run your Helm chart today and own the upgrades. We want you to run it, in our account." **Build it:** Wrap your existing Helm chart as a [Helm chart component](/guides/helm-chart-components). Add [Terraform components](/guides/terraform-components) for what the chart depends on, such as a database or bucket. You then ship changes by pushing to git, and [app branches](/concepts/app-branches) roll them out with plan review and approvals. See [updates and operations](/concepts/updates-and-operations). ### Single-tenant per customer **The customer asks:** "We need a dedicated, isolated deployment." **Build it:** Every install is its own stack, sandbox, and set of components in one cloud account. Install the same [app template](/concepts/apps) into an account you own for a dedicated hosted tier, or into the customer's account for BYOC. See [creating installs](/guides/install-configs). ### Data residency and region pinning **The customer asks:** "Our data must stay in a specific region." **Build it:** Each install is created in one region (`nuon installs create --region ` in the [CLI](/cli)), and its resources are created in the customer's account in that region. To block changes that would create resources elsewhere, add a [policy](/concepts/policies). Policies can check Terraform plans before they deploy. See [configuring policies](/guides/configuring-policies). **Reference app:** [`policies-demo`](https://github.com/nuonco/example-app-configs/tree/main/policies-demo). ## Patterns you build with components No dedicated docs page covers these, but standard Nuon building blocks support them. A [Terraform component](/guides/terraform-components) can create any resource Terraform supports in the customer's account, using the operation role's permissions. A [custom nested stack](/guides/custom-nested-stacks) creates resources earlier, when the customer deploys the stack with their own admin credentials. Pass outputs to other components with `{{.nuon.components..outputs.}}`. See [component dependencies](/guides/component-dependencies) and [using variables](/guides/using-variables). ### Customer-managed encryption key **The customer asks:** "Encrypt our data with a key we control and can revoke." **Build it:** Accept the customer's existing key ARN or ID as an [input](/concepts/app-inputs), or create the key in a [Terraform component](/guides/terraform-components). Grant your components' [operation roles](/guides/operation-roles) only the key actions they need. ### Customer-owned storage bucket **The customer asks:** "Store our data in a bucket in our account." **Build it:** Create the bucket in a [custom nested stack](/guides/custom-nested-stacks), so it exists before any component runs and is created with the customer's credentials. Or create it in a [Terraform component](/guides/terraform-components). **Reference apps:** [`gcp-gcs-bucket`](https://github.com/nuonco/example-app-configs/tree/main/gcp-gcs-bucket), [`azure-custom-storage`](https://github.com/nuonco/example-app-configs/tree/main/azure-custom-storage). ### Customer database **The customer asks:** "Run the database in our account, on our managed service." **Build it:** Create the managed database (for example RDS or Cloud SQL) in a [Terraform component](/guides/terraform-components). Pass its connection details to your [Helm chart](/guides/helm-chart-components) values with component outputs, as shown in [component dependencies](/guides/component-dependencies). ### Model provider in the customer account **The customer asks:** "Use our own model provider account, such as Amazon Bedrock, for the AI features." **Build it:** Create the IAM role or service account for the customer's model provider in a [Terraform component](/guides/terraform-components), and pass the endpoint to your app as a component output or [install input](/concepts/app-inputs). **Reference app:** [`byo-llm-openui`](https://github.com/nuonco/example-app-configs/tree/main/byo-llm-openui) (experimental). ## Talk to us ### Fully air-gapped installs Today the runner needs an outbound connection to the Nuon control plane to receive jobs. If your customer requires installs on a network with no outbound access, [contact us](https://nuon.co/contact-sales) to talk through your requirements. Many air-gap requests mean "no inbound access" or "no standing access." The outbound-only runner, and the customer's ability to [turn it off](/guides/runner-kill-switch) between maintenance windows, often meet those. # Install Nuon BYOC Source: https://docs.nuon.co/guides/byoc/installation Install Nuon BYOC in your cloud Once the requirements are ready, you can provision the Install Stack for your Nuon BYOC install. This will provision the foundational network resources and the Nuon runner. Once the runner is online, it will take over the process and deploy Nuon in your cloud. > [!NOTE] > > This is the same process your customers will complete when installing your app template using Nuon. ## Gather Inputs and Secrets Gather all the inputs and secrets from the [Requirements](/guides/byoc/requirements). ### Authentication Inputs | Input | Value | | - | - | | Auth Provider Type | `google` or `oidc` | | Auth Issuer URL | The issuer URL from your identity provider. | | Auth Client ID | Client ID from your identity provider | | Auth Redirect URL | `https://auth./auth` | > [!WARNING] > > If using the deprecated Auth0 integration, you will need to provide these inputs instead. > > | Input | Value | > | - | - | > | Auth0 Issuer URL | Your Auth0 tenant URL | > | Auth0 Audience | Your Auth0 API identifier | > | Auth0 Client ID - CTL API | Your Auth0 native app client ID | > | Auth0 Client ID - Dashboard UI | Your Auth0 SPA client ID | ### GitHub Inputs | Input | Value | | - | - | | GitHub App Name | Name of your GitHub App | | GitHub App ID | ID of your GitHub App | | GitHub App Client ID | Client ID from your GitHub App | ### DNS Inputs | Input | Value | | - | - | | Root Domain | Your custom domain, or `.nuon.run` for Nuon-provided domain | ### Secrets | Secret | Value | | - | - | | `github_app_key` | Your base64-encoded GitHub App PEM key | | `nuon_auth_client_secret` | OIDC client secret from your identity provider | ## Provision the Install Stack The Install Stack consists of the Nuon Runner and the foundational network resources it depends on. Once the Runner is provisioned it will take over the installation process and deploy the components of Nuon BYOC. We provide Terraform modules to provision and manage the Stack. The install process is the same on AWS and GCP: `install_id`, `inputs`, `secrets`, and `roles` are identical. Use `nuonco/stack/aws` or `nuonco/stack/gcp` for the platform you are installing into. See [Architecture](/guides/byoc#architecture) for platform-specific resources. ### Set Up the Stack Module Select or create a Terraform project to manage it in your preferred CI platform. Then, add and initialize the Nuon stack provider and module. > [tab] AWS > > Configure the region and install ID. > > ```hcl theme={null} > terraform { > required_providers { > aws = { source = "hashicorp/aws" } > stack = { source = "nuonco/stack" } > } > } > > provider "aws" { > region = "" // [!code hl] > } > > provider "stack" { > api_url = "https://runner.nuon.co" > } > > module "nuon_byoc_stack" { > source = "nuonco/stack/aws" > version = "~> 1.1" > > install_id = "" // [!code hl] > > inputs = {} > > secrets = {} > > roles = {} > } > ``` > [tab] GCP > > Configure the project, region, and install ID. > > ```hcl theme={null} > terraform { > required_providers { > google = { source = "hashicorp/google" } > stack = { source = "nuonco/stack" } > } > } > > provider "google" { > project = "" // [!code hl] > region = "" // [!code hl] > } > > provider "stack" { > api_url = "https://runner.nuon.co" > } > > module "nuon_byoc_stack" { > source = "nuonco/stack/gcp" > version = "~> 1.1" > > install_id = "" // [!code hl] > > inputs = {} > > secrets = {} > > roles = {} > } > ``` Initialize the stack to ensure everything is configured correctly. ```sh theme={null} terraform init ``` ### Provide the Inputs and Secrets Fill out the inputs and secrets on the module. The maps below are the same on AWS and GCP. > [!NOTE] > > We recommend storing the secret values in a secret store, and providing them to the module via env vars or an ephemeral `*.auto.tfvars` file. ```hcl theme={null} module "nuon_byoc_stack" { // ... inputs = { github_app_client_id = "" // [!code ++:10] github_app_id = "" github_app_name = "" nuon_auth_allow_all_users = "false" nuon_auth_allowed_domains = "" nuon_auth_client_id = "" nuon_auth_issuer_url = "" nuon_auth_provider_type = "" read_only_enable_cluster_access = "false" read_only_role_arn = "" } secrets = { nuon_auth_client_secret = { value = var.nuon_auth_client_secret } // [!code ++:2] github_app_key = { value = var.github_app_key } } } variable "nuon_auth_client_secret" { // [!code ++:9] type = string sensitive = true } variable "github_app_key" { type = string sensitive = true } ``` ### Provision the Stack Apply to provision the Stack and install the Runner. Once the Runner is online, it will take over and complete the installation process. ```sh theme={null} terraform apply ``` ## Verify the Installation Once installation is complete, verify that you can reach the Nuon Dashboard in your browser, at `https://app.`. Also verify you can reach the API from the command line using curl. ```bash theme={null} curl https://api./health ``` # Optional Nuon BYOC Configuration Source: https://docs.nuon.co/guides/byoc/optional Additional configuration options for Nuon BYOC Once Nuon BYOC is installed, there is additional configuration you can optionally perform. Terraform snippets below use `nuonco/stack/aws`. On GCP, set `source = "nuonco/stack/gcp"`. `install_id`, `inputs`, `secrets`, `roles`, and `runner_enabled` are the same. ## Disable the Provision Role The Provision role provides permissions to create resources, which are not required after installation is complete. You can disable the Provision role to reduce the permissions the Runner has access to. ```hcl theme={null} module "nuon_byoc_stack" { // ... roles = { // [!code ++:3] provision = false } } ``` ## Disable the Runner Once Nuon BYOC is deployed, it does not require the Runner to operate. The Runner is only required to deploy updates, or perform triage during incidents. If you wish to completely cut off Nuon's access to your Nuon BYOC install, you can disable the Runner. This deprovisions the compute that hosts the Runner VM, so no instances are left running. ```hcl theme={null} module "nuon_byoc_stack" { // ... runner_enabled = false // [!code ++] } ``` You can disable and re-enable the runner at any time. To receive updates, or provide temporary access to triage issues, simply set `runner_enabled` back to `true`. ```hcl theme={null} module "nuon_byoc_stack" { // ... runner_enabled = false // [!code --] runner_enabled = true // [!code ++] } ``` ## Export Runner Audit Logs On AWS, the Stack creates the `nuon//telemetry-export-config` secret and grants the Runner read access. On GCP, the secret is named `-telemetry-export-config`. Update the secret to export Runner audit logs to your own OTLP-compatible backend. See [Export Runner Audit Logs](/guides/export-runner-audit-logs) for the configuration reference, cloud-specific steps, and verification guidance. ## Collect Install Telemetry Send application logs, metrics, and traces from customer installs to your observability backend. Nuon helps you set up a relay in your BYOC deployment to receive and forward this data. Start with [Set Up Install Telemetry](/guides/byoc/telemetry), then use [Manage Install Telemetry](/guides/manage-install-telemetry) to choose which installs send data. ## Use your own S3 Bucket Nuon requires a public S3 bucket to host CloudFormation templates for customer AWS installs (Quick create links), including when the BYOC control plane runs on GCP. We provision a bucket for you during installation. To use a bucket you own, tell Nuon during onboarding — you will need an AWS account that can host that bucket. ## Use your own Slack App By default, Nuon will create a Slack app to power the Slack integration. To use your own Slack app instead, create it with the manifest below, then add the inputs and secrets to your stack module and apply. You can do this at first install or later. **Step 1** Create a Slack app using this manifest file, replacing `` with the domain you have chosen. ```json theme={null} { "display_information": { "name": "", "description": "Nuon BYOC Slack integration for ", "background_color": "#0b0b0f", "long_description": "Nuon BYOC 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 BYOC", "always_online": true }, "slash_commands": [ { "command": "/nuon-byoc", "url": "https://slack./slack/commands/nuon", "description": "Manage Nuon BYOC notifications in Slack", "usage_hint": "subscribe [install] | unsubscribe | status | help", "should_escape": false } ] }, "oauth_config": { "redirect_urls": [ "https://slack./slack/oauth/callback" ], "scopes": { "bot": [ "chat:write", "chat:write.public", "channels:read", "groups:read", "team:read", "commands" ] }, "pkce_enabled": false }, "settings": { "event_subscriptions": { "request_url": "https://slack./slack/events", "bot_events": [ "app_uninstalled", "channel_archive", "channel_left", "channel_rename", "tokens_revoked" ] }, "interactivity": { "is_enabled": true, "request_url": "https://slack./slack/interactions", "message_menu_options_url": "https://slack./slack/interactions" }, "org_deploy_enabled": false, "socket_mode_enabled": false, "token_rotation_enabled": false, "is_mcp_enabled": false } } ``` **Step 2** Click **Create**. **Step 3** Add the following inputs and secrets to your stack module, then apply. ```hcl theme={null} module "nuon_byoc_stack" { // ... inputs = { // ... slack_client_id = "" // [!code ++:2] slack_oauth_redirect_url = "https://slack./slack/oauth/callback" } secrets = { // ... slack_client_secret = { value = var.slack_client_secret } // [!code ++:3] slack_signing_secret = { value = var.slack_signing_secret } slack_state_jwt_secret = { value = var.slack_state_jwt_secret } } } variable "slack_client_secret" { // [!code ++:17] type = string sensitive = true description = "Client secret from your Slack app." } variable "slack_signing_secret" { type = string sensitive = true description = "Signing secret from your Slack app." } variable "slack_state_jwt_secret" { type = string sensitive = true description = "High-entropy string used to sign the Slack OAuth state JWT (for example, openssl rand -hex 32)." } ``` For detailed instructions on configuring and using the Slack app, see the [Slack integration guide](/guides/slack). # Nuon BYOC Requirements Source: https://docs.nuon.co/guides/byoc/requirements Prerequisites for installing Nuon BYOC on AWS or GCP Before installing Nuon BYOC, you will need to prepare the following dependencies. ## Cloud Account You will need an AWS or GCP account to run Nuon BYOC in. The installation process is the same on both platforms. Platform-specific architecture is covered in [Architecture](/guides/byoc#architecture). > [!NOTE] > > If you are hosting Nuon BYOC on GCP, a public S3 bucket is still required to support CloudFormation Quick create links for customer AWS install stacks. > By default, we will provision a bucket for you, but if you would like to own the bucket yourself, you will need an AWS account. ## DNS ### Root DNS In order to serve Nuon BYOC at your own domain — for example, `nuon.my-domain.com` — you will need a DNS zone to place the records in. **Step 1** Before creating the install, create the DNS zone `my-domain.com` in your preferred hosting provider, if it does not already exist. **Step 2** While provisioning the install stack, provide `nuon.my-domain.com` as the value for the **Root Domain** input. **Step 3** Once Nuon BYOC has fully provisioned, the nameservers for the install will be available in the outputs. **Step 4** Create an NS record named `nuon.my-domain.com` using the nameserver values from the install outputs. **Step 5** Once propagation is complete, your Nuon BYOC install will be available at `nuon.my-domain.com`. Nuon will provision the following subdomains under `nuon.my-domain.com`. Only the runner API needs to be public. The rest can be private to your internal network. | Subdomain | Service | Public | | - | - | - | | app | The vendor dashboard | | | api | The control plane API, used by the Vendor Dashboard and the CLI | | | admin | The admin API. Exposes functionality for administration of the control plane | | | runner | The API used by runners to communicate with the control plane | | | slack | The Slack integration API (optional) | | > [!WARNING] > > 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. ### Install Delegation DNS (Optional) If you don't want your customers to have to set up DNS when installing your app template, you can configure DNS delegation. A subdomain is provisioned for each install under a subdomain you control. Nuon Cloud, for example, creates a subdomain for each install at `.nuon.run` by default. For details, see [Custom Domains](/guides/custom-domains). ## GitHub App Create a GitHub App so Nuon can access your GitHub org. This allows it to access private repos and receive webhook events. **Step 1** Go to [GitHub App Settings](https://github.com/settings/apps) and click **New GitHub App**. **Step 2** Configure the app with the following settings. | Setting | Value | | - | - | | GitHub App name | Choose any name (e.g., "Nuon BYOC") | | Homepage URL | `https://app.` | | Setup URL | `https://app./connect` | | Redirect on Update | Checked | | Webhook | Unchecked | **Step 3** Configure the following permissions. Repository permissions | Permission | Access | | - | - | | Contents | Read-only | | Metadata | Read-only | | Pull requests | Read and write | Organization permissions | Permission | Access | | - | - | | Webhooks | Read and write | > [!NOTE] > > The **Webhooks** permission lets Nuon register a webhook to trigger [app branch runs](/concepts/app-branches). If you do not want to grant this access, you can instead trigger runs from your own CI using the [Nuon GitHub Action](/guides/github-actions). **Step 4** Under "Where can this GitHub App be installed?", select **Only on this account** (unless you need to access repos in other GitHub organizations). **Step 5** Click **Create GitHub App**. **Step 6** After creation, scroll to the bottom of the page and click **Generate a private key**. Save the PEM file to provide as a secret. > [!NOTE] > > The GitHub App PEM key must be base64 encoded to preserve newlines. > > ```bash theme={null} > base64 -i your-github-app-key.pem > ``` **Step 7** Save the **App ID** and **Client ID** from the app settings page to provide as inputs. ## Identity Provider Configure your preferred identity provider to control user access to Nuon. ### Google To use Google as your IdP, set up an OAuth client in the Google Cloud Console. **Step 1** Go to the [Google Cloud Console](https://console.cloud.google.com/) and create or select a project. **Step 2** Navigate to **APIs & Services** > **Credentials**. **Step 3** Click **Create Credentials** > **OAuth client ID** and select **Web application** as the application type. **Step 4** Configure the OAuth client. | Setting | Value | | - | - | | Name | `Nuon BYOC` (or any name) | | Authorized JavaScript origins | `https://auth.` | | Authorized redirect URIs | `https://auth./auth` | **Step 5** Click **Create**. **Step 6** After creation, save the **Client ID** to provide as an input, and the **Client Secret** to provide as a secret. You will also need the **Issuer URL** for Google. It is always `https://accounts.google.com`. ### Okta To use Okta as your IdP, set up an OIDC Application in Okta. **Step 1** In the Okta Admin Console, navigate to **Applications** and create a new **OIDC application**. 1. For Sign-in method, select **OIDC - OpenID Connect** 2. For Application type, select **Web Application** **Step 2** Set the **Sign In Redirect** to `https://auth./auth` **Step 3** Set **Trusted Origins** to `` **Step 4** Click **Save**. **Step 5** After creation, save the **Issuer URL** and **Client ID** to provide as an input, and the **Secret** to provide as a secret. ### Auth0 (Legacy) > [!WARNING] > > This section does not document using Auth0 as a regular auth provider. > Nuon BYOC previously required Auth0 for authentication. > This is no longer the case. > This documentation is retained for anyone still using the legacy Auth0 integration. > > New Nuon BYOC installs should use one of the IdP integrations documented above. To use Auth0 for authentication, you will need to configure an API, applications, and a custom action in your Auth0 tenant. Nuon provides a Terraform module to automate Auth0 configuration. We recommend this over manual configuration. Apply the following Terraform to use it. ```hcl theme={null} module "byoc_auth0" { source = "github.com/nuonco/byoc-auth0" # Your Auth0 tenant domain auth0_domain = "your-tenant.auth0.com" # The root domain for your BYOC install public_domain = "" # Your Nuon install ID install_id = "" install_name = "" } ``` After applying, the module outputs the values you will need for the install inputs. If you would prefer to configure Auth0 manually, follow the steps below. **Step 1** Add an action to enrich the access token with the user's email. 1. Go to **Actions > Library** in your Auth0 dashboard 2. Click **Create Action > Build from scratch** 3. Name it `AddScope` and select the latest runtime 4. Replace the code with: ```javascript theme={null} exports.onExecutePostLogin = async (event, api) => { const email = event.user.email; api.accessToken.setCustomClaim(`email`, email); }; ``` 5. Deploy the action 6. Go to **Actions > Triggers > Post Login** 7. Drag the `AddScope` action into the flow and save **Step 2** Create an API with the following settings. | Setting | Value | | - | - | | Name | `API Gateway ` | | Identifier | `api.` | | Maximum Access Token Lifetime | `2592000` | | Implicit/Hybrid Flow Access Token Lifetime | `86400` | | Allow Skipping User Consent | `true` | > [!NOTE] > > The Identifier must match your API URL exactly. It cannot be changed after creation. **Step 3** Create a Single Page Application for the Dashboard UI. | Setting | Value | | - | - | | Name | `Nuon App - ` | | Allowed Callback URLs | `https://app./api/auth/callback` | | Allowed Logout URLs | `https://app.` | | Allowed Web Origins | `https://app.` | | Allow Cross-Origin Authentication | `true` | | Maximum Refresh Token Lifetime | `31557600` | | Allow Refresh Token Rotation | `true` | | Rotation Overlap Period | `0` | **Step 4** Create a Native Application for CLI authentication. | Setting | Value | | - | - | | Name | `Nuon CTL API - ` | | Description | `For Nuon BYOC Install ` | | Allow Cross-Origin Authentication | `true` | | Device Code (Advanced > Grant Types) | Checked | # Set Up Install Telemetry Source: https://docs.nuon.co/guides/byoc/telemetry Connect your Nuon BYOC deployment to your observability backend and start collecting telemetry from customer installs. Collect application logs, metrics, and traces from customer installs in your own observability backend. Set up a telemetry relay once in your Nuon BYOC deployment, then choose which installs send data through it. Backend credentials stay in your BYOC deployment, not in customer environments. Already set up? Go to [Manage Install Telemetry](/guides/manage-install-telemetry) to enable or disable collection. For the data flow and security model, see [Install Telemetry](/concepts/install-telemetry). ## Before you start You need: * A Nuon BYOC deployment and access to its cloud secret manager. * An observability backend that accepts logs, metrics, or traces over **OTLP/HTTP**, with an HTTP(S) endpoint and an `Authorization` header if authentication is required. * An application configured to emit OpenTelemetry data, or a Collector that gathers it. Contact Nuon to enable the relay for your deployment. Nuon will confirm compatible control-plane, runner, and stack versions and coordinate the setup with you. ## 1. Add your backend credentials Update these existing secrets in the cloud account hosting **your Nuon BYOC deployment**, not in each customer's install: * `telemetry_otlp_endpoint`: your backend's HTTP(S) OTLP/HTTP **base URL**, such as `https://otel.example.com/otlp`. Do not append `/v1/logs`, `/v1/metrics`, or `/v1/traces`. * `telemetry_otlp_authorization`: the complete `Authorization` header value, including the `Basic ` or `Bearer ` prefix. This can be empty if your backend does not require authentication. > [tab] AWS > > 1. Open **AWS Secrets Manager** in the account and region hosting your Nuon BYOC deployment. > 2. Find the secrets corresponding to `telemetry_otlp_endpoint` and `telemetry_otlp_authorization` for your BYOC install. > 3. Update each secret with the value from your backend and save the changes. > [tab] GCP > > 1. Open **Secret Manager** in the project hosting your Nuon BYOC deployment. > 2. Find the secrets corresponding to `telemetry_otlp_endpoint` and `telemetry_otlp_authorization` for your BYOC install. > 3. Add a new version containing each value from your backend. Ensure the new versions are enabled. > [!NOTE] > > If the secrets do not exist, ask Nuon to help update your BYOC stack first. Keep credentials out of app inputs, > component configurations, and source control. You do not need to send Nuon the secret values. ## 2. Have Nuon enable the relay Tell Nuon the secrets are ready. Nuon syncs them, checks the configuration, enables the relay, and verifies its deployment and HTTPS endpoint. Wait for confirmation before enabling telemetry on customer installs. Your application will send data to a private endpoint in its own install, not directly to this relay. ## 3. Check the install endpoint This section describes **runner-bound** application collection. For collection while the runner is stopped, follow [optional in-cluster collector setup](/guides/manage-install-telemetry#set-up-an-optional-in-cluster-collector) instead. That path uses a cluster-local OTLP service and does not require private runner telemetry ingress. Choose a customer install to start with. Current install stacks provision private telemetry ingress by default; update older stacks or re-enable ingress if the customer previously disabled it. > [tab] AWS CloudFormation > > Use current VPC and runner stack templates with **EnableTelemetryIngress** set to `true` (the default). > The endpoint is private to the install VPC. > [tab] Azure > > Use the current generated install stack with **enableTelemetryIngress** set to `true` (the default). > The endpoint uses an internal load balancer in the runner subnet. > [tab] GCP Terraform > > Use the current [Nuon install stack](https://github.com/nuonco/install-stacks/tree/main/gcp) with > `runner_enabled = true` and `enable_telemetry_ingress = true` (the default). Workloads sending telemetry must be > in the same region and allowed by the stack's internal firewall. The install's stack outputs should include a nonempty `telemetry_endpoint`. You can check with: ```sh theme={null} nuon installs outputs --stack -i "" ``` The endpoint accepts OTLP/HTTP on port 4318. Private ingress infrastructure may incur additional cloud charges. ## 4. Connect your application Set these environment variables for your application's OpenTelemetry SDK or agent in its component configuration: ```toml theme={null} OTEL_EXPORTER_OTLP_PROTOCOL = "http/protobuf" OTEL_EXPORTER_OTLP_ENDPOINT = "{{ .nuon.install_stack.outputs.telemetry_endpoint }}" ``` Nuon resolves the endpoint template for each install when rendering the component configuration. If you configure an exporter outside Nuon templates, use the actual `telemetry_endpoint` output instead. If you use your own Collector, configure its OTLP/HTTP exporter to use that endpoint. Deploy the updated application configuration. You do not need backend credentials or runner tokens in your application. ## 5. Enable telemetry and check your backend Follow [Manage Install Telemetry](/guides/manage-install-telemetry#enable-or-disable-an-install) to enable your first install from the dashboard or its install config. You can also set an org default when you are ready to enable collection more broadly. Open **Settings → Configuration → Telemetry → Manage telemetry**, choose **Telemetry forwarding**, then select **Save settings**. Saving policy does not create collector access or deploy infrastructure. With the runner active, allow about a minute for its settings to refresh and the Collector to start. Generate some application activity, then find a recent log, metric, or trace in your backend with the install's `nuon.install.id` resource attribute. Check each signal you intend to collect. If data does not appear, see [troubleshooting](/guides/manage-install-telemetry#troubleshooting). ## Change your backend or rotate credentials Update the same BYOC secrets, then coordinate with Nuon to sync them and restart the relay. The relay loads these values at startup; changing a secret alone does not update a running relay. No credential changes are needed in individual customer installs. # Updating Nuon BYOC Source: https://docs.nuon.co/guides/byoc/updates Update Nuon BYOC, the Stack, and the Nuon CLI There are three types of updates that apply to your Nuon BYOC install. 1. Updates to Nuon BYOC itself 2. Updates to the Nuon BYOC stack module 3. Updates to the Nuon CLI your team and CI use ## Updating Nuon BYOC In most cases updates of the first type will require nothing from you. We will notify you when an update is ready, and deploy it on your approval. Occasionally, in the case of new features, there may be new inputs or secrets required. In those cases, we will notify you about the changes, but the Stack module will also provide actionable error messages if a required input or secret is missing. ## Updating the Stack The Stack does not have to be upgraded often. When it is required, though, you simply need to update the stack module version. We recommend using a minor version constraint for the module, currently `~> 1.1`. This way, running `terraform init -upgrade` will pull in new patch versions. We will notify you if a minor or major version update is needed. In those cases, bump the version on the module (`nuonco/stack/aws` or `nuonco/stack/gcp`) and run `terraform init -upgrade`. ```hcl theme={null} module "nuon_byoc_stack" { // ... version = "~> 1.0" // [!code --] version = "~> 1.1" // [!code ++] } ``` ## Updating the CLI Use the CLI version that matches your Nuon BYOC control plane. Your control plane's minimum CLI version is set to the version it runs, so after we deploy an update, older CLIs print a warning that they are older than the minimum. After each update: 1. Have everyone on your team install the new version. See [Install your control plane's version](/cli#install-your-control-planes-version). 2. If your CI pins the CLI, for example with the [Nuon GitHub Action](/guides/github-actions#choosing-the-cli-version)'s `nuon_version` input, bump the pin. The action installs your control plane's version automatically when `nuon_version` is unset. # CLI Extensions Source: https://docs.nuon.co/guides/cli-extensions Extend the Nuon CLI with community and first-party plugins. Extensions let you add new commands to the `nuon` CLI. Once installed, an extension called `policies` is available as `nuon policies`, just like a built-in command. Extensions are generally available and do not require preview flags. The extension system was heavily inspired by [GitHub CLI extensions](https://docs.github.com/en/github-cli/github-cli/creating-github-cli-extensions). ## Available extensions | Extension Name | Description | Repository | | - | - | - | | api | API client for the Nuon public API | [nuonco/nuon-ext-api](https://github.com/nuonco/nuon-ext-api) | | render | Render app config templates using install state from the Nuon API | [nuonco/nuon-ext-render](https://github.com/nuonco/nuon-ext-render) | | cf-stack | Manage CF stack install and upgrade workflows | [nuonco/nuon-ext-cf-stack](https://github.com/nuonco/nuon-ext-cf-stack) | | starship | Starship prompt module showing current Nuon org, install, and environment | [nuonco/nuon-ext-starship](https://github.com/nuonco/nuon-ext-starship) | | terraform | Drop into a Terraform shell for Nuon-managed sandbox and component workspaces | [nuonco/nuon-ext-terraform](https://github.com/nuonco/nuon-ext-terraform) | | ctx | Switch between nuon CLI configurations | [nuonco/nuon-ext-ctx](https://github.com/nuonco/nuon-ext-ctx) | | overlays | Apply Kustomize-style config overlays to Nuon app configurations | [nuonco/nuon-ext-overlays](https://github.com/nuonco/nuon-ext-overlays) | ## Compiled vs interpreted extensions Extensions come in two flavors: * **Compiled extensions** ship precompiled binaries via GitHub Releases. The CLI downloads the correct binary for your platform during install. This is the standard distribution model for production extensions. * **Interpreted extensions** are cloned as source and run directly. The CLI supports two interpreted types: * **Script:** a single executable file (bash, Python, etc.) with a shebang line * **Python:** a [uv](https://docs.astral.sh/uv/)-managed project executed via `uv run` The extension type is auto-detected during installation, you don't need to declare it. The CLI checks for GitHub Release assets first; if none match your platform, it clones the repo and detects the type from the directory contents. ## Quick start ```sh theme={null} # Browse available extensions nuon ext browse # Install an extension nuon ext install nuonco/nuon-ext-policies # Install at a specific branch, tag, or commit nuon ext install nuonco/nuon-ext-api@main # Install from a local directory (for development) nuon ext install ./nuon-ext-my-tool # Run it nuon policies --help ``` ## Managing extensions All extension management commands live under `nuon extensions` (alias: `nuon ext`). ### Browsing available extensions ```sh theme={null} nuon ext browse ``` This queries the `nuonco` GitHub organization for repositories matching the `nuon-ext-*` naming convention and shows which ones you already have installed. Extensions can be installed from any GitHub organization, but `browse` lists Nuon-authored extensions by default. Browse results are filtered to repositories with the `nuon-extensions` GitHub topic. ### Installing an extension ```sh theme={null} nuon ext install ``` You can provide the extension name in several formats: | Input | Resolved to | | - | - | | `policies` | `nuonco/nuon-ext-policies` (latest) | | `nuon-ext-policies` | `nuonco/nuon-ext-policies` (latest) | | `nuonco/nuon-ext-policies` | `nuonco/nuon-ext-policies` (latest) | | `myorg/nuon-ext-foo` | `myorg/nuon-ext-foo` (latest) | | `nuonco/nuon-ext-demo@main` | `nuonco/nuon-ext-demo` at branch `main` | | `demo@v1.0.0` | `nuonco/nuon-ext-demo` at tag `v1.0.0` | | `demo@abc123` | `nuonco/nuon-ext-demo` at commit `abc123` | | `./nuon-ext-my-tool` | Local directory (symlink) | Shorthand names (without an org prefix) default to the `nuonco` GitHub organization. To install an extension from another org, use the full `org/nuon-ext-name` format. #### How install works The install behavior depends on the extension type: * **Compiled extensions:** The CLI checks the latest GitHub Release for a platform-specific binary asset (e.g. `nuon-ext-policies-darwin-arm64`). It also supports release archives like `nuon-ext-policies-darwin-arm64.tar.gz` and `nuon-ext-policies-darwin-arm64.zip`. If a match is found, it downloads and installs the binary directly. No clone is needed. * **Interpreted extensions:** If no release asset matches your platform, the CLI clones the repository and detects the extension type from the directory contents (`pyproject.toml` for python, executable `nuon-ext-` for script). When `@ref` is specified (e.g. `demo@main`, `nuonco/nuon-ext-demo@v1.0`), the CLI first checks for a release at that tag and installs a matching binary asset if one exists. If no matching release asset is found (for example when using a branch name or commit SHA), it clones the repo at that exact ref. #### Local install ```sh theme={null} nuon ext install ./path/to/nuon-ext-my-tool ``` Local installs create a symlink from the extensions directory to your source directory. This enables a live development loop: rebuild the binary or edit a script and the changes take effect immediately. The directory must contain a `nuon-ext.toml` and the directory name must match `nuon-ext-`. If the extension is already installed, the command fails. For local development installs, remove and re-install from source to refresh the symlinked install. ### Listing installed extensions ```sh theme={null} nuon ext list ``` Shows a table of installed extensions with their name, version, repository, and description. Use `--json` for machine-readable output. ### Upgrading extensions ```sh theme={null} # Upgrade a specific extension nuon ext upgrade policies # Force re-download even if already at the latest version nuon ext upgrade policies --force # Upgrade all installed extensions nuon ext upgrade ``` Upgrade checks for newer GitHub releases and re-downloads the binary if a new version is available. This currently only works for compiled extensions installed from a release. Interpreted extensions installed via clone should be re-installed to pick up changes. ### Removing an extension ```sh theme={null} nuon ext remove policies ``` This deletes the extension and its local files. For locally installed extensions (symlinks), the symlink is removed but the source directory is left untouched. ### Running an extension explicitly ```sh theme={null} nuon ext exec policies [args...] ``` The `exec` subcommand is an escape hatch for cases where an extension name conflicts with a built-in command. In most cases, you can run extensions directly as top-level commands (e.g. `nuon policies`). ## How extensions work ### Top-level commands When the CLI starts, it scans the extensions directory and registers each installed extension as a top-level command. This means `nuon policies` works the same as `nuon ext exec policies`. When using top-level extension commands, Nuon root flags (for example `--config` / `-C`) are handled by the CLI, and only arguments after the extension command are forwarded to the extension process. ### Environment variables When running an extension, the CLI provides context through environment variables: | Variable | Description | | - | - | | `NUON_API_URL` | API endpoint URL | | `NUON_ORG_ID` | Current organization context | | `NUON_APP_ID` | Current app context (if set) | | `NUON_INSTALL_ID` | Current install context (if set) | | `NUON_API_TOKEN` | Authentication token | | `NUON_EXT_NAME` | Extension name | | `NUON_EXT_DIR` | Path to the extension's local directory | | `NUON_CONFIG_FILE` | Path to the Nuon config file | Extensions can use these variables to interact with the Nuon API or read the local configuration. These values are populated from your active CLI config/context. ### Authentication Extensions declare their auth requirements in a `nuon-ext.toml` manifest. If an extension requires an API token or org context and one isn't configured, the CLI prints a warning before running the extension. The extension still runs and is allowed to handle the missing credentials on its own. ### Local storage Extensions are stored under `~/.config/nuon/extensions/`. Each extension gets its own directory: ``` ~/.config/nuon/extensions/ ├── nuon-ext-policies/ # compiled - downloaded binary only │ ├── nuon-ext-policies # platform binary │ ├── nuon-ext.toml # cached manifest │ └── manifest.json # install metadata ├── nuon-ext-gen-readme/ # interpreted - full repo clone │ ├── pyproject.toml # project definition │ ├── nuon-ext.toml # manifest (from repo) │ ├── manifest.json # install metadata │ └── src/ # source code ├── nuon-ext-my-tool -> /home/user/... # local install (symlink) ``` ## Creating an extension Every extension needs two things: a GitHub repository named `nuon-ext-` and a `nuon-ext.toml` manifest at the root. Beyond that, the approach differs depending on whether you're building a compiled or interpreted extension. ### Repository name The repository must use the `nuon-ext-` prefix. The rest becomes the command name: ``` nuonco/nuon-ext-policies → nuon policies nuonco/nuon-ext-cost-report → nuon cost-report ``` ### Extension manifest Every extension repository must include a `nuon-ext.toml` file at the root: ```toml nuon-ext.toml theme={null} [extension] name = "policies" description = "Check deployment health across installs" min_cli_version = "1.5.0" [extension.auth] requires_token = true requires_org = true ``` | Field | Required | Description | | - | - | - | | `extension.name` | Yes | Must match the repo suffix after `nuon-ext-` | | `extension.description` | Yes | Shown in `list` and `browse` output | | `extension.min_cli_version` | No | Minimum CLI version required | | `extension.auth.requires_token` | No | Warn if no API token is configured | | `extension.auth.requires_org` | No | Warn if no org is selected | ### Compiled extensions (binary) Compiled extensions ship precompiled binaries for each platform via GitHub Releases. This is the best choice when you want fast startup, no runtime dependencies, and a clean upgrade path via `nuon ext upgrade`. Create GitHub releases with assets following this naming scheme: ``` nuon-ext---[.exe] ``` Archive variants are also supported with the same base name: ``` nuon-ext---[.exe].tar.gz nuon-ext---[.exe].zip ``` For example: ``` nuon-ext-policies-darwin-arm64 nuon-ext-policies-darwin-amd64 nuon-ext-policies-linux-amd64 nuon-ext-policies-linux-arm64 nuon-ext-policies-windows-amd64.exe ``` The CLI automatically selects the correct binary for the user's platform during install. You can use any language and build system. [GoReleaser](https://goreleaser.com/) works well for Go extensions. ### Interpreted extensions (script and python) Interpreted extensions are cloned as source and run directly. They're simpler to set up and great for tooling that doesn't need to be compiled. For example: documentation generators, linters, config validators, and similar utilities. The CLI supports two interpreted types: | Type | Detection | Execution | Requires | | - | - | - | - | | **script** | Executable `nuon-ext-` at repo root | Run script directly | Nothing extra | | **python** | `pyproject.toml` at repo root | `uv run nuon-ext-` | [uv](https://docs.astral.sh/uv/) on the host | #### Script extensions Place a single executable file named `nuon-ext-` at the repo root with a shebang line: ```bash nuon-ext-hello theme={null} #!/usr/bin/env bash echo "Hello from $NUON_EXT_NAME" ``` The script receives the same environment variables as any other extension. Make sure the file is marked executable (`chmod +x`). #### Python extensions Python extensions use a standard `pyproject.toml` with a console script entry point. The CLI runs them via `uv run nuon-ext-`, so [uv](https://docs.astral.sh/uv/) manages the virtualenv and dependencies automatically. A minimal project structure: ``` nuon-ext-my-tool/ ├── nuon-ext.toml ├── pyproject.toml └── src/ └── nuon_ext_my_tool/ ├── __init__.py └── cli.py ``` With a `pyproject.toml` entry point like: ```toml theme={null} [project.scripts] nuon-ext-my-tool = "nuon_ext_my_tool.cli:main" ``` We recommend [click](https://click.palletsprojects.com/) for building the CLI interface. Users install interpreted extensions with `@ref` to pin a branch: ```sh theme={null} nuon ext install myorg/nuon-ext-my-tool@main ``` # Using Multiple CLI Versions Source: https://docs.nuon.co/guides/cli-versions Install an older version of the Nuon CLI alongside the latest release, and switch between them. Each control plane expects the CLI version that matches its own (see [Choosing a CLI version](/cli#choosing-a-cli-version)). If you need an older version of the CLI, for example to use a Nuon BYOC control plane that is not on the latest release, you can install it alongside the latest release and switch between them. This guide uses `0.19.1250` as the older version. ## With Homebrew Homebrew installs the latest release as `nuon` and as a versioned formula, `nuonco/tap/nuon@`. You can install multiple versions, but only one can be linked as `nuon` at a time, so you switch by unlinking one and linking the other. > [!NOTE] > > If you also installed the CLI with the install script or by hand, that copy (often `~/bin/nuon`) may come before > Homebrew's on your `PATH`, and running `nuon` keeps calling it no matter which formula is linked. Run `which -a nuon` to > see every `nuon` on your `PATH`. Remove the other copies, or put Homebrew's `bin` directory first. > > Your shell also remembers where it last found `nuon`, so after switching it can keep running another copy even when > Homebrew's comes first. Run `hash -r` (or `rehash` in zsh), or open a new shell. ### Install an older version Unlink the latest release, then install the older version. It is linked as `nuon` when the install finishes: ```sh theme={null} brew unlink nuon brew install nuonco/tap/nuon@0.19.1250 nuon version ``` ### Switch back to the latest release Unlink both versions, then link the latest release and upgrade it in case a new release has come out since you last used it. Unlinking both works whichever version is linked now: ```sh theme={null} brew unlink nuon nuon@0.19.1250 brew link nuon brew upgrade nuonco/tap/nuon ``` ### Switch to the older version ```sh theme={null} brew unlink nuon nuon@0.19.1250 brew link nuon@0.19.1250 ``` Run `nuon version` after switching to confirm which version is linked. ### Replace the older version When the control plane you use the older version with is upgraded, install the formula for its new version and remove the old one. For example, after an upgrade to `0.19.1260`: ```sh theme={null} brew unlink nuon nuon@0.19.1250 brew install nuonco/tap/nuon@0.19.1260 brew uninstall nuon@0.19.1250 ``` ## Side by side without Homebrew To run versions side by side instead of switching, download each version's binary under its own name. Binaries are published at `https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli//nuon_` (see [Manual Binary Download](/cli#manual-binary-download) for platforms). This example works out your platform, such as `darwin_arm64` or `linux_amd64`, and saves the binary to `~/bin`, which must exist and be on your `PATH`: ```sh theme={null} VERSION=0.19.1250 OS=$(uname -s | tr '[:upper:]' '[:lower:]') case $(uname -m) in x86_64) ARCH=amd64 ;; aarch64 | arm64) ARCH=arm64 ;; *) ARCH=$(uname -m) ;; esac PLATFORM=${OS}_${ARCH} curl -fsSL -o ~/bin/nuon-$VERSION \ https://nuon-artifacts.s3.us-west-2.amazonaws.com/cli/$VERSION/nuon_$PLATFORM chmod +x ~/bin/nuon-$VERSION nuon-$VERSION version ``` Keep `nuon` itself as the version you use most, for example the latest release from Homebrew. ## Keep each control plane's login separate The CLI stores its API URL, token, and selected org in `~/.nuon`. When you switch between control planes, give each one its own config file with `--config` (`-C`) or `NUON_CONFIG_FILE`, so logging in to one does not sign you out of the other. For Nuon Cloud, use `nuon` with the default config file: ```sh theme={null} nuon auth login ``` For a Nuon BYOC control plane, use its CLI version with its own config file: ```sh theme={null} NUON_CONFIG_FILE=~/.nuon-acme-byoc NUON_API_URL=https://api.acme-byoc.example.com nuon-0.19.1250 auth login NUON_CONFIG_FILE=~/.nuon-acme-byoc nuon-0.19.1250 apps list ``` A shell alias keeps the pair together: ```sh theme={null} alias nuon-byoc='NUON_CONFIG_FILE=~/.nuon-acme-byoc nuon-0.19.1250' ``` ## In CI The [Nuon GitHub Action](/guides/github-actions#choosing-the-cli-version) installs the version your control plane reports, so each workflow gets the right CLI for its `api_url` without extra setup. In other CI systems, use the [install script](/cli#install-your-control-planes-version) with `NUON_VERSION`. # Cloud Connections Source: https://docs.nuon.co/guides/cloud-connections Connect Nuon to AWS, Google Cloud, or Azure with short-lived OIDC credentials and an access preset. A cloud connection is an identity Nuon assumes in your cloud: a target — an AWS account, Google Cloud project, or Azure container registry — plus a principal that trusts Nuon's OIDC tokens, such as an IAM role, GCP service account, or Microsoft Entra application. Connections belong to an organization and are saved without storing a long-lived cloud credential. Choose one access preset: * **`stacks`** — setup includes a permissions policy for creating, updating, and deleting Nuon CloudFormation install stacks. * **`ecr`** — image repository access (Amazon ECR): read-only permissions for selected repositories. * **`gar`** — image repository access (Google Artifact Registry). * **`acr`** — image repository access (Azure Container Registry). * **`custom`** — setup includes only the OIDC trust configuration. Attach your own permissions policy to the IAM role before using it for stack operations. AWS supports `stacks`, `ecr`, and `custom`. GCP supports `gar`. Azure supports `acr`. A preset describes setup and verification behavior; the cloud provider enforces the permissions attached to the principal. ## OIDC trust model Nuon mints a short-lived OIDC token when it needs to perform an operation. The role trust policy must restrict these values: * **Issuer** — your Nuon control plane's public API URL. * **Subject** — `org::connection:`, unique to one connection. * **Audience** — `sts.amazonaws.com` for AWS, the generated `//iam.googleapis.com/projects//locations/global/workloadIdentityPools//providers/nuon` for GCP, or `api://AzureADTokenExchange` for Azure. Create and get responses include the exact values and self-contained setup material: Terraform, AWS CLI, and CloudFormation for AWS; Terraform and gcloud CLI for GCP; Terraform and Azure CLI for Azure. The connection's organization and saved identity/trust tuple are immutable after creation. ## Create and configure a connection Creating a connection saves it in Nuon; it does not create the IAM role or OIDC provider in AWS. Connections are identity only and take no repository inputs. ```bash theme={null} nuon cloud-connections create \ --name acme-production \ --platform aws \ --target-id 123456789012 \ --principal arn:aws:iam::123456789012:role/nuon-cloud-connection \ --default-region us-west-2 \ --preset stacks ``` Open the setup link printed below the command's output. It takes you to **Run in your cloud**, where you can choose **AWS CLI**, **Terraform**, or **CloudFormation** and apply the generated setup in the target AWS account. You can also reach this page from **Settings → Cloud connections → select your connection → View setup runbook**. The `stacks` preset also includes an explicit action allowlist covering the resources in Nuon's install stack templates. With `--preset custom`, no permissions policy is generated: attach your own policy. The `ecr`, `gar`, and `acr` presets are for private images and carry their own prerequisites and repository setup; see [Private image registries](/guides/private-image-registries). After applying the setup, verify the connection from the dashboard's **Verify** step or run: ```bash theme={null} nuon cloud-connections verify ``` The command waits for the result by default. Once the status is `verified`, the connection is available in the install creation wizard. For scripts, `create --output json` and `get --output json` include the generated setup material in `setup` without the human-readable next-step instructions. Verification exchanges a Nuon OIDC token for temporary cloud credentials, checks the returned identity, and confirms that a foreign connection subject cannot assume the role. For `stacks`, it also makes a read-only CloudFormation `DescribeStacks` probe. This probe does not prove that every stack operation is permitted. For `custom`, verification checks identity and trust only; you are responsible for the permissions required by your operations. ## Use connections for install stacks When creating an AWS install, select a **verified AWS connection** whose role has stack-management permissions. The connection binding is immutable after creation: a connection cannot be added, replaced, or removed from an existing install. Nuon uses the pinned connection for CloudFormation stack creation, updates, and deletion. If no connection is selected at creation, the install remains customer-managed. A connection referenced by an install cannot be deleted; the API returns HTTP 409. Delete the referencing installs before deleting the connection. ## Share a principal across connections Connections in the same organization may reference the same IAM role, GCP service account, or Entra application. Sharing gives you one place to revoke Nuon's access, but every connection on the shared principal gets the combined permissions of all of them, and revoking it cuts them all off at once. **Prefer a separate principal per connection** unless you specifically want that blast radius. New connections default to their own role or service account name; sharing is opt-in through the dashboard's **Principal** dropdown or by passing an existing principal to `create`. Each connection keeps its own ID, exact federation subject, verification status, and saved assignments. Presets select setup and verification behavior; they are not permission boundaries. In setup instructions, choose **Existing role** or **Existing service account** when reusing a cloud resource: the instructions preserve existing trust and grants and add federation only for the current connection's exact subject. Apply updates serially for a shared principal; read-and-merge cloud IAM updates are not atomic. On AWS, deleting the account's IAM OIDC provider for the Nuon issuer cuts off every Nuon role in that account at once, including roles shared by multiple connections. Deleting a connection stops Nuon from using it, but does not remove cloud trust or permissions; review those separately without disturbing other connections. ## CLI Use `nuon cloud-connections list|get|create|verify|delete`. Responses report the preset, status, status message, and last verification time. Connections are identity only: create and verify them without repository names. For private image repositories, use [`nuon image-repositories`](/guides/private-image-registries#cli). Nuon verifies connections on demand, not on a recurring schedule. The last verification time records the most recent verification attempt; a verified status does not guarantee that cloud trust or permissions have not changed since then. Use `verify` after changing the role or its policies. A failed verification updates the connection's status and emits `cloud-connection-verification-failed` for notification subscriptions. Stack operations still obtain temporary cloud credentials through the connection when needed. This does not repeat the full verification checks, including the foreign-subject trust check. ## Private image registries For private images, Nuon uses saved **image repository** assignments that map an exact ECR, GAR, or ACR repository to a verified connection's pull identity. See [Private image registries](/guides/private-image-registries) for adding image repositories, per-registry prerequisites and setup, and the image repository API. # Component Dependencies Source: https://docs.nuon.co/guides/component-dependencies Component dependencies allow you to create dependencies between components, and model your app template as a graph. To learn more about components, see the [Components](/concepts/components) concept page. ## Why Dependencies? Most applications have either explicit or implicit dependencies between the different components that comprise them. For example, given an app template that comprises a [Helm chart](/guides/helm-chart-components) component and a [Terraform component](./terraform-components): ```toml components/helm.toml theme={null} # helm name = "helm" type = "helm_chart" chart_name = "helm" dependencies = ["database"] [connected_repo] directory = "components/helm" repo = "/" branch = "main" [values] database_url = "{{.nuon.components.database.outputs.database_url}}" ``` ```toml components/database.toml theme={null} # terraform name = "database" type = "terraform_module" terraform_version = "1.11.3" [connected_repo] directory = "components/database" repo = "/" branch = "main" ``` In this example, the `helm` chart requires that the database be provisioned *before* it is deployed. Otherwise, the database will not exist yet, and the `database_url` output will not be defined. When deprovisioning the install, the `helm` chart must be deprovisioned *before* the database, to ensure no active dependencies exist, preventing the database from being shut down. ## Defining Component Dependencies To support this, you can define one or more dependencies on each component, telling Nuon what other components it relies on. Nuon will use your configuration to build a dependency graph, to ensure components are provisioned and deprovisioned in the correct order. > [!WARNING] > > The dependency graph is directed and *acyclic*, which means circular dependencies are not supported. > Nuon checks for cycles and will error if you attempt to define one. Dependencies can be explicitly defined using the `dependencies` field in each component's configuration file. You can specify which components a given component depends on by listing their names in the `dependencies` array. Taking the example above, you can make the Helm chart depend on the database by adding it to the dependencies list. With the directory-based approach, you can specify dependencies explicitly in each component file: ```toml components/database.toml theme={null} # terraform name = "database" type = "terraform_module" terraform_version = "1.11.3" [connected_repo] directory = "components/database" repo = "/" branch = "main" ``` ```toml components/helm.toml theme={null} # helm name = "helm" type = "helm_chart" chart_name = "helm" dependencies = ["database"] [connected_repo] directory = "components/helm" repo = "/" branch = "main" [values] database_url = "{{.nuon.components.database.outputs.database_url}}" ``` ## Install Provisioning When an install is provisioned, Nuon will generate a graph of the app based on the defined dependencies. Nuon will automatically deploy the *latest* build of each component to the install. In the previous example, this means that the database component would be deployed *before* the Helm chart. For example, when you create a new install, each component will automatically be deployed. To check the status of each component on the install: ```sh theme={null} nuon installs components ``` ## Install Deprovisioning When an install is deprovisioned, Nuon will generate a graph of all the deployed components on the install, and walk them in reverse, to deprovision them properly. In the previous example, this means the helm component would be deprovisioned *before* the database. ## Toggleable components If a component is [toggleable](/guides/toggleable-components), its enabled state has to stay consistent with the dependency graph: an enabled component cannot depend on a disabled one, and a component cannot be disabled while a dependent is still enabled. Nuon validates this on every sync. See the [Toggleable Components guide](/guides/toggleable-components#dependencies) for details. # Component Overrides Source: https://docs.nuon.co/guides/component-overrides Override Helm values and Terraform variables on a per-install basis, without changing your app config. Component overrides let you customize a single install's [Helm](/guides/helm-chart-components) values or [Terraform](/guides/terraform-components) variables without touching your app config. They're defined per-install, so one customer can get a different chart configuration or a different set of Terraform variables while every other install keeps the app template's defaults. Use them for one-off customizations that don't belong in your app config, such as bumping a replica count for a customer under load, pinning a region for a specific install, or applying a temporary support tweak, where authoring a new input or editing the shared component would be overkill. > [!NOTE] > > Overrides are configured on the **install**, not the component. The component's app config stays the source of truth for > every other install. ## Configuring overrides Overrides live in the install config under a `[components.]` block, keyed by the component's name. Each component supports exactly one override field, matching its type: | Component type | Field | Format | Behavior | | - | - | - | - | | Helm chart | `helm_values` | YAML | Deep-merges over the component's app-config values; wins on overlapping keys. | | Terraform module | `tf_vars` | `.tfvars` (HCL/JSON) | Appended as the final, highest-precedence `-var-file`. | ### Helm values `helm_values` is a raw YAML string that deep-merges over the Helm component's app-config values. Overlapping keys win, and keys you don't mention are left untouched. ```toml install.toml theme={null} name = "customer-acme" [components.clickhouse] helm_values = """ replicas: 3 resources: limits: memory: 4Gi """ ``` ### Terraform variables `tf_vars` is a raw `.tfvars` string (HCL or JSON) appended as the final `-var-file` at deploy time, so it wins over the component's `vars` map and any `var_files`. The variables must already be declared in the module. ```toml install.toml theme={null} name = "customer-acme" [components.vpc] tf_vars = """ cidr = "10.0.0.0/16" """ ``` You can set overrides for multiple components in the same install config: ```toml install.toml theme={null} name = "customer-acme" [components.vpc] tf_vars = """ cidr = "10.0.0.0/16" """ [components.clickhouse] helm_values = """ replicas: 3 """ ``` ## Precedence Overrides are the highest-precedence layer. For Helm, they deep-merge on top of the app-config values and win on any key they set. For Terraform, they're applied as the last `-var-file`, so they win over the module's `vars` and `var_files`. ## Applying overrides Overrides are applied by syncing the install config with the CLI: ```bash theme={null} nuon installs sync --file install.toml --app-id --confirm ``` The CLI validates override syntax locally before making any API calls: `helm_values` must be valid YAML and `tf_vars` must be valid HCL. Because an override changes a component's deploy config, syncing it triggers a redeploy of the affected component. ## Clearing an override To revert a component to its app-config values, remove its `[components.]` block (or the individual field) from the install config and sync again. The next sync clears the override and redeploys the component with the app defaults. # Configuring Inputs & Secrets Source: https://docs.nuon.co/guides/configuring-inputs-and-secrets Define and use inputs, variables, and secrets in your app template. To learn more about inputs and secrets, see the [Inputs](/concepts/app-inputs) and [Secrets](/concepts/app-secrets) concept pages. ## Inputs Inputs are defined in an `inputs.toml` file in the root of your app config directory: ```toml inputs.toml theme={null} [[group]] name = "dns" description = "DNS configuration" display_name = "DNS" [[input]] name = "root_domain" description = "The root domain for the install." default = "app.example.com" display_name = "Root Domain" group = "dns" required = true ``` Use inputs in sandbox or component config: ```toml sandbox.toml theme={null} [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" ``` ### Customer-Facing Inputs By default, inputs are vendor-facing and set through the dashboard. To allow customers to set an input directly through the install stack (CloudFormation, Azure Resource Manager (Bicep), Terraform), mark it as `user_configurable`: ```toml inputs.toml theme={null} [[input]] name = "sub_domain" display_name = "Sub Domain" description = "The sub domain for the service." default = "whoami" user_configurable = true ``` For manually applied installs, customer-facing inputs are modified through the install stack. Changes trigger redeployment of dependent components. ### AWS Cloud-Connection Stack Parameters For AWS installs provisioned through a cloud connection, configure root and nested CloudFormation parameters directly in the Git install config. Nuon input declarations are not required: ```toml theme={null} name = "acme-production" app_branch = "main" cloud_connection = "acme-aws" [cloudformation.root.parameters] RunnerRootVolumeSize = "60" [cloudformation.nested_stacks.VPC.parameters] VpcCIDR = "10.42.0.0/16" [cloudformation.nested_stacks.RunnerAutoScalingGroup.parameters] InstanceType = "m7i.large" [cloudformation.nested_stacks.database.parameters] InstanceClass = "db.r7g.large" BackupRetentionDays = "14" ``` Keys must be parameter names declared in the target template. Values are strings and may be literals or Nuon templates referencing state available before stack deployment, for example `"{{ .nuon.inputs.inputs.instance_class }}"`. Root parameters are passed on stack creation and update, not embedded as defaults. Nested parameters are merged into the generated nested-stack resource and take precedence over app-configured values and automatic root/output wiring. Nested targets use the app's `custom_nested_stacks` names from `stack.toml`, not AWS-generated physical stack names. `VPC` and `RunnerAutoScalingGroup` are reserved built-in targets. A parameter-only change retains the nested stack's template URL, index, and other app-configured parameter values. Unknown targets and undeclared parameter names fail generation rather than being silently ignored. The `cloudformation` block requires an AWS `cloud_connection` in the install config. The connection must already exist in the organization and be verified; reference it by name or ID. This block does not configure Azure or GCP deployments. It is supported only by Git-backed install config sync. `nuon installs sync` rejects configs containing this block before applying any installs; commit the config to its app branch instead. Approving a new Git install config creates the install and automatically queues stack-only provisioning. Changes to an existing cloud-connected install config automatically queue stack reprovisioning. Nuon applies the managed stack; these workflows do not provision the sandbox or deploy app components. Unchanged configs do not queue another stack workflow, and retries reuse the same workflow. Omitting `cloudformation.root.parameters` preserves saved root overrides; an empty table clears them. Omitting `cloudformation.nested_stacks` preserves saved nested overrides; providing it replaces the saved nested override set, and an empty table clears that set. These are overrides over the app defaults, not replacements for app stack entries. Explicit literal empty-string values are passed through, rather than treated as missing. A template referencing an empty install input still follows normal input-default resolution; use a literal `""` when you need to clear a parameter value. Literal credentials are plaintext config data, even when CloudFormation masks them with `NoEcho`. Prefer secret ARNs to literal credentials in Git. Passing an ARN does not import the secret automatically: the template or runtime still needs to read it, with the appropriate Secrets Manager and KMS permissions. ### Input Groups Inputs can be organized into groups to control how they are displayed in the dashboard during install creation: ```toml inputs.toml theme={null} [[group]] name = "db" description = "Database configuration" display_name = "Database" [[input]] name = "db_password" description = "Password for the database." sensitive = true display_name = "Password" group = "db" ``` ## Variables Variables are managed through the CLI: ```sh theme={null} nuon apps variables create --name=external_api_key --value=your-api-key nuon apps variables list nuon variables delete --id=app_variable_id ``` Variables are accessed in config using `{{ .nuon.app.variables. }}`. > [!NOTE] > > If you add or update a variable after an install has been created, the install's state must be refreshed before the > new value is available. Running a deploy or sandbox provision triggers a state update. ## Secrets Secret metadata is defined in a `secrets.toml` file. The actual values are entered by the customer when deploying the install stack: ```toml secrets.toml theme={null} [[secret]] name = "github_app_key" display_name = "GitHub App Key" description = "Base64 encoded GitHub App Key" required = true format = "base64" [[secret.kubernetes_sync_targets]] namespaces = ["api", "workers"] name = "github" key = "app-key" ``` Setting `[[secret.kubernetes_sync_targets]]` syncs the secret as a Kubernetes Secret object after sandbox provisioning, using the details provided. This approach allows for easy definition of secrets in whatever shape is desired and enables reflection of secrets across different namespaces. We support multiple `[[secret.kubernetes_sync_targets]]` entries. We also support the following method which is less flexible: ```toml secrets.toml theme={null} [[secret]] name = "github_app_key" display_name = "GitHub App Key" description = "Base64 encoded GitHub App Key" required = true format = "base64" kubernetes_sync = true kubernetes_secret_namespace = "control-plane" kubernetes_secret_name = "github-app-key" ``` This approach creates or upserts the secret into a secret with the secret in a `value` key. ### Using Secrets in Components Secrets are referenced as outputs from the install stack: ```toml components/database.toml theme={null} [vars] secret_arn = "{{ .nuon.install_stack.outputs.rds_secret_arn }}" ``` In Helm charts, reference the synced Kubernetes secret: ```yaml deployment.yaml theme={null} env: - name: API_KEY valueFrom: secretKeyRef: name: vendor-license-key key: value ``` ### Changing Secrets If you change a secret value outside of Nuon (e.g., directly in AWS Secrets Manager), Nuon will not detect the change. You will need to reprovision the install or manually redeploy dependent components. If secrets are configured to sync with Kubernetes, use the "sync secrets" option in the dashboard. # Configuring Policies Source: https://docs.nuon.co/guides/configuring-policies Step-by-step guide to adding compliance and security policies to your Nuon app template. > [!NOTE] > > For background on policy concepts, types, and engines, see the [Policies concept page](/concepts/policies). ## Prerequisites Before starting, ensure you have: * An existing Nuon app template with at least one component (terraform, helm, or container\_image) * The [Nuon CLI](/cli) installed and authenticated * Basic familiarity with [OPA Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) syntax ## Create the Policy Directory Structure Create a `policies/` directory in your app root to store policy files: ```sh theme={null} mkdir policies ``` Your final directory structure will look like this: ``` myapp/ ├── policies/ │ ├── require-signed-images.rego │ ├── require-encryption.rego │ └── require-resource-limits.rego ├── policies.toml ├── components/ │ ├── api_image.toml │ ├── database.toml │ └── api.toml └── metadata.toml ``` ## Add a Container Image Policy (Build-time) Container image policies validate external images during the build phase. This example requires all images to be cryptographically signed. Create `policies/require-signed-images.rego`: ```rego policies/require-signed-images.rego theme={null} package nuon default allow := false allow if { input.metadata.signed == true } deny contains msg if { not input.metadata.signed msg := sprintf("Image %s:%s must be signed", [input.image, input.tag]) } ``` > [!NOTE] > > For detailed container image policy patterns including SBOM validation and attestation checks, see the [External Image Policies guide](/guides/external-image-policies). ## Add a Terraform Policy (Deploy-time) Terraform policies validate the Terraform plan before applying changes. This example requires S3 bucket encryption and warns about missing tags. Create `policies/require-encryption.rego`: ```rego policies/require-encryption.rego theme={null} package nuon # Deny unencrypted S3 buckets deny contains msg if { some resource in input.plan.resource_changes resource.type == "aws_s3_bucket" resource.change.actions[_] in ["create", "update"] not resource.change.after.server_side_encryption_configuration msg := sprintf("S3 bucket '%s' must have encryption enabled", [resource.address]) } # Warn about missing Environment tag warn contains msg if { some resource in input.plan.resource_changes resource.change.actions[_] in ["create", "update"] not resource.change.after.tags.Environment msg := sprintf("Resource '%s' is missing Environment tag", [resource.address]) } ``` ## Add a Helm Chart Policy (Build-time and Deploy-time) Helm chart policies validate rendered Kubernetes manifests. They run when the component is built and again when it is deployed to an install. This example requires CPU and memory limits on all containers. Create `policies/require-resource-limits.rego`: ```rego policies/require-resource-limits.rego theme={null} package nuon # Deny containers without resource limits deny contains msg if { input.review.kind.kind == "Pod" some container in input.review.object.spec.containers not container.resources.limits.cpu msg := sprintf("Container '%s' must have CPU limits defined", [container.name]) } deny contains msg if { input.review.kind.kind == "Pod" some container in input.review.object.spec.containers not container.resources.limits.memory msg := sprintf("Container '%s' must have memory limits defined", [container.name]) } # Warn about missing resource requests warn contains msg if { input.review.kind.kind == "Pod" some container in input.review.object.spec.containers not container.resources.requests msg := sprintf("Container '%s' should have resource requests defined", [container.name]) } ``` ## Configure policies.toml Create `policies.toml` at your app root to register each policy: ```toml policies.toml theme={null} # Container image policy - evaluated at build time [[policy]] type = "container_image" engine = "opa" components = ["api_image"] contents = "./policies/require-signed-images.rego" # Terraform policy - evaluated at deploy time [[policy]] type = "terraform_module" engine = "opa" components = ["*"] contents = "./policies/require-encryption.rego" # Helm chart policy - evaluated at build time and deploy time [[policy]] type = "helm_chart" engine = "opa" components = ["api"] contents = "./policies/require-resource-limits.rego" ``` ### Policy configuration fields | Field | Required | Description | | - | - | - | | `type` | Yes | Policy type: `container_image`, `helm_chart`, `kubernetes_manifest`, `terraform_module`, `kubernetes_cluster`, or `sandbox` | | `engine` | No | Policy engine: `opa` or `kyverno` (default) | | `name` | No | Human-readable name. If not specified, derived from the filename | | `components` | No | Names of the components this policy applies to. Omit to apply to all components of the specified type. See [Scoping policies to components](/concepts/policies#scoping-policies-to-components) | | `apply_on_teardown` | No | Set to `false` to skip this policy when a component is torn down or the sandbox is deprovisioned. Defaults to `true`. See [Skipping policies during teardown](/concepts/policies#skipping-policies-during-teardown) | | `contents` | Yes | Inline policy content or path to policy file (e.g., `./policies/require-encryption.rego`) | The `contents` field supports multiple source types. Relative paths are resolved from the `policies/` directory: ```toml theme={null} # Relative file path (relative to policies/ directory) contents = "./require-encryption.rego" # HTTP/HTTPS URL contents = "https://example.com/policies/security.rego" # Git repository (the `//` separates the repo from the path to the file) contents = "git::https://github.com/org/policies//terraform/encryption.rego" # Git repository, pinned to a ref (branch, tag, or commit) contents = "git::https://github.com/org/policies//terraform/encryption.rego?ref=v1.2.3" ``` ## Ship Your Policies Policies ship with the rest of your app config. Commit them and push to the git branch your [app branch](/guides/app-branches) tracks: ```sh theme={null} git add policies.toml policies/ git commit -m "add policies" git push origin main ``` The push starts a branch run, which parses and uploads your policies along with components and other configuration. ## Observe Build-Time Evaluation Container image and Helm chart policies are evaluated when you create a build. Trigger a build for your image component: ```sh theme={null} nuon builds create -c api_image ``` If the image is not signed, the build fails with `policy_failed` status: ``` Creating build for api_image... ✗ Build failed: policy check failed - require-signed-images: Image nginx:latest must be signed ``` If the image passes all policy checks, the build succeeds: ``` Creating build for api_image... ✓ Build created: bld_abc123 ✓ Policy checks passed ``` ## Observe Deploy-Time Evaluation Terraform and Helm policies are evaluated during deployment. Deploy your components to an install: ```sh theme={null} nuon installs deploy -i ``` After the deployment starts, list the workflow steps to see policy results: ```sh theme={null} nuon installs workflows steps list -w ``` The output shows policy status for each step: ``` Step Status Policy deploy-database error ✗ 1 deploy-api success ⚠ 2 ``` * `✗` indicates deny violations that blocked the step * `⚠` indicates warnings that were logged but allowed the step to continue * `✓` indicates all policies passed Get detailed violation messages for a specific step: ```sh theme={null} nuon installs workflows steps get -w -s ``` ``` Step: deploy-database Status: error Policy Violations: ✗ require-encryption: S3 bucket 'module.db.aws_s3_bucket.backup' must have encryption enabled Policy Warnings: ⚠ require-encryption: Resource 'module.db.aws_rds_cluster.main' is missing Environment tag ``` ## View Results in Dashboard Policy results are also visible in the Nuon Dashboard: 1. Navigate to your install's **Workflows** tab 2. Select the workflow run 3. Click on a workflow step to view details 4. The **Policy Report** card shows: * **Passed**: Green checkmark if all policies passed * **Denies**: Red indicators with violation messages * **Warnings**: Orange indicators with warning messages Each violation displays the policy name and the specific message from your `deny` or `warn` rule. ![Workflow policy violations](https://mintcdn.com/nuoninc/Fapi48xNf5VnZU_L/images/concepts/policies/workflow-policy-violations.png?fit=max\&auto=format\&n=Fapi48xNf5VnZU_L\&q=85\&s=9e65766632f9bda5feb822174479839f) > [!TIP] > > You can also view policy results via CLI using `nuon installs workflows steps get -w -s `. ## Fix Policy Violations To resolve policy violations, update your components to comply with the policies: **For container images**: Sign your images using [cosign](https://github.com/sigstore/cosign) or another signing tool before pushing to your registry. **For Terraform**: Add the required configuration to your module: ```hcl theme={null} resource "aws_s3_bucket" "backup" { bucket = "my-backup-bucket" tags = { Environment = "production" } } resource "aws_s3_bucket_server_side_encryption_configuration" "backup" { bucket = aws_s3_bucket.backup.id rule { apply_server_side_encryption_by_default { sse_algorithm = "AES256" } } } ``` **For Helm charts**: Add resource limits to your pod specs: ```yaml theme={null} containers: - name: api resources: limits: cpu: "500m" memory: "512Mi" requests: cpu: "100m" memory: "128Mi" ``` After making changes, push them to the tracked git branch. The push starts a branch run that plans and deploys the change, one deployment group at a time: ```sh theme={null} git commit -am "fix policy violations" git push origin main ``` Confirm the policies now pass: ``` Step Status Policy deploy-database success ✓ deploy-api success ✓ ``` ## Next Steps * [External Image Policies](/guides/external-image-policies) - Advanced patterns for container image validation including SBOM, attestations, and signature verification * [Example Policies Repository](https://github.com/nuonco/policies) - Ready-to-use policy examples for Terraform and Kubernetes * [Policies Configuration Reference](/config-ref/policies) - Complete schema reference for policy configuration # Configuring Sandboxes Source: https://docs.nuon.co/guides/configuring-sandboxes Configure sandbox infrastructure for your app template. A sandbox is configured in a `sandbox.toml` file in the root of your app config directory. It points to a Terraform module (public or private repo) and passes variables to configure the infrastructure. To learn more about sandboxes, see the [Sandboxes](/concepts/sandboxes) concept page. ## Basic Configuration ```toml sandbox.toml theme={null} terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-sandbox" branch = "main" [vars] cluster_version = "1.33" cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" [[var_file]] contents = "./sandbox.tfvars" ``` ```toml sandbox.tfvars theme={null} additional_namespaces = ["grafana"] min_size = 2 max_size = 3 desired_capacity = 2 ``` You can use either a public repo (`public_repo` block) or a private GitHub repo (`connected_repo` block). Read more about VCS configuration [here](/guides/vcs). ## Using Default Values Add a `vars` block to `sandbox.toml` or use the `sandbox.tfvars` file for default values shared across all installs: ```toml sandbox.toml theme={null} [vars] cluster_name = "n-{{.nuon.install.id}}" enable_nuon_dns = "true" public_root_domain = "{{ .nuon.install.id }}.nuon.run" internal_root_domain = "internal.{{ .nuon.install.id }}.nuon.run" [[var_file]] contents = "./sandbox.tfvars" ``` ## Using Inputs Define an input in `inputs.toml` and reference it in `sandbox.toml`: ```toml inputs.toml theme={null} [[group]] name = "dns" description = "DNS configuration" display_name = "DNS" [[input]] name = "root_domain" description = "The root domain for the install." default = "app.example.com" display_name = "Root Domain" group = "dns" ``` ```toml sandbox.toml theme={null} [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" ``` ## Sandbox Outputs Sandbox outputs are accessible to all components through [variables](/guides/using-variables): ```toml components/app.toml theme={null} [values] account_region = "{{.nuon.install.sandbox.outputs.account.region}}" ``` Common outputs include: * `account.id` - The AWS Account ID * `account.region` - The AWS Region * `vpc.id` - The VPC ID * `cluster.name` - The EKS Cluster name * `cluster.endpoint` - The EKS Cluster endpoint * `ecr.repository_url` - The ECR repository URL * `nuon_dns.public_domain.name` - The public root domain * `nuon_dns.internal_domain.name` - The internal root domain * `namespaces` - Namespaces created in the cluster Each `nuon_dns` domain is an object rather than a string: `name` holds the hostname, alongside `zone_id` and `nameservers`. Reference `.name` when you want the domain itself. See the [outputs.tf](https://github.com/nuonco/aws-eks-sandbox/blob/main/outputs.tf) for the full list. ## Custom Sandboxes You can fork a [managed sandbox](https://github.com/nuonco) or create your own. Point your `sandbox.toml` to your repo: ```toml sandbox.toml theme={null} terraform_version = "1.11.3" [public_repo] repo = "your-org/your-sandbox" directory = "sandbox" branch = "main" ``` > [!NOTE] > > If you are considering a custom sandbox, we would love to hear about your use case. Please [contact us](https://nuon.co/contact-us). # Container Actions Source: https://docs.nuon.co/guides/container-actions Execute actions inside a user-managed container image. By default, actions run on the install [runner](/concepts/runners). Setting `image` executes the action inside a container image you provide. To learn more about actions, see the [Actions](/concepts/actions) concept page. For a migration walkthrough, see [Database migrations](/guides/database-migrations). ## Configure it Add `image` to the action and configure a step with `inline_contents`: ```toml actions/db_migrate.toml theme={null} # action name = "db_migrate" timeout = "10m" image = "ghcr.io/acme/migrate-tools:v1.4.0" [[triggers]] type = "manual" [[steps]] name = "migrate" inline_contents = """ #!/usr/bin/env sh set -eu migrate -database "$DATABASE_URL" -path /migrations up """ [steps.env_vars] DATABASE_URL = "{{.nuon.install.sandbox.outputs.database_url}}" ``` Ship it the same way as any other action: commit it and push to the git branch your [app branch](/guides/app-branches) tracks. Everything else about the action is unchanged: triggers, `timeout` (1 hour maximum), `role`, `enable_kube_config`, `env_vars`, and templating all behave exactly as they do when the action runs on the runner. See [Configure actions](/guides/actions). ## Choosing an image You can use publically hosted images or component images from your Nuon app config. ### A public reference ```toml actions/db_migrate.toml theme={null} image = "ghcr.io/acme/migrate-tools:v1.4.0" ``` ### A private image Publish the image as a [container image component](/guides/container-image-components) and point `image` at its `image.ref` output: ```toml actions/db_migrate.toml theme={null} image = "{{.nuon.components.migrate_tools.outputs.image.ref}}" ``` Registry access is configured once on the component, and every action referencing it inherits that. Referencing the component also registers it as a dependency of the action, so you do not need to list it under `dependencies`. Because it is a dependency, the run keeps it current. Before the action is planned, Nuon compares the component's latest build — for the app config version this install is pinned to — against the image the install has already synced, and syncs the new one first if they differ. A new build of the component is therefore in the install's own registry before the next run of the action, with no deploy in between; the sync shows up on the install timeline as a sync deploy for that component. The sync needs a build to pick up. A component whose latest build for that app config version never finished successfully is left alone, and the action runs against the image the install already has — the run log says which component was skipped and why. > [!WARNING] > > Use the component's `image.ref` output, not `image.repository` and > `image.tag`. A bare `repository:tag` is rejected with `not digest-pinned`. ## Building the image Nuon does not modify the image. It must include every tool and dependency the action needs. ### Images without a shell For a binary in a distroless or scratch image, use an absolute executable path in a `command` step without a repository source: ```toml theme={null} [[steps]] name = "check" command = "/checker --format json" [steps.env_vars] TARGET = "{{.nuon.install.id}}" ``` Nuon executes this command directly and overrides the image entrypoint. Literal arguments, including quoted strings and empty arguments, are supported. The working directory is the mounted action workspace. The image's configured user is preserved, and the output file is writable by nonroot users. Commands with shell expressions, variable expansion, redirects, or pipelines still use `/bin/sh`. So do `inline_contents` and repository-backed steps. Pass dynamic values through `env_vars` when the image has no shell. The binary must write outputs to `NUON_ACTIONS_OUTPUT_FILEPATH` itself; the shell helper `nuon_output` is unavailable during direct execution. # Container Image Components Source: https://docs.nuon.co/guides/container-image-components Container image components allow you to use prebuilt container images. Container images allow you to import prebuilt container images from public sources, private AWS ECR repositories, private GCP Artifact Registry (GAR) repositories, and private Azure Container Registry (ACR) repositories. Container images are used to import *prebuilt* images, that have already been pushed to either a public registry, a private AWS ECR repository, a private GCP Artifact Registry repository, or a private Azure Container Registry repository. > [!NOTE] > > If you have private prebuilt images in a registry other than AWS ECR, GCP Artifact Registry, or Azure Container Registry, [please get in touch](https://nuon.co/contact-us)! To learn more about components, see the [Components](/concepts/components) concept page. ## Configuring a container image component Component configuration describes only the source image; there is no user-supplied `cloud_connection_id`. For private ECR, GAR, and ACR sources, register the repository in **Settings → Image repositories → Add image repository** and choose its pull identity — see [Add an image repository](/guides/private-image-registries#add-an-image-repository). During a new configuration save or app sync, Nuon looks up the organization's saved assignment for the exact canonical repository and pins its chosen [Cloud Connection](/guides/cloud-connections) ID. Configure only the image URL, coordinates, and tag fields shown in the examples below. If the chosen connection is not verified, the save or sync fails. See [how image connections are selected](/guides/private-image-registries#how-image-connections-are-selected) for the full selection and pinning rules, including how removal and deletion affect existing configurations. ### Using a Public Image To use a public image from any container registry, configure the `public` block. ```toml components/public_image.toml theme={null} # container-image name = "public" type = "container_image" [public] image_url = "kennethreitz/httpbin" tag = "latest" ``` ### Using a Private AWS ECR Image To use an image from a private ECR registry, configure the `aws_ecr` block. ```toml components/ecr_image.toml theme={null} # container-image name = "ecr" type = "container_image" [aws_ecr] image_url = "123456789012.dkr.ecr.us-west-2.amazonaws.com/acme/api" tag = "latest" region = "us-west-2" ``` Register `arn:aws:ecr:us-west-2:123456789012:repository/acme/api` and explicitly choose an AWS [Cloud Connection](/guides/cloud-connections) with the `ecr` preset in the same Nuon organization, account, and region. [Configure its role for ECR read access](#aws-ecr-access-iam-role) and verify it before saving or syncing. On save or sync, Nuon pins the assignment's chosen verified connection. ### Using a Private GCP GAR Image To use an image from a private Google Artifact Registry, configure the `gcp_gar` block. ```toml components/gar_image.toml theme={null} # container-image name = "gar" type = "container_image" [gcp_gar] image_url = "us-central1-docker.pkg.dev/my-project/my-repo/my-image" tag = "latest" region = "us-central1" gcp_project_id = "my-project" ``` Register `projects/my-project/locations/us-central1/repositories/my-repo` and explicitly choose a GCP [Cloud Connection](/guides/private-image-registries#google-artifact-registry) with the `gar` preset in the same organization, project, and location. Enter `my-repo` in the dashboard, not `my-repo/my-image`; all images in `my-repo` use this assignment. Apply its setup and verify the identity before saving or syncing. On save or sync, Nuon pins the assignment's chosen verified connection. ### Using a Private Azure ACR Image Nuon exchanges a short-lived OIDC token through Microsoft Entra to authenticate to the registry. In **Settings → Image repositories → Add image repository**, enter `acme/api` and choose an existing Azure pull identity or create one inline. You can select an existing principal or add a new one. The underlying [Cloud Connection](/guides/private-image-registries#azure-container-registry) must use the `acr` preset in the same organization and match the registry. Nuon saves the actual login hostname **and exact repository path**, such as `acmeimages.azurecr.io/acme/api`, with the identity you chose. ```toml components/acr_image.toml theme={null} # container-image name = "acr" type = "container_image" [azure_acr] image_url = "acmeimages.azurecr.io/acme/api" tag = "latest" registry_url = "acmeimages.azurecr.io" ``` The connection authenticates an existing Microsoft Entra application through Nuon's connection-specific OIDC subject. The saved repository assignment selects that connection; its detail page provides Azure CLI and Terraform instructions for federation and **Container Registry Repository Reader** with ABAC conditions for the repository. Have the cloud administrator apply the appropriate commands, then verify the identity. Follow the [access setup directions](#azure-acr-access). > [!NOTE] > > OIDC setup requires an ABAC-enabled registry. Nuon does not change existing registry permission modes. > [!NOTE] > > Source-registry credentials are used by Nuon's builds and metadata fetches. They never land > in a customer cloud account, and access is shared across all installs of the app template > rather than configured per install. ## Verifying signed images Container image components can require the resolved image digest to be signed by a trusted Sigstore keyless identity or Cosign public key. Verification happens before Nuon copies the image, and a failed verification fails the component build. See [Verify Container Image Signatures](/guides/image-signature-verification) for keyless and key-based configuration, authority matching, and guidance on combining verification with OPA policies. ## Deployments Container image components *cannot* be deployed directly in a customer install. When an image is released, it will be *synced* into the customer install and made available to other components via [variables](/guides/using-variables). To deploy a Container image component, reference the image from a Helm component or Terraform component: ```toml components/eks_deployment.toml theme={null} # helm name = "eks_deployment" type = "helm_chart" chart_name = "" [connected_repo] repo = "" directory = "components/helm-chart" branch = "main" [values] "env.IMAGE_TAG" = "{{.nuon.components.app_image.image.tag}}" "env.IMAGE_REPOSITORY" = "{{.nuon.components.app_image.image.repository.uri}}" ``` ```toml components/ecs_service.toml theme={null} # terraform name = "ecs_service" type = "terraform_module" terraform_version = "v1.6.3" [connected_repo] repo = "" directory = "components/ecs-service" branch = "main" [vars] "image_tag" = "{{.nuon.components.app_image.image.tag}}" "image_repository" = "{{.nuon.components.app_image.image.repository.uri}}" ``` ```toml components/eks_job.toml theme={null} # action name = "eks_job" type = "job" image_url = "{{.nuon.components.app_image.image.repository.uri}}" tag = "{{.nuon.components.app_image.image.tag}}" ``` ## Image Syncing When a Container image component is released, Nuon will automatically sync the image into the end customer account. This image is stored in a local registry that is provisioned in the customer account. OCI referrers and legacy Cosign digest tags are copied with the image so signatures, SBOMs, provenance, and other attestations remain available in the destination registry. Nuon image syncing allows you to sync images into accounts, without worrying about cross account permissions, registry authentication or publishing public images. Any `Dockerfile` in a repo can be built, and synced. The sync process works by creating a 1-time authentication flow that grants the install runner access to pull the image from the org data plane, and copy it into the local registry. ## Granting Nuon Access to Pull Images Your **vendor cloud administrator** applies source-registry setup in the account or project containing your images. End customers do not need access to that registry, and setup is not repeated for every install. Nuon never applies cloud writes automatically. See [who sets up image repository access](/guides/private-image-registries#who-sets-up-image-repository-access), [Grant access to another repository](/guides/private-image-registries#grant-access-to-another-repository), and [Register image repositories through the API](/guides/private-image-registries#register-image-repositories-through-the-api) for setup, permissions, and registration details. After verification, fetch component metadata and run a build with an existing private image to check current permissions and exercise manifest and layer downloads. | Image registry | Customer deployment | Setup | | - | - | - | | AWS ECR | Any | [AWS ECR Access IAM Role](#aws-ecr-access-iam-role) | | GCP Artifact Registry | Any | [GCP GAR Access](#gcp-gar-access) | | Azure Container Registry | Any | [Azure ACR Access](#azure-acr-access) | ### AWS ECR Access IAM Role Set up the identity, trust, and repository permissions through the [ECR guide](/guides/private-image-registries#amazon-ecr): register the repository in **Settings → Image repositories**, apply the generated setup, and verify the connection. Then save or sync the component with its source image URL, tag, and matching region; Nuon pins the assignment's chosen verified `ecr` connection. Tag resolution with `update_policy` requires `ecr:ListImages` on the repository. See the full set of `aws_ecr` fields in the [container-image config reference](/config-ref/container-image#aws_ecr). ### GCP GAR Access Set up the service account, federation, and repository-reader bindings through the [GAR guide](/guides/private-image-registries#google-artifact-registry): register the repository in **Settings → Image repositories**, apply the generated setup, and verify the connection. Then save or sync the component with its source image URL, tag, project ID, and region; Nuon pins the assignment's chosen verified `gar` connection. The assignment covers all images in that GAR repository. See the full set of `gcp_gar` fields in the [container-image config reference](/config-ref/container-image#gcp_gar). ### Azure ACR Access Set up the Entra application, federation, and repository-conditioned Reader grant through the [ACR guide](/guides/private-image-registries#azure-container-registry): the registry must already use **RBAC Registry + ABAC Repository Permissions**, and Nuon does not change an existing registry's mode. Register the repository in **Settings → Image repositories**, apply the generated setup, and verify the connection. Then save or sync the component with its source image URL, registry login hostname, and tag; Nuon pins the assignment's chosen verified `acr` connection. See the full set of `azure_acr` fields in the [container-image config reference](/config-ref/container-image#azure_acr). ## Importing Images Outside of Supported Registries We currently support public container images, private AWS ECR repositories, private GCP Artifact Registry repositories, and private Azure Container Registry repositories. If your registry is supported by AWS ECR's [pull through cache](https://docs.aws.amazon.com/AmazonECR/latest/userguide/pull-through-cache-working.html), the easiest way to import the images into Nuon is to setup a pull through cache and configure your container image to use it. This works for [Docker Hub](https://hub.docker.com/), [Github Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) and [Microsoft Azure Container Registry](https://azure.microsoft.com/en-us/products/container-registry). > [!NOTE] > > If you would like to use a different private container registry, we would love to know more. Please [get in touch](https://nuon.co/contact-us) to tell us more about your use case. # Let customers manage their install Source: https://docs.nuon.co/guides/control-plane-integration Give customers controls in your app to change, approve, and remove their BYOC install. Once a customer's install is running, they'll still need to make a few changes themselves, such as fixing a setting, approving an update, or removing your product from their account. This guide covers the API calls behind those controls in your app. For first-time setup, see [Build a UI integration](/guides/ui-integration). Every call here uses your app's [service account](/concepts/service-accounts) token. Calls that start work accept a `request_id`, so a retry after a timeout returns the original workflow. See [Idempotent operations](/guides/idempotent-operations). ## Change a setting When a customer fixes a setting, such as their domain, update the install's [inputs](/concepts/app-inputs). Nuon redeploys the parts of your product that use them. ```bash curl theme={null} curl -X PATCH https://api.nuon.co/v1/installs/$INSTALL_ID/inputs \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "domain": "new-domain.example.com", "replicas": "3" } }' ``` ```go Go theme={null} inputs, workflowID, err := client.UpdateInstallInputs( context.Background(), installID, &models.ServiceUpdateInstallInputsRequest{ Inputs: map[string]string{ "domain": "new-domain.example.com", "replicas": "3", }, }, ) ``` ## Pick up a changed secret Customers keep secrets in their own cloud's secret manager. After they change one, sync it so your product uses the new value. ```bash curl theme={null} curl -X POST https://api.nuon.co/v1/installs/$INSTALL_ID/sync-secrets \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{"plan_only": false}' ``` ```go Go theme={null} // SyncSecrets is not yet exposed in the public SDK. // Use the REST API directly or contact support for SDK updates. ``` ## Approve changes New versions of your product, and any other change that waits for approval, reach the customer one step at a time. Find the waiting steps: ```bash theme={null} curl https://api.nuon.co/v1/workflows/pending-approvals \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" ``` Then send the customer's approval: ```bash theme={null} curl -X POST https://api.nuon.co/v1/workflows/$WORKFLOW_ID/steps/$STEP_ID/approvals/$APPROVAL_ID/response \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{ "response_type": "approve" }' # or "deny" ``` To choose which steps wait for the customer, see [Getting customer approvals](/guides/ui-integration#4-getting-customer-approvals). ## Remove your product Removing an install runs setup in reverse: 1. Deprovision your product from the customer's account. 2. The customer removes the runner, following the steps in the deprovision workflow. 3. Delete the install from Nuon. ### Deprovision Deprovisioning removes your product and its base infrastructure from the customer's account. Like setup, it can pause for approval. ```bash curl theme={null} curl -X POST https://api.nuon.co/v1/installs/$INSTALL_ID/deprovision \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{"plan_only": false}' ``` ```go Go theme={null} err := client.DeprovisionInstall(context.Background(), installID) ``` ### Delete the install Once everything is gone from the customer's account, delete the install. ```bash curl theme={null} curl -X DELETE https://api.nuon.co/v1/installs/$INSTALL_ID \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" ``` ```go Go theme={null} deleted, err := client.DeleteInstall(context.Background(), installID) ``` ### Forget an install If something outside Nuon breaks the customer's account badly enough that deprovisioning can't run, forget the install instead. Nuon drops its record without touching the account, and you can start a fresh install. ```bash curl theme={null} curl -X POST https://api.nuon.co/v1/installs/$INSTALL_ID/forget \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{}' ``` ```go Go theme={null} forgotten, err := client.ForgetInstall(context.Background(), installID) ``` # Custom Domains Source: https://docs.nuon.co/guides/custom-domains Manage custom domains for an install. By default, each Nuon install will get configured with a `.nuon.run` root domain, which allows any component to create or update DNS records. While the `nuon.run` domain works out of the box, it can be disabled or customized to support different types of domains. By default, both a public and private DNS zone are created. ## Vendor Managed Domain If you would like each of your installs to have a common root domain, such as `installs..com`, you can set up a DNS zone and delegate each install's nameservers. First, configure your sandbox to use a custom root domain using: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3s" [public_repo] directory = "azure-aks-byovpn" repo = "nuonco/sandboxes" branch = "main" [vars] public_root_domain = "{{.nuon.install.id}}.your-domain.com" ``` Now, when an install is provisioned it will automatically create the DNS zone named `install-id.your-domain.com`. Next, the root domain must *delegate* to the install's DNS zone. This can be done by adding `NS` records on the root domain. First, find the nameservers for the public domain by inspecting the sandbox outputs: ```sh theme={null} nuon installs sandbox-outputs ``` Next, set up a DNS record on your root domain that delegates the install subdomain. This can be done via your provider's console our if you are managing DNS using Terraform you can use a record similar to this: ```hcl theme={null} resource "aws_route53_record" "docs" { zone_id = aws_route53_zone.main.zone_id name = "install-id" type = "NS" ttl = 3600 records = [ "ns-1", "ns-2", "ns-3", "ns-4" ] } ``` ## Customer Managed Domain You can allow a customer to bring their own domain by using an app input. Once the install is provisioned, the customer will be responsible for delegating the DNS subdomain. Please refer to the previous section for more details on how to delegate the domain. To offer custom install domains, add the following to your config file: ```toml inputs.toml theme={null} # inputs [[input]] name = "root_domain" description = "Root domain for install" default = "" sensitive = false required = true display_name = "Root" ``` Next, set the sandbox root domain to the input value: ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "azure-aks-byovpn" repo = "nuonco/sandboxes" branch = "main" [vars] public_root_domain = "{{.nuon.install.inputs.root_domain}}" ``` ## Disabling DNS Zones You can completely disable DNS in any sandbox by adding the following to your sandbox config: ```toml sandbox.toml theme={null} # sandbox [vars] enable_private_dns = "false" enable_public_dns = "false" ``` # Custom Install Stacks Source: https://docs.nuon.co/guides/custom-nested-stacks Provision additional AWS, Azure, or GCP resources with the install stack. Custom install stacks provision additional infrastructure with the customer's install stack, before the sandbox or any components run. The same `[[custom_nested_stacks]]` configuration works across AWS, Azure, and GCP: * AWS deploys CloudFormation nested stacks. * Azure deploys linked ARM templates through an Azure Deployment Stack. * GCP instantiates reviewed Terraform modules from the install-stack repository. > [!NOTE] > > GCP deliberately does not execute an arbitrary Terraform module named by app configuration. It only allows modules > implemented and reviewed in the selected install-stack repository's `gcp/modules` collection. To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. ## Backward compatibility Existing valid AWS `stack.toml` files require no changes. The `name`, `template_url`, `index`, and `parameters` fields retain their original behavior. Azure and GCP support is additive, and app templates without `custom_nested_stacks` continue to produce the same install stack. Configurations with duplicate names or indices now fail during sync instead of producing ambiguous resources. Per-install overrides also keep the existing merge behavior: an override with the same `name` replaces the app-level entry, while a new name is appended. For AWS parameter-only customization, use `cloudformation.nested_stacks..parameters` in the install config instead. It merges parameter values without replacing the template or index; see [AWS Cloud-Connection Stack Parameters](/guides/configuring-inputs-and-secrets#aws-cloud-connection-stack-parameters). ### Capabilities | Capability | AWS | Azure | GCP | | - | - | - | - | | App-level and per-install configuration | Yes | Yes | Yes | | Install-input parameters | Yes | Yes | Yes | | Outputs available to app templates | Yes | Yes | Yes | | Relative source uploaded during sync | Yes | Yes | Not applicable | | Sequential stacks and output wiring | Yes | Yes | Unique `index` only; modules do not chain | | User-supplied implementation | CloudFormation | Compiled ARM JSON | Reviewed module only | | Managed deletion with the install stack | Yes | Yes | Yes, except retained KMS keys | The GCP differences are intentional safety boundaries, not configuration differences. Add a reviewed module to the install-stack repository when you need a new GCP resource type. ## Use Cases * Create Kubernetes namespaces or access entries for an existing cluster. * Add network, database, DNS, storage, or identity resources that must exist before the sandbox. * Pass those resources' outputs to the sandbox or application components. * Provision stable infrastructure that should share the install stack's lifecycle rather than redeploy with a component. ## Configuration Custom stacks are configured in `[[custom_nested_stacks]]` blocks in `stack.toml`. The block shape is the same for every cloud; only `template_url` identifies a cloud-specific implementation. ### AWS ```toml theme={null} type = "aws-cloudformation" name = "payments-{{.nuon.install.id}}" description = "Application install stack." vpc_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/.../byo-vpc.yaml" runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/.../runner-asg.yaml" [[custom_nested_stacks]] name = "storage" template_url = "./cloudformation/storage.yaml" index = 0 [custom_nested_stacks.parameters] BucketName = "{{.nuon.install.id}}-storage" ``` Relative templates are uploaded by Nuon during app sync. Existing public S3 URLs continue to work. ### Azure ```toml theme={null} type = "azure-bicep" name = "payments-{{.nuon.install.id}}" description = "Application install stack." vpc_nested_template_url = "https://raw.githubusercontent.com/nuonco/install-stacks/main/azure/vnet.json" runner_nested_template_url = "https://raw.githubusercontent.com/nuonco/install-stacks/main/azure/runner.json" [[custom_nested_stacks]] name = "storage" template_url = "./arm/storage.json" index = 0 [custom_nested_stacks.parameters] accountName = "{{.nuon.install.id | substr 0 18}}store" ``` Azure templates must be compiled ARM JSON. A `.bicep` `template_url` or a non-JSON body fails when your app config is parsed, with the compile command to run. Compile, then commit the JSON and push it to the git branch your [app branch](/guides/app-branches) tracks: ```bash theme={null} az bicep build --file arm/storage.bicep --outfile arm/storage.json git add arm/storage.json git commit -m "compile storage template" git push origin main ``` Relative ARM templates are uploaded when the branch run parses your app config. A public HTTPS URL also works. ### GCP ```toml theme={null} type = "gcp-terraform" name = "payments-{{.nuon.install.id}}" description = "Application install stack." [[custom_nested_stacks]] name = "storage" template_url = "github.com/nuonco/install-stacks//gcp/modules/bucket" index = 0 [custom_nested_stacks.parameters] location = "US" versioning = "{{.nuon.install.inputs.bucket_versioning}}" ``` For a fork, replace the repository prefix but preserve `//gcp/modules/`. The module must exist in that fork's GCP install stack. The built-in collection supports `bucket`, `kms`, `service_account`, and `dns`. ### Properties | Property | Type | Required | Description | | - | - | - | - | | `name` | `string` | Yes | Stable, unique key used for deployment naming and output lookup. | | `template_url` | `string` | Yes | AWS template URL/path, Azure ARM JSON URL/path, or GCP curated module path. | | `index` | `int` | Yes | Unique ordering key. AWS and Azure execute stacks in ascending order. | | `parameters` | `map[string]string` | No | Explicit parameter values. Supports Go templating. See [Parameter Mapping](#parameter-mapping). | > [!TIP] > > Use a relative AWS or Azure template path when the template lives beside the app config. Nuon uploads it during sync. ## Apply the Install Stack After your app branch has run and you have created an install: * AWS customers open the install's CloudFormation quick link and create or update the stack as usual. * Azure and GCP customers apply the corresponding `nuonco/stack` Terraform module. Custom stacks are read from the authenticated `stack_config` data source; no custom-stack variables are required. ```hcl theme={null} provider "stack" {} module "install_stack" { source = "nuonco/stack/azure" # use nuonco/stack/gcp for GCP version = "~> 1.0" install_id = var.install_id } ``` The Stack provider reads `NUON_API_TOKEN` and `NUON_API_URL` from the environment. See [The Nuon Stack Terraform Provider](/guides/nuon-stack-terraform-provider) for authentication and complete examples. ## Use Custom Stack Outputs All clouds report outputs under the same path: ```text theme={null} .nuon.install_stack.outputs.custom_nested_stacks..outputs. ``` For example, a sandbox or component can consume the `name` output from the `storage` stack: ```toml theme={null} [vars] bucket_name = "{{.nuon.install_stack.outputs.custom_nested_stacks.storage.outputs.name}}" ``` Output names retain the template or curated module's spelling. Azure matching is case-insensitive internally, so ARM's output-name normalization does not drop values. ### GCP Curated Modules | Module | Parameters | Outputs | | - | - | - | | `bucket` | `location`, `versioning`, `force_destroy` | `name`, `url`, `self_link` | | `kms` | `location`, `rotation_period` | `id`, `key_ring`, `name` | | `service_account` | `display_name`, `description` | `email`, `unique_id`, `name` | | `dns` | `dns_name`, `visibility`, `description`, `force_destroy` | `name`, `name_servers`, `managed_zone_id` | Booleans are the strings `"true"` or `"false"`. Destructive options default to `"false"`. Each module names resources from the install ID and stack `name`. > [!WARNING] > > GCP does not support deleting Cloud KMS key rings or keys. Destroy removes the `kms` module from Terraform state, but > the key material remains in the project. A later apply creates a new suffixed key instead of adopting or replacing the > retained key. ## Execution Order AWS and Azure custom stacks execute **after** the built-in network and runner stacks. The `index` field determines the order among custom stacks: 1. Built-in VPC or VNet stack 2. Built-in runner stack 3. Custom nested stacks ordered by `index`, ascending. Each AWS or Azure stack depends on the previous one. A failure prevents later stacks from executing. GCP validates unique indices, but curated modules do not depend on each other. Terraform cannot order mixed module types from runtime `index` values without cycles or state-address changes. Set any value another stack needs in `parameters` or install inputs; do not rely on `index` for GCP data flow. ## Reserved Parameters For AWS and Azure, Nuon injects reserved parameters when the template declares them. They are never hoisted or exposed for manual input. GCP curated modules receive the install ID, project, region, and configured parameter map directly from the Terraform install-stack module. ### Nuon Identity Parameters | Parameter | Value | | - | - | | `NuonInstallID` | The install ID | | `NuonAppID` | The app ID | | `NuonOrgID` | The org ID | If your template defines any of these as parameters, Nuon populates them automatically. If your template does not define them, they are omitted — no error is raised. ### Role Enable Parameters | Parameter | Value | | - | - | | `EnableRunnerProvision` | Runner Provision Role enabled | | `EnableRunnerMaintenance` | Runner Maintenance Role enabled | | `EnableRunnerDeprovision` | Runner Deprovision Role enabled | Your app's IAM role configuration (in `permissions/` and `break_glass/`) generates `Enable*` parameters in the parent stack (e.g., `EnableRunnerProvision`, `EnableRunnerDeprovision`). These are also treated as reserved parameters in custom nested stacks. If your template declares one of these parameters, Nuon passes through the parent stack's parameter value (a `Ref` to the parent parameter). If your template does not declare the parameter, it is not injected. Your nested template can then use its own `Conditions` block to conditionally create resources based on whether a role is enabled: ```yaml theme={null} AWSTemplateFormatVersion: '2010-09-09' Parameters: NuonInstallID: Type: String EnableRunnerProvision: Type: String Default: 'true' AllowedValues: - 'true' - 'false' Conditions: ProvisionEnabled: !Equals [!Ref EnableRunnerProvision, 'true'] Resources: # Resources that depend on the provision role being enabled MyResource: Type: Custom::Resource Condition: ProvisionEnabled Properties: InstallId: !Ref NuonInstallID ``` ### Azure Reserved Parameters On `azure-bicep`, the reserved set follows ARM's camelCase convention and adds two more: | Parameter | Value | | - | - | | `nuonInstallID` | The install ID | | `nuonAppID` | The app ID | | `nuonOrgID` | The org ID | | `location` | The install's Azure region | | `deployTimestamp` | Deployment timestamp | Azure has no equivalent of the Role Enable parameters — per-operation access is granted through managed identities rather than template conditions. ### Azure Managed Identities If an `azure-bicep` custom nested stack declares a `Microsoft.ManagedIdentity/userAssignedIdentities` resource, Nuon adds a subscription-level role assignment granting that identity `*/register/action`, so it can register Azure resource providers. ARM does not allow subscription-scoped deployments inside a linked deployment, so this has to live in the parent template — which means Nuon needs the identity's `principalId` as an **output**. Your template must expose an output named `identityPrincipalId`, or one ending in that suffix (for example `workerIdentityPrincipalId`, useful when a stack has several identities' outputs to keep distinct). Matching is case-insensitive and an exact `identityPrincipalId` wins over a suffixed one. ```json theme={null} "outputs": { "workerIdentityPrincipalId": { "type": "string", "value": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', 'my-identity'), '2023-01-31').principalId]" } } ``` If a stack declares a managed identity but exposes no matching output, install stack generation fails with an error listing the outputs it did find. This has no CloudFormation equivalent — IAM resources in an AWS nested stack are already account-scoped, so nothing needs hoisting to the parent. ## First-Class Output Wiring On AWS and Azure, if a custom template parameter matches an output from the built-in network or runner stack, Nuon wires it automatically. This lets the custom template consume built-in infrastructure without explicit configuration. For example, if the VPC template outputs `VPC` and `RunnerSubnet`, and your custom template declares parameters with those same names, they will be automatically populated: ```yaml theme={null} Parameters: VPC: Description: VPC ID from the VPC stack Type: String RunnerSubnet: Description: Subnet from the VPC stack Type: String ``` These auto-wired parameters are not hoisted to the parent stack. On `azure-bicep`, the equivalent source is the built-in VNet deployment. A parameter named `vnetId`, `vnetName`, `runnerSubnetId`, `runnerSubnetName`, `publicSubnet1Id`, `privateSubnet1Name` (and the rest of the subnet outputs) is wired to `[reference('vnetDeployment').outputs..value]`. ## Inter-Stack Output Wiring On AWS and Azure, outputs from earlier custom stacks are automatically wired to matching parameters in later custom stacks. If stack A (index 0) declares an output called `SharedSubnetID`, and stack B (index 1) declares a parameter called `SharedSubnetID`, Nuon supplies stack A's value. This works across any number of stacks in the chain — stack C can consume outputs from both stack A and stack B. Auto-wired parameters are not hoisted to the parent stack. **Precedence:** First-class outputs (from the VPC and runner stacks) always take priority over custom stack outputs. If both the built-in network stack and a custom stack produce an output with the same name, the built-in output is used. > [!NOTE] > > GCP curated modules currently expose outputs to Nuon, but do not wire one custom module's output into another module. ```yaml theme={null} # Stack A (index 0) - produces outputs Outputs: SharedSubnetID: Value: !Ref MySubnet # Stack B (index 1) - consumes outputs from Stack A Parameters: SharedSubnetID: Description: Automatically wired from Stack A Type: String ``` ## Parameter Hoisting On AWS and Azure, non-reserved template parameters that are not auto-wired or explicitly mapped are **hoisted** into the generated parent template. This means: * AWS parameters appear in the CloudFormation console when the customer creates or updates the stack. * AWS parameters are grouped under a label matching the stack `name`. * Default values from your template are preserved. * Parameter types are preserved. **Important:** *Hoisted* parameter names must be unique across all nested stacks (including the VPC and runner stacks). If two stacks hoist a parameter with the same name, install stack generation fails with a conflict error. Names that are auto-wired or explicitly mapped never reach the parent, so any number of stacks may declare them. ## Parameter Mapping Use the `parameters` field to set a template parameter from your app config. This is useful for passing install-specific values into your nested template without hoisting them to the CloudFormation UI. ```toml theme={null} [[custom_nested_stacks]] name = "k8s_namespaces" template_url = "https://my-bucket.s3.amazonaws.com/templates/k8s-namespaces.yaml" index = 0 [custom_nested_stacks.parameters] Namespaces = "{{.nuon.install.inputs.namespaces}}" ``` When a parameter is set explicitly: * Its value is rendered when the install stack is generated. * It is removed from the hoisted parameter set (not shown in the CloudFormation UI). Because the value is resolved before the customer applies the stack, it cannot be edited in the CloudFormation console. * If a referenced install input has no value, it resolves to that input's declared default (an empty string if it has none). ### Templating Parameter values are full Go templates with [sprig](https://masterminds.github.io/sprig/) functions available, so you can compose literals, branch on an optional input, or transform a value: ```toml theme={null} [custom_nested_stacks.parameters] # literal Environment = "production" # composed BucketName = "myapp-{{ .nuon.install.id }}-state" # conditional, with a derived fallback RootDomain = "{{ if .nuon.install.inputs.root_domain }}{{ .nuon.install.inputs.root_domain }}{{ else }}{{ .nuon.install.id | substr 0 15 }}.installs.example.com{{ end }}" ``` > [!WARNING] > > Parameters are rendered **before** the customer applies the stack, so they can only reference state that exists at that > point: `.nuon.install.inputs.*`, `.nuon.inputs.inputs.*`, `.nuon.install.id`, `.nuon.app.*` and `.nuon.org.*`. > > Sandbox outputs, component outputs, action outputs and install stack outputs are rejected when your app config is parsed, > because they only exist after the stack has been applied. Reference those from component or sandbox vars instead. ## Authoring AWS and Azure Templates ### Template Structure AWS templates must be valid CloudFormation YAML or JSON. At minimum: ```yaml theme={null} AWSTemplateFormatVersion: '2010-09-09' Description: My custom nested stack Parameters: ClusterName: Type: String Description: Name of the EKS cluster Resources: # Your resources here Outputs: # Optional outputs ``` Azure templates must be valid compiled ARM JSON with a resource-group or subscription deployment schema. Nuon reads their `parameters`, `resources`, and `outputs`; it does not compile Bicep source. GCP custom stacks are Terraform child modules maintained under `gcp/modules` in the install-stack repository. Each curated module defines its own accepted parameters and returns a single `outputs` object. ### Naming Conventions The `name` field in `stack.toml` is converted to a CamelCase CloudFormation logical ID. For example: | `name` value | Logical ID | | - | - | | `k8s_namespaces` | `K8sNamespaces` | | `eks_access_entries` | `EksAccessEntries` | | `my-custom-stack` | `MyCustomStack` | The logical ID must not conflict with existing resources in the parent stack (e.g., `VPC`, `RunnerAutoScalingGroup`). ### Validation Rules The following conditions will cause a sync error: * Missing `name` or `template_url` * Duplicate `name` values * Duplicate `index` values across custom stacks * An invalid GCP curated module path * An `azure-bicep` template whose `template_url` ends in `.bicep`, or whose contents are not ARM JSON * A parameter template that references state unavailable before the install stack is applied AWS and Azure generation additionally rejects invalid template documents, deployment names, output collisions, and hoisted parameter conflicts before the customer applies the stack. ### Using Lambda Custom Resources For resources that CloudFormation cannot manage natively (e.g., Kubernetes namespaces), use a Lambda-backed custom resource pattern: 1. Define an IAM role with the minimum permissions needed 2. Create a Lambda function inline (using `ZipFile`) or reference an S3 artifact 3. Create a `Custom::` resource that invokes the Lambda ```yaml theme={null} Resources: MyFunctionRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: lambda.amazonaws.com Action: sts:AssumeRole ManagedPolicyArns: - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole Policies: - PolicyName: CustomAccess PolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Action: - eks:DescribeCluster - eks:AccessKubernetesApi Resource: !Sub arn:aws:eks:${AWS::Region}:${AWS::AccountId}:cluster/${ClusterName} MyFunction: Type: AWS::Lambda::Function Properties: Runtime: python3.12 Handler: index.handler Timeout: 120 Role: !GetAtt MyFunctionRole.Arn Code: ZipFile: | # Your Lambda handler here def handler(event, context): ... MyCustomResource: Type: Custom::MyResource Properties: ServiceToken: !GetAtt MyFunction.Arn ``` ### Handling Delete Events Lambda custom resources receive `Create`, `Update`, and `Delete` request types. Always handle the `Delete` event, even if it is a no-op. Failing to respond to a delete event will cause the CloudFormation stack deletion to hang. ```python theme={null} if event["RequestType"] == "Delete": send_cfn_response(event, context, "SUCCESS") return ``` ## Hosting AWS Templates Public AWS nested template URLs must point to S3. Alternatively, use a relative path and Nuon will upload the template to its managed template bucket during app sync. Upload your templates to an S3 bucket and reference them using the full S3 URL: ``` https://my-bucket.s3.amazonaws.com/templates/my-stack.yaml ``` Azure accepts a public HTTPS URL or an uploaded relative ARM JSON path. GCP uses a curated module path rather than a hosted template. ## Example: Kubernetes Namespaces See the [byo-eks example app config](https://github.com/nuonco/example-app-configs/tree/main/byo-eks) for a complete working example that uses custom nested stacks to create Kubernetes namespaces and EKS access entries. ## Permissions The CloudFormation stack execution role must have permission to create the resources defined in your nested templates. For Lambda-backed custom resources, this includes: * `iam:CreateRole`, `iam:PutRolePolicy`, `iam:AttachRolePolicy`, `iam:DeleteRole`, `iam:DeleteRolePolicy`, `iam:DetachRolePolicy` * `lambda:CreateFunction`, `lambda:DeleteFunction`, `lambda:InvokeFunction` * Any permissions the Lambda function itself needs (passed via its IAM role) > [!NOTE] > > These permissions are distinct from the permissions in the `permissions/` directory in the app config. They are the > permissions the customer has at the moment they execute the CloudFormation template. # Customizing Terraform Stack Templates Source: https://docs.nuon.co/guides/customizing-terraform-stack-templates Fork or wrap an open-source Terraform install-stack module. The Terraform install-stack modules are open source: * [AWS](https://github.com/nuonco/terraform-aws-stack) * [Azure](https://github.com/nuonco/terraform-azure-stack) * [GCP](https://github.com/nuonco/terraform-gcp-stack) The defaults work out of the box in most cases. Fork or wrap a module when you need different networking, compliance, or naming behavior. The runner and control plane have some requirements that the Stack must fulfill. Each cloud has its own contract — the shape is similar but the resource types and payload keys differ. As long as your fork preserves the contract for the clouds you support, you can change anything else freely. To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. ## How the templates read their configuration Each stack template fetches internal configuration from the Nuon control plane using the [`nuonco/stack` Terraform provider](/guides/nuon-stack-terraform-provider), then layers the customer-provided inputs and secrets over that. ```hcl theme={null} data "stack_config" "this" { install_id = var.install_id } locals { runner_id = data.stack_config.this.runner_id runner_api_url = data.stack_config.this.runner_api_url phone_home_url = data.stack_config.this.phone_home_url nuon_support_iam_role_arns = data.stack_config.this.aws.nuon_support_iam_role_arns # ... } ``` If you fork a module, keep this pattern: the customer supplies the `install_id`, cloud provider configuration, and any input or secret overrides. The Stack provider authenticates the read; the install ID is not a credential. The attribute reference for every value the data source exposes is in [The Nuon Stack Terraform Provider](/guides/nuon-stack-terraform-provider). ## AWS The AWS stack lives in [`terraform-aws-stack`](https://github.com/nuonco/terraform-aws-stack). ### Runner instance * An EC2 instance (typically launched by an Auto Scaling Group) in a subnet with outbound HTTPS to the Nuon API and to GitHub raw — the boot process downloads `init-mng-v2.sh` and the `runner` binary over the public internet. * **IMDSv2 must be enabled with required tokens.** The runner authenticates to ctl-api using its Instance Identity Document, which is read from IMDS. * **Instance tags must include**: * `nuon_runner_id` * `nuon_runner_api_url` * `nuon_install_id` — used in the per-install CloudWatch log group path. `init-mng-v2.sh` reads these via `ec2:DescribeTags`. Missing or misnamed tags cause the runner to fail to start. * **`user_data` must export `RUNNER_AUTH_METHOD=iid`** before invoking the init script. The init script defaults to `sts` auth (legacy) if this is not set. ### Runner IAM role Attached to the instance via an instance profile. The inline policy must allow: * `sts:AssumeRole` on every operation role and break glass role the stack creates. The runner switches into these roles to execute components. * `secretsmanager:GetSecretValue` and `secretsmanager:DescribeSecret` on the secret ARN pattern your stack uses (the default stack uses `-*`). Required for components that consume secrets. * `logs:CreateLogGroup`, `CreateLogStream`, `PutLogEvents`, `DescribeLogStreams` on `/nuon//*` and `runner-*` log groups. * `ec2:DescribeTags` on `*` — the init script's tag lookups. ### Operation and break glass roles * One IAM role per `[operation_role]`, `[[break_glass_role]]`, and `[[custom_role]]` block declared in `stack.toml`. * Trust policy must allow `sts:AssumeRole` from: * The runner role ARN — the runner assumes them when executing components or actions. * The Nuon control-plane principals (`data.stack_config.this.aws.nuon_support_iam_role_arns`, falling back to account root) — used for ad-hoc actions and break-glass operations initiated from ctl-api. * Permissions on each role come from your `stack.toml` (`provision_inline_policy`, `provision_managed_policy_arns`, etc.). The stack's job is to translate those into IAM resources. * **Role names must match `each.key` from `stack.toml` verbatim.** ctl-api looks roles up by exact name, and the default stack deliberately doesn't double-prefix break glass roles or your own operation roles. If you rewrap names with a prefix you'll hit the 64-character IAM role-name limit and break role lookups. ### Phone-home payload After `terraform apply` succeeds, the stack reports a JSON payload to the control plane — either through the [`stack_phone_home` resource](/guides/nuon-stack-terraform-provider#stack-phone-home-resource) or by POSTing to the `phone_home_url` from the data source. ctl-api persists every key in this payload as an install stack output, accessible from app templates as `nuon.install_stack.outputs.`. The required keys (matching the CloudFormation phone-home Lambda payload exactly): | Key | Notes | | - | - | | `request_type` | Always `"Create"` for the initial phone-home. | | `phone_home_type` | `"aws"`. | | `account_id`, `region` | AWS account and region the install lives in. | | `vpc_id` | The runner's VPC. | | `runner_subnet` | Single subnet ID where the runner lives. | | `public_subnets`, `private_subnets` | **Comma-joined strings**, not JSON arrays. ctl-api decodes these with `StringToSliceHookFunc(",")`. Sending a JSON list lands in postgres as the string `"[subnet-x subnet-y]"` and decodes to an empty list. | | `runner_security_group_id` | Runner SG — vendor sandboxes commonly add ingress rules pointing at this. | | `runner_iam_role_arn`, `runner_instance_profile` | Used for kube-runner / EKS access entries. | | `runner_asg_name`, `runner_log_group_name` | Used by the runner management UI. | | `provision_iam_role_arn`, `maintenance_iam_role_arn`, `deprovision_iam_role_arn` | Empty string when the corresponding role isn't declared. | | `break_glass_role_arns`, `custom_role_arns` | Maps of role-name → ARN. | | `named_policy_arns` | Map of permissions-config named policy → IAM managed policy ARN. | | `install_inputs` | Echo of the install inputs (`data.stack_config.this.install_inputs`). | | `_arn` | One key per secret declared in `stack.toml`, flattened into the top-level payload. | ## GCP The GCP stack lives in [`terraform-gcp-stack`](https://github.com/nuonco/terraform-gcp-stack). ### Runner instance * A `google_compute_instance` (or MIG) in a subnet with outbound HTTPS to the Nuon API and to GitHub raw. * The runner authenticates with the token returned by `data.stack_config.this.gcp.runner_api_token`. Protect Terraform state as sensitive because the token is stored in instance metadata. * The same `init-mng-v2.sh` flow applies: instance metadata must carry `nuon_runner_id`, `nuon_runner_api_url`, and `nuon_install_id` so the init script can read them. ### Runner service account Attached to the runner instance. The IAM policy must allow: * `iam.serviceAccounts.getAccessToken` and `iam.serviceAccounts.signBlob` on every operation, break-glass, and custom service account the stack creates — the runner impersonates these to execute components. * Read access to whatever Secret Manager secrets the stack provisions (the default stack scopes by name prefix). * `logging.logEntries.create` for runner logs. ### Operation, break-glass, and custom service accounts * One service account per `[operation_role]`, `[[break_glass_role]]`, and `[[custom_role]]` block in `stack.toml`. * Each must grant the runner service account `roles/iam.serviceAccountTokenCreator` so the runner can impersonate it. * Permissions on each service account come from your `stack.toml` (inline + managed policies are translated into IAM bindings on the project). * Report each role under its exact configured role name. Resource names may use deterministic hashes to satisfy GCP's 30-character service-account ID limit. ### Phone-home payload After `terraform apply` succeeds, the stack reports a JSON payload to the control plane (via the `stack_phone_home` resource or a POST to the `phone_home_url` from the data source). Required keys: | Key | Notes | | - | - | | `request_type` | Always `"Create"` for the initial phone-home. | | `phone_home_type` | `"gcp"`. | | `project_id`, `region` | GCP project and region. | | `network_name`, `network_id` | The runner's VPC network. | | `public_subnet_name`, `private_subnet_name`, `runner_subnet_name` | Subnet names (not IDs — GCP subnets are referenced by name in most APIs). | | `runner_service_account_email` | Used for sandbox impersonation grants. | | `provision_sa_email`, `maintenance_sa_email`, `deprovision_sa_email` | Empty string when the corresponding role isn't declared. | | `break_glass_sa_emails`, `custom_sa_emails` | Maps of role-name → SA email. | | `gke_node_pool_sa_email` | Pre-existing GKE node pool SA, or one created by the stack when `var.gke_node_pool_sa_email` is empty. | | `install_inputs` | Echo of the install inputs (`data.stack_config.this.install_inputs`). | | `` | One key per secret declared in `stack.toml`, flattened into the top-level payload (Secret Manager secret names, not ARNs). | ## Azure The Azure stack lives in [`terraform-azure-stack`](https://github.com/nuonco/terraform-azure-stack). ### Runner virtual machine * A Linux virtual machine in a subnet with outbound HTTPS to the Nuon API and artifact hosts. * Metadata passed to cloud-init must include the runner ID and runner API URL from `stack_config`. * The runner identity needs the role assignments required to assume configured operation roles and break glass roles. ### Phone-home payload Report the subscription, resource group, VNet, runner subnet, runner identity, configured role IDs, install inputs, and custom-stack outputs through `stack_phone_home`. Keep the payload keys emitted by the published module even if a fork changes the underlying Azure resources; ctl-api and app templates treat those keys as the stable contract. Azure custom stacks use an Azure Deployment Stack backed by the uploaded linked ARM template. Preserve its `actionOnUnmanage` and delete query parameters unless intentionally changing whether removed resources are deleted or detached. See [Custom Install Stacks](/guides/custom-nested-stacks) for the cross-cloud custom-stack contract. ## What you can customize freely * VPC / VNet / VPC layout, CIDRs, subnet count and sizes — as long as the runner subnet has working egress to the Nuon API. * NAT vs public-subnet egress. * Instance type / machine type and image — anything that supports cloud-init and can run the `runner` binary works (AL2023, Ubuntu LTS, Amazon Linux 2, Debian, COS). * Tags / labels, KMS keys, access logging, flow logs, private service endpoints, peering, transit gateways, DNS zones. * Wrapping the published registry module from a parent Terraform configuration instead of forking: ```hcl theme={null} provider "stack" {} module "nuon" { source = "nuonco/stack/azure" version = "~> 1.0" install_id = var.install_id } ``` The module reads the rest of its configuration from the control plane via the `stack_config` data source, so you pass only the install ID and supported overrides. Use each module's README for its current source, version, required cloud provider configuration, and supported overrides. ## Contributing Contributions to the AWS, Azure, and GCP repositories above are welcome. # Database Migrations Source: https://docs.nuon.co/guides/database-migrations How to run migrations in your customer's environment There are three common ways to run migrations in your customers' installs: * **[Kubernetes Job](#run-migrations-in-a-kubernetes-job)** from your chart, started by an [action](/concepts/actions). * **[Init container](#run-migrations-in-an-init-container)** in your app's pods. * **[Action with a container image](#run-migrations-with-an-action-and-a-container-image)** on the install runner, for migrations that must finish before new pods start, or apps outside Kubernetes. ## Run migrations in a Kubernetes Job Add a suspended CronJob to your chart as a template. An action creates a Job from it after each deploy, so the migration runs once, with your app's image, network access and credentials: ```yaml charts/api/templates/migrate-cronjob.yaml theme={null} apiVersion: batch/v1 kind: CronJob metadata: name: api-migrate spec: suspend: true schedule: "0 0 1 1 *" jobTemplate: spec: backoffLimit: 0 ttlSecondsAfterFinished: 3600 template: spec: restartPolicy: Never containers: - name: migrate image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: ["/app/migrate", "up"] env: - name: DB_HOST value: "{{ .Values.database.host }}" ``` Pass database details to the chart from your component config: ```toml components/api/nuon.toml theme={null} # helm name = "api" type = "helm_chart" chart_name = "api" namespace = "acme" deploy_timeout = "45m" dependencies = ["database"] [public_repo] repo = "acme/acme-charts" directory = "charts/api" branch = "main" [[values_file]] contents = "./values/api.yaml" ``` ```yaml components/values/api.yaml theme={null} database: host: "{{ .nuon.components.database.outputs.address }}" ``` The action runs on the runner, which has `kubectl` and a kubeconfig for the install's cluster: ```toml actions/api/api_migrate_job/api_migrate_job.toml theme={null} # action name = "api_migrate_job" timeout = "30m" [[triggers]] type = "post-deploy-component" component_name = "api" [[triggers]] type = "manual" [[steps]] name = "migrate" inline_contents = "./api/api_migrate_job/migrate.sh" [steps.env_vars] NAMESPACE = "acme" ``` ```sh actions/api/api_migrate_job/migrate.sh theme={null} #!/usr/bin/env sh set -eu JOB="api-migrate-$(date +%s)" kubectl -n "$NAMESPACE" create job "$JOB" --from=cronjob/api-migrate until kubectl -n "$NAMESPACE" get job "$JOB" -o jsonpath='{.status.conditions[?(@.status=="True")].type}' \ | grep -qE 'Complete|Failed'; do sleep 5 done kubectl -n "$NAMESPACE" logs "job/$JOB" kubectl -n "$NAMESPACE" get job "$JOB" -o jsonpath='{.status.succeeded}' | grep -q 1 ``` Keep in mind: * **The action runs after the deploy.** The Job template ships with the chart, so new pods start before the migration. * **The migration logs land in the action run.** You can see which migrations ran on each install from the dashboard. * **Rerun it by hand** from the dashboard with the `manual` trigger. ## Run migrations in an init container Add an init container to your chart that runs your migration tool from the new image: ```yaml charts/api/templates/deployment.yaml theme={null} spec: template: spec: initContainers: - name: migrate image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: ["/app/migrate", "up"] env: - name: DB_HOST value: "{{ .Values.database.host }}" ``` Pass database details to the chart from your component config, as in the [Kubernetes Job example](#run-migrations-in-a-kubernetes-job). Keep in mind: * **Set `deploy_timeout` longer than your slowest migration.** A [Helm chart component](/guides/helm-chart-components) waits for its pods to be ready, for 30 minutes by default and up to 1 hour. * **Gate Kubernetes manifest deploys on health.** A [Kubernetes manifest component](/guides/kubernetes-manifest-components) finishes once the manifests are applied, before the init container completes. Set [`block_deploy`](/guides/health-checks#verified-deploys) to fail the deploy when the pods stay unhealthy. * **Helm hooks also run.** If your chart already migrates in a `pre-upgrade` hook Job, Nuon deploys run it. ## Run migrations with an action and a container image Use an action when the migration must finish before new pods start, or your app runs outside Kubernetes. When you set `image` on the action, its steps run inside a [container image](/guides/container-actions) on the install runner. This example is for AWS. On Google Cloud and Azure, swap the registry block and the secret lookup for Google Artifact Registry and Secret Manager, or Azure Container Registry and Key Vault. **1. Publish your migrations image** Add the image as a [container image component](/guides/container-image-components): ```toml components/migrations_image/nuon.toml theme={null} # container-image name = "migrations_image" type = "container_image" [aws_ecr] image_url = "123456789012.dkr.ecr.us-east-1.amazonaws.com/acme-migrations" tag = "v2.4.0" region = "us-east-1" iam_role_arn = "arn:aws:iam::123456789012:role/nuon-image-pull" ``` If your app's image already contains your migration binary, point `image` at that image's component instead. **2. Define the action** Point `image` at the component and run the action before the `api` component deploys: ```toml actions/api/api_migrate/api_migrate.toml theme={null} # action name = "api_migrate" timeout = "30m" image = "{{ .nuon.components.migrations_image.outputs.image.ref }}" [[triggers]] type = "pre-deploy-component" component_name = "api" [[triggers]] type = "manual" [[steps]] name = "migrate" inline_contents = "./api/api_migrate/migrate.sh" [steps.env_vars] DB_HOST = "{{ .nuon.components.database.outputs.address }}" SECRET_ARN = "{{ .nuon.components.database.outputs.master_user_secret_arn }}" REGION = "{{ .nuon.install_stack.outputs.region }}" ``` **3. Write the script** The path in `inline_contents` is relative to `actions/`. The script reads the database password with the action's role, then runs the migration: ```sh actions/api/api_migrate/migrate.sh theme={null} #!/usr/bin/env sh set -eu DB_PASSWORD=$(aws secretsmanager get-secret-value \ --region "$REGION" --secret-id "$SECRET_ARN" \ --query SecretString --output text | jq -r .password) export DATABASE_URL="postgres://acme:${DB_PASSWORD}@${DB_HOST}:5432/acme?sslmode=require" migrate -path /migrations -database "$DATABASE_URL" up ``` Keep in mind: * **The database must accept connections from the runner.** The runner's virtual machine sits in the install's network on AWS, Google Cloud and Azure. * **The action runs as the install's default [operation role](/concepts/operation-roles)** unless you set `role`. That role needs read access to the database secret. See [Operation roles](/guides/operation-roles#which-role-a-run-uses). * **A failed migration pauses the deploy.** Someone has to retry or skip it. If they skip it, or three retries fail, the deploy goes ahead without the migration. * **The action `timeout` defaults to 5 minutes** and can be up to 1 hour. ### Hold the deploy until the migration succeeds In a [runbook](/guides/runbooks), a migration step that fails three times stops the runbook before the deploy: ```toml runbooks/api_upgrade.toml theme={null} name = "api_upgrade" description = "Migrate the database, then deploy the API." [[steps]] name = "migrate" type = "action" action_name = "api_migrate" [[steps]] name = "deploy-api" type = "component_deploy" component_name = "api" ``` A runbook's deploy step skips `pre-deploy-component` actions, so the migration runs once. Someone can still skip a failed step, and the runbook then moves on to the deploy. Start the runbook from the install's **Runbooks** tab or with `nuon runbooks create-run -i -r api_upgrade`. To restore the database if a migration goes wrong, add a snapshot action as the first step and give its role permission to create snapshots. To see each install's migration version, add an action that prints your migration tool's status. ## Choose an approach | | Kubernetes Job | Init container | Action with a container image | | - | - | - | - | | Best for | Migrations that ship in your app's image | Apps that already migrate at startup | Migrations that must finish before new pods start, or apps outside Kubernetes | | Where it runs | Your customer's cluster | Your app's pods | The install [runner](/concepts/runners) | | When it runs | After the chart deploys, or by hand | Every time a pod starts | Before a deploy, after a deploy, or by hand | | If it fails | The deploy pauses until someone retries or skips the action. | Helm chart: the deploy fails at `deploy_timeout`. Kubernetes manifest: the deploy succeeds unless you turn on health gating. | The deploy or runbook pauses until someone retries or skips the action. | | Time limit | Action `timeout`, up to 1 hour | Component `deploy_timeout`, up to 1 hour | Action `timeout`, up to 1 hour | | Database credentials | Your app's own | Your app's own | Passed in as environment variables, plus the cloud role the action runs as | ## Use break glass for elevated database access When you need to service your customer's database urgently, such as resizing it or restoring a snapshot during an incident, your customer can switch on a [break glass](/concepts/break-glass) role. This AWS role can modify and reboot the database, and its policy denies every delete: ```toml break_glass.toml theme={null} [[role]] name = "{{ .nuon.install.id }}-db-maintenance" display_name = "Database maintenance" description = "Lets the vendor modify, reboot and snapshot the app database." [[role.policies]] name = "db-maintenance" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "rds:Describe*", "rds:CreateDBSnapshot", "rds:ModifyDBInstance", "rds:RebootDBInstance" ], "Resource": "*" }, { "Effect": "Deny", "Action": [ "rds:DeleteDBInstance", "rds:DeleteDBCluster", "rds:DeleteDBSnapshot", "rds:DeleteDBClusterSnapshot" ], "Resource": "*" } ] } """ ``` Set the action's `role` to the break glass role: ```toml actions/db/db_resize/db_resize.toml theme={null} # action name = "db_resize" timeout = "45m" role = "{{ .nuon.install.id }}-db-maintenance" [[triggers]] type = "manual" [[steps]] name = "resize" command = "aws rds modify-db-instance --region $REGION --db-instance-identifier $DB_ID --db-instance-class $DB_CLASS --apply-immediately" [steps.env_vars] DB_ID = "{{ .nuon.components.database.outputs.identifier }}" DB_CLASS = "db.r6g.xlarge" REGION = "{{ .nuon.install_stack.outputs.region }}" ``` > [!WARNING] > > If the role is switched off, this action runs as the default role and fails with permission errors. To fail fast > instead, pick the role for the run: `nuon actions create-run -i -w db_resize --role-name `. For Google Cloud and Azure role fields, and how your customer switches a role on, see [Break glass](/concepts/break-glass). ## Next steps * [Container actions](/guides/container-actions) for private images and images without a shell. * [Configure runbooks](/guides/runbooks) for every runbook step type. * [Health checks](/guides/health-checks) to gate a deploy on a migration check. # Choose how to run Nuon Source: https://docs.nuon.co/guides/deployment-options Choose how to run Nuon Nuon is available in three deployment models. **All three install your app template into your customers' clouds on AWS, Azure, or Google Cloud. The choice is about where Nuon's own control plane runs.** See [Platform Support](/platform-support/introduction) for the per-cloud feature matrix. > [card] [Nuon Cloud](/guides/nuon-cloud) > > The fastest way to get started. Nuon Cloud is a fully managed, multi-tenant service hosted by Nuon. No infrastructure to provision. Sign up and start deploying to customers on AWS, Azure, and GCP immediately. > [card] [Install Nuon BYOC](/guides/byoc) > > Run a single-tenant Nuon control plane in your own AWS or Google Cloud account, managed remotely by Nuon. Deploy to customers on AWS, Azure, and GCP. You own the infrastructure and data; Nuon handles upgrades and operations via its own platform. > [card] [Nuon Self-Hosted](/guides/self-hosted) > > Deploy and operate Nuon entirely within your own infrastructure, with no dependency on Nuon Cloud. Run the control plane on AWS, Azure, or GCP, and deploy to customers on any of the three. Open source; a paid license is required only if you need Nuon support. # Export Runner Audit Logs Source: https://docs.nuon.co/guides/export-runner-audit-logs Forward Nuon runner audit events to your own OTLP-compatible logging backend. Nuon runners can forward audit events directly from your cloud account to an OTLP-compatible logging backend. This gives your security and operations teams a customer-owned record of deployment, action workflow, and sandbox activity. Only records marked with `nuon.audit="true"` are forwarded. Application logs, general runner logs, and other infrastructure logs are not included. To collect application logs, metrics, and traces through a Nuon BYOC relay instead, see [Install Telemetry](/concepts/install-telemetry). Its org and install settings do not control runner audit export. ## Supported environments Runner audit log export supports AWS, Azure, and GCP install runners: | Provider | Supported install stack | Configuration secret | | - | - | - | | AWS | Generated CloudFormation stack or [Nuon Terraform install stack](https://github.com/nuonco/install-stacks) | `nuon//telemetry-export-config` | | Azure | Generated Azure install stack | `telemetry-export-config` in the install Key Vault | | GCP | [Nuon Terraform install stack](https://github.com/nuonco/install-stacks) | `-telemetry-export-config` | The AWS and GCP stacks create the configuration secret and grant the runner read access. On Azure, create the install Key Vault before deploying the stack; the stack grants its runner managed identity read access. In every case, update the secret after the stack is provisioned. Backend credentials stay in your cloud account and are not stored by the Nuon control plane or in Terraform state. ## Prerequisites You will need: * A current Nuon runner on AWS, Azure, or GCP * The current install stack, applied to configure runner access to the cloud secret manager * An OTLP/HTTP logs endpoint available over HTTPS * Any headers required to authenticate with your logging backend * Permission to add a secret value in your cloud account ## Create the configuration Save the following configuration as `telemetry-export-config.yaml`: ```yaml telemetry-export-config.yaml theme={null} version: v1 telemetry: logs: audit: enabled: true exporters: otlphttp: endpoint: https://otlp.example.com headers: Authorization: Bearer ``` ## Configuration reference | Field | Required | Description | | - | - | - | | `version` | Yes | Configuration format version. Set to `v1`. | | `telemetry.logs.audit.enabled` | No | Set to `true` to enable runner audit log export. Defaults to `false`. | | `exporters.otlphttp.endpoint` | Yes, when telemetry is enabled | HTTPS URL for the OTLP/HTTP backend. | | `exporters.otlphttp.headers` | No | Headers used to authenticate with the backend. | The endpoint cannot contain credentials, a query string, a fragment, or environment-variable expansion. Omit `headers` if your backend does not require them. ## Update the configuration secret Apply or update the install stack first, then use the command for your provider to update the configuration secret. ### AWS Generated CloudFormation stacks and Nuon Terraform install stacks both create the same secret. Update it after the stack finishes provisioning: ```sh theme={null} aws secretsmanager put-secret-value \ --secret-id "nuon//telemetry-export-config" \ --secret-string file://telemetry-export-config.yaml \ --region "" ``` For an existing CloudFormation install, reprovision the install to generate the current template and update the stack before updating the secret. For a Terraform install, update the install stack module and run `terraform apply` first. ### Azure The install Key Vault name is the first 24 characters of the install ID. Update the secret after the Azure stack finishes provisioning: ```sh theme={null} az keyvault secret set \ --vault-name "" \ --name "telemetry-export-config" \ --file "telemetry-export-config.yaml" \ --encoding utf-8 ``` ### GCP The Nuon Terraform install stack creates the secret. Update it after `terraform apply` finishes: ```sh theme={null} gcloud secrets versions add "-telemetry-export-config" \ --data-file="telemetry-export-config.yaml" \ --project="" ``` The runner checks for changes every 30 seconds and applies a changed valid configuration without restarting the runner. ## Runner access to the configuration Nuon-generated Stacks grant the runner the required read access: | Provider | Runner identity | Access | | - | - | - | | AWS | Runner instance role | `secretsmanager:GetSecretValue` and `secretsmanager:DescribeSecret` | | Azure | Runner VMSS system-assigned managed identity | Key Vault Secrets User | | GCP | Runner service account | Secret Manager Secret Accessor | ## Exported attributes Every exported record includes attributes that identify it as a Nuon runner audit event: | Attribute | Value | | - | - | | `nuon.audit` | `true` | | `nuon.audit.event` | The audited operation type | | `nuon.audit.outcome` | `started`, `succeeded`, or `failed` | | `service.namespace` | `nuon` | | `service.name` | `runner` | | `service.version` | The runner version, when available | | `service.instance.id` | The runner ID, when available | Records also include relevant identifiers such as `org.id`, `install.id`, `runner_job.group`, `runner_job.operation`, and entity-specific component, deploy, action workflow, or sandbox identifiers when available. ## Verify export 1. Update the secret with a valid configuration. 2. Check the runner logs for `runner telemetry export collector enabled` with `audit_export.enabled=true`. 3. Trigger a deployment, action workflow, or sandbox operation. 4. Query your logging backend for records where `service.namespace="nuon"` and `nuon.audit="true"`. Audit events are produced when supported runner operations occur. A newly enabled exporter may remain quiet until one of these operations runs. ## Update, rotate, or disable export Edit `telemetry-export-config.yaml` and run the same provider upload command to change the endpoint or rotate authentication headers. The runner detects the new secret value automatically. To disable audit export while leaving the telemetry collector available for future telemetry types, set `telemetry.logs.audit.enabled` to `false` and update the secret. The collector runs without an audit log pipeline. To stop the telemetry collector entirely, remove or disable the secret value or remove runner access to it. Normal runner operations and Nuon-managed logging continue unchanged. ## Failure behavior Audit export does not block runner jobs. A missing, empty, disabled, or inaccessible secret stops the telemetry collector. An invalid changed value or a transient read or startup failure does not replace a previously active valid configuration. Once a valid configuration becomes available, the runner detects it automatically. Delivery is best effort. The collector queues and retries exports, but records may be dropped during a prolonged backend outage. Runner jobs continue operating normally while the backend is unavailable. ## Troubleshooting ### The configuration secret does not exist Reprovision the install and apply the latest generated CloudFormation or Terraform stack. On Azure, create the Key Vault shown in the dashboard before deploying the install stack. ### AWS reports that the secret is scheduled for deletion If a secret with the same name is already scheduled for deletion, the Stack cannot create it. If the value does not need to be retained, permanently delete the scheduled secret, wait for deletion to complete, and retry the Stack update: ```sh theme={null} aws secretsmanager delete-secret \ --secret-id "nuon//telemetry-export-config" \ --force-delete-without-recovery \ --region "" ``` If the value must be retained, restore and copy it before permanently deleting the old secret. ### The runner reports that audit export is disabled Confirm that the provider-specific secret shown above contains a current value and that the runner identity can read it. Check the runner logs for `telemetry_export.reason`, which distinguishes a missing, empty, or inaccessible secret. ### The configuration is rejected Confirm that: * The secret contains valid YAML matching the configuration example * The YAML has `version: v1` * `telemetry.logs.audit.enabled` is a boolean * The YAML contains `exporters.otlphttp.endpoint` and optional `exporters.otlphttp.headers` when audit export is enabled * The endpoint uses HTTPS and does not contain credentials, a query string, a fragment, or environment-variable expansion * Header names are valid HTTP header names and header values do not contain line breaks ### Export is enabled, but no records appear * Trigger a deployment, action workflow, or sandbox operation to produce an audit event. * Query for both `service.namespace="nuon"` and `nuon.audit="true"`. * Confirm that the OTLP endpoint accepts logs over OTLP/HTTP. * Check the runner logs for TLS, proxy, authentication, or exporter errors. # External Image Policies Source: https://docs.nuon.co/guides/external-image-policies Write OPA policies to enforce security requirements on external container images External image policies allow you to enforce security requirements on container images pulled from public or private registries before they are deployed to customer installs. Nuon automatically fetches rich metadata about container images including SBOMs, signatures, attestations, and in-toto statements, making this data available to your OPA policies. To learn more about policies, see the [Policies](/concepts/policies) concept page. > [!WARNING] > > OPA policies inspect the metadata Nuon discovers, but they do not cryptographically verify a signature. To prove that a trusted identity or key signed the resolved image digest, configure [native container image signature verification](/guides/image-signature-verification). Use OPA for additional requirements such as SBOM presence, provenance contents, registry allowlists, and tag rules. ## Policy Input Structure When evaluating external image policies, Nuon provides the following input structure: ```json theme={null} { "image": "nginx", "tag": "latest", "digest": "sha256:abc123...", "metadata": { "image": "nginx", "tag": "latest", "digest": "sha256:abc123...", "signed": true, "sbom": { "present": true, "format": "spdx" }, "signatures": [...], "attestations": [...], "index": {...}, "attestation_manifests": [...] } } ``` ## Quick Reference | Field | Type | Description | | - | - | - | | `input.image` | string | Image name (e.g., `nginx`, `gcr.io/project/app`) | | `input.tag` | string | Image tag (e.g., `latest`, `v1.2.3`) | | `input.digest` | string | Image digest (e.g., `sha256:abc...`) | | `input.metadata.signed` | bool | Whether signature metadata was discovered; this does not indicate cryptographic verification | | `input.metadata.sbom.present` | bool | Whether an SBOM is present | | `input.metadata.sbom.format` | string | SBOM format: `spdx`, `cyclonedx`, or `unknown` | | `input.metadata.signatures` | array | List of signature details | | `input.metadata.attestations` | array | List of attestation types from OCI referrers | | `input.metadata.index` | object | Raw OCI image index (manifest list) | | `input.metadata.attestation_manifests` | array | Full attestation manifest data with layers | *** ## Basic Image Requirements ### Require Signature Metadata Require Nuon to discover signature metadata for an image. This is useful as a metadata-presence rule, but it does not replace native cryptographic verification: ```rego theme={null} package nuon default allow := false allow if { input.metadata.signed == true } deny contains msg if { not input.metadata.signed msg := sprintf("Image %s:%s must include signature metadata", [input.image, input.tag]) } ``` ### Require SBOM Presence Ensure all images include a Software Bill of Materials: ```rego theme={null} package nuon default allow := false allow if { input.metadata.sbom.present == true } deny contains msg if { not input.metadata.sbom.present msg := sprintf("Image %s:%s must include an SBOM", [input.image, input.tag]) } ``` ### Require Specific SBOM Format Enforce a specific SBOM format (SPDX or CycloneDX): ```rego theme={null} package nuon default allow := false allow if { input.metadata.sbom.present == true input.metadata.sbom.format == "spdx" } deny contains msg if { input.metadata.sbom.present input.metadata.sbom.format != "spdx" msg := sprintf("Image %s:%s has SBOM format '%s', but 'spdx' is required", [input.image, input.tag, input.metadata.sbom.format]) } deny contains msg if { not input.metadata.sbom.present msg := sprintf("Image %s:%s must include an SPDX SBOM", [input.image, input.tag]) } ``` *** ## Signature Inspection ### Inspect Signature Algorithm Require discovered signature metadata to identify a specific signing format: ```rego theme={null} package nuon default allow := false allow if { some sig in input.metadata.signatures contains(sig.algorithm, "cosign") } deny contains msg if { count(input.metadata.signatures) == 0 msg := sprintf("Image %s:%s has no signatures", [input.image, input.tag]) } deny contains msg if { count(input.metadata.signatures) > 0 not has_cosign_signature msg := sprintf("Image %s:%s must include Cosign signature metadata", [input.image, input.tag]) } has_cosign_signature if { some sig in input.metadata.signatures contains(sig.algorithm, "cosign") } ``` ### Inspect Signature Issuer Check the issuer recorded in discovered keyless signature metadata. This does not validate the certificate chain or signature; use [native signature verification](/guides/image-signature-verification#verify-a-keyless-signature) to trust the issuer cryptographically. ```rego theme={null} package nuon default allow := false trusted_issuers := { "https://accounts.google.com", "https://token.actions.githubusercontent.com" } allow if { some sig in input.metadata.signatures sig.issuer in trusted_issuers } deny contains msg if { not has_trusted_signature msg := sprintf("Image %s:%s must include signature metadata from an allowed issuer: %v", [input.image, input.tag, trusted_issuers]) } has_trusted_signature if { some sig in input.metadata.signatures sig.issuer in trusted_issuers } ``` *** ## Attestation Policies ### Require SLSA Provenance Ensure images have SLSA provenance attestations: ```rego theme={null} package nuon default allow := false allow if { has_slsa_provenance } has_slsa_provenance if { some att in input.metadata.attestations contains(att.type, "slsa.dev/provenance") } has_slsa_provenance if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers contains(layer.predicate_type, "slsa.dev/provenance") } deny contains msg if { not has_slsa_provenance msg := sprintf("Image %s:%s must have SLSA provenance attestation", [input.image, input.tag]) } ``` ### Check Specific Predicate Types Inspect attestation layers for specific predicate types: ```rego theme={null} package nuon default allow := false required_predicates := { "https://slsa.dev/provenance/v1", "https://spdx.dev/Document" } allow if { found_predicates := {p | some manifest in input.metadata.attestation_manifests some layer in manifest.layers p := layer.predicate_type } count(required_predicates - found_predicates) == 0 } deny contains msg if { found_predicates := {p | some manifest in input.metadata.attestation_manifests some layer in manifest.layers p := layer.predicate_type } missing := required_predicates - found_predicates count(missing) > 0 msg := sprintf("Image %s:%s missing required attestations: %v", [input.image, input.tag, missing]) } ``` *** ## Advanced: Decoded Attestation Content When attestation layers are fetched with content decoding enabled, you can inspect the decoded in-toto statements. ### Inspect In-Toto Statement Type ```rego theme={null} package nuon default allow := false allow if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers layer.decoded._type == "https://in-toto.io/Statement/v1" } deny contains msg if { not has_valid_intoto msg := sprintf("Image %s:%s must have valid in-toto v1 statements", [input.image, input.tag]) } has_valid_intoto if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers layer.decoded._type == "https://in-toto.io/Statement/v1" } ``` ### Check the Declared Subject Digest Check whether decoded attestation metadata declares the image digest as its subject. This is not proof that the attestation itself has a valid signature: ```rego theme={null} package nuon default allow := false allow if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers some subject in layer.decoded.subject subject.digest.sha256 == trim_prefix(input.digest, "sha256:") } deny contains msg if { not subject_matches_image msg := sprintf("Image %s:%s attestation subjects do not match image digest", [input.image, input.tag]) } subject_matches_image if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers some subject in layer.decoded.subject subject.digest.sha256 == trim_prefix(input.digest, "sha256:") } ``` ### Inspect SLSA Provenance Predicate Access the full provenance predicate for advanced validation: ```rego theme={null} package nuon default allow := false # Require builds from a specific GitHub repository allowed_repos := {"github.com/myorg/myapp"} allow if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers contains(layer.predicate_type, "slsa.dev/provenance") # Access the predicate content predicate := layer.decoded.predicate # Check build source (structure varies by SLSA version) some repo in allowed_repos contains(predicate.buildDefinition.externalParameters.source.uri, repo) } deny contains msg if { has_provenance not from_allowed_repo msg := sprintf("Image %s:%s must be built from allowed repositories: %v", [input.image, input.tag, allowed_repos]) } has_provenance if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers contains(layer.predicate_type, "slsa.dev/provenance") } from_allowed_repo if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers contains(layer.predicate_type, "slsa.dev/provenance") predicate := layer.decoded.predicate some repo in allowed_repos contains(predicate.buildDefinition.externalParameters.source.uri, repo) } ``` *** ## Platform-Specific Policies ### Require Multi-Architecture Support Ensure images support specific platforms: ```rego theme={null} package nuon default allow := false required_platforms := { {"os": "linux", "architecture": "amd64"}, {"os": "linux", "architecture": "arm64"} } allow if { input.metadata.index != null platforms := {{"os": m.platform.os, "architecture": m.platform.architecture} | some m in input.metadata.index.manifests m.platform != null not m.is_attestation } count(required_platforms - platforms) == 0 } deny contains msg if { input.metadata.index == null msg := sprintf("Image %s:%s must be a multi-platform image", [input.image, input.tag]) } deny contains msg if { input.metadata.index != null platforms := {{"os": m.platform.os, "architecture": m.platform.architecture} | some m in input.metadata.index.manifests m.platform != null not m.is_attestation } missing := required_platforms - platforms count(missing) > 0 msg := sprintf("Image %s:%s missing required platforms: %v", [input.image, input.tag, missing]) } ``` *** ## Image Registry Policies ### Allowlist Trusted Registries Only allow images from approved registries: ```rego theme={null} package nuon default allow := false trusted_registries := { "gcr.io/myproject", "us-docker.pkg.dev/myproject", "123456789.dkr.ecr.us-west-2.amazonaws.com" } allow if { some registry in trusted_registries startswith(input.image, registry) } # Allow Docker Hub official images allow if { not contains(input.image, "/") # Single-name images like "nginx" } allow if { startswith(input.image, "library/") } deny contains msg if { not from_trusted_registry msg := sprintf("Image %s is not from a trusted registry. Allowed: %v", [input.image, trusted_registries]) } from_trusted_registry if { some registry in trusted_registries startswith(input.image, registry) } from_trusted_registry if { not contains(input.image, "/") } from_trusted_registry if { startswith(input.image, "library/") } ``` ### Block Latest Tag Prevent use of mutable tags: ```rego theme={null} package nuon default allow := false blocked_tags := {"latest", "main", "master", "dev", "develop"} allow if { not input.tag in blocked_tags } deny contains msg if { input.tag in blocked_tags msg := sprintf("Image %s uses blocked tag '%s'. Use immutable version tags.", [input.image, input.tag]) } ``` *** ## Combining Multiple Requirements ### Image Metadata Policy A policy combining several image metadata requirements. Pair this with native signature verification when signer trust is required: ```rego theme={null} package nuon default allow := false # Image must meet ALL requirements allow if { has_signature_metadata has_sbom has_provenance not uses_blocked_tag } # Check whether signature metadata was discovered has_signature_metadata if { input.metadata.signed == true } # Check for SBOM (via referrers or attestation layers) has_sbom if { input.metadata.sbom.present == true } # Check for provenance attestation has_provenance if { some manifest in input.metadata.attestation_manifests some layer in manifest.layers contains(layer.predicate_type, "slsa.dev/provenance") } has_provenance if { some att in input.metadata.attestations contains(att.type, "provenance") } # Block mutable tags blocked_tags := {"latest", "main", "master"} uses_blocked_tag if { input.tag in blocked_tags } # Generate specific denial messages deny contains msg if { not has_signature_metadata msg := sprintf("Image %s:%s must include signature metadata", [input.image, input.tag]) } deny contains msg if { not has_sbom msg := sprintf("Image %s:%s must include an SBOM", [input.image, input.tag]) } deny contains msg if { not has_provenance msg := sprintf("Image %s:%s must have SLSA provenance", [input.image, input.tag]) } deny contains msg if { uses_blocked_tag msg := sprintf("Image %s uses blocked tag '%s'", [input.image, input.tag]) } ``` *** ## Configuring Image Policies Add external image policies to your Nuon configuration: ```toml policies/external-images.toml theme={null} [[policy]] type = "container_image" engine = "opa" # Apply to specific components components = ["app_image", "sidecar_image"] # Or apply to all container image components # components = ["*"] contents = """ package nuon default allow := false allow if { has_signature_metadata input.metadata.sbom.present == true } has_signature_metadata if { input.metadata.signed == true } deny contains msg if { not has_signature_metadata msg := sprintf("Image %s:%s must include signature metadata", [input.image, input.tag]) } deny contains msg if { not input.metadata.sbom.present msg := sprintf("Image %s:%s must include an SBOM", [input.image, input.tag]) } """ ``` ### Using External Policy Files Reference policies from your repository: ```toml policies/external-images.toml theme={null} [[policy]] type = "container_image" engine = "opa" components = ["*"] contents = "file://policies/rego/container-image.rego" ``` *** ## Metadata Field Reference ### `input.metadata.sbom` | Field | Type | Description | | - | - | - | | `present` | bool | `true` if SBOM detected via OCI referrers or attestation layers | | `format` | string | `spdx`, `cyclonedx`, or `unknown` | | `uri` | string | URI to SBOM artifact (when available) | **SBOM Detection**: Nuon detects SBOMs from two sources: 1. OCI referrers with SBOM artifact types 2. Attestation layers with predicate types: * `https://spdx.dev/Document` → format: `spdx` * `https://cyclonedx.org/bom` → format: `cyclonedx` ### `input.metadata.signatures` | Field | Type | Description | | - | - | - | | `key_id` | string | Discovered key identifier (for keyed signing) | | `issuer` | string | Discovered OIDC issuer (for keyless signing) | | `subject` | string | Discovered OIDC subject identity | | `algorithm` | string | Discovered signature algorithm/media type | ### `input.metadata.attestations` Attestations discovered via OCI referrers: | Field | Type | Description | | - | - | - | | `type` | string | Attestation artifact type | | `predicate` | string | Predicate type (when available) | ### `input.metadata.attestation_manifests` Full attestation manifest data including layers: | Field | Type | Description | | - | - | - | | `digest` | string | Manifest digest | | `media_type` | string | Manifest media type | | `platform` | object | Platform spec (`os`, `architecture`, `variant`) | | `ref_digest` | string | Referenced image digest | | `annotations` | object | OCI annotations | | `layers` | array | Attestation layer blobs | ### `input.metadata.attestation_manifests[].layers` | Field | Type | Description | | - | - | - | | `digest` | string | Layer blob digest | | `media_type` | string | Layer media type | | `size` | int | Layer size in bytes | | `predicate_type` | string | In-toto predicate type | | `decoded` | object | Decoded in-toto statement (when available) | | `truncated` | bool | `true` if layer was too large to fetch | ### `input.metadata.attestation_manifests[].layers[].decoded` Decoded in-toto statement: | Field | Type | Description | | - | - | - | | `_type` | string | Statement type (e.g., `https://in-toto.io/Statement/v1`) | | `subject` | array | Statement subjects with name and digest | | `predicateType` | string | Predicate type URI | | `predicate` | object | Full predicate content (format varies by type) | ### `input.metadata.index` OCI image index (manifest list): | Field | Type | Description | | - | - | - | | `digest` | string | Index digest | | `media_type` | string | Index media type | | `manifests` | array | List of manifest entries | ### `input.metadata.index.manifests` | Field | Type | Description | | - | - | - | | `digest` | string | Manifest digest | | `media_type` | string | Manifest media type | | `platform` | object | Platform spec | | `annotations` | object | OCI annotations | | `is_attestation` | bool | `true` if this is an attestation manifest | # GitHub Actions Source: https://docs.nuon.co/guides/github-actions Integrate with Nuon from your GitHub Actions workflows. If you need to integrate with Nuon from your GitHub Actions workflows, we recommend using our [official CLI action](https://github.com/nuonco/actions-nuon). This will handle installing the CLI and authenticating with Nuon for you, making it easy to run any CLI command as a GitHub Actions step. This guide walks through a common use case: triggering an [app branch](/concepts/app-branches) run from a repo where you do not have webhook permissions. ## Prerequisites * An app template with a branch configured and synced. See the [app branches guide](/guides/app-branches) for details. * Org admin access, to create the trust policy or API token the workflow authenticates with. See [Authentication](#authentication). ## Trigger a branch run from your workflow Configure a job step to use the Nuon CLI action. The example authenticates with [OIDC](#using-oidc), so the job needs the `id-token: write` permission; the CLI detects that it's running in GitHub Actions and performs the token exchange automatically. ```yaml .github/workflows/rollout.yaml theme={null} on: push: branches: - main permissions: contents: read id-token: write jobs: rollout: runs-on: ubuntu-latest name: Roll out steps: - name: Checkout code uses: actions/checkout@v4 - name: Run your tests run: make test - name: Trigger branch run uses: nuonco/actions-nuon@v0.5.0 with: org_id: ${{ vars.nuon_org_id }} app_id: ${{ vars.nuon_app_id }} command: "branches trigger --branch-id main --no-wait" ``` > [!NOTE] > > `--no-wait` will tell the CLI to return as soon as the App Branch run has been successfully created, allowing the GitHub Actions workflow to complete. Depending on how your App Branch is configured, there may still be manual approvals required in the workflows that are triggered. ### Trigger a specific tag, commit, or pull request `actions-nuon` also ships one action per run type. Each wraps `nuon branches trigger --run-type`: | Action | Equivalent CLI command | | - | - | | `nuonco/actions-nuon/branches/trigger/tag` | `nuon branches trigger --run-type tag` | | `nuonco/actions-nuon/branches/trigger/commit` | `nuon branches trigger --run-type commit` | | `nuonco/actions-nuon/branches/trigger/pr` | `nuon branches trigger --run-type pr` | | `nuonco/actions-nuon/branches/preview/pr` | `nuon branches preview --pr-number` | | `nuonco/actions-nuon/branches/preview/git-ref` | `nuon branches preview --git-ref` | For example, roll out each GitHub release once your own release workflow publishes it: ```yaml .github/workflows/nuon-release.yaml theme={null} on: release: types: [published] permissions: contents: read id-token: write jobs: rollout: runs-on: ubuntu-latest steps: - name: Trigger branch run for the release tag uses: nuonco/actions-nuon/branches/trigger/tag@v0.5.0 with: org_id: ${{ vars.nuon_org_id }} app_id: ${{ vars.nuon_app_id }} branch_id: production tag: ${{ github.event.release.tag_name }} ``` A release run's OIDC token carries the tag ref as its subject (`repo:acme/app:ref:refs/tags/`), so the trust policy needs a `sub` condition that matches tag refs as well as `main`. See [claim matching](/concepts/oidc-federation#claim-matching). Trigger actions take `tag`, `sha`, or `pr_number`. Preview actions take `pr_number` or `git_ref`, plus an optional `mode` (`plan-only`, `apply`, `build-only`). See the [actions-nuon README](https://github.com/nuonco/actions-nuon) for every input. ### Variations For a **preview** run (not a fleet rollout through install groups), use `branches preview` — for example against a committed ref or PR number: ```yaml theme={null} command: "branches preview --branch-id main --git-ref my-feature --mode plan-only --no-wait" ``` `--force` on `branches trigger` rebuilds every component instead of only what changed since the previous run: ```yaml theme={null} command: "branches trigger --branch-id main --no-wait --force" ``` ### Further usage The `command` input takes any CLI command, so the same action covers whatever else your pipeline needs — for example, syncing install config files from your repo: ```yaml theme={null} command: "installs sync -a ${{ vars.nuon_app_id }} -d ./installs --confirm --approve-all" ``` ### Action inputs | Input | Required | Description | | - | - | - | | `org_id` | yes | Your Nuon org ID. | | `command` | no | The `nuon` command to run, without the leading `nuon`. Omit it to only install and configure the CLI. | | `app_id` | no | Default app for commands that take one. | | `api_token` | no | A static API token. Omit it to authenticate with OIDC. | | `api_url` | no | The control plane API URL. Defaults to `https://api.nuon.co`. | | `oidc_audience` | no | Audience for the OIDC token, if your trust policy's audience differs from `api_url`. | | `nuon_version` | no | CLI version to install. Defaults to the version your control plane reports. See [Choosing the CLI version](#choosing-the-cli-version). | > [!NOTE] > > For a Nuon BYOC or self-hosted control plane, pass its API URL as the `api_url` input and use the same URL as the > trust policy audience. If the two must differ, set `oidc_audience` to match the policy. ### Choosing the CLI version The CLI should match your control plane's version (see [Choosing a CLI version](/cli#choosing-a-cli-version)). The action handles this for you: when `nuon_version` is unset or `latest`, it reads the version from `api_url`'s `/version` endpoint and installs that release. This works for Nuon Cloud, BYOC, and Self-Hosted, so we recommend leaving `nuon_version` unset. If no CLI binary is published for the reported version, the action installs the latest release instead and adds a warning to the job summary. To pin the CLI, for example to make a workflow reproducible, set `nuon_version`: ```yaml theme={null} - name: Trigger branch run uses: nuonco/actions-nuon@v0.5.0 with: org_id: ${{ vars.nuon_org_id }} app_id: ${{ vars.nuon_app_id }} nuon_version: "0.19.1260" command: "branches trigger --branch-id main --no-wait" ``` Update the pin whenever your control plane is upgraded. Once the control plane's minimum CLI version passes the pin, every command prints a warning that the CLI is older than the minimum. The action's tag (`@v0.5.0`) is the version of the action itself, not of the CLI. The CLI version the action installed is available as the `nuon_version` step output. ## Authentication The action authenticates with OIDC or with a static API token. ### Using OIDC We strongly recommend configuring GitHub Actions to authenticate with Nuon using OIDC, so no long-lived API tokens need to be stored in GitHub. Create a trust policy for the repository and its protected branch on the **Manage OIDC** page in the Dashboard. Select the repo you want to trust and the form will be filled out for you. You can also use the CLI. ```sh theme={null} nuon orgs oidc-trust-policies create \ --name github-actions \ --issuer https://token.actions.githubusercontent.com \ --audience https://api.nuon.co \ --role org_admin \ --ttl 900 \ --claim sub=repo:acme/app:ref:refs/heads/main ``` Keep the `sub` condition limited to a protected branch and the `--ttl` short. The exchanged token only needs to outlive the one command it runs. See [claim matching](/concepts/oidc-federation#claim-matching) for other supported patterns. > [!NOTE] > > Triggering an App Branch run currently requires `org_admin` permissions. > We are in the process of adding more roles so such broad permissions are not required. ### Using static API tokens If you can't use OIDC — for example, your organization disallows the `id-token: write` permission — you can authenticate using a long-lived [API token](/concepts/api-tokens). Create a service account and a token for it, then save the token in a GitHub Actions secret named `NUON_API_TOKEN`. ```sh theme={null} nuon service-accounts create --name github-actions --role org_admin nuon service-accounts tokens create --id --name github-actions ``` Then configure it on the workflow job step. The `id-token: write` permission is not required if you are using a token. ```yaml theme={null} - name: Trigger branch run uses: nuonco/actions-nuon@v0.5.0 with: api_token: ${{ secrets.NUON_API_TOKEN }} org_id: ${{ vars.nuon_org_id }} app_id: ${{ vars.nuon_app_id }} command: "branches trigger --branch-id main --no-wait" ``` > [!NOTE] > > When using static tokens, we strongly recommend rotating them as frequently as is practical. ## Next steps > [card] [Configure app branches](/guides/app-branches) > > Write the branch config, group your installs, and approve rollouts. > [card] [How app branches work](/concepts/app-branches) > > Run types, plan and approval flow, and install version history. > [card] [OIDC federation](/concepts/oidc-federation) > > Trust policies, claim matching, and other CI providers. > [card] [Webhooks](/guides/webhooks) > > React to branch run events from your own systems. # Health Checks Source: https://docs.nuon.co/guides/health-checks Health checks tell you whether every component on every install is running right now. Nuon checks the components running on each install regularly, so you can see their live status. > [card] See what's running > > Every resource each component manages, with live status, browsable per install. > [card] Get alerted on failures > > Debounced alerts to Slack and webhooks, with the failing resource and the reason. > [card] Gate your deploys > > Hold a deploy open until the component has stayed healthy after the apply. > [card] Track uptime > > 90 days of timeline and uptime per component and install. ## Turn it on **1. Deploy, or refresh cluster access** Health checks are on for every organization. There's nothing to install, and no agent runs in your customers' clusters: Nuon reads them with the same access your deploys use. An install that hasn't deployed recently needs one deploy to pick this up, or you can click **Refresh cluster access** on the install's health card to pick it up immediately. **2. Open the install's Resources tab** Within a minute or two you'll see every resource each component manages, with per-resource health, filterable by component, kind, namespace and status. > [!NOTE] > > None of this requires configuration. The rest of this page covers optional settings that add to > the default checks. ## What you get with no configuration Helm chart and Kubernetes manifest components are checked automatically, about once a minute. Nuon checks standard workloads (Deployments, StatefulSets, DaemonSets, Pods, Services, PersistentVolumeClaims, Ingresses and Jobs) and the Helm release's own status. It also checks custom resources. Nuon reads the kinds your chart or manifest ships, so a `Certificate`, an `Issuer`, a Karpenter `NodePool` or your own CRD is watched like anything else. A component that starts shipping a new kind picks it up on its next deploy or drift check. Nuon also reads Kubernetes warning events, which catch failures that never appear in an object's own status. For example, an Ingress whose load balancer rejected a certificate looks fine if you only read the Ingress. Terraform components get their cloud resources listed so you can see what a component owns. Those rows are an inventory and don't affect the component's health on their own. To give a Terraform component a health status, [add a probe or a custom check](#choosing-a-check). ## How component health is determined ```mermaid theme={null} flowchart LR v{"Component health
        debounced"} k8s["Kubernetes resources
        automatic"] --> v probes["Probes
        http, tcp"] --> v custom["Custom checks
        your systems"] --> v v --> badge["Health badge
        and Resources tab"] v --> alerts["Slack and webhooks"] v --> gate["Deploy gate
        opt-in"] v --> history["Timeline and uptime"] ``` Nuon combines every resource, probe and custom check on a component into one health status. The component shows `healthy` when all of them are healthy. If any of them reports a problem, the component shows that problem. | Status | Meaning | | - | - | | `healthy` | Everything Nuon observes is fine. | | `progressing` | A rollout is in flight and can still converge. | | `degraded` | Something is wrong but the component is partly serving. | | `unhealthy` | The component is not serving. | | `unknown` | No fresh observations, usually because the runner is offline. Doesn't count as a failure. | | `not-applicable` | Nothing observable here, or the component has never deployed. | Two rules keep brief blips and missing data from sending alerts: **Health changes are debounced.** Three consecutive bad observations flip a component bad; two good ones bring it back. A single pod restart or a controller backing off doesn't alert. **Missing data is never a failure.** If observations stop for five minutes, the status becomes `unknown`. It's shown differently from a failure and never alerts. > [!TIP] > > Nuon reports a rollout that can't converge, such as one with a bad image tag or an unschedulable > pod, as `degraded` right away instead of waiting out the Kubernetes progress deadline. A component > that stays `progressing` for 30 minutes is also treated as `degraded`. ## Choosing a check There are three ways to add your own signals. You can combine them, and most components need none of them. | | Use it when | Runs where | Can gate a deploy | | - | - | - | - | | **Probe** | Nuon can reach the target: an endpoint or a port | Nuon, every cycle | Yes | | **Custom check** | Only your systems know the result: CI, a business metric, a nightly audit | Your systems, on your schedule | Yes, with `required_checks` | | **Required check** | A deploy must not finish until an external system says so | — | Yes | > [!NOTE] > > Probes work on every component type, including Terraform. They don't need a Kubernetes footprint or > an action. If Nuon can reach the target over HTTP or TCP, a probe is the > simplest option. ## Probes Probes check that your app is serving requests, which infrastructure status can't tell you. A Deployment can be ready while the app inside it returns 500. ```toml Kubernetes component theme={null} [[components.api.health.probes]] type = "http" url = "https://{{.nuon.install.sandbox.outputs.nuon_dns.public_domain.name}}/healthz" [[components.api.health.probes]] type = "tcp" url = "db.internal:5432" ``` ```toml Terraform component theme={null} # An EC2 instance has no Kubernetes status to read, so give it a probe. # Reference the module's own output. [[components.ec2.health.probes]] type = "http" url = "http://{{.nuon.components.ec2.outputs.public_ip}}/status/200" ``` * **`http`** passes on 2xx/3xx and never follows redirects. * **`tcp`** passes if the port accepts a connection. Every probe is bounded by a short timeout and runs once per cycle. Probe results count toward component health, alerts and history the same way as every other observation. > [!WARNING] > > **Probes run from the runner.** A probe target has to be resolvable > and reachable from wherever the runner is deployed, so in-cluster addresses never work: Kubernetes > service DNS (`http://api.myapp.svc:3001/healthz`), pod IPs, and `localhost` all fail to resolve or > connect, and the probe records an `unhealthy` observation. That is why the > Kubernetes example above probes the install's public hostname instead of the in-cluster service. > > The runner never connects a probe to loopback, link-local or cloud metadata addresses such as > `169.254.169.254`, whatever hostname resolves to them. Those probes report `unhealthy` with the > reason. Private network addresses like `db.internal:5432` are allowed. Probes connect directly and > ignore `HTTP_PROXY` and `HTTPS_PROXY`. > > If a component has no target the runner can reach, don't give it a probe. Set > [`block_deploy`](#verified-deploys) and let Nuon's automatic Kubernetes health checks determine the > component's health. > [!NOTE] > > Templated targets are resolved from the install's state, so a probe pointing at a component's own > output can't resolve until that component has applied at least once. Until then the probe reports > `unknown` and says why. It stays listed and never fails a deploy. ## Custom checks For anything Nuon can't reach, such as a business metric, a queue depth or a result your CI already computed, push a custom check and it becomes part of the component's health. ```bash theme={null} curl -X PUT \ "https://api.nuon.co/v1/installs/$INSTALL_ID/components/$COMPONENT_ID/health/checks/checkout-latency" \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -d '{"status":"degraded","message":"p99 1.8s over 1.2s budget"}' ``` `status` is one of `healthy`, `degraded`, `unhealthy`, `unknown`. Names are 1–100 characters of letters, digits, dots, dashes or underscores. A custom check can't override Nuon's own checks. If Nuon sees crash-looping pods, the component stays `unhealthy` even when your custom check reports `healthy`. A check's last value counts for 5 minutes by default. If yours reports less often, set `stale_after` (up to `60m`): ```bash theme={null} -d '{"status":"healthy","stale_after":"30m","message":"nightly audit clean"}' ``` After that window, the check reads `unknown`. It stays listed but no longer affects the component's health. ## Required checks Use required checks when a deploy shouldn't count as finished until something outside Nuon confirms it, such as applied migrations, a passing smoke suite or a passing canary analysis. List them by name and the deploy waits for them, the same way a GitHub branch rule waits for a required status check. ```toml theme={null} [components.api.health] block_deploy = true required_checks = ["migrations-applied", "smoke-tests"] ``` Each name must be [pushed as a custom check](#custom-checks) **after the apply finishes** and be healthy when the window closes. Nuon doesn't produce these checks, so something in your pipeline has to push them: ```bash theme={null} curl -X PUT ".../health/checks/migrations-applied" \ -H "Authorization: Bearer $NUON_API_TOKEN" -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -d '{"status":"healthy","message":"schema at revision 41"}' ``` > [!WARNING] > > If a required check doesn't report inside the window, the deploy fails. To give your pipeline more > time, lengthen `stabilization_window`. Every required check starts the window as `unknown` and only counts once it reports, so a value left over from a previous deploy can't satisfy the gate for this one. ### Example: gate a deploy on a k6 smoke suite Say you want no deploy to count as finished until k6 has run a smoke suite against the install and Datadog confirms error rate is within budget. Only your systems know these results, so both are custom checks, and both are listed as required. ```toml theme={null} [components.api.health] block_deploy = true stabilization_window = "10m" # room for the suite to run required_checks = ["smoke-tests", "error-budget"] ``` ```mermaid theme={null} sequenceDiagram participant N as Nuon participant CI as Your CI participant K as k6 / Datadog N->>N: apply finishes N->>N: verify health starts
        both checks unknown Note over N: deploy is held here CI->>K: run smoke suite, query error budget K-->>CI: results CI->>N: PUT smoke-tests = healthy CI->>N: PUT error-budget = healthy N->>N: both reported in-window,
        resources healthy N->>N: window closes, deploy succeeds ``` Your pipeline pushes the results whenever they're ready: ```bash theme={null} BASE="https://api.nuon.co/v1/installs/$INSTALL_ID/components/$COMPONENT_ID/health/checks" AUTH=(-H "Authorization: Bearer $NUON_API_TOKEN" -H "X-Nuon-Org-ID: $NUON_ORG_ID") k6 run smoke.js \ && curl -X PUT "$BASE/smoke-tests" "${AUTH[@]}" \ -d '{"status":"healthy","message":"42 checks passed"}' \ || curl -X PUT "$BASE/smoke-tests" "${AUTH[@]}" \ -d '{"status":"unhealthy","message":"checkout flow failed"}' ``` Push failures too. A reported failure fails the deploy immediately with its reason attached. If nothing is reported, the deploy waits out the window and fails with "never reported". > [!NOTE] > > The same pattern works with anything that can make an HTTP call: a Datadog monitor webhook, a Grafana > alert, a GitHub Action, an Argo workflow step, a nightly audit job. Nuon only checks that the result > arrived after the apply and inside the window. ## Alerting Health transitions fan out through webhooks and Slack like any other Nuon event. Subscribe with a single per-resource flag: * `component_health` on `components`: sends both failures and recoveries, so a channel that gets a failure alert also gets the recovery. * `install_degraded` on `installs`: fires when the install-level rollup changes. You usually don't need this too. When a component's failure is what moved the install, the component alert reports both in one message. Each alert names the component and its health, the health it had before, the failing resource, the reason (for example, a readiness probe whose connection was refused), the install and the org, with an **Open in Nuon** link. The recovery message follows the same layout and confirms how many resources are healthy again. Each message covers both the component and the install. When a component's change is what moved the install rollup, the headline says `install degraded` and an **Install health** field shows `healthy → degraded`. You don't get a separate install message. Nuon limits alerts in three ways: * `unknown` never alerts. A runner going offline is already reported as runner inactivity, and would otherwise page you once per component. * Only root causes alert. When a component fails because something it depends on failed, the dependents are labelled `downstream of ` and don't alert. * Recoveries are always paired with the failure that preceded them. See [Webhooks](/guides/webhooks) for the full subscription model. ## Verified deploys Try with your agent Deploy and verify health By default a deploy finishes when the apply succeeds. Set `block_deploy` and it finishes only once the component has held `healthy` for `stabilization_window` afterwards. ```toml theme={null} [components.api.health] stabilization_window = "3m" # default 3m, max 1h block_deploy = true # default false ``` The gate appears as its own **verify health** step, showing what it's watching and what's still outstanding. Only observations from inside the window count, so a component that was already healthy still has to stay healthy after the change, and a deploy that fixes a broken component passes as soon as its own observations come back healthy. This is off by default, and it's the only way health can affect whether a deploy passes. A component Nuon can't observe never blocks a deploy. > [!WARNING] > > **Gate a component only on what it provides.** If an app's gate probes an endpoint that a later > component creates, like a load balancer, the first install deadlocks. ## Canary and bake periods You can build canary rollouts from these pieces, starting with a fleet health summary filtered by install label: ```bash CLI theme={null} nuon installs health --labels tier:canary --output agent ``` ```bash API theme={null} curl "https://api.nuon.co/v1/installs/health?labels=tier%3Dcanary" \ -H "Authorization: Bearer $NUON_API_TOKEN" -H "X-Nuon-Org-ID: $NUON_ORG_ID" ``` ```jsonc theme={null} { "total": 3, "healthy": 3, "degraded": 0, "unhealthy": 0, "unknown": 0, "unset": 0, "all_healthy": true, "installs": [ { "install_id": "…", "health": "healthy", "unhealthy_components": 0 } ] } ``` A rollout then reads: deploy to `tier=canary`, hold until `all_healthy` has stayed true for your bake period, then continue to the rest of the fleet. ```bash theme={null} # bake for 10 minutes, requiring health the whole way for i in $(seq 1 20); do ok=$(nuon installs health --labels tier:canary --output agent | jq -r '.data.all_healthy') [ "$ok" = "true" ] || { echo "canary unhealthy, halting rollout"; exit 1; } sleep 30 done ``` `all_healthy` is true only if at least one install was evaluated. Installs that have never been evaluated are counted separately in `unset`, so a rollout script can't treat missing data as a pass. ## Uptime and incidents Every debounced transition is kept for 90 days, giving each component and install a timeline and an uptime percentage, drawn as status-page-style daily bars. The badge shows current health, and the percentage covers the last 90 days. A component showing `Healthy` at 97.57% is fine now but had problems earlier. An install is degraded whenever any of its components is, so if one component reads 97.57% and the rest read 100%, the install also reads 97.57%. Time in `unknown` is excluded from uptime and counts as neither up nor down. An install with no observations reports zero observed time instead of 100%. Each component also has an incident bundle that collects the failing transition, the captured diagnosis (Kubernetes events, restart counts, termination reasons like `OOMKilled`) and the deploy it followed. You can pass it to a runbook or an agent as input. ## Troubleshooting > [accordion] Everything shows unknown or no resources at all > > Nuon can't reach the cluster, usually because the install hasn't deployed recently. > Click **Refresh cluster access** on the install's health card, or run any deploy. Resources > should appear within a minute or two. > [accordion] A component shows a dash instead of a health status > > That's `not-applicable`. Either the component has no observable runtime footprint (a Terraform > component with no probe, a build-only component), or it has never deployed. Add a > [probe or a custom check](#choosing-a-check) to give it a health status. > [accordion] My custom resources aren't listed > > Kinds are read from what your chart or manifest ships, and are picked up on deploy. If you've > just added a CRD, deploy the component once, or wait for its next drift check, which > also refreshes them without applying anything. > [accordion] A custom check went unknown on its own > > Its window expired. Set `stale_after` to match how often you report, up to `60m`. > [accordion] Health took a few minutes to change > > That's the debounce: three bad observations to flip, two good to recover, at roughly one > observation a minute. It keeps a single restart from sending an alert. > [accordion] My deploy failed on a required check that did run > > It has to be pushed *after* the apply finishes, and be healthy when the window closes. A value > pushed before the deploy started doesn't count for that deploy. # Helm Chart Components Source: https://docs.nuon.co/guides/helm-chart-components Helm chart components allow you to connect an existing Helm chart and deploy it into your customer's cloud account. Helm chart components allow you to deploy any helm from a public or connected repo. To learn more about components, see the [Components](/concepts/components) concept page. ## Configuring a Helm component To configure a Helm component, specify a repo, the required configuration values and version to deploy it with. ```toml components/helm_chart.toml theme={null} # helm name = "helm_chart" type = "helm_chart" chart_name = "" [connected_repo] directory = "components/helm-chart" repo = "/" branch = "main" [[values_file]] contents = """ image: tag: "{{.nuon.components.app_image.image.tag}}" """ # alternatively, you can read from disk [[values_file]] source = "./values.yaml" ``` You can also put the Helm chart source inside of the same repo as the app config, and point to it. > [!NOTE] > > If you include the Helm chart source in the app config repo, push the source along with the rest of the repo. A branch run rebuilds a component when its config changes, so a push that changes only the chart source does not rebuild it. After that push, run `nuon branches trigger --branch-id --force`, or build the component manually in the dashboard or CLI. > [!WARNING] > > **The Helm release is named after `chart_name`, not after the component.** Two components that share a `chart_name` and a `namespace` therefore resolve to the same Helm release, and whichever deploys last overwrites the other's resources. Give each component its own `chart_name` (or its own `namespace`) when you deploy the same chart more than once. A `chart_name` must still be a valid DNS label of 5-62 characters, so short names like `api` are rejected at sync time. ## Release storage drivers Helm stores each release revision as an object in the release namespace. `storage_driver` picks the object type: `configmap` (the default when unset) or `secret`. The role that deploys the component needs `get`, `list`, `create`, `update`, and `delete` on that object type in the release namespace. Installs with cluster-wide roles already have this. If your maintenance or deploy roles are scoped to namespaces, grant access to `secrets` in every namespace where a component uses `storage_driver = "secret"`. Without it, the deploy fails at plan time when Helm tries to list the release history. ## Multiple ways to use Helm with components You can configure Helm components to use either a Helm repository (using a `helm_repo` block), a public repo (using a `public_repo` block), or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). ## Using Public Helm Repositories Helm repositories are the standard way to share and discover Helm charts across the Kubernetes ecosystem. You can deploy charts directly from public Helm repositories without needing to store them in your own Git repository. To use a public Helm chart, specify the repository URL and chart name: ```toml components/prometheus.toml theme={null} # helm name = "prometheus" type = "helm_chart" chart_name = "prometheus" [helm_repo] repo_url = "https://prometheus-community.github.io/helm-charts" chart = "kube-prometheus-stack" ``` This is equivalent to the Helm CLI command: ```bash theme={null} helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm install prometheus prometheus-community/kube-prometheus-stack ``` You can find public Helm charts on [Artifact Hub](https://artifacthub.io/), which indexes thousands of open-source Helm charts. Each chart page lists its repository URL, which you can use in the `repo_url` field. ## Open Source and Private Charts Nuon supports any Helm chart that can be accessed using git. It is common for app templates to have both a combination of public, open source helm charts for deploying standard components and private helm charts for application specific configuration. ## Helm Value Configuration One of the most important parts of deploying a Helm chart into a customer account, includes setting values properly. Values can be used for everything from accessing infrastructure, setting images or scaling pods. [Variables](/guides/using-variables) allow you to set default values for a Nuon app, expose customer configuration options, reference infrastructure from other components or access an image that was synced into the customer account. Examples for accessing common template variables: ```toml components/helm_chart.toml theme={null} # helm name = "helm_chart" type = "helm_chart" chart_name = "" [connected_repo] directory = "components/helm-chart" repo = "/" branch = "main" [values] # access a synced image image_repository = "{{.nuon.components.image.image.repository.uri}}" image_tag = "{{.nuon.components.image.image.tag}}" # access outputs from a terraform component output_value = "{{.nuon.components.terraform.outputs.output_value}}" # access outputs from the sandbox aws_region = "{{.nuon.install.sandbox.outputs.account.region}}" vpc_id = "{{.nuon.install.sandbox.outputs.vpc.id}}" # access information about the install domain public_root_domain = "{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" internal_root_domain = "{{.nuon.sandbox.outputs.nuon_dns.internal_domain.name}}" ``` ## Using a Helm Values File You can add a values file and locate it in the app config repository. ```toml components/grafana.toml theme={null} # helm name = "grafana" type = "helm_chart" chart_name = "grafana" namespace = "grafana" storage_driver = "configmap" dependencies = ["prometheus", "grafana_secrets", "exampledb_secrets"] [public_repo] repo = "grafana/helm-charts" directory = "charts/grafana" branch = "main" [[values_file]] contents = "./values/grafana/values.yaml" ``` ## Nuon Managed Sandbox Components and DNS The `aws-eks-sandbox` [managed sandbox](/concepts/sandboxes#nuon-managed-sandboxes) ships with standard Helm components + DNS zones to solve for common use cases, such as exposing a public or private https service. This includes: * [AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller) * [External DNS](https://github.com/kubernetes-sigs/external-dns) * [Cert Manager](https://cert-manager.io/) * [Nginx Ingress](https://docs.nginx.com/nginx-ingress-controller/) * [EBS CSI](https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html) The Sandboxes are [open source](/concepts/sandboxes#nuon-managed-sandboxes) and can be [customized](/concepts/sandboxes#create-a-custom-sandbox), if these components do not work for your application. ## Using Domains The [Nuon managed Sandboxes](/concepts/sandboxes#nuon-managed-sandboxes) automatically deploy the components required to provision DNS, Certificate and Load Balancer resources using Helm. There are multiple ways to use these components. Here are examples of the two most common. ### AWS NLB with AWS ACM If you want to leverage AWS services, you can provision an NLB that uses an ACM certificate. Your chart would contain a Service resource, configured so that the operator will create an NLB. ```yaml nlb_public.tpl theme={null} --- apiVersion: v1 kind: Service metadata: name: nlb-public namespace: {{ .Release.Namespace }} labels: {} annotations: service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=false service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.api.nlbs.public_domain_certificate_arn }} service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp external-dns.alpha.kubernetes.io/hostname: {{ .Values.api.nlbs.public_domain }} spec: type: LoadBalancer loadBalancerClass: service.k8s.aws/nlb allocateLoadBalancerNodePorts: false externalTrafficPolicy: Local internalTrafficPolicy: Local selector: {} ports: - name: https port: 443 targetPort: http ``` You would parametrize the Service with the following values in your chart's `values.yaml` file, to accept public and private domains and an ACM certificate ARN. ```yaml theme={null} nlbs: public_domain: nlb.INSTALL_PUBLIC_DOMAIN internal_domain: nlb.internal.INSTALL_INTERNAL_DOMAIN public_domain_certificate: nbl.PUBLIC_DOMAIN_CERTIFICATE ``` Then, you could set those values per install with the following component config. ```toml components/nlb.toml theme={null} # helm name = "nlb" type = "helm_chart" chart_name = "nlb" [connected_repo] directory = "components/nlb" repo = "/" branch = "main" [values] "nlbs.public_domain" = "nlb.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" "nlbs.public_domain_certificate_arn" = "{{.nuon.components.infra.outputs.public_domain_certificate_arn}}" ``` ### Nginx Ingress with Cert Manager If you would prefer to manage resources within Kubernetes instead, you could use the Nginx ingress and have the `cert-manager` operator provision a certificate. In your chart, you would define the Ingress and Certificate resources. ```yaml components/api_public.tpl theme={null} --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: api-public namespace: {{ .Release.Namespace }} labels: {} annotations: external-dns.alpha.kubernetes.io/hostname: {{ .Values.nginx.public_domain }} kubernetes.io/ingress.class: nginx spec: tls: - hosts: - {{ .Values.nginx.public_domain }} secretName: e2e-ingress-public-tls rules: - host: {{ .Values.nginx.public_domain}} http: paths: - path: / pathType: Prefix backend: service: name: api port: number: 80 --- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: api-nginx namespace: {{ .Release.Namespace }} labels: {{- include "common.apiLabels" . | nindent 4 }} spec: secretName: e2e-ingress-public-tls dnsNames: - {{ .Values.nginx.public_domain }} issuerRef: name: public-issuer kind: ClusterIssuer ``` Then, allow configuring the domain in the chart's `values.yaml` file. ```yaml theme={null} nginx: public_domain: nlb.INSTALL_PUBLIC_DOMAIN ``` You could then set the domain per install in your Component config. ```toml components/nlb.toml theme={null} # helm name = "nlb" type = "helm_chart" chart_name = "nlb" [connected_repo] directory = "components/nlb" repo = "/" branch = "main" [values] "nlbs.public_domain" = "nlb.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" ``` > [!NOTE] > > By default, Nuon provisions a custom domain for each install id under the `nuon.run` domain (eg: inl8ybt7gajofh33e0h3pqyw1t.nuon.run). > > If you would like to use a customer provided domain, you can accept customer domains using [inputs](/concepts/app-inputs.mdx). We > are planning to improve support for this, and would love to [hear about](https://nuon.co/contact-us) your use case. ## Per-install value overrides To customize a Helm chart's values for a single install without changing your app config, use [component overrides](/guides/component-overrides). # Idempotent operations Source: https://docs.nuon.co/guides/idempotent-operations Pass request_id on endpoints that create a workflow so a retry returns the original workflow instead of starting a second one. Public API endpoints that create a workflow accept an optional `request_id` (JSON body field, at most 255 characters). Use it from your own automation when a lost response must not start a second workflow. Nuon stores that id with the workflow. Send the same id and the same body again and the API returns the original `workflow_id` (and run id where applicable). Calls that omit `request_id` start a new workflow every time. The CLI and the dashboard omit it. If you're building customer-facing setup in your own product, start with [Build a UI integration](/guides/ui-integration). It shows where `request_id` fits in that flow. The id is unique for one org, one install, and one workflow type, for as long as that workflow exists. Generate a new id for each workflow you intend to start once, and store it before the POST so a timeout retry uses the same id. ## Example Deploy all components on an install: ```bash curl theme={null} curl -X POST "https://api.nuon.co/v1/installs/$INSTALL_ID/components/deploy-all" \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{ "request_id": "deploy-acme-prod-1", "plan_only": false }' ``` ```go Go theme={null} import "github.com/nuonco/nuon-go/models" // POST /v1/installs/{install_id}/components/deploy-all body := &models.ServiceDeployInstallComponentsRequest{ PlanOnly: false, RequestID: "deploy-acme-prod-1", } // 201: {"workflow_id":"inw..."} ``` Store the returned `workflow_id`. A later call with `deploy-acme-prod-1` and the same body returns that same id. The Go SDK helpers, such as `DeployInstallComponents`, do not send `request_id`. Set the field on the JSON body when you call the API yourself. ## Different body The same id with a different body returns `409`: ```json theme={null} { "error": "request_id was already used with a different request", "user_error": true, "description": "request_id was already used with a different request body" } ``` Changing `plan_only`, inputs, the action config, the adhoc command, or the runbook steps is a different body. Use a new `request_id` for that workflow. ## Install moved to a new app config Nuon records the install's app config when it accepts the request. If the install is on a newer app config when you retry, the API returns `409` and names both config ids. That failure is permanent for this id. Starting a workflow against the new config takes a new `request_id`. An adhoc run does not use this check. The script or command in the body is the work being run. If the install's app config changes while a deploy, reprovision, action, or runbook workflow from that request is still generating steps, that workflow fails. An adhoc run keeps going. ## A call that fails A call that fails before Nuon stores the workflow does not keep the id. Send the same `request_id` and body again. A `201` means the workflow is stored. Retrying returns it, including when the workflow is already running or finished. # Verify Container Image Signatures Source: https://docs.nuon.co/guides/image-signature-verification Require container images to be signed by trusted Sigstore identities or Cosign keys before Nuon copies them. Nuon can require a container image to have a valid signature before copying it into Nuon's registry. Verification runs when the container image component builds, after Nuon resolves the configured tag to an immutable digest and before it copies that digest. Add a `verification` block to any `container_image` component. If the image does not satisfy a configured authority, the component build fails and the image is not copied. ## Verify a keyless signature Use `keyless` for images signed with a certificate issued through Sigstore. Pin both the OIDC issuer and the certificate subject so a valid signature from an unrelated identity is not accepted. ```toml components/api.toml theme={null} name = "api" type = "container_image" [public] image_url = "ghcr.io/acme/api" tag = "v1.4.0" [verification] require_signature = true [[verification.authorities]] type = "keyless" issuer = "https://token.actions.githubusercontent.com" subject = "https://github.com/acme/api/.github/workflows/release.yaml@refs/heads/main" ``` For identities that intentionally vary, use `subject_regexp` instead of `subject`. Exactly one of the two fields is required. ```toml theme={null} [[verification.authorities]] type = "keyless" issuer = "https://token.actions.githubusercontent.com" subject_regexp = '^https://github\.com/acme/api/\.github/workflows/release\.yaml@refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$' ``` Prefer an exact subject when one identity signs all releases. Keep regular expressions narrow enough that they cannot match pull request workflows, forks, or other repositories. ## Verify with a Cosign public key Use `public_key` for images signed with a managed key pair. Commit the public key with the app configuration and reference it by relative path. Nuon reads the public key into the configuration during sync; the private key is never provided to Nuon. ```toml components/api.toml theme={null} name = "api" type = "container_image" [public] image_url = "ghcr.io/acme/api" tag = "v1.4.0" [verification] require_signature = true [[verification.authorities]] type = "public_key" public_key = "./cosign.pub" ``` The path is relative to the app's `components` directory. You can also provide the PEM-encoded public key directly. ## Trust more than one authority Multiple authorities use **OR** semantics. A build succeeds when any one authority verifies the resolved image digest. This supports key rotation or a transition between key-based and keyless signing without an unsigned window. ```toml theme={null} [verification] require_signature = true [[verification.authorities]] type = "public_key" public_key = "./current-cosign.pub" [[verification.authorities]] type = "public_key" public_key = "./next-cosign.pub" ``` Remove the old authority after all published images are signed by the replacement authority. ## What Nuon copies After verification succeeds, Nuon copies the resolved image and its attached OCI metadata. This includes recursively linked OCI referrers such as signatures, SBOMs, provenance, and other attestations. Nuon also copies legacy Cosign digest tags ending in `.sig`, `.att`, and `.sbom`. This preserves the metadata so the copied image can be inspected and verified in its destination registry. Registry credentials configured on the component are used for both image discovery and signature verification. ## Verification status Each `container_image` build records its outcome, shown as a badge on the build in the dashboard and as `signature_verification` in the API: | Value | Meaning | | - | - | | `verified` | A configured authority verified the image signature. | | `rejected` | No configured authority verified the signature, so the build failed. | | `not_required` | The component does not set `require_signature`. | | *empty* | Unknown: the build failed before verification ran, or predates this field. | ## Signature verification and OPA policies Native signature verification and [external image policies](/guides/external-image-policies) solve different problems: | Requirement | Use | | - | - | | Prove that a trusted identity or key signed the exact image digest | Native `verification` block | | Require an SBOM, provenance predicate, approved registry, or allowed tag | OPA external image policy | | Inspect fields inside an attestation | OPA external image policy | OPA policies evaluate image metadata. They do not perform Cosign's certificate-chain, transparency-log, payload, or cryptographic signature checks. Use the native `verification` block whenever trust in the signer is required, then add OPA only for metadata or attestation rules that provide additional value. # Track image patches with update policies Source: https://docs.nuon.co/guides/image-update-policies Use a semver constraint so each component build picks up the latest matching patch tag without editing your app config. A container image component normally pins to a literal tag (`v1.10.0`). When upstream ships `v1.10.1`, you have to edit your app config, change the tag, and push the change. For images you want to stay current on within a version range (patches inside a minor, minors inside a major), you can set `update_policy` instead. When `update_policy` is set, every time the component is rebuilt the runner lists tags from the source registry, filters them to the semver tags that satisfy your constraint, and selects the highest matching tag. Tags that aren't valid semver (`latest`, `stable`, branch names) are skipped. > [!NOTE] > > Update policies are evaluated **at build time**. There is no background scheduler that polls upstream. You pick up new tags the next time a build runs for the component. An [app branch](/guides/app-branches) run only rebuilds components whose config changed, so to pick up a new upstream tag with no config change, run `nuon branches trigger --branch-id --force` (or anything else that triggers a build for that component, such as `nuon builds create -c `). ## Scenario You have an app template with two components: * `img_whoami` — a `container_image` component pulling from Docker Hub. * `whoami` — a `helm_chart` component that consumes `img_whoami` in its pod spec. You want `img_whoami` to stay on the latest `1.10.x` patch automatically. Major and minor bumps still go through a deliberate config change, but patches should be picked up the next time the component builds. ## Step 1: Configure the image component with `update_policy` Drop the literal `tag` (or leave it as a starting hint) and add `update_policy`: ```toml components/img_whoami.toml theme={null} # container-image name = "img_whoami" type = "container_image" [public] image_url = "containous/whoami" update_policy = "~1.10.0" ``` `~1.10.0` means "any `1.10.x`": the runner will pick the highest `1.10.*` tag and refuse to roll to `1.11.0` or `2.0.0`. See the [container image config reference](/config-ref/container-image) for every supported constraint shape (tilde, caret, ranges, OR, exact match). ## Step 2: Wire the helm component to consume the resolved image In your helm component, reference the image outputs by digest. Using the digest-pinned `repository` form means each install is locked to the exact bytes that were resolved at build time: ```toml components/whoami.toml theme={null} # helm-chart name = "whoami" type = "helm_chart" chart_name = "whoami" dependencies = ["img_whoami"] [values] # digest-pinned ref, e.g. "containous/whoami@sha256:abc..." image_repository = "{{ .nuon.components.img_whoami.outputs.image.repository }}" # human-friendly tag for labels only; do NOT use in the image field image_display_tag = "{{ .nuon.components.img_whoami.outputs.image.display_tag }}" ``` ## Step 3: Push and deploy Commit the change and push it to the git branch your [app branch](/guides/app-branches) tracks: ```bash theme={null} git commit -am "track whoami 1.10.x" git push origin main ``` The push starts a branch run, and the run builds `img_whoami`. Assume the highest tag in `containous/whoami` matching `~1.10.0` is `v1.10.0`: ``` update_policy "~1.10.0" selected tag "v1.10.0" from 47 source tags resolving image source containous/whoami:v1.10.0 copying image from containous/whoami:v1.10.0 to ``` The resulting build records: | Field | Value | | - | - | | `source_ref` | `containous/whoami:~1.10.0` | | `resolved_tag` | `v1.10.0` | | `source_digest` | `sha256:abc…` | Approve each deployment group as usual. Pods come up running `v1.10.0`. ## Step 4: Upstream ships v1.10.1, pick it up on the next build A few days later upstream releases `v1.10.1`. You don't touch your app config, so there is nothing to push. Start a run that rebuilds every component: ```bash theme={null} nuon branches trigger --branch-id main --force ``` A new build for `img_whoami` runs: ``` update_policy "~1.10.0" selected tag "v1.10.1" from 48 source tags resolving image source containous/whoami:v1.10.1 copying image from containous/whoami:v1.10.1 to ``` The new build is recorded with `resolved_tag: v1.10.1` and a fresh `source_digest`. Because `whoami` depends on `img_whoami`, the deploy flow detects that the install's currently-deployed `img_whoami` build no longer matches the latest active build, and prepends an image sync before redeploying `whoami`. The pod rolls to `v1.10.1`. A [container action](/guides/container-actions) that points its `image` at `img_whoami`'s `image.ref` output picks the new build up the same way, without waiting for a deploy: its next run syncs the newer build into the install registry before the action's steps start. ## Step 5: Upstream ships v2.0.0 — your installs stay put When `containous/whoami:v2.0.0` lands, the next build sees it but rejects it: it falls outside `~1.10.0`. The runner stays on the highest matching `1.10.x` tag. Major bumps still require you to update the constraint deliberately, for example `update_policy = "~1.11.0"` or `update_policy = "^1.0.0"` if you want to track any `1.x`. ## When nothing changed: no-op builds If a build runs and upstream hasn't moved since the last build, the runner resolves the source ref, sees the manifest digest matches the previous build's recorded digest, and skips the copy entirely. The new build row is marked **no-op** and no new install deploy is queued. You'll see this on the build header in the dashboard and on the build timeline. This means rerunning `nuon branches trigger --force` is always safe for this component: it never re-pushes bytes the install registry already has. ## Reference: common policy shapes | Constraint | Meaning | | - | - | | `~1.10.0` | `>=1.10.0, <1.11.0` (patches only) | | `^1.10.0` | `>=1.10.0, <2.0.0` (minor + patch) | | `>=1.0.0,<2.0.0` | comma-separated comparators (AND) | | `1.x` / `1.2.x` | wildcard ranges | | `1.0.0 - 2.0.0` | inclusive hyphen range | | `^1.0 \|\| ^2.0` | OR | | `=1.25.5` | exact match | Full reference: [container-image config](/config-ref/container-image). ## When `update_policy` is **not** the right tool * **Pinning a specific build for compliance / reproducibility.** Use a literal `tag` (or pin by digest) so nothing changes between builds. * **Polling upstream continuously.** `update_policy` only fires when a build runs. There is no background poller. If you need scheduled image refreshes today, run `nuon branches trigger --branch-id main --force --no-wait` from your CI on a cron. * **Tracking non-semver tags.** Tags like `latest`, `stable`, or `release-2024` are silently ignored — the highest semver match wins. # Syncing Install Configs from Git Source: https://docs.nuon.co/guides/install-config-syncing Connect a Git repo of install config files to your app template so pushes keep every install's config in sync Point your app template at a Git repository that holds one config file per install, and Nuon keeps those installs in sync with the repo. When you push a change, every install's config is updated to match; when you add a file for an install that doesn't exist yet, Nuon proposes creating it and waits for your approval. This is the app-wide counterpart to [creating installs from config files](/guides/install-configs) by hand — the same file format, applied continuously from a repo instead of one command at a time. > [!NOTE] > > Install config syncing is behind the `app-install-syncing` org feature flag and is off by default. Contact Nuon support to enable it for your org. ## Prerequisites * A [GitHub connection](/guides/vcs) (if using `connected_repo`) * Familiarity with [install config files](/guides/install-configs) ## Configuration There are two ways to configure install config syncing: in your app config or as a standalone file. Both accept the same properties — see the [Installs Config Reference](/config-ref/installs-config) for the full schema. ### In app config (`[installs_config]`) Add an `[installs_config]` section to your app config: ```toml nuon.toml theme={null} [installs_config.connected_repo] repo = "org/repo" branch = "main" directory = "installs" ``` Or with a public repo: ```toml nuon.toml theme={null} [installs_config.public_repo] repo = "https://github.com/org/repo.git" branch = "main" directory = "installs" ``` ### Standalone `installs.toml` Create an `installs.toml` file in your app config directory: ```toml installs.toml theme={null} [connected_repo] repo = "org/repo" branch = "main" directory = "installs" ``` > [!NOTE] > > `connected_repo` and `public_repo` are mutually exclusive — use one or the other. Use `connected_repo` when your install repo is private, or when you don't want the repo location to be public. You can also configure the repo from the dashboard, on the app's **Install configs** tab, without changing your app config. ## Install Config Files Each file in the configured `directory` defines one install. The `name` field is what ties a file to an install — Nuon matches on it to decide whether to update an existing install or propose a new one, so renaming a file is harmless but renaming the `name` is not. ```toml installs/staging.toml theme={null} name = "staging" approval_option = "approve-all" [labels] env = "staging" region = "us-east-1" [aws_account] region = "us-east-1" [[inputs]] instance_type = "t3a.small" debug_mode = "false" [[inputs]] domain = "staging.example.com" ``` ```toml installs/production.toml theme={null} name = "production" approval_option = "prompt" [labels] env = "production" region = "us-east-1" [aws_account] region = "us-east-1" [[inputs]] instance_type = "t3a.large" debug_mode = "false" [[inputs]] domain = "prod.example.com" ``` See the [Install Config Reference](/config-ref/install) for the full schema. To move an install you created by hand under config management, export it: ```sh theme={null} nuon installs generate-config -i > installs/.toml ``` ## What Happens During a Sync Each sync runs as a workflow with three steps, visible on the app's **Install configs** tab: 1. **Fetch commit** — resolves the commit to sync and clones the repo at that revision. 2. **Parse install configs** — reads every config file in the directory and compares it against the app's existing installs. If any file names an install that doesn't exist, the step pauses for approval and lists the installs it proposes creating. 3. **Sync installs** — dispatches a config sync to each matching install, which applies the new config and starts any resulting workflow. Approving the second step creates the missing installs. Denying it skips creation and ends the sync — existing installs are left untouched, and the next sync will propose them again. > [!NOTE] > > A sync never deletes installs. Removing a config file from the repo stops that install from being updated; it does not tear it down. ## Sync Triggers There are two ways a sync starts: * **Git push** — a push to the configured branch of the connected repo triggers a sync automatically. * **Manual** — the **Sync now** button on the app's **Install configs** tab, or a `POST` to `/v1/apps/{app_id}/install-syncs`. > [!NOTE] > > An [app branch](/guides/app-branches) run does not trigger an install config sync. It registers the `installs_config` block from your app config so pushes and manual syncs can use it. The first sync still comes from a push or from **Sync now**. ## Syncing Config Files Directly `nuon installs sync` is a separate mechanism: it pushes install config files from your working copy straight to the API, without going through a connected repo. It's useful for iterating on a config before committing it, or for managing installs from CI without connecting a repo at all. Sync a single file: ```sh theme={null} nuon installs sync --file installs/staging.toml --app-id ``` Sync a whole directory: ```sh theme={null} nuon installs sync --app-id --file installs/ ``` Preview the changes without applying them: ```sh theme={null} nuon installs sync --app-id --file installs/ --dry-run ``` Add `--yes` to approve the resulting diffs and workflows automatically, and `--wait` to block until those workflows finish — both are useful in CI. To stop an individual install from being updated by either mechanism: ```sh theme={null} nuon installs toggle-sync -i --disable ``` ## Viewing Sync History The app's **Install configs** tab lists recent syncs with their status, the commit each one ran against, and the per-install config syncs it dispatched. Opening a sync shows its step timeline, the proposed installs awaiting approval, and the approve and deny actions. ## See Also * [Creating Installs](/guides/install-configs) — manual install config management * [Install Config Reference](/config-ref/install) — JSON Schema reference * [Installs Config Reference](/config-ref/installs-config) — repo connection schema * [Configuration Files](/configuration-files) — full TOML reference * [App Branches](/concepts/app-branches) — coordinated multi-install deployments # Creating Installs Source: https://docs.nuon.co/guides/install-configs Configuring the installs for your customers When you ship your app template to customers through Nuon, you create one install per customer. This page covers configuring those installs, labeling them so they're easy to identify, and monitoring their workflows once they're running. To learn more about installs, see the [App and Install Life Cycle](/guides/app-install-life-cycle) concept page. ## Install Configs If you create installs at scale — for example, one per customer in an automated onboarding flow — you can generate install configs programmatically instead of authoring them by hand. Install configs are defined by a [JSON Schema](/config-ref/install) that lists every field, its type, and its validation rules. Feed the schema to a code generator, validator, or template engine and produce install configs from your own data. Apply a generated config with the Nuon CLI: ```bash theme={null} nuon installs sync --file .toml --app-id --confirm ``` For the full property list, see the [Install configuration reference](/config-ref/install). ## Labeling installs Installs support arbitrary key/value `labels` set via the `labels` field in the install config. Labels are useful for tagging installs with metadata like environment, region, or version, and they're surfaced in the dashboard alongside the install. ```toml install.toml theme={null} name = "customer-acme" [labels] env = "production" region = "us-east-1" tier = "enterprise" ``` See [Label badges](/guides/using-readmes#label-badge) for how labels render in install READMEs. ### Dynamic labels Label values can use [Nuon templating](/guides/using-variables) to render from install state: ```toml install.toml theme={null} name = "customer-acme" [labels] env = "production" region = "{{ .nuon.cloud_account.aws.region }}" tier = "{{ .nuon.install.inputs.tier }}" ``` Dynamic values are rendered when the install install state changes — deploys, input updates, and config updates all trigger a refresh. The rendered value is displayed in the dashboard and what [webhook and Slack label selectors](/guides/webhooks) match against. If a template references state that doesn't exist yet (for example, a component output before its first deploy), the label is skipped rather than failing the sync; it appears once the referenced state is available. ### Default labels Labels defined in the app's [`default_labels`](/guides/multiple-app-configurations#default-labels) apply to every install and are owned by the app config — an install config cannot override or remove those keys, and a sync that tries to set a different value for one fails with an error. ## Toggling components If your app has [toggleable components](/guides/toggleable-components), the install config decides which ones are enabled. Set the state per component in a `[component_toggles]` section, keyed by component name: ```toml install.toml theme={null} name = "customer-acme" [component_toggles] observability = true certificate = false ``` See the [Toggleable Components guide](/guides/toggleable-components) for how toggles reconcile on sync, dependency validation, and imperative dashboard/CLI toggles. ## Install telemetry If your Nuon BYOC deployment has a telemetry relay configured, set `[telemetry]` in the install config to enable or disable forwarding of application logs, metrics, and traces. See [Manage Install Telemetry](/guides/manage-install-telemetry) for the configuration and org-default behavior. ## Monitoring in-progress workflows Once an install kicks off a deploy — or any other workflow — you can monitor progress from the dashboard, via outbound webhooks, or via Slack notifications. Connect your workspace to get real-time deploy notifications — see the [Slack integration guide](/guides/slack). For programmatic integrations, [webhooks](/guides/webhooks) deliver the same workflow lifecycle events as CloudEvents over HTTP. ## Syncing Install Configs from Git Instead of applying these files one command at a time, you can point your app at a Git repository that holds them. Pushes to that repo then keep every install in sync, and new files propose new installs for approval. Configure it with an `installs.toml` file or an `[installs_config]` section in your app config. See the [Syncing Install Configs from Git](/guides/install-config-syncing) guide for setup and usage. # Kubernetes Manifest Components Source: https://docs.nuon.co/guides/kubernetes-manifest-components Kubernetes manifest components allow you to deploy raw Kubernetes resources directly into your customer's cloud account. Kubernetes manifest components allow you to deploy raw Kubernetes resources using YAML manifests. To learn more about components, see the [Components](/concepts/components) concept page. ## Configuring a Kubernetes Manifest component To configure a Kubernetes manifest component, specify a namespace and the manifest files to deploy. ```toml components/kubernetes_manifest.toml theme={null} # kubernetes-manifest name = "kubernetes_manifest" type = "kubernetes_manifest" namespace = "nuon-sample" manifest = """ apiVersion: v1 kind: ConfigMap metadata: name: demo data: sample_data: "3" """ ``` ## Multiple Resources in a Single Manifest Kubernetes manifest components support multiple resources separated by the standard YAML document separator `---`: ```yaml components/deployment.yaml theme={null} apiVersion: apps/v1 kind: Deployment metadata: name: my-app namespace: default spec: replicas: 3 selector: matchLabels: app: my-app template: metadata: labels: app: my-app spec: containers: - name: app image: "alpine:latest" ports: - containerPort: 8080 --- apiVersion: v1 kind: Service metadata: name: my-app-service namespace: default spec: selector: app: my-app ports: - port: 80 targetPort: 8080 type: ClusterIP ``` ## Using Nuon Context Variables Kubernetes manifest components support Nuon's templating system, allowing you to access variables and outputs from other components: ```yaml components/configmap.yaml theme={null} --- apiVersion: v1 kind: ConfigMap metadata: name: app-config namespace: default data: # access a synced image image_repository: "{{.nuon.components.image.image.repository.uri}}" image_tag: "{{.nuon.components.image.image.tag}}" # access outputs from a terraform component database_url: "{{.nuon.components.terraform.outputs.database_url}}" # access outputs from the sandbox aws_region: "{{.nuon.install.sandbox.outputs.account.region}}" vpc_id: "{{.nuon.install.sandbox.outputs.vpc.id}}" # access information about the install domain public_domain: "{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" internal_domain: "{{.nuon.sandbox.outputs.nuon_dns.internal_domain.name}}" ``` ## Common Use Cases ### Deploying with Custom Images ```yaml components/app-deployment.yaml theme={null} --- apiVersion: apps/v1 kind: Deployment metadata: name: "{{.nuon.app.name}}" namespace: default spec: replicas: 2 selector: matchLabels: app: "{{.nuon.app.name}}" template: metadata: labels: app: "{{.nuon.app.name}}" spec: containers: - name: app image: "{{.nuon.components.app_image.image.repository.uri}}:{{.nuon.components.app_image.image.tag}}" env: - name: DATABASE_URL value: "{{.nuon.components.infra.outputs.database_url}}" - name: AWS_REGION value: "{{.nuon.install.sandbox.outputs.account.region}}" ports: - containerPort: 8080 ``` ### Creating Ingress Resources ```yaml components/ingress.yaml theme={null} --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: app-ingress namespace: default annotations: external-dns.alpha.kubernetes.io/hostname: "app.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" kubernetes.io/ingress.class: nginx cert-manager.io/cluster-issuer: "public-issuer" spec: tls: - hosts: - "app.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" secretName: app-tls rules: - host: "app.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" http: paths: - path: / pathType: Prefix backend: service: name: app-service port: number: 80 ``` ### Using AWS Load Balancer Controller ```yaml components/nlb-service.yaml theme={null} --- apiVersion: v1 kind: Service metadata: name: app-nlb namespace: default annotations: service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "{{.nuon.components.infra.outputs.public_domain_certificate_arn}}" service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https external-dns.alpha.kubernetes.io/hostname: "app.{{.nuon.sandbox.outputs.nuon_dns.public_domain.name}}" spec: type: LoadBalancer loadBalancerClass: service.k8s.aws/nlb selector: app: my-app ports: - name: https port: 443 targetPort: 8080 ``` ## Kustomize In addition to inline manifests, Kubernetes manifest components can be sourced from a [Kustomize](https://kustomize.io) overlay in a Git repo. Use this when you want to assemble your manifests from a base + overlays, layer in patches, or share manifests across multiple components. ### Pointing a component at a Kustomize overlay A Kustomize-backed component references the repo holding the overlay (either `public_repo` for a public GitHub repo, or `connected_repo` for a Nuon-connected private repo) and a `kustomize.path` relative to the source root. ```toml components/kustomize-demo.toml theme={null} name = "kustomize-demo" type = "kubernetes_manifest" namespace = "kustomize-demo" [public_repo] repo = "nuonco/example-app-configs" directory = "gke-simple/src/components/kustomize-demo" branch = "main" [kustomize] path = "." ``` The directory selected by `kustomize.path` must contain a standard `kustomization.yaml`. Nuon builds the overlay into a manifest artifact during the component build. ```yaml gke-simple/src/components/kustomize-demo/kustomization.yaml theme={null} apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml - configmap.yaml - deployment.yaml ``` ### Supported Kustomize features Nuon supports local-only Kustomize builds. The initial Git checkout configured by `public_repo` or `connected_repo` is supported, but Kustomize cannot fetch additional sources from inside that checkout's configuration. Supported features include: * Local resources, bases, and components. * Local patches, replacements, and transformer configurations. * ConfigMap and Secret generators using local files, environment files, or literal values. * Labels, annotations, name prefixes and suffixes, image overrides, and replica counts. * Inline or local file-backed built-in generator and transformer configurations. Files and symlinks must stay within the build's checked-out source tree. Kustomize's `rootOnly` load restriction is always enforced: local base directories such as `../../base` can be used within that tree, but individual file inputs must also satisfy the load restriction of the Kustomization that reads them. `load_restrictor = "none"` is not supported. The following features are not supported: * **Nested remote references:** Git references and HTTP(S) URLs in Kustomize inputs, including resources, bases, components, patches, and generator inputs. This applies to public and private destinations alike. Vendor the required files or bases into the source tree and reference them locally instead. * **Helm chart inflation:** `helmCharts`, `helmChartInflationGenerator`, and `enable_helm = true`. Omit `enable_helm` or leave it `false`. Use a separate [Helm chart component](/config-ref/helm) to deploy Helm charts. * **Directory-backed plugin configurations:** Directories listed under `generators`, `transformers`, or `validators`. Use a local configuration file instead of a directory that builds the configuration. * **External executable or function plugins.** For example, keep a shared base in `vendor/shared-base/` alongside the local `base/` rather than referencing its Git repository or an HTTP URL: ```yaml kustomization.yaml theme={null} apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./base - ./vendor/shared-base ``` These restrictions keep Kustomize's file reads within the build source and prevent its remote loaders and subprocesses from bypassing that boundary. ### Template variables in Kustomize trees Kustomize-backed components support the same `{{.nuon.*}}` template variables as inline manifests. Placeholders are rendered on the runner, against the live install state, **after** `kustomize build` produces the final manifest. This means you can reference install IDs, app metadata, install stack outputs, and other component outputs directly from any YAML file inside your Kustomize overlay. ```yaml gke-simple/src/components/kustomize-demo/configmap.yaml theme={null} apiVersion: v1 kind: ConfigMap metadata: name: install-info namespace: kustomize-demo annotations: nuon.co/rendered-install-id: "{{.nuon.install.id}}" data: install_id: "{{.nuon.install.id}}" install_name: "{{.nuon.install.name}}" app_id: "{{.nuon.app.id}}" project_id: "{{.nuon.install_stack.outputs.project_id}}" ``` After a deploy, the rendered ConfigMap on the cluster will have the placeholders replaced with the install's actual values — for example, `install_id: inl...`, `project_id: nuon-gcp-support`. > [!NOTE] > > Kustomize-backed manifests are templated on the runner, not in the planner. This keeps the Temporal workflow payload small even for large Kustomize trees. Inline manifests, by contrast, are still rendered in the planner. ## Nuon Managed Sandbox Components The `aws-eks-sandbox` [managed Sandbox](/concepts/sandboxes#nuon-managed-sandboxes) ships with standard components that your Kubernetes manifests can leverage: * [AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-load-balancer-controller) * [External DNS](https://github.com/kubernetes-sigs/external-dns) * [Cert Manager](https://cert-manager.io/) * [Nginx Ingress](https://docs.nginx.com/nginx-ingress-controller/) * [EBS CSI](https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html) The Sandboxes are [open source](/concepts/sandboxes#nuon-managed-sandboxes) and can be [customized](/concepts/sandboxes#create-a-custom-sandbox), if these components do not work for your application. ## Best Practices ### Namespace Management Always specify namespaces explicitly in your manifests. If not provided, it defaults to the namespace specified in the config. If both the component configuration and manifest are missing namespace specifications, the component deployment will fail: ```yaml components/namespace.yaml theme={null} --- apiVersion: v1 kind: Namespace metadata: name: "{{.nuon.app.name}}" labels: app: "{{.nuon.app.name}}" --- apiVersion: apps/v1 kind: Deployment metadata: name: app namespace: "{{.nuon.app.name}}" spec: # deployment spec... ``` > [!NOTE] > > Kubernetes manifest components are processed in the order they appear in your repository. If you have dependencies between resources, ensure they are ordered appropriately or use proper Kubernetes resource dependencies. # Manage Install Telemetry Source: https://docs.nuon.co/guides/manage-install-telemetry Enable or disable install telemetry and choose your organization default. Choose which customer installs send application logs, metrics, and traces to your observability backend. Before enabling collection for the first time, complete the [BYOC telemetry setup](/guides/byoc/telemetry). Telemetry is disabled by default at the org level. You can change that default and override it for individual installs. Existing and new installs without an override follow the current org default. To learn more about install telemetry, see the [Install Telemetry](/concepts/install-telemetry) concept page. ## Set the org default As an **org admin**, open the profile menu in your Nuon BYOC dashboard. Under **Org settings**, select **Manage telemetry**, change **Enable telemetry by default**, and select **Save settings**. ![Manage telemetry modal for Acme, showing Enable telemetry by default turned on and the Save settings button](https://mintcdn.com/nuoninc/VjHGD7J9AKXb1ZNp/images/guides/install-telemetry/org-default.png?fit=max\&auto=format\&n=VjHGD7J9AKXb1ZNp\&q=85\&s=edf3d852120af00717bd271a6bb7a7f5) Manage the telemetry default for installs without an override. Install-specific overrides stay unchanged, so turning off the org default does not disable installs explicitly set to enabled. ## Enable or disable an install > [tab] Using Nuon Dashboard > > 1. Open the install and select **Settings**. > 2. Under **Configuration**, find **Telemetry** and select **Manage telemetry**. > 3. Set **Telemetry forwarding** to **On**, **Off**, or **Use org default (On/Off)**, then select **Save settings**. > > The card shows the effective forwarding policy and whether it comes from the org default or an install override. > The modal also shows collector access, issued credential metadata for org admins, app-declared collector > configuration, and runner-specific prerequisites. These are configuration details, not delivery health. > > The stack provisioning step's **Application telemetry (optional)** section opens the same modal. Its settings > describe the current install, not the historical stack version. **Runner telemetry export (optional)** is separate: > it exports runner audit logs and telemetry using a cloud secret, not an application collector bootstrap Secret. > > If forwarding is managed by an install config file, its policy control is read-only. Change and sync the install > config instead. Credential lifecycle actions remain separate from forwarding policy. > [tab] Using Install Config Files > > Add this section to the [install config](/guides/install-configs) and sync your changes: > > ```toml install.toml theme={null} > [telemetry] > enabled = true > ``` > > Set `enabled = false` to disable telemetry for that install, even when the org default is enabled. > For a new install that should follow the org default, leave out the telemetry section. > > > [!NOTE] > > > > Removing `[telemetry]` or `enabled` from an existing install config preserves its current setting; it does not > > restore the org default. Collectors apply settings on their next refresh, without restarting the runner. An in-cluster collector refreshes settings and renews relay access directly with the Nuon control plane, even while the runner is stopped. A runner-bound collector cannot forward data while its runner is down. Already-issued relay credentials can remain valid for up to ten minutes after forwarding is disabled or collector access is revoked. If your app template uses a [toggleable component](/guides/toggleable-components) to collect telemetry, that component must also be enabled. The install telemetry setting controls forwarding, not component deployment. ## Set up an optional in-cluster collector Use an in-cluster collector to keep collecting application telemetry while the install runner is stopped. ### Configure the app 1. Add Nuon's [telemetry-agent Helm chart](https://github.com/nuonco/charts/tree/main/charts/telemetry-agent) as an optional app component. Set `apiURL` to `{{ .nuon.runner.api_url }}` and `installID` to `{{ .nuon.install.id }}`. 2. Define an optional string [install input](/guides/configuring-inputs-and-secrets#inputs) with `sensitive = true` and pass its value to the chart's `bootstrapToken` value. 3. Add this label to exactly one collector component so the dashboard can find it: ```toml theme={null} [labels] "nuon.co/telemetry-collector" = "true" ``` 4. Commit and push to the git branch your [app branch](/guides/app-branches) tracks to publish the app config. ### Enable an install 1. As an org admin, open **Manage telemetry → In-cluster collector (optional)** and select **Create bootstrap credential**. The default expiry is one year. 2. Save the one-time token in the collector's sensitive install input. For config-managed installs, update the input in the [install config](/guides/install-configs) and sync it. Do not commit the token. 3. With the runner online, enable the collector component and roll out the updated install configuration. 4. Route application OTLP exporters to the collector's cluster-local endpoint using your app config. 5. Set **Telemetry forwarding** to **On** (or inherit an enabled org default) and verify fresh data in your backend before stopping the runner. ### Rotate or remove collector access 1. Before expiry, select **Create bootstrap credential** to issue a replacement. 2. Update the same sensitive install input, sync if config-managed, and roll out the collector with the runner online. 3. Verify collection, then select **Revoke credential** for the old token. To remove access entirely, select **Remove collector access**. This revokes all collector credentials and removes the managed Nuon account; it does not uninstall the component or change forwarding policy. ## Check collection Generate some application activity and look for recent data in your backend, filtered by the install's `nuon.install.id` resource attribute. The dashboard shows configured forwarding and setup metadata, not delivery health. For the complete set of identity attributes and delivery behavior, see [Install Telemetry](/concepts/install-telemetry). ## Stop collection Set forwarding to **Off** using either method above. Stop or reconfigure application exporters too, so they do not keep sending to an unavailable collector. Disabling forwarding keeps collector access, deployment, private ingress, and queue storage in place; it does not delete data already stored in the backend. Before shutting down the central relay, disable telemetry on the installs using it, including any explicit overrides. Then coordinate with Nuon to disable the relay. For backend credential rotation, see [the setup guide](/guides/byoc/telemetry#change-your-backend-or-rotate-credentials). ## Troubleshooting ### I cannot change the install setting If the modal says **Managed by install config**, edit and sync the install config. Otherwise, retry failed settings reads or check install permissions. A missing runner or private endpoint does not block saving forwarding policy. For runner-bound collection only, update the stack or re-enable its ingress using the [setup guide](/guides/byoc/telemetry#3-check-the-install-endpoint). In-cluster collection does not need that ingress. ### Telemetry is enabled, but no data appears First identify the collection path. For the runner path, check that the runner is active and the exporter uses the install's private endpoint. For the in-cluster path, check the collector component's deployment and bootstrap credential expiry; runner availability is not required. For either path, check that the application is emitting data, allow time for settings refresh and collector startup, and confirm that Nuon has configured the relay and the backend accepts the intended signals. For connection timeouts, check network access to the private endpoint. For backend authentication failures, check the BYOC backend secrets with Nuon; do not add backend credentials to workloads. ### I cannot find the telemetry controls Use an up-to-date dashboard. Org-level **Manage telemetry** and collector credential actions require an org admin. Install settings still show setup-required and load-error states when relay configuration is unavailable. If you need help, send Nuon the install ID, signal type, sample timestamp, and sanitized error details. Do not send credentials or sensitive telemetry payloads. # Component Commands Source: https://docs.nuon.co/guides/managing-components List, build, and manage components using the CLI. The [CLI](/cli) provides commands to manage components and builds. To see all available commands, run `nuon components --help`. To learn more about components, see the [Components](/concepts/components) concept page. > [!NOTE] > > Select an app template using `nuon apps select` before using component commands, or pass the `-a` flag. ## Common Commands List components: ```sh theme={null} nuon components list ``` Get a component: ```sh theme={null} nuon components get -c ``` Print the latest config: ```sh theme={null} nuon components latest-config -c ``` To delete a component, remove its TOML file from the app directory, then commit and push to the git branch your [app branch](/guides/app-branches) tracks. The next branch run removes it. ## Builds All components must be built before creating or updating an install. A branch run builds automatically when component TOML files or related files (e.g., Helm `values.yaml`) change. To rebuild every component, run `nuon branches trigger --branch-id --force`. If component source files change in git, push those changes first, then build manually: Create a build: ```sh theme={null} nuon builds create -c ``` List builds: ```sh theme={null} nuon builds list -c ``` Get build details: ```sh theme={null} nuon builds get -b -c ``` Show build logs: ```sh theme={null} nuon builds logs -b -c ``` > [!NOTE] > > Omit the `-c` flag to list builds for all components in the selected app. # Multiple App Configurations Source: https://docs.nuon.co/guides/multiple-app-configurations Manage separate apps for each cloud and customer architecture. Most teams have one (or both) true of their BYOC customers: * Customers that span AWS, Azure, GCP etc. * Customers that need specific configurations like BYO-VPC vs fully managed BYOC You can handle this with multiple app configs such as `acme-aws` and `acme-azure`. Keep each app in its own directory, and give each one its own [app branch](/guides/app-branches) that points at that directory. Each branch rolls changes out to its installs in [install groups](/concepts/app-branches#install-groups): **acme-aws** **main** **big-customer** **acme-azure** **main** ## Connecting each app to git Each app ships through an app branch: 1. Add a branch file, such as `branches/main.toml`, that points at your repository, the app's directory, and a git branch. 2. Sync it once. After the first sync, the branch starts its first [run](/concepts/app-branches#what-triggers-an-app-branch-run). ```sh theme={null} nuon branches sync --file branches/main.toml ``` 3. Push to that git branch to ship each change after that. ## Splitting an app branch into install groups Most teams don't ship a change to every customer at once. A common rollout: 1. **Canary:** your internal and test installs get the change first. 2. **Customers:** once the canary looks healthy, the change rolls out to customer installs, often in tiers. Each step is an [install group](/concepts/app-branches#install-groups) on the app branch. Groups deploy in `order`, and each one waits for your approval unless it auto-approves when [policies](/concepts/policies) pass. ```toml branches/main.toml (excerpt) theme={null} [[install_groups]] name = "canary" order = 1 auto_approve_on_policies_passing = true [install_groups.label_selector] tier = "canary" [[install_groups]] name = "customers" order = 2 default = true [install_groups.label_selector] tier = "customer" ``` ### Default labels Install groups pick installs by label. Default labels put a label on every install, so each new install joins the right group on its own. Set the value from an install input with [templating](/guides/using-variables): ```toml metadata.toml theme={null} [default_labels] tier = "{{ .nuon.install.inputs.tier }}" ``` * Change default labels in `metadata.toml`. You can't edit them on a single install. * The next app branch run updates every install. ### Label colors Color-code labels in the dashboard by label key: ```toml metadata.toml theme={null} [label_colors] env = "#FF5733" region = "#33FF57" customer = "#3357FF" ``` Colors set in the dashboard are replaced by these on the next app branch run. ## Telling apps apart in the dashboard Give each app a name and description in `metadata.toml`. Nuon shows them in the dashboard and CLI: ```toml metadata.toml theme={null} display_name = "Acme (AWS)" description = "Acme for customers on AWS." readme = "./README.md" ``` `readme` points to a Markdown file shown on each install. See [Using READMEs](/guides/using-readmes). ## Inspecting an app's config ```sh theme={null} nuon apps select # pick the app to inspect nuon apps configs # list all config versions nuon apps runner-config # print runner config nuon apps sandbox-config # print sandbox config nuon apps input-config # print input config ``` # Nuon Cloud Source: https://docs.nuon.co/guides/nuon-cloud The fastest way to get started with Nuon Nuon Cloud is the fully managed, multi-tenant version of Nuon hosted by Nuon. There is no infrastructure to provision or operate. Create an account, configure your app template, and start deploying software to your customers. To get started, [sign up at app.nuon.co](https://app.nuon.co). ## What's Included * Fully managed control plane: no EKS, RDS, Temporal, or ClickHouse to operate * Automatic upgrades as Nuon releases new versions. Your local CLI does not upgrade itself, so [update it](/cli#update-to-the-latest-release) after each release. * Shared infrastructure with logical tenant isolation * Full access to the Nuon dashboard, CLI, and API ## White-Label If you need to white-label the Nuon runner API so your customers only see your domain (not Nuon's) in their cloud infrastructure, that's available as an add-on. All runner traffic, including heartbeats, job polling, logs, and install callbacks, flows through a proxy you control at your own domain. [Contact sales](https://nuon.co/contact-sales) to learn more. ## Next Steps Once your account is created, head to [Getting Started](/get-started/quickstart) to connect your first app. # Nuon Stack Terraform Provider Source: https://docs.nuon.co/guides/nuon-stack-terraform-provider Read install configuration and report Terraform install-stack results. The [`nuonco/stack`](https://registry.terraform.io/providers/nuonco/stack/latest) provider gives an install-stack module two authenticated operations: * `stack_config` reads the rendered configuration for an install. * `stack_phone_home` reports create, update, and delete results to Nuon. Published Nuon AWS, Azure, and GCP modules already include this wiring. Use the provider directly when wrapping or forking one of those modules. ## Configure Authentication ```hcl theme={null} terraform { required_providers { stack = { source = "nuonco/stack" version = ">= 0.7.0" } } } provider "stack" {} ``` Set credentials outside Terraform so they are not written into the plan: ```bash theme={null} export NUON_API_TOKEN="" export NUON_API_URL="https://runner.nuon.co" ``` `NUON_API_URL` is optional for the hosted control plane. The provider also supports ambient OIDC with `NUON_ORG_ID` and either `NUON_OIDC_TOKEN`, `NUON_OIDC_TOKEN_FILE`, or a GitHub Actions ID token. > [!WARNING] > > The install ID identifies the configuration to read; it does not authorize access. Never replace provider > authentication with the install ID. ## Read Install Configuration ```hcl theme={null} variable "install_id" { type = string } data "stack_config" "this" { install_id = var.install_id } ``` The data source returns common values such as: * `runner_id`, `runner_api_url`, and `phone_home_url` * `install_inputs`, `required_input_names`, and `secrets` * `aws`, `azure`, or `gcp` cloud-specific runner and permission configuration * `custom_stacks` and `custom_stacks_template_url` Secrets and cloud runner tokens are sensitive. Use encrypted remote state with tightly scoped access. ## Report Results `stack_phone_home` maps Terraform resource lifecycle events to Nuon's `Create`, `Update`, and `Delete` request types. ```hcl theme={null} resource "stack_phone_home" "this" { install_id = data.stack_config.this.install_id phone_home_url = data.stack_config.this.phone_home_url phone_home_type = "azure" payload = jsonencode({ resource_group = azurerm_resource_group.this.name custom_nested_stacks = local.custom_stack_outputs }) } ``` Use `aws`, `azure`, or `gcp` for `phone_home_type`. Keep cloud-specific payload keys compatible with the published module because Nuon exposes them to app templates as `.nuon.install_stack.outputs`. The `inputs` argument may update only customer-source app inputs. Vendor and computed inputs are rendered by Nuon and must remain in the payload rather than being submitted as customer overrides. ## Custom Stack Fields Each `custom_stacks` entry includes its stable `name`, rendered `parameters`, customer `input_parameters`, and output mapping. AWS and Azure additionally use `custom_stacks_template_url` for the generated custom-only template. GCP uses the curated module name derived from its module path. See [Custom Install Stacks](/guides/custom-nested-stacks) for app configuration and output consumption. # Operation Roles Source: https://docs.nuon.co/guides/operation-roles Assign different roles to different operations across sandbox, components, and actions. This guide shows how to define operation roles, assign them to operations, and override them for a single run. For a high-level overview, see [Operation Roles](/concepts/operation-roles). ## Example: separate deploy and teardown roles This example gives an `api` component one role to deploy and another to tear down, so a deploy can't delete anything. **1. Define the roles** Add two custom roles to `permissions.toml`: ```toml permissions.toml theme={null} [[roles]] type = "custom" name = "{{.nuon.install.id}}-api-deploy" description = "Create and update the API's Lambda function" [[roles.policies]] name = "api-deploy" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["lambda:CreateFunction", "lambda:UpdateFunctionCode", "lambda:GetFunction"], "Resource": "*" } ] } """ [[roles]] type = "custom" name = "{{.nuon.install.id}}-api-teardown" description = "Delete the API's Lambda function" [[roles.policies]] name = "api-teardown" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["lambda:DeleteFunction", "lambda:GetFunction"], "Resource": "*" } ] } """ ``` **2. Assign them to the component** ```toml components/api.toml theme={null} # ...the rest of your component config [[operation_roles]] operation = "deploy" role = "{{.nuon.install.id}}-api-deploy" [[operation_roles]] operation = "teardown" role = "{{.nuon.install.id}}-api-teardown" ``` **3. Ship it** Push to your app branch, then [reprovision](/guides/reprovision-installs) existing installs so their stacks create the new roles. **4. Check it in the dashboard** The component's next deploy shows the `api-deploy` role in the dashboard. ## Define your own roles Your app config must define a provision, maintenance, and deprovision role. Declare them, and any roles of your own, in one of two layouts: * **`permissions.toml`:** one `[[roles]]` block per role, each with a `type`. * **`permissions/` directory:** one file per role, such as `permissions/maintenance.toml`, each with a `type`. Use one layout, and declare each standard role once. If two roles share a standard type, Nuon uses the last one without an error. Add your own roles with `type = "custom"`: ```toml permissions.toml theme={null} [[roles]] type = "custom" name = "{{.nuon.install.id}}-deploy-role" description = "Role for Lambda deployments" [[roles.policies]] name = "lambda-deploy" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["lambda:CreateFunction", "lambda:UpdateFunctionCode"], "Resource": "*" } ] } """ ``` Existing installs get a new role the next time their stack is updated. See [Reprovision installs](/guides/reprovision-installs). ## Template role names Role names support the same Go template syntax used elsewhere in Nuon config: ```toml theme={null} role = "{{.nuon.install.id}}-deploy-role" ``` Common template variables: | Variable | Description | | - | - | | `{{.nuon.install.id}}` | Install ID, ensures each install gets its own role | | `{{.nuon.install.sandbox.outputs.}}` | Sandbox output values | The rendered name must match a role in your permissions or break glass config. If it doesn't, the run uses the standard role. ## Share a policy across roles Write a policy once and attach it to several roles, such as one database admin policy for your maintenance role and a [break glass role](/concepts/break-glass). Currently, only AWS CloudFormation supports this. Define each policy in `permissions/policies/`, then attach it by name. With `permissions.toml`, declare them as `[[named_policies]]` blocks in that file instead. ```toml permissions/policies/rds-admin.toml theme={null} name = "{{.nuon.install.id}}-rds-admin" description = "Manage this install's RDS cluster" contents = """ { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": ["rds:ModifyDBCluster", "rds:RebootDBInstance"], "Resource": "*" } ] } """ ``` ```toml permissions/maintenance.toml theme={null} type = "maintenance" name = "{{.nuon.install.id}}-maintenance" description = "Day-2 operations" [[named_policies]] name = "{{.nuon.install.id}}-rds-admin" ``` The `name` in a role's `[[named_policies]]` must match a policy you've defined. Named policies are created even when the role that attaches them is disabled. The install stack outputs a `named_policy_arns` map of policy name to ARN, so components can attach a policy to other roles, such as a Kubernetes workload's IAM role. ## Assign a role to an entity ### Sandbox (`sandbox.toml`) Use an `[[operation_roles]]` array to map sandbox operations to roles. ```toml sandbox.toml theme={null} [[operation_roles]] operation = "provision" role = "{{.nuon.install.id}}-sandbox-deploy-role" [[operation_roles]] operation = "reprovision" role = "{{.nuon.install.id}}-sandbox-update-role" [[operation_roles]] operation = "deprovision" role = "{{.nuon.install.id}}-sandbox-teardown-role" ``` Valid operations for sandbox: `provision`, `reprovision`, and `deprovision`. ### Components (`components/.toml`) Use the same `[[operation_roles]]` array on any component config file. ```toml components/my_lambda.toml theme={null} # ...the rest of your component config [[operation_roles]] operation = "deploy" role = "{{.nuon.install.id}}-deploy-role" [[operation_roles]] operation = "teardown" role = "{{.nuon.install.id}}-teardown-role" ``` Valid operations for components: `deploy` and `teardown`. ### Actions (`actions/.toml`) Actions use a single top-level `role` field. ```toml actions/db_migration.toml theme={null} name = "db_migration" timeout = "10m" role = "{{.nuon.install.id}}-migration-role" [[triggers]] type = "manual" [[steps]] name = "run-migration" command = "./migrate.sh" ``` ## Set app-wide rules Create `operation_roles.toml` at the root of your app config. Its rules apply across all installs and match on principal (the entity running the operation) and operation: ```toml operation_roles.toml theme={null} type = "matrix" [[rules]] principal = "nuon::component:my_lambda" operation = "deploy" role = "{{.nuon.install.id}}-lambda-deploy-role" [[rules]] principal = "nuon::component:my_lambda" operation = "teardown" role = "{{.nuon.install.id}}-lambda-teardown-role" [[rules]] principal = "nuon::sandbox" operation = "provision" role = "{{.nuon.install.id}}-provision-role" [[rules]] principal = "nuon::sandbox" operation = "deprovision" role = "{{.nuon.install.id}}-destroy-role" [[rules]] principal = "nuon::action:db_migration" operation = "trigger" role = "{{.nuon.install.id}}-migration-role" ``` ### Principals | Entity | Principal | | - | - | | Specific component | `nuon::component:` | | All components | `nuon::component:*` | | Sandbox | `nuon::sandbox` | | Specific action | `nuon::action:` | | All actions | `nuon::action:*` | Use `*` to set one role for every component or every action. Each rule's `operation` is `provision`, `reprovision`, or `deprovision` for the sandbox, `deploy` or `teardown` for a component, and `trigger` for an action run. ## Ship the config After adding or changing operation role config, commit it and push to the git branch your [app branch](/guides/app-branches) tracks: ```sh theme={null} git commit -am "update operation roles" git push origin main ``` The push starts a branch run, which uploads your app config to the control plane. ## Check which role an entity uses Open your install's **Components** or **Actions** tab in the dashboard. Each entity shows the currently configured role. ## Override the role for one run You can pick a different role for a single run without changing any config. ### CLI Pass `--role-name` to `nuon actions create-run` and `nuon installs components deploy-all`. Pass `--role` to sandbox runs, reprovisions, deprovisions, and teardowns: ```sh theme={null} nuon actions create-run -i -w --role-name -api-deploy ``` Use the role's full name, including the install ID. If the name doesn't match, the error lists the roles you can use. ### Dashboard On the install page, before triggering a run, use the role selector in the run options panel to choose a role from the install's stack. ## Which role a run uses When a role is set in more than one place, Nuon uses the first match in this order: | Order | Where the role is set | | - | - | | 1 | Picked for a single run in the dashboard or command line | | 2 | The sandbox, component, or action config | | 3 | A rule in `operation_roles.toml` | | 4 | The standard role for the operation | If the matching role is switched off in your customer's stack, a run with a role picked for it fails. Any other run uses the standard role. ## Next steps * [Operation Roles](/concepts/operation-roles): what operation roles are and when to use them * [Break Glass](/concepts/break-glass): roles your customer switches on when you need them * [Permissions config reference](/config-ref/permissions): every field in `permissions.toml` # Private Image Registries Source: https://docs.nuon.co/guides/private-image-registries Give Nuon read-only access to private Amazon ECR, Google Artifact Registry, and Azure Container Registry repositories using cloud connections and image repository assignments. Nuon can pull your published images from private Amazon ECR, Google Artifact Registry (GAR), and Azure Container Registry (ACR) repositories. Access is built on [cloud connections](/guides/cloud-connections): a saved **image repository** maps an exact canonical repository to the connection — the pull identity — you choose. **Saved assignments select credentials; cloud IAM remains authoritative for repository permissions.** The flow for each registry: 1. Create a connection with the matching preset (`ecr`, `gar`, or `acr`). 2. Apply its generated setup in your cloud and verify the connection. 3. Run `nuon image-repositories create` for each repository. 4. Save or sync the component configuration. See [Container Image Components](/guides/container-image-components) for the image fields. ## Add an image repository Start with the repository you want Nuon to pull from: 1. Open **Settings → Image repositories → Add image repository**. 2. Choose the provider and enter the friendly repository name: an ECR name such as `acme/api`, a GAR repository ID such as `acme-images`, or an ACR repository path such as `acme/api`. For GAR, enter the repository ID, **not an image path**; the assignment covers all images in that GAR repository. Do not include tags or digests. 3. Explicitly choose an existing compatible pull identity or create one inline with its target coordinates. The selected identity supplies the account/region, project/location, or registry hostname; review the derived repository location before saving. Multiple connections may share target coordinates, and different repositories at the same target may use different identities. 4. Save the repository assignment. Its detail page shows setup commands for the selected identity and repository. A pending identity can have a saved assignment, but cannot be used to save or sync image component configuration until verified. 5. Have the vendor's cloud administrator review and apply the generated commands, or equivalent cloud IaC. For an existing configured identity, use the additive repository-permission commands rather than recreating trust. **Nuon does not apply cloud writes automatically.** Verify the selected identity after its cloud setup is complete. 6. Save or sync the component configuration, then fetch metadata and build an existing image to check actual repository access. Saving an assignment does not grant cloud permissions, prove access, or publish images. See [how image connections are selected](#how-image-connections-are-selected) for canonical repository keys and configuration pinning, and [the API workflow](#register-image-repositories-through-the-api) for registration outside the dashboard. ## Who sets up image repository access? The **vendor's cloud administrator**, or the administrator of the account that owns the source images, applies the cloud setup. Creating a connection in Nuon saves its identity and target coordinates; saving an image repository assignment records which connection to use. Neither action grants cloud permissions or applies the generated commands. The setup-generation API only generates commands; it does not register repository assignments. | Registry | Vendor-owned setup | | - | - | | Amazon ECR | Create or reuse the Nuon OIDC provider; configure an IAM role with exact connection trust and repository-scoped read/pull permissions. | | Google Artifact Registry | Enable the required APIs; configure a service account, connection-specific workload identity pool/provider, exact-subject impersonation, and repository-reader bindings. | | Azure Container Registry | Provide an ABAC-enabled registry and an Entra application/service principal; apply exact-subject federation and repository-conditioned Reader access. | The administrator applying setup needs permissions to manage these identities and grants. The image preset grants repository access, not the administrator's provisioning permissions. **Existing permissions on a reused principal still apply.** Prefer a dedicated identity so unrelated existing grants do not broaden its access. This setup belongs to the **source registry**, regardless of where Nuon or your customer installs run. End customers do not need access to your source registry. Nuon copies the image into the install's registry; do not repeat this source setup for every install. The **Nuon control-plane operator** supplies the signing keys and stable issuer URL. AWS and Microsoft Entra must be able to reach its HTTPS discovery and public JWKS endpoints. GCP uses the public JWKS uploaded by the generated setup; the administrator must refresh that provider's keys when the control-plane signing key rotates. Never upload private signing keys or share cloud administrator credentials with Nuon. Use the prerequisites in the relevant registry section below, add the image repository with an existing or inline-created pull identity, then apply the setup from its detail page. Have the vendor's publishing pipeline push the intended image before testing a component build. Verification checks exact-connection federation and foreign-subject rejection, plus ECR token retrieval or ACR token exchange where applicable. **Verification does not probe repositories.** Component metadata fetches check actual image access, and a successful build exercises manifest and layer downloads using current cloud permissions. Cloud IAM changes can take time to propagate. If verification fails immediately after setup, first check the generated trust values and grants, allow propagation, then verify again. Do not broaden the subject condition or repository permissions to work around a transient denial. ## How image connections are selected Image component configuration describes the source image, not a `cloud_connection_id`. Nuon stores image repository assignments within an organization, each mapping an exact canonical repository to the explicitly chosen connection. When saving new configuration or syncing an app, Nuon looks up that repository assignment and requires its chosen connection to belong to the **same organization**, have the required platform and preset, match the source target coordinates, and be **verified**: | Registry | Canonical repository assignment | Required connection | | - | - | - | | Amazon ECR | Exact ARN, such as `arn:aws:ecr:us-west-2:123456789012:repository/acme/api`. | AWS / `ecr`, matching account and region. | | Google Artifact Registry | `projects/acme-project/locations/us-central1/repositories/acme-images`, covering all images in that GAR repository. | GCP / `gar`, matching project and location. | | Azure Container Registry | Actual login hostname plus exact repository path, such as `acmeimages.azurecr.io/acme/api`. | Azure / `acr`, matching registry login hostname. | Nuon pins the assignment's chosen connection ID in the saved image configuration. Builds and metadata fetches use that pin while its identity, organization, target coordinates, and verified status remain valid. **There is no implicit unique-target fallback:** even if only one verified connection matches the target, a saved repository assignment is required for new configuration saves and app syncs. Multiple connections may share account/region, project/location, or registry coordinates without conflict; the assignment selects the identity for each repository. If the assignment is missing, register the repository. If its identity is pending or otherwise unverified, complete setup and verify it. If the chosen connection has the wrong organization, preset, or target, choose a compatible identity. Then retry the save or sync. A saved assignment and successful identity verification are not proof of repository access: actual image operations still depend on current cloud IAM permissions and network access. Removing an assignment, or removing and re-adding it with a different connection, does not rewrite existing configurations. Historical configurations keep their original connection pins and can continue using them while those connections remain valid, even without the original assignment. To use a newly assigned identity, save or sync again to create a new configuration; execution never silently switches an old pin. Connection IDs remain available for repository registration, connection management, verification, and install-stack bindings; only image component configuration omits them. For image connections, the dashboard shows how many image repositories are assigned to the connection and disables deletion until those assignments are removed. Historical configuration pins do not block deletion. Deleting the connection causes future builds and metadata fetches using configurations still pinned to it to fail. To use a replacement, assign the repositories to a compatible verified connection and re-sync the affected apps to create new configurations; historical configurations do not automatically switch connections. ## Amazon ECR Check the [AWS vendor prerequisites](#aws-vendor-prerequisites) before applying cloud setup. In **Settings → Image repositories → Add image repository**, select **Amazon ECR** and enter a repository name including any nested path such as `acme/platform/api`. Do not include a registry hostname, tag, or digest. Names must be 2–256 characters; lowercase letters, numbers, nested paths, periods, underscores (including `__`), and hyphens (including repeated hyphens) are supported. Choose an existing compatible `ecr` pull identity or create one inline with the account, region, and IAM role details. Nuon derives the exact repository ARN from that identity's account and region and saves its assignment. Open the repository detail page for AWS CLI, Terraform, and CloudFormation setup; have the cloud administrator apply the appropriate trust and ECR permissions instructions, then verify the identity. To create the pull identity from the CLI, use the following commands, then register each repository: ```bash theme={null} nuon cloud-connections create \ --name acme-images \ --platform aws \ --target-id 123456789012 \ --principal arn:aws:iam::123456789012:role/nuon-image-access \ --default-region us-west-2 \ --preset ecr nuon image-repositories create \ --connection-id \ --repository arn:aws:ecr:us-west-2:123456789012:repository/acme/api ``` `--default-region` is required with `--preset ecr`: it is the connection's saved target region, and repository ARNs must match it. Apply the connection's generated setup and verify it before saving or syncing component configuration; you may register the repository while the identity is pending. `nuon image-repositories create` prints the repository's permission grant commands for the cloud administrator to apply. Add another saved assignment and its permissions through [Grant access to another repository](#grant-access-to-another-repository). The generated policy grants `ecr:GetAuthorizationToken` on `*`, as required by AWS, and exact-repository `ecr:DescribeRepositories`, `ecr:ListImages`, `ecr:BatchGetImage`, `ecr:GetDownloadUrlForLayer`, and `ecr:BatchCheckLayerAvailability`. It grants no image push, image deletion, or stack-management permissions. A `custom` or `stacks` connection cannot be used for this assignment, even if its role has ECR permissions; use an `ecr` connection instead. Connections must belong to the same organization as the component and remain verified. Nuon checks the identity and matching account/region when saving configuration and again when executing a build or fetching metadata. Verification is a point-in-time identity and token check, not a repository read probe or a guarantee of any pull. Deleting an ECR connection or invalidating its verification prevents future use of its pinned configuration. Fix its cloud setup and verify it again, or register the repository with a verified replacement for the required account and region and save or sync the component again before building. Adding a repository grant to the existing role does not require a replacement connection. ### AWS vendor prerequisites * Have the target ECR repositories available in one account and region. Generated connection setup does not create repositories or publish images. * Run setup as an administrator with permission to create/manage the IAM OIDC provider and role and attach its inline policy. These provisioning permissions are separate from the generated ECR read policy; organization policies and permissions boundaries can restrict them. * If the account already has an OIDC provider for this exact Nuon issuer, reuse it or import it into your Terraform/CloudFormation management instead of running another create operation. Keep its `sts.amazonaws.com` audience and restrict each role to its own connection subject. Replace `` in generated examples with the role configured as the connection's principal. An existing repository, working AWS CLI credentials, or the ability to pull as an administrator does not establish Nuon trust. If verification reports that AWS cannot validate Nuon's token, check the issuer's OIDC provider and public discovery/JWKS before retrying. ## Google Artifact Registry Check the [GCP vendor prerequisites](#gcp-vendor-prerequisites), including API enablement and administrator permissions, before applying cloud setup. In **Settings → Image repositories → Add image repository**, select **Google Artifact Registry** and enter a repository ID such as `acme-images`. A GAR repository can contain multiple images; do not enter an image path or tag. Choose an existing compatible `gar` pull identity or create one inline with the project ID, numeric project number, service account details, and location (a region such as `us-central1` or a multi-region such as `us`). Nuon derives the canonical `projects/.../locations/.../repositories/...` assignment from the selected identity's coordinates. Open the repository detail page for gcloud CLI and Terraform setup, have the cloud administrator apply it, then verify the identity. The assignment covers every image in that GAR repository, not other repositories in the same project and location. To create the pull identity from the CLI, use the following commands, then register each repository: ```bash theme={null} nuon cloud-connections create \ --name acme-gar-images \ --platform gcp \ --target-id acme-project \ --gcp-project-number 123456789012 \ --principal nuon-puller@acme-project.iam.gserviceaccount.com \ --default-region us-central1 \ --preset gar nuon image-repositories create \ --connection-id \ --repository projects/acme-project/locations/us-central1/repositories/api ``` `--default-region` is required with `--preset gar`: use the matching GAR location. The service account must belong to the target project. Apply the connection's generated setup and verify it before saving or syncing component configuration; you may register the repository while the identity is pending. `nuon image-repositories create` prints the repository's permission grant commands for the cloud administrator to apply. You can assign another repository to the same service account's connection through [Grant access to another repository](#grant-access-to-another-repository). Apply the setup in the target project. It enables IAM, IAM Credentials, STS, and Artifact Registry APIs, creates a service account and a dedicated workload identity pool/provider, and grants `roles/iam.workloadIdentityUser` to the **exact connection subject** on that service account. It also grants `roles/artifactregistry.reader` only on registered repositories. It does not grant project-wide reader, writer, image deletion, or stack permissions. Reuse or import existing resources instead of rerunning create commands against resources that already exist. The OIDC provider includes the control plane's public JWKS, so federation does not depend on GCP reaching its discovery endpoint. Only public signing keys are included. If the Nuon signing key rotates, update the provider's uploaded JWKS using fresh setup material (`gcloud iam workload-identity-pools providers update-oidc … --jwk-json-path=nuon-oidc-jwks.json`), or update and apply Terraform. Keep the issuer, audience, subject condition, and service-account binding unchanged. Run `nuon cloud-connections verify `. Verification exchanges the connection's OIDC token through GCP STS, impersonates the configured service account, and confirms a foreign Nuon subject is rejected. It does not read repository metadata, list images, or check repository existence or format. Metadata fetches and component builds check the actual source image and current permissions; a build exercises manifest and layer pulls. After verification, configure the `gcp_gar` image URL, project ID, region, and tag. HTTP configuration saves and app sync look up the exact GAR repository assignment and pin its chosen verified GCP `gar` connection, checking the project and location. Images within the same GAR repository use the same assignment. Builds and metadata fetches require the pinned connection to remain valid and verified. Nuon obtains short-lived tokens when executing image operations. This works regardless of the cloud hosting the control plane. Configurations already pinned to a valid connection keep that historical pin. Control-plane-owned destination registries and sandbox artifacts retain their separate authentication paths. ### GCP vendor prerequisites * Have Docker-format Artifact Registry repositories available in the target project and one location. The generated setup does not create repositories or publish images. Record both the project ID and its numeric project number; they are not interchangeable. * The administrator applying setup needs permission to enable services, manage workload identity pools/providers and service accounts, and update IAM policies on the service account and selected repositories. A registry-reader identity cannot provision its own trust or grant itself access. * Ensure `iam.googleapis.com`, `iamcredentials.googleapis.com`, `sts.googleapis.com`, and `artifactregistry.googleapis.com` are enabled in the target project. The generated CLI and Terraform include this step; the presence of an existing GAR repository alone does not establish that all four APIs are enabled. * Use the pool/provider name, audience, public JWKS, subject condition, and impersonation binding from this connection's setup. An existing service account or operator impersonation grant alone is not Nuon federation. Reusing a service account with writer or project-wide grants also retains those broader permissions; the new reader binding does not remove them. Apply all setup steps before verification. If federation fails, check API enablement, the connection-specific provider, and the service account's exact-subject binding before changing repository permissions. ## Azure Container Registry Complete the [Azure vendor prerequisites](#azure-vendor-prerequisites) before creating the connection. The application, service principal, and suitable registry must already exist when you run the generated setup. In **Settings → Image repositories → Add image repository**, select **Azure Container Registry**, enter an exact repository path such as `acme/api`, and choose an existing compatible `acr` pull identity or create one inline. For a new identity, provide the subscription ID, Microsoft Entra tenant ID, and application (client) ID of an existing application with a service principal in that tenant, plus the resource group, registry resource name, and actual login server. Nuon derives the registry's full ARM resource ID and saves the selected identity's login hostname plus exact repository path as the assignment. Copy the actual login server rather than deriving it from the registry name: Azure DNS name label protection can append a hash, such as `acmeimages-abc123.azurecr.io`. Wildcards and cross-subscription registry resources are rejected. Open the repository detail page for setup commands, have the cloud administrator apply them, then verify the identity. To create the pull identity from the CLI, use the full ARM resource ID, then register each repository as its own resource: ```bash theme={null} nuon cloud-connections create \ --name acme-acr-images \ --platform azure \ --target-id 11111111-1111-4111-8111-111111111111 \ --azure-tenant-id 22222222-2222-4222-8222-222222222222 \ --principal 33333333-3333-4333-8333-333333333333 \ --preset acr \ --azure-registry-id /subscriptions/11111111-1111-4111-8111-111111111111/resourceGroups/acme-images/providers/Microsoft.ContainerRegistry/registries/acmeimages \ --azure-registry-login-server acmeimages.azurecr.io nuon image-repositories create \ --connection-id \ --repository acme/api ``` The tenant, registry resource ID, and login server are required with `--preset acr`. Setup applies to one existing registry; it does not create an application, service principal, registry, or repository. Use a dedicated application for this connection rather than one with unrelated privileges. `nuon image-repositories create` prints the grant commands for that repository's read access. Apply the generated **Azure CLI** or **Terraform** instructions. They create a federated identity credential with the exact issuer, audience, and connection subject. The repository grant commands also grant **Container Registry Repository Reader** on the registry with ABAC conditions for the assigned repository names. The generated grant includes no push, deletion, registry administration, or registry-wide catalog listing. Existing grants on the identity are not removed or audited. Later repositories can reuse the same application and connection through [Grant access to another repository](#grant-access-to-another-repository). > [!WARNING] > > The registry must already use **RBAC Registry + ABAC Repository Permissions**. Nuon does not change this mode. Switching an existing registry's mode invalidates cached registry credentials and stops honoring legacy `AcrPull`, `AcrPush`, and `AcrDelete` assignments. Follow [Microsoft's migration guide](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-rbac-abac-repository-permissions#migrate-from-rbac-only-to-abac-enabled-mode) separately before using this preset. Microsoft Entra must be able to reach the Nuon issuer's public OIDC discovery and JWKS endpoints. Unlike the GAR setup, Azure does not use an uploaded JWKS file. Keep the connection's issuer stable; repository permission changes do not require recreating federation. Run `nuon cloud-connections verify `. Verification authenticates the configured application using the connection's OIDC subject, confirms that a foreign subject is rejected, and exchanges the Entra token for ACR credentials. It does not probe repositories or check repository existence. Actual metadata fetches and builds check current repository permissions, and builds exercise manifest and layer pulls. After verification, configure the `azure_acr` image URL, registry login hostname, and tag. Configuration save or app sync looks up the exact hostname-plus-repository assignment and pins its chosen verified Azure `acr` connection, checking the login hostname. Build execution and metadata fetches require that connection to remain valid and verified, obtaining short-lived credentials when needed. ### Azure vendor prerequisites The administrator needs **both** permission to manage the Entra application's federated identity credentials and permission to create Azure role assignments at the registry scope. Subscription access alone does not imply permission to manage Entra applications; registry Contributor access alone does not grant role-assignment administration. If tenant policy prevents application registration, ask your Entra administrator to provision the application and service principal. Before creating the connection: 1. Select the subscription containing the registry and confirm its Entra tenant. Use a current Azure CLI that supports `--role-assignment-mode rbac-abac`. 2. Create or choose a dedicated application **and** its service principal in that tenant. For a new application, the following creates no client secret or certificate: ```bash theme={null} az account set --subscription "" client_id=$(az ad app create \ --display-name acme-nuon-image-access \ --sign-in-audience AzureADMyOrg \ --query appId --output tsv) az ad sp create --id "$client_id" --output none printf 'Application client ID: %s\n' "$client_id" az account show --query '{subscription_id:id,tenant_id:tenantId}' ``` Enter the application's **client ID** as the Nuon connection principal, not the application object ID or service-principal object ID. Generated setup resolves those object IDs when creating the federated credential and role assignment. 3. Inspect the registry's resource ID, login server, and permission mode: ```bash theme={null} az acr show --name acmeimages --resource-group acme-images \ --query '{resource_id:id,login_server:loginServer,permission_mode:roleAssignmentMode}' ``` The mode must be `AbacRepositoryPermissions`. If it is `LegacyRegistryPermissions`, either plan the separate migration linked above or use a different ABAC-enabled registry. **A new registry is not required if a suitable one already exists.** To create a new registry in an existing resource group, choose a globally unique name and enable ABAC at creation: ```bash theme={null} az acr create --name "" \ --resource-group acme-images --location westus2 \ --sku Basic --role-assignment-mode rbac-abac ``` Creating another registry incurs Azure charges. Populate the intended repositories through your existing publishing/import process before testing a component build; neither the Cloud Connection nor its generated setup copies images or creates repository content. The publishing identity needs its own write permissions, which are not granted to Nuon's reader identity. 4. Confirm that Nuon's issuer discovery and public JWKS endpoints are reachable by Microsoft Entra and that the registry's network rules allow Nuon's build and metadata workers to reach its data endpoint. A successful local administrator pull does not prove either condition. Then create the connection, apply its generated federation/ABAC grant, and verify it. If Entra rejects the identity, check the exact issuer, subject, audience, tenant, and application first. If verification succeeds but component metadata fetches or builds fail, check repository existence, network access, permission mode, and the repository-conditioned Reader assignment. An existing `AcrPull` grant or successful operator login is not a substitute for this setup. ## Grant access to another repository In **Settings → Image repositories → Add image repository**, enter the new repository and explicitly select an existing compatible pull identity or create a different one inline. Reuse a connection for repositories that should share credentials; different repositories at the same target may choose different connections. Enter an ECR name such as `acme/api`, a GAR repository ID such as `acme-images` (not an image path), or an ACR path such as `acme/api`. Save the assignment, then open its detail page. For an existing configured identity, use the additive, permissions-only commands rather than recreating trust. | Registry | Additive grant | | - | - | | Amazon ECR | Read-only IAM permissions on the exact repository ARNs, with `ecr:GetAuthorizationToken` on `*` as required by AWS. | | Google Artifact Registry | `roles/artifactregistry.reader` bindings on the requested repositories for the existing service account. | | Azure Container Registry | **Container Registry Repository Reader** assignments conditioned on the requested repository names using ABAC. | The vendor administrator reviews and applies these commands, or makes equivalent changes in the cloud IaC that manages the identity. **Nuon never applies cloud writes automatically.** Saving the assignment selects credentials; applying the permission commands grants access without replacing unrelated grants or recreating the existing identity's trust. If cloud IaC owns the policy, update that source of truth so a later apply does not undo the grant. Do not rerun the identity-creation runbook just to add permissions. Run permission updates serially for the same identity. ECR and ACR commands read and merge existing grants before writing them; concurrent updates can overwrite each other's additions. After cloud IAM propagation, verify the chosen identity if needed, save or sync the new component source, and test its metadata fetch and build. Connection verification still checks federation and tokens, not the added repository. A repository outside the connection's saved target coordinates needs a compatible connection for that target, not a permission grant on mismatched coordinates. ## Register image repositories through the API CLI users can register repositories with `nuon image-repositories create --connection-id --repository `, or through the dashboard or `POST /v1/image-repositories` directly. In the current Nuon organization, the request takes the chosen connection ID and canonical repository: ```json theme={null} { "cloud_connection_id": "", "repository": "arn:aws:ecr:us-west-2:123456789012:repository/acme/api" } ``` For GAR, use a full resource name such as `projects/acme-project/locations/us-central1/repositories/acme-images`. For ACR, supply the exact repository path, such as `acme/api`; Nuon derives the login hostname from the selected connection. Do not include tags or digests. The chosen connection must have the matching organization, platform, preset, and target. You may save an assignment while its identity is pending, then apply cloud setup and verify it before saving or syncing component configuration. Use `GET /v1/image-repositories` to list saved assignments and `GET /v1/image-repositories/{id}` for details. `DELETE /v1/image-repositories/{id}` removes only the assignment: it does not revoke cloud IAM access, delete the identity, or rewrite historical configuration pins. Removing and re-adding the repository with another connection affects subsequent configuration saves and syncs, not existing pins. ## Setup generation through the API To generate scoped setup for one or more repositories, use `GET /v1/cloud-connections/{id}/setup` with a repeated `repository` query parameter, one canonical resource per value: | Registry | Canonical `repository` value | | - | - | | Amazon ECR | `arn:aws:ecr:us-west-2:123456789012:repository/acme/api` | | Google Artifact Registry | `projects/acme-project/locations/us-central1/repositories/api` | | Azure Container Registry | `acme/api` (the registry is already saved on the connection) | URL-encode each query value when constructing the request. The response includes initial scoped setup and a `permissions_cli` field containing only additive day-2 permission commands for the existing identity. Use `permissions_cli` when granting access without recreating trust. This GET is read-only: repository parameters generate commands, not saved assignments. Without `repository` query parameters, image-access setup is identity-only; it does not load saved image repository assignments or generate a broad repository grant. Generating either form does not apply cloud changes. `nuon image-repositories get` and `create` call this endpoint with the saved repository and print its `permissions_cli` commands. The image repository detail page is the easiest way to obtain commands for a saved assignment. ## CLI Use `nuon image-repositories list|get|create|delete` to manage saved repository assignments. `create` takes `--repository` — an ECR repository ARN, a GAR resource name such as `projects/acme-project/locations/us-central1/repositories/acme-images`, or an ACR repository path such as `acme/api` — and `--connection-id`. `get` and `create` print the repository's permission grant commands. `delete` removes only the assignment: it does not revoke cloud IAM access, delete the identity, or rewrite historical configuration pins. Use `nuon cloud-connections list|get|create|verify|delete` for the underlying identities; see [Cloud Connections](/guides/cloud-connections). Connections are identity only: create and verify them without repository names. Use **Settings → Image repositories** to list saved repository assignments, add a repository, and open its setup details. **Settings → Cloud connections** manages the underlying AWS, Google Cloud, and Azure identities and their verification status. Role ARNs, service account identities, and application client IDs remain connection details; target coordinates alone do not select credentials for a new image configuration. # Programmable READMEs Source: https://docs.nuon.co/guides/programmable-readmes READMEs that render each install's live values and embed real-time dashboard components. ![A per-install README rendered in the dashboard, with runnable runbooks](https://mintcdn.com/nuoninc/rd6pvVRsnxCqJdIp/images/changelog/035-app-readme.png?fit=max\&auto=format\&n=rd6pvVRsnxCqJdIp\&q=85\&s=a976233b27df1dd027804a63277abdbb) For static formatting, see [Using READMEs](/guides/using-readmes). ## Variables READMEs support variables, rendered server-side per install (the same as component and action fields). Use them to surface install info and keep the README in sync with the app template: ```toml metadata.toml theme={null} # metadata name = "My App" readme = """ # {{.nuon.app.name}} This is the README for {{.nuon.app.name}} in install {{.nuon.install.name}}. ## Sandbox This app uses the {{.nuon.sandbox.type}} sandbox. ## Components This app consists of the following components. - api - deployment ``` Variables use [Go templating](https://pkg.go.dev/text/template), so you get conditionals, ranges, and functions. Here, live component statuses: ```toml metadata.toml theme={null} # metadata name = "My App" readme = """ # {{.nuon.app.name}} This is the README for {{.nuon.app.name}} in install {{.nuon.install.name}}. ## Sandbox This app uses the {{.nuon.sandbox.type}} sandbox. ## Components {{ if .nuon.components }} This install is running the following app components. | Name | Status | |------|------| {{- range $name, $component := .nuon.components }} | `{{ $name }}` | `{{ $component.status }}` | {{- end }} {{ else }} __No app components are active in this install. You may need to run "Deploy Components" for this install.__ {{ end }} ``` The dashboard polls the control plane, so component statuses update in near-real-time. > [!NOTE] > > `.nuon.components` is a map keyed by component name. Iterate it directly with > `range`. Each value carries that component's fields (`status`, `outputs`, etc.). > Unlike `.nuon.sandbox` or `.nuon.install_stack`, it has no top-level > `populated` flag, so use `{{ if .nuon.components }}` to check whether any > components exist. ## Live data components These `` tags render live install data from the dashboard. They require install context. When viewed at the app level (before selecting an install), they render as inline code showing the raw tag. ### Config graph Shows the install's dependency graph of components and infrastructure. ```markdown README.md theme={null} ``` ### View state Renders a button that opens the install state viewer. ```markdown README.md theme={null} ``` ### Runner card Shows the status card for the install's runner. ```markdown README.md theme={null} ``` ### Sandbox card Shows the status card for the install's sandbox. ```markdown README.md theme={null} ``` ### Component card Shows the status card for a specific component. Reference by `name` or `id`. ```markdown README.md theme={null} ``` Attributes: `name`, `id`. ### Stack card Shows the status card for the install's stack (grouped deploy history). ```markdown README.md theme={null} ``` ### Action card Shows the status card for a specific action. Reference by `name` or `id`. ```markdown README.md theme={null} ``` Attributes: `name`, `id`. ### Run runbook Renders a card with a button that opens the run runbook confirmation modal. Reference a [runbook](/guides/runbooks) by `name` or `id`. ```markdown README.md theme={null} ``` The card shows the runbook name (linked to its detail page), the number of steps, and a run button. Clicking the button opens a confirmation modal listing the steps before executing. Attributes: `name`, `id`. > [!TIP] > > Live data components are most useful in the referenced `README.md` file format, > where you can build rich install dashboards combining live status cards with > documentation. ## A complete example For a runnable example, see the [`programmable-runbook-and-readme`](https://github.com/nuonco/example-app-configs/tree/main/programmable-runbook-and-readme) app config in `example-app-configs`. It has a per-install app README plus runbook READMEs that render live values and embed runnable runbooks. # Provision Stacks with CloudFormation Source: https://docs.nuon.co/guides/provision-stacks-with-cloudformation Provision Nuon install stacks on AWS with CloudFormation. Nuon supports provisioning install stacks to AWS using [CloudFormation](https://aws.amazon.com/cloudformation/). A CloudFormation stack template is generated for every install, along with a quick-create link and CLI commands. Which one you use will depend on whether your customer wants to use the AWS web console or the AWS CLI. To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. * **[Quick-create](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stacks-quick-create-links.html)** — open the quick-create link and create the stack in the AWS web console. * **[AWS CLI](https://aws.amazon.com/cli/)** — run the generated `aws cloudformation create-stack` command. > [!NOTE] > > CloudFormation is AWS-only. ## How it works Provisioning with CloudFormation is a hand-off between you and your customer: 1. You create the install. The install workflow pauses at the **await install stack** step. 2. On that step, you copy the quick-create link or the CLI commands. 3. You send them to your customer. 4. Your customer launches the stack in their AWS account. 5. The stack boots up the runner. Once the runner connects, the await install stack step completes. ## Prerequisites Your customer will need the following in order to launch the stack. * Access to the target AWS account with permission to create CloudFormation stacks. * If using the CLI, the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) installed and configured. ## Using the quick-create link Follow these steps to provision a stack using a quick-create link. **1. Create an install** Create an install as you usually would, and wait for the provision workflow to get to the **await install stack** step. **2. Send your customer the quick-create link** On the **await install stack** step, copy the **Quick launch in AWS console** link and send it to your customer. The remaining steps are for your customer. **3. Open the quick-create link** Open the link while signed in to the target AWS account. It opens CloudFormation's quick-create flow with the template URL and stack name prefilled. **4. Configure the install** Fill in the required inputs and secrets. Override any default values you want to change. > [!NOTE] > > The secret values will be written directly to AWS Secrets Manager. They will not be saved in plaintext anywhere. **5. Provision the stack** Check the boxes at the bottom of the page and click **Create stack**. This will provision the Nuon stack. Once the runner phones home, the await install stack step in Nuon will complete. ## Using the AWS CLI Follow these steps to provision a stack using the AWS CLI. **1. Send your customer the command** On the **await install stack** step, copy the generated **Create stack** command and send it to your customer. The remaining steps are for your customer. **2. Configure and create the stack** Run the command using credentials for the target AWS account. Use the `--parameters` flag to set input and secret values. ```bash theme={null} aws cloudformation create-stack \ --stack-name \ --template-url \ --capabilities CAPABILITY_NAMED_IAM \ --region ``` This will provision the Nuon stack. Once the runner phones home, the await install stack step in Nuon will complete. # Provision Stacks with Spacelift Source: https://docs.nuon.co/guides/provision-stacks-with-spacelift Provision stacks using a Spacelift Blueprint or the Terraform provider. > [!NOTE] > > Spacelift support for install stacks is gated behind a feature flag. [Reach out to Nuon](https://nuon.co/demo-request) to enable it for your org. If a customer wants to manage their install stack using Spacelift, Nuon can generate code for them to use. There are two ways to install a Spacelift stack. Which one your customer uses depends on whether they want to use the Spacelift Web UI or Terraform. * **[Blueprint](https://docs.spacelift.io/concepts/blueprint)** — publish a Spacelift blueprint and use the web UI to provision the stack. * **[Terraform](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs)** — apply a generated `spacelift.tf` and use the Terraform provider to provision the stack. Both paths use the [`nuonco/install-stacks`](https://github.com/nuonco/install-stacks) modules over **raw Git**, so no Spacelift VCS integration or GitHub App install is required. To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. ## How it works Provisioning with Spacelift is a hand-off between you and your customer: 1. You create the install. The install workflow pauses at the **await install stack** step. 2. On that step's **Spacelift** tab, you copy the blueprint YAML or download the Terraform files. 3. You send them to your customer. 4. Your customer provisions the stack in their Spacelift account, into their cloud account. 5. The stack boots up the runner. Once the runner connects, the await install stack step completes and the install proceeds — no further action needed on your side. ## Prerequisites Your customer will need the following in order to use Spacelift. * A [Spacelift](https://spacelift.io/) account with permission to create blueprints and stacks. * The [cloud integration](https://docs.spacelift.io/integrations/cloud-providers) set up for the cloud account they want to install your app template in. ## Using a blueprint Follow these steps to provision a stack using a Spacelift Blueprint. **1. Create an install** Create an install as you usually would, and wait for the provision workflow to get to the **await install stack** step. **2. Send your customer the blueprint** On the **await install stack** step, open the **Spacelift** tab and copy or download the blueprint YAML. Send this to your customer. The remaining steps are for your customer. **3. Create the blueprint** In Spacelift, go to **Blueprints → Create blueprint** and paste the YAML from your vendor as the template body. The template is configured to put the stack in the `root` space by default. Edit the `space:` line while it's a draft if the stack should live elsewhere. **4. Publish it** Click **Publish** to move the blueprint from draft to published. Once published, the blueprint cannot be edited. **5. Create a stack and fill in the inputs** On the published blueprint, click **Create stack** and fill in the inputs and secrets. Click **Create** to create the stack. **6. Attach cloud credentials** Open the new stack's **Settings → Integrations**. Attach the [cloud integration](https://docs.spacelift.io/integrations/cloud-providers) to grant Spacelift access to the cloud account. **7. Provision the stack** Trigger a run. This will provision the Nuon stack. Once the runner phones home, the await install stack step in Nuon will complete. ## Using terraform Follow these steps to provision a Nuon install stack using the Spacelift Terraform provider. **1. Send your customer the files** Click **Download all (.zip)** on the **Spacelift** tab to get `spacelift.tf`, `inputs.auto.tfvars`, and `secrets.auto.tfvars` as a single zip (or download them individually), then send them to your customer. The remaining steps are for your customer. **2. Configure `spacelift.tf`** Unpack all three files into one directory. In `spacelift.tf`, set the `space_id` variable's `default` to the Spacelift space this stack should live in. **3. Authenticate with GCP** By default, the config attaches Spacelift's GCP integration to the stack — a dedicated service account created during the apply. If you already manage your own GCP integration, set `attach_gcp_service_account`'s default to `false` in `spacelift.tf`. **4. Configure `inputs.auto.tfvars`** Fill in the inputs in the `inputs.auto.tfvars` file. Leave this file alongside the stack if you want to manage these values in version control. Alternatively, you can save the contents to a mounted, non-secret file in Spacelift. **5. Configure `secrets.auto.tfvars`** If saving this as a secret mounted file, fill in the secrets in `secrets.auto.tfvars`. Alternatively, store the secret values in a secret store and pass them to terraform using environment variables. **6. Authenticate the Spacelift provider** The [`spacelift-io/spacelift`](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs) provider needs Spacelift API credentials. If the terraform is being run within Spacelift, then these will automatically be populated in the environment. Otherwise, [configure authentication for the Spacelift provider](https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs#authentication). **7. Apply the stack** Initialize the terraform workspace and apply. ```bash theme={null} terraform init && terraform apply ``` **8. Trigger the first run** Trigger the first run. This will provision the Nuon stack. Once the runner phones home, the await install stack step in Nuon completes. # Provision Stacks with Terraform Source: https://docs.nuon.co/guides/provision-stacks-with-terraform Provision the Nuon install stacks with Terraform. > [!NOTE] > > For AWS installs, the [Terraform module flow](/guides/provision-stacks-with-terraform-module) is the recommended > path: your customer applies the published `nuonco/stack/aws` module with an API token, and no tfvars files change > hands. This page describes the legacy flow based on generated tfvars files. Nuon supports provisioning install stacks using Terraform. We maintain a collection of [open-source terraform modules](https://github.com/nuonco/install-stacks) that can be used directly, or forked and customized. In this legacy flow, you download generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files from the dashboard and send them to your customer. To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. ## How it works Provisioning with Terraform is a hand-off between you and your customer: 1. You create the install. The install workflow pauses at the **await install stack** step. 2. On that step, you copy or download the generated `inputs.auto.tfvars` and `secrets.auto.tfvars`. 3. You send them to your customer. 4. Your customer clones the install stack module and applies it in their cloud account. 5. The stack boots up the runner. Once the runner connects, the await install stack step completes. ## Prerequisites Your customer will need the following in order to apply the stack. * The [Terraform](https://developer.hashicorp.com/terraform/install) CLI installed, or set up in their chosen automation platform. * Credentials for the target cloud account, so Terraform can provision resources. * Outbound network access to the Terraform Registry (to install the `nuonco/stack` provider) and to the Nuon API (so the provider can fetch the stack configuration at apply time). ## Provisioning the stack Follow these steps to provision a stack using Terraform. **1. Create an install** Create an install as you usually would, and wait for the provision workflow to get to the **await install stack** step. **2. Send your customer the files** On the **await install stack** step, copy or download `inputs.auto.tfvars` and `secrets.auto.tfvars`, then send them to your customer. The remaining steps are for your customer. **3. Clone the install stack module** Clone the repo and enter the directory for your cloud (`aws` or `gcp`): ```bash theme={null} git clone https://github.com/nuonco/install-stacks.git cd install-stacks/ ``` **4. Configure remote state (recommended)** If you have not already, set up a state store and configure it as a remote backend. See the [Terraform backend docs](https://developer.hashicorp.com/terraform/language/settings/backends/configuration) for details. If you do not have a dedicated terraform state store, you can store the state in the cloud account alongside the stack. ```hcl AWS (S3) theme={null} terraform { backend "s3" { bucket = "" key = "nuon//terraform.tfstate" region = "" } } ``` ```hcl GCP (GCS) theme={null} terraform { backend "gcs" { bucket = "" prefix = "nuon/" } } ``` **5. Configure the install** The `inputs.auto.tfvars` file can be stored in version control alongside the terraform module. It can also be stored in the environment configuration of your chosen automation platform. `secrets.auto.tfvars` should be stored separately as a secret value. Alternatively, the secret values can be saved in a secret store and passed to terraform as environment variables. **6. Provision the stack** Initialize the terraform workspace and apply. ```bash theme={null} terraform init && terraform apply ``` This will provision the Nuon stack. Once the runner phones home, the await install stack step in Nuon will complete. # Provision Stacks with a Terraform Module Source: https://docs.nuon.co/guides/provision-stacks-with-terraform-module Use the nuon stack provider to provision a stack using a module For customers that prefer to manage their stacks using Terraform, we publish [modules for each platform Nuon supports](https://registry.terraform.io/search/modules?namespace=nuonco\&q=stack). > [!NOTE] > > This is the recommended way to provision install stacks using Terraform. > The legacy flow, based on generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files, is described in [Provision Stacks with Terraform](/guides/provision-stacks-with-terraform). To learn more about stacks, see the [Stacks](/concepts/stacks) concept page. ## How it works When creating an install, you will be presented with a "TF Module" option for provisioning the stack. This will provide Terraform code your customer can use to import the stack module and authenticate with your Nuon control plane to fetch configuration data. ## Prerequisites In order to use a Terraform module, your customer will need the following. * A Terraform project, with their own state backend configured. * A secret store. * Credentials for the cloud account they want to provision the stack in. * On GCP, the project and region to provision into, if the install has not been provisioned before. AWS records the region when the install is created; on GCP the target is recorded by the first apply, so the first one must pass `project_id` and `region` to the module. * Outbound network access to the Terraform Registry from their CI (to install the module and the `nuonco/stack` provider). * Outbound network access to the Nuon runner API from their CI (so the provider can fetch the stack configuration at plan time). ## Provision a new install stack Create a new install, and retrieve the Terraform code and Nuon credentials from the "Await install stack" step of the provision workflow. You will need to share these with your customer. **1. Define customer-facing inputs and secrets** In your app config, configure the inputs and secrets your customer needs to provide. ```toml inputs.toml {8} theme={null} name = "instance_type" display_name = "Node Instance Size" description = "EC2 instance type for EKS worker nodes" group = "compute" default = "t3a.medium" type = "string" required = false user_configurable = true ``` ```toml secrets.toml {5} theme={null} [[secret]] name = "license_key" display_name = "License Key" description = "License key enabling access" required = true ``` See [Configuring Inputs & Secrets](/guides/configuring-inputs-and-secrets) for more details. **2. Create the install stack** Create an install and wait for the **Await install stack** step. The **TF Module** tab will display Terraform code templated for this install, including the install ID, region, and the customer-facing inputs and secrets. A [Service Account](/concepts/service-accounts#stack-service-accounts) has been created and assigned the "Stack" role. This is the identity the Stack SDK will use to perform stack operations for this install. **3. Create auth credentials** The `stack` provider needs credentials to read the install's configuration. Create a static token, and share it with your customer through a secure channel. The rest of the process is completed by your customer, using the information you provide to them. **1. Import the stack module** Your customer must import the module using the Terraform snippet you saved from the provision workflow. ```hcl AWS theme={null} terraform { required_providers { aws = { source = "hashicorp/aws" } stack = { source = "nuonco/stack" } } } provider "aws" { region = "us-west-2" } provider "stack" {} module "aws_stack" { source = "nuonco/stack/aws" version = "~> 1.0" install_id = "" inputs = { instance_type = "t3a.medium" } secrets = { license_key = { value = var.license_key } } } variable "license_key" { type = string sensitive = true description = "License key that activates the product." } ``` ```hcl GCP theme={null} terraform { required_providers { google = { source = "hashicorp/google" } stack = { source = "nuonco/stack" } } } provider "google" { project = "my-project" region = "us-central1" } provider "stack" {} module "gcp_stack" { source = "nuonco/stack/gcp" version = "~> 1.0" install_id = "" inputs = { machine_type = "e2-standard-4" } secrets = { license_key = { value = var.license_key } } } variable "license_key" { type = string sensitive = true description = "License key that activates the product." } ``` ```hcl Azure theme={null} terraform { required_providers { azurerm = { source = "hashicorp/azurerm" } stack = { source = "nuonco/stack" } } } provider "azurerm" { subscription_id = "00000000-0000-0000-0000-000000000000" features { key_vault { purge_soft_delete_on_destroy = true } } } provider "stack" {} module "azure_stack" { source = "nuonco/stack/azure" version = "~> 1.0" install_id = "" inputs = { vm_size = "Standard_D4s_v3" } secrets = { license_key = { value = var.license_key } } } variable "license_key" { type = string sensitive = true description = "License key that activates the product." } ``` On GCP, the module reads the install's project and region from the control plane, so they appear only in the `google` provider block. Before the install's first apply the control plane has nothing recorded, so the snippet also passes `project_id` and `region` to the module. Your customer can drop them once the install is provisioned. On Azure, the module reads the install's location from the control plane and takes the subscription from the `azurerm` provider, warning at plan time if the two disagree. `purge_soft_delete_on_destroy` is required: the module leaves purge protection off so a destroyed install's Key Vault name can be reused immediately, and without it Azure holds that name for 90 days. **2. Configure the secret values** Nuon credentials and app secret values are supplied using environment variables, so they are never written to Terraform files or committed to version control. Ideally, these should be saved by your customer in their CI's secret store. > [!WARNING] > > Like any Terraform-managed secret, app secret values are stored in Terraform state once applied. > Your customer's state backend must be encrypted and access-controlled. ```bash theme={null} export NUON_API_TOKEN='' export TF_VAR_license_key='' ``` **3. Init and apply** Your customer can simply init and apply the Terraform. If any inputs are missing or invalid, there will be a Terraform validation error. ```bash theme={null} terraform init && terraform apply ``` ## Updating the stack There are two kinds of stack updates your customer may need to apply. * A **new version of the stack** — updates to the inputs, secrets, roles, or permissions in the app config. * A **new version of the Terraform module** — updates to the stack module itself, such as fixes or changes to the network topology or runner VM. The two are independent of each other. A new stack version doesn't require a module upgrade, and vice versa. ### Updating to a new stack version Stack version updates are ordinary Terraform edits followed by `terraform apply`. #### Change an input value Your customer edits the `inputs` map and re-applies. The merged values phone home and become the install's current inputs, triggering redeployment of dependent components. ```hcl theme={null} inputs = { instance_type = "t3a.medium" // [!code --] instance_type = "t3a.large" // [!code ++] } ``` Removing a key from `inputs` falls back to the control plane's current value on the next apply. It does not unset the input. #### Vendor adds a new input When you add a customer-facing input to the app config, or make an existing vendor-side input customer-facing, your customer can add the input to the inputs map and re-apply. ```hcl theme={null} inputs = { instance_type = "t3a.large" domain = "acme-corp.example.com" // [!code ++] } ``` If the new input is `required` and has no default, the apply will fail, and your customer will be shown an error message telling them to provide the input value. #### Vendor adds or removes a customer secret If you add a new secret, your customer should store the value in a secret store, and pass it to Terraform as a `TF_VAR_` environment variable. ```hcl theme={null} module "aws_stack" { source = "nuonco/stack/aws" version = "~> 1.0" // other module config... secrets = { license_key = { value = var.license_key } smtp_password = { value = var.smtp_password } // [!code ++] } } variable "smtp_password" { // [!code ++] type = string // [!code ++] sensitive = true // [!code ++] } // [!code ++] ``` ```bash theme={null} export TF_VAR_smtp_password='' ``` Removing a secret is the reverse: delete the `variable` block, the `secrets` entry, and the export. #### Vendor changes roles or permissions Operation roles and break glass roles are read from the control plane, and are pulled in automatically by the next `terraform plan`. Whether a break glass role or your own operation role is enabled is also served by the control plane, but your customer can override it with the module's `roles` map: ```hcl theme={null} roles = { "app-break-glass" = true // [!code ++] } ``` An entry set here wins over the control plane in both directions, so your customer can turn a role off or switch one on ahead of the next apply. Keys are role names — either the full served name or the name without its leading `-` prefix. A `roles` key naming a role the app config does not declare fails the plan, with an error listing the valid keys. The `roles` map also accepts three reserved keys — `provision`, `maintenance`, and `deprovision` — to disable an operation role: ```hcl theme={null} roles = { deprovision = false // [!code ++] } ``` This is useful for keeping teardown permissions off until your customer intends to decommission the install. Disabling `provision` or `maintenance` prevents Nuon from performing those operations until the role is re-enabled and applied. #### Vendor removes an input If you remove an input (or make it vendor-facing again) while your customer's `inputs` map still names it, their next plan will fail with an error message telling them to remove it. ### Upgrading the module version To upgrade the Terraform module itself, your customer will update the version pin, run `terraform init -upgrade`, then `terraform apply`. To avoid your customer having to upgrade too frequently, we recommend using a minor version constraint instead of pinning to a specific version. For example, with `version = "~> 1.0"`, running `terraform init -upgrade` will automatically pick up new minor and patch releases within the 1.x series. # Pulumi Components Source: https://docs.nuon.co/guides/pulumi-components Pulumi components allow you to provision infrastructure in your customer's cloud account to power your install. Pulumi components allow you to deploy a Pulumi program from a public or connected repo, to provision infrastructure resources in customer installs. To learn more about components, see the [Components](/concepts/components) concept page. ## Configuring a Pulumi component To configure a Pulumi component, specify a repo, the Pulumi runtime, and any stack configuration values the program requires. ```toml components/.toml theme={null} # pulumi name = "pulumi_infra" type = "pulumi" runtime = "go" [connected_repo] repo = "nuonco/kitchen-sink" directory = "components/pulumi" branch = "main" [config] "aws:region" = "{{.nuon.install_stack.outputs.region}}" "kitchen-sink:install_id" = "{{.nuon.install.id}}" [env_vars] PULUMI_SKIP_UPDATE_CHECK = "true" ``` The `runtime` field selects the language your Pulumi program is written in and must match the `runtime` declared in the project's `Pulumi.yaml`. Supported runtimes are `go`, `nodejs`, `python`, `dotnet`, `java`, and `yaml`. You can configure Pulumi components to use either a public repo (using a `public_repo` block) or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). You can also put the Pulumi source inside of the same repo as your app config, and point to it. > [!NOTE] > > If you include the Pulumi source in the app config repo, push the source along with the rest of the repo. A branch run rebuilds a component when its config changes, so a push that changes only the Pulumi source does not rebuild it. After that push, run `nuon branches trigger --branch-id --force`, or build the component manually in the dashboard or CLI. By default Nuon uses the latest Pulumi CLI. To pin a specific version, set `pulumi_version`. ```toml components/.toml theme={null} # pulumi name = "pulumi_infra" type = "pulumi" runtime = "go" pulumi_version = "3.100.0" ``` ## Configuring stack config Use the `[config]` block to set Pulumi stack configuration values, equivalent to `pulumi config set`. Keys use the `namespace:key` format — for example, `aws:region` targets the AWS provider, while a project-scoped key such as `kitchen-sink:install_id` is read by your program via `config.New(ctx, "kitchen-sink")`. Config values support [component variables](/guides/using-variables), so they can access inputs, other components, the sandbox, and details about the install itself using templating. ```toml components/.toml theme={null} [config] "aws:region" = "{{.nuon.install_stack.outputs.region}}" "kitchen-sink:install_id" = "{{.nuon.install.id}}" ``` Use the `[env_vars]` block to pass environment variables into the Pulumi execution environment. ## State Management All Pulumi state is managed by the Nuon data plane through the Nuon http-based API. The runner imports the prior state before each operation and uploads the updated state back to the control plane when the operation completes. Each execution of a Pulumi component in an install is visible in the plan and apply steps in the dashboard. The Enterprise edition has two additional features including requiring approvals of the plan and apply steps and showing diffs from previous runs. ## Execution and Permissions The [runner](/concepts/runners) is responsible for executing Pulumi, and is provisioned as part of the initial Install Stack. e.g., in AWS, the CloudFormation stack creates a VPC, networking, ASG and an EC2 instance to start the runner. The runner is separate from the Install's infrastructure e.g., Kubernetes cluster. To learn more about the runner, read the [Nuon Runner Architecture](https://nuon.co/blog/the-nuon-runner-architecture/#nuons-runner-model) blog post. ## Per-install config overrides To override a Pulumi component's config for a single install without changing your app config, use [component overrides](/guides/component-overrides). # Reprovision an install Source: https://docs.nuon.co/guides/reprovision-installs Re-run provisioning against the current app config to recreate an install's stack, sandbox, and components. Reprovisioning triggers a full install workflow against current app config. Used when customer stack app config changes needs to be rolled out, or, when we need to create/update the customer [stack](/concepts/stacks) resources like roles, secrets, policies, inputs etc. Every reprovision runs as a [workflow](/concepts/workflows), so it is planned, approvable, and auditable. To learn more about installs, see the [App and Install Life Cycle](/guides/app-install-life-cycle) concept page. ## Only trigger what's needed A **reprovision install** is the full chain: it reprovisions the stack, then the sandbox, then redeploys every component on top. A **reprovision stack** stops at the stack, so it only updates the customer stack and its runner and leaves the sandbox and components alone. If the change you are rolling out is stack-facing only, reprovision the stack. | Flavor | Recreates | Runner downtime | Use when | | - | - | - | - | | **Full** | Stack, then sandbox, then all components | Yes | The install is broken end to end, or the customer deleted resources | | **Stack only** | Stack and runner infrastructure; sandbox untouched | Yes | The runner infrastructure was deleted, or the stack template changed | > [!WARNING] > > A stack reprovision recreates the runner. Deployments and actions are unavailable until the new runner is healthy. ## Full reprovision **1. Trigger it** > [tab] CLI > > ```sh theme={null} > nuon installs reprovision -i $INSTALL_ID > ``` > [tab] Dashboard > > Open the install, choose **Settings** from install navigation panel, then **Reprovision install**. Pick an > [operation role](/concepts/operation-roles) if the install offers more than one, then confirm. **2. Watch the workflow** ```sh theme={null} nuon installs workflows watch -i $INSTALL_ID ``` The install's **Workflows** view shows the same run. ## Stack only Recreates the runner and its infrastructure, leaving the sandbox alone. ```sh theme={null} nuon installs reprovision -i $INSTALL_ID --stack-only ``` `nuon installs stacks reprovision -i $INSTALL_ID` is the same operation. In the dashboard, it is **Settings**, then **Reprovision stack**. Components are never redeployed by a stack reprovision — use a full reprovision when you also want the sandbox and components rebuilt. ### On AWS Nuon regenerates the stack version from the current app config before applying it, so a stack reprovision picks up changes such as a new runner instance type. The ASG and EC2 instance are replaced. Resources the runner previously deployed are untouched by the stack run unless changed in app config like new permission additions, in that case we recreate that resource. ### Update a CloudFormation stack Reprovisioning generates the new template, but it does not apply it. The reprovision workflow pauses on the await install stack step, and that step's details panel has everything the customer needs, prefilled with the install's stack name, region, and new template URL: * **CloudFormation template** URL, with copy and download buttons. * **Deploy with AWS CLI**, with ready-made **Create stack** and **Update existing stack** commands. Open the step, copy what you need, and send it to the customer. Customer needs to apply it to their existing root stack. ![](https://mintcdn.com/nuoninc/NwW6ywwDJPF61X9M/images/guides/await-install-stack-cloudformation.png?fit=max\&auto=format\&n=NwW6ywwDJPF61X9M\&q=85\&s=252b1019efae9e9a715d2c446630c653) The await install stack step panel on a reprovision, with the regenerated template URL and prefilled create and update commands. > [tab] AWS CLI > > Copy the **Update existing stack** command from the step panel. It looks like this: > > ```sh theme={null} > aws cloudformation update-stack \ > --stack-name \ > --template-url \ > --capabilities CAPABILITY_NAMED_IAM \ > --region > ``` > > Templates that are not served from S3 come through as a `curl` plus `--template-body file://template.json` > variant of the same command. > [tab] CloudFormation console > > **1. Open the root stack** > > In the CloudFormation console, select the stack created for the install. Use the root stack, not one of its > nested stacks. > > **2. Create a change set** > > Choose **Stack actions**, then **Create change set for current stack**. > > **3. Point it at the new template** > > Choose **Replace existing template**, select **Amazon S3 URL**, and paste the **CloudFormation template** > link copied from the step panel. > > **4. Review the parameters** > > Step through the parameters. Keep the existing values unless the reprovision introduced new inputs or secrets. > > **5. Execute the change set** > > Review the listed changes, then choose **Execute change set**. CloudFormation applies the new template to the > existing stack. ### On GCP GCP install stacks are managed with Terraform. A reprovision generates a new stack version and pauses at the **await install stack** step until the customer applies it to the existing stack. > [tab] Terraform module > > Keep the existing Terraform configuration and state backend. The published `nuonco/stack/gcp` module reads the > current stack configuration from Nuon during the next plan, including changes to roles and permissions. > > If the reprovision introduces or removes customer inputs or secrets, update the module's `inputs` and `secrets` > maps first. Then have the customer review and apply the changes: > > ```sh theme={null} > terraform plan > terraform apply > ``` > > A new stack version does not require a module upgrade. See [Updating the stack](/guides/provision-stacks-with-terraform-module#updating-the-stack) > for detailed input, secret, role, and module upgrade instructions. > [tab] Generated tfvars > > Open the **Terraform** tab on the **await install stack** step and download the new `inputs.auto.tfvars` and > `secrets.auto.tfvars`. Replace those files in the existing `install-stacks/gcp` working directory, then have the > customer review and apply the changes: > > ```sh theme={null} > terraform plan > terraform apply > ``` Both paths must use the existing state backend (typically GCS). Reusing the existing state updates the current runner infrastructure instead of creating a separate stack. When the runner reconnects, the workflow continues. ## Hooks that fire | Flavor | Action triggers | | - | - | | Full and stack only | `pre-reprovision`, `post-reprovision` | | Sandbox leg of a full reprovision | `pre-reprovision-sandbox`, `post-reprovision-sandbox` | `pre-reprovision` fires once the runner is healthy, not at the start of the workflow, because the stack run has to come up first. Subscribers to the `installs` and `sandboxes` `reprovision` [webhook](/guides/webhooks) events are notified for the same runs. ## When to reach for it * The customer deleted the runner infrastructure or other stack resources. * A [secret or input](/guides/configuring-inputs-and-secrets) changed and redeploying individual components is not enough. * The runner reports that the install stack version has expired. * Additions / modifications of roles, permissions, inputs in app config. ## See also * [Installs](/concepts/installs) * [Customer-controlled runner shutdown](/guides/runner-kill-switch) * [Operation roles](/concepts/operation-roles) * [Configure policies](/guides/configuring-policies) # Retaining Resources on Teardown Source: https://docs.nuon.co/guides/retaining-resources-on-teardown Leave stateful Terraform resources such as databases and buckets in place when a component is torn down. By default, tearing down a Terraform component destroys every resource it manages. For stateful resources, such as an RDS cluster or an S3 bucket, you often want to keep the resource and its data after the component is gone. The `[teardown]` block on a [Terraform component](/config-ref/terraform#teardown) lists resources to **retain**. Retained resources are removed from Terraform state instead of destroyed. They keep running in the customer's account, and Nuon no longer manages them. ```toml components/storage.toml theme={null} name = "storage" type = "terraform_module" terraform_version = "1.11.3" [connected_repo] directory = "components/storage" repo = "/" branch = "main" [teardown] retain = [ "aws_rds_cluster.main", "aws_rds_cluster_instance.main", "module.buckets", ] ``` ## Addresses Each entry is a Terraform resource or module address, the same form `terraform state list` prints. | Entry | Selects | | - | - | | `aws_rds_cluster.main` | the resource, and every instance of it when it uses `count` or `for_each` | | `aws_s3_bucket.data["logs"]` | one instance of the resource | | `module.buckets` | every resource in the module, including nested modules | | `module.storage.aws_s3_bucket.data` | the resource inside the module, in every instance of the module | Data sources can't be retained. Entries that match nothing in state are logged as a warning and skipped, so a resource created with `count = 0` doesn't fail the teardown. ## What happens during teardown 1. **Plan.** Nuon reads the component's state and destroys only the resources that aren't retained. If every resource is retained, the plan destroys nothing. 2. **Review.** The plan lists retained resources with a **Retain** action, next to the resources that will be deleted. 3. **Apply.** After the destroy succeeds, the retained resources are removed from state. If the destroy fails, the retained resources stay in state, so you can retry the teardown safely. You can also use `retain` to unblock a teardown that is failing because a resource can't be destroyed: retain it, and Nuon removes it from state instead. ## Retaining dependencies Terraform destroys any resource that depends on a destroyed resource. If a retained RDS cluster depends on a DB subnet group or security group that is not retained, destroying that dependency would destroy the cluster too. Nuon checks for this and **fails the teardown plan** rather than destroying a retained resource. To fix it, either retain the dependencies as well, or put the stateful resources and everything they depend on in their own component. > [!NOTE] > > The same applies across components. A retained resource in one component can block the teardown of another, for > example a sandbox VPC that still contains the retained database. Plan your component boundaries with teardown in > mind. ## Retaining conditionally `retain` supports [templating](/guides/using-variables). Entries that render to an empty string are ignored, so you can let each install decide whether to keep its data: ```toml theme={null} [teardown] retain = [ "{{ if eq .nuon.inputs.inputs.retain_data \"true\" }}aws_rds_cluster.main{{ end }}", ] ``` Retain settings come from the install's current app config, so you can change them and sync without redeploying the component. If the component has been removed from the app config, the settings from its last deploy are used. ## Things to know * **Retained resources keep costing money.** Once retained, Nuon no longer tracks the resources, so make sure your customers know they need to clean them up. * **Addresses depend on how the module is written.** Renaming a resource, or moving it into a module, changes its address. Re-check `retain` when you refactor the module. * **Terraform's `removed` block** (Terraform 1.7+) with `lifecycle { destroy = false }` does something similar from inside the module. `[teardown]` lets you choose per app template, or per install, without changing module code. # Roll back an install Source: https://docs.nuon.co/guides/rollback-install-config Re-apply a previous app config version to one install, or to a whole install group, with a plan in front of it. Every config change to an install is recorded as an app config version, and any earlier version can be applied again. That is the recovery path when a rollout, or a mistyped input, turns out badly. You will need an API token (create one in the dashboard's org settings), your org ID, and the install's ID from `nuon installs list`. To learn more about installs, see the [App and Install Life Cycle](/guides/app-install-life-cycle) concept page. ## Roll back one install **1. List the install's versions** ```sh theme={null} curl -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ "https://api.nuon.co/v1/installs/$INSTALL_ID/app-config-versions" ``` Each entry carries the app config it pinned. On the install, **Configuration → App branch → Applied config history** shows the same list. **2. Confirm what changed** The diff for a `VERSION_ID` is the component change recorded for that version: ```sh theme={null} curl -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ "https://api.nuon.co/v1/installs/$INSTALL_ID/app-config-versions/$VERSION_ID/diff" ``` **3. Apply the older version** ```sh theme={null} curl -X POST \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{"app_config_id": "'"$OLD_APP_CONFIG_ID"'"}' \ "https://api.nuon.co/v1/installs/$INSTALL_ID/app-config-updates" ``` Send `{"plan_only": true}` alongside it first if you want to see the plan without applying. ## Roll back an install group To move a whole install group back rather than one install, trigger a branch run against the older app config and skip the build step, since the artifacts for that config already exist: ```sh theme={null} curl -X POST \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{"app_config_id": "'"$OLD_APP_CONFIG_ID"'", "skip_builds": true}' \ "https://api.nuon.co/v1/apps/$APP_ID/branches/$APP_BRANCH_ID/runs" ``` The run still plans each group and still waits for approval, so you see the reverse diff before it is applied. > [!NOTE] > > Rollback re-uses the version history and the branch run API: you choose the version, and you approve the plan > before anything is applied. ## See also * [App branches](/concepts/app-branches) — how runs, groups, and version history fit together. * [Configure app branches](/guides/app-branches) — set up the branch this recovery path builds on. # Configure runbooks Source: https://docs.nuon.co/guides/runbooks Define named, multi-step procedures and run them against your installs on demand. Runbooks turn a multi-step operational procedure into a single, repeatable artifact you run against an install on demand. Define the sequence once; run it consistently across every install instead of doing it by hand each time. Common uses: * version upgrades * [database migrations](/guides/database-migrations) * data backfills * recovery steps Each step has a `type` that determines what it does: * **`component_deploy`** — Deploy a component. Set `deploy_dependents` to also roll out the component's downstream dependents, in dependency order, or `plan_only` to check for drift without applying the plan. (`deploy` is accepted as a legacy alias.) * **`component_tear_down`** — Tear down a component. Set `tear_down_dependents` to also tear down its downstream dependents, with dependents removed first. * **`action`** — Run an existing [action](/guides/actions), or an inline command or script defined directly on the step. * **`sandbox_reprovision`** — Reprovision the install's sandbox infrastructure. Set `skip_component_deploys` to reprovision the infrastructure only, without redeploying components on top, or `plan_only` to check for drift without applying or redeploying components. * **`sandbox_deprovision`** — Deprovision the install's sandbox infrastructure. Steps run in order, and every run is recorded in the install's workflow history: a durable, auditable record of what ran, when, and against which install. ## Where runbooks live Define runbooks as TOML files in a `runbooks/` directory in your app config. Each file is one runbook: ``` my-app/ ├── metadata.toml ├── components/ ├── actions/ └── runbooks/ └── v2.3-update.toml ``` They ship with the rest of your config through your [app branch](/guides/app-branches). Whenever you edit a runbook file, commit it and push to the tracked git branch to send the changes to Nuon. ## Example ```toml theme={null} name = "v2.3-update" description = "Apply the v2.3 schema migration, then roll out the API." readme = "./runbooks/v2.3-update.md" [[steps]] name = "migrate-db" type = "action" action_name = "database-migration" [[steps]] name = "deploy-api" type = "component_deploy" component_name = "api-server" deploy_dependents = true [[steps]] name = "smoke-test" type = "action" command = "./scripts/smoke-test.sh" timeout = "5m" ``` ## Configuration reference ### Runbook | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Name shown in the **Runbooks** tab and used to identify the runbook during sync. | | `description` | string | No | Short description of what the runbook does. | | `readme` | string | No | Markdown documentation for the runbook. Supports Go templating and external file sources (HTTP(S) URLs, git, or local paths). | | `labels` | map | No | Key/value labels for organizing runbooks. | | `steps` | array | Yes | Ordered list of steps to execute. See below. | ### Step | Field | Type | Required | Description | | - | - | - | - | | `name` | string | Yes | Step name shown in the workflow UI and runbook detail page. | | `type` | string | Yes | `component_deploy`, `component_tear_down`, `action`, `sandbox_reprovision`, or `sandbox_deprovision`. `deploy` is accepted as a legacy alias. | | `component_name` | string | component steps | Component to deploy or tear down. Required when `type = "component_deploy"` or `"component_tear_down"`. | | `deploy_dependents` | bool | No | When true, also deploys the component's transitive dependents (downstream subgraph) in dependency order. Only applies to `component_deploy` steps. | | `tear_down_dependents` | bool | No | When true, also tears down the component's transitive dependents (downstream subgraph), with dependents torn down first. Only applies to `component_tear_down` steps. | | `plan_only` | bool | No | When true, generates the plan without applying it. Applies to `component_deploy` and `sandbox_reprovision`; plan-only sandbox steps also skip component redeployment. | | `skip_component_deploys` | bool | No | When true, only the sandbox infrastructure is reprovisioned; components are not redeployed on top. Only applies to `sandbox_reprovision` steps. | | `action_name` | string | action steps | Name of an existing [action](/guides/actions) to run. Mutually exclusive with the inline fields below. | | `command` | string | action steps | Shell command for an inline action. Supports Go templating. | | `inline_contents` | string | action steps | Inline script contents, or a reference to an external file. Supports templating and external sources. | | `env_vars` | map | No | Environment variables for an inline action step. | | `timeout` | string | No | Maximum execution time for an inline action step (Go duration, e.g. `30s`, `5m`). | | `role` | string | No | IAM role to assume when executing an inline action step. | An action step uses **either** `action_name` (to run a previously defined action) **or** the inline fields (`command` / `inline_contents`) to define an inline action, not both. ## Triggering a runbook Trigger and watch runs from the **Runbooks** tab in the [dashboard](https://app.nuon.co/), or from the CLI: ```sh theme={null} # list the runbooks available on an install nuon runbooks list --install-id ``` Each run is recorded in the install's workflow history, so you can review the steps, logs, and outcome of any past runbook execution. Try with your agent Run a runbook ## A complete example For a runnable example, see the [`programmable-runbook-and-readme`](https://github.com/nuonco/example-app-configs/tree/main/programmable-runbook-and-readme) app config in `example-app-configs`. It has runbooks for an on-call restart and a smoke test, plus rendered READMEs that embed them. # Customer-Controlled Runner Shutdown Source: https://docs.nuon.co/guides/runner-kill-switch How customers can pause or permanently stop the Nuon Runner from their own AWS account. The runner is managed via the stack, and is responsible for all actions. While you can also remove permissions, you can also entirely disable the runner. This is useful for partial-airgapped installs, release windows and customers who want more control. To learn more about runners, see the [Runners](/concepts/runners) concept page. ## How It Works The Runner is created by the customer's [Stack](/concepts/stacks) during install provisioning. The customer has full ownership of this ASG in their AWS account. By changing the ASG capacity settings, the customer controls whether the Runner is up. | Approach | Method | Reversibility | Use case | | - | - | - | - | | **Soft kill** (recommended) | Set ASG capacity to 0/0/0 | Set back to 1/1/1 to restore | Temporary pause during audit, incident response, or compliance review | | **Hard kill** | Delete the ASG entirely | Must reprovision from scratch via `nuon installs reprovision` | Permanent removal or vendor offboarding | ## Soft Kill: Scale the ASG to Zero This is the recommended approach for temporarily pausing the Runner. It gracefully terminates the EC2 instance without destroying any ASG configuration. ### Steps 1. Open the **EC2 Console** in the AWS account where the install is provisioned. 2. Navigate to **Auto Scaling Groups** in the left sidebar. 3. Select the Runner's ASG (named after the install). 4. Choose **Edit** on the **Group details** panel. 5. Set all three capacity fields to **0**: * **Desired capacity**: 0 * **Min desired capacity**: 0 * **Max desired capacity**: 0 6. Click **Update**. ![](https://mintcdn.com/nuoninc/rYd7adDpNoxNTGJy/images/asg-group-size.png?fit=max\&auto=format\&n=rYd7adDpNoxNTGJy\&q=85\&s=e1051cfc28f51e7e628fdcc1cdaa104e) The ASG Group size dialog in the AWS Console. Set all capacity values to 0 to stop the Runner, or back to 1 to restore it. The Runner EC2 instance will be terminated within a few minutes. While scaled to zero: * No deployments, updates, or actions can be executed against this install. * The vendor cannot reprovision the Runner — `nuon installs reprovision` will fail. * All existing infrastructure deployed by the Runner remains untouched. ### Restoring the Runner To resume normal operation, edit the ASG and set the capacity back to **1/1/1** (Desired: 1, Min: 1, Max: 1). The Runner will restart if you navigate to the Install's Runner and choose **Restart process** on the Runner. ![](https://mintcdn.com/nuoninc/rYd7adDpNoxNTGJy/images/runner-restart-process.png?fit=max\&auto=format\&n=rYd7adDpNoxNTGJy\&q=85\&s=943a42273cd3a349d45fdc8c627c0fca) Use the Manage install runner menu to restart the Runner process after restoring ASG capacity. ## Hard Kill: Delete the ASG For permanent removal (e.g., offboarding a vendor), the customer can delete the ASG entirely from the AWS Console or CLI. This removes the Runner and its launch configuration. To restore after a hard kill, the vendor must reprovision the install: ```bash theme={null} nuon installs reprovision ``` This recreates the ASG and Runner from the Stack definition. ## Additional Lockdown Options For even more granular control over what the Runner can do, Nuon supports [Policies](/concepts/policies#policies) that let you define approval gates, scoping rules, and conditions on deployments and actions. Policies can be combined with the ASG kill switch for defense-in-depth. ## Related Resources * [Runner Management Mode](/guides/runner-management-mode) — Configure how the Runner process is managed within the EC2 instance. * [Nuon Security & Trust](/guides/vendor-customers) — Overview of Nuon's security model and how to communicate it to customers. * [Customer Cloud Permissions](/guides/vendor-customers#customer-cloud-permissions) — How IAM roles scope what the Runner can do. * [Security Architecture](/security) — Technical overview of Nuon's security properties. # Runner Management Mode Source: https://docs.nuon.co/guides/runner-management-mode Configure runner management mode for new installs or migrate existing installs. To learn more about runners, see the [Runners](/concepts/runners) concept page. ## What is Management Mode? Runner management mode is a standalone process that is deployed *first* in an install's runner VM. Once it has started, it is responsible for configuring, starting, monitoring, and updating a child runner process for the install itself. This install runner process then carries out all of the day to day runner operations. This allows for an additional degree of flexibility when managing updates and paves the way for future runner features. This release introduces runner management mode into GA as an opt-in feature which can be enabled by configuring the `init_script_url` attribute in `runner.toml` in the app template. We recommend all new installs make use of it from day-1. ## Migrating an existing Install 1. Update `runner.toml` to use the management mode init script. ```toml runner.toml theme={null} init_script_url = "https://raw.githubusercontent.com/nuonco/runner/refs/heads/main/scripts/aws/init-mng.sh" ``` 2. Update `stack.toml` to use the 1.6 version of the Runner ASG nested CF stack `runner_nested_template_url`. ```toml stack.toml theme={null} runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.1.6/runner/asg/stack.yaml" ``` 3. Commit the change and push it to the git branch your [app branch](/guides/app-branches) tracks 4. Reprovision the install and apply the new stack as a CF change-set. ## New Installs 1. Configure `runner.toml` to use the management mode init script. 2. Configure `stack.toml` to use the 1.6 version of the Runner ASG nested CF stack. ```toml runner.toml theme={null} init_script_url = "https://raw.githubusercontent.com/nuonco/runner/refs/heads/main/scripts/aws/init-mng.sh" ``` 2. Update `stack.toml` to use the 1.6 version of the Runner ASG nested CF stack `runner_nested_template_url`. ```toml stack.toml theme={null} runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.1.6/runner/asg/stack.yaml" ``` 3. Carry on as usual. # Sandbox Builds Source: https://docs.nuon.co/guides/sandbox-builds Provision from an immutable artifact instead of cloning Git at apply time. Reproducible reprovisions, no VCS dependency in your customer's account, failures caught before they touch infrastructure. A customer's install provisioned cleanly in March. It's November, and you need to reprovision it. By default, that reprovision clones your sandbox repo *right then* and applies whatever is at the configured branch today. Eight months of module changes, a bumped provider constraint, a repo that someone renamed: all of it lands on infrastructure that has been running fine, and none of it is what the install was built with. Sandbox builds close that gap. Nuon packages your sandbox into an **immutable OCI artifact**, the same mechanism already behind [component builds](/guides/app-branches#what-a-run-rebuilds), and installs provision from the artifact instead of reaching for Git. To learn more about sandboxes, see the [Sandboxes](/concepts/sandboxes) concept page. > [card] Reprovision what you provisioned > > An artifact is immutable and pinned to an app config version. A reprovision a year later applies > the exact code that install was created with. > [card] No Git at apply time > > The install runner pulls the sandbox from the same registry it already pulls component artifacts > from. Nothing in your customer's account reaches GitHub or holds a Git credential. > [card] No Terraform Registry either > > Providers ship inside the artifact, so a provision doesn't depend on `registry.terraform.io` > being reachable. > [card] Break it on your own time > > A bad sandbox fails at build time, in your branch run, instead of part-way through a customer's > provision. ## Get a sandbox build **1. Build the sandbox once** If your app template uses [app branches](/concepts/app-branches), the next push builds it automatically. Otherwise hit **Build sandbox** on the app's **Sandbox** tab. **2. Provision or reprovision** Any sandbox run for an install on that app config version now uses the artifact. The run's logs say which source it used. > [!NOTE] > > There is no configuration for any of this. Nothing in your app config changes, and nothing below is > something you have to set up. ## How the source is resolved Every sandbox run (provision, reprovision, or deprovision) resolves where to get the code from before it runs anything: ```mermaid theme={null} flowchart TD run["sandbox run starts"] --> lookup{"active sandbox build
        for this install's
        app config version?"} lookup -->|yes| oci["pull and unpack
        the OCI artifact"] lookup -->|no| git["clone Git
        at the configured ref"] oci --> apply["terraform / pulumi apply"] git --> apply ``` **The lookup is per install, not per app.** It keys off the app config version *that install is pinned to*, so two installs on different versions of your app provision from two different sandbox artifacts, each one the sandbox that shipped with its version. **A missing artifact is never a failure.** No build for that version, or an artifact that can't be resolved, falls back to cloning Git exactly as before. Installs that predate your first sandbox build keep working untouched, and each install picks up an artifact as it moves onto a version that has a build behind it. This applies to Terraform and Pulumi sandboxes alike. The runner unpacks the artifact and works in that directory instead of a clone, and everything downstream is unchanged. ## Where builds come from A sandbox build is a record tied to one app config version and one sandbox config, executed by the [Control Plane](/architecture/platform#builds). It moves through `queued` → `planning` → `building` → `active`, or `error`, and streams logs the whole way. The artifact is pushed to your app's OCI repository (the same one your component builds are pushed to), tagged with the build's ID. ### On every app branch run If your app uses [app branches](/concepts/app-branches), the `building components and sandbox` step builds the sandbox alongside your components. It appears as its own row in that step, next to each component, and links through to its logs. ```mermaid theme={null} flowchart LR push["git push"] --> config["fetch app config"] config --> build["building components and sandbox"] build --> comps["component artifacts"] build --> sbx["sandbox artifact"] comps --> plan["plan install group"] sbx --> plan ``` **Which ref gets built:** if your sandbox lives in the same repo as the app config being built, the build is pinned to that run's commit SHA, so the sandbox and the components come from one commit. If the sandbox lives elsewhere, it uses the ref from your sandbox config. ### On demand The app's **Sandbox** tab lists every build with its status, and **Build sandbox** runs one against your current config. Each build links to a detail page with its timeline and logs. ```bash theme={null} curl -X POST "https://api.nuon.co/v1/apps/$APP_ID/sandbox/builds" \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" ``` Useful for validating a sandbox change before you push it, and for apps that don't use app branches. ## Vendoring Terraform providers Sandbox builds are what make provider vendoring possible for a sandbox at all. There's no build step to vendor into otherwise. The build runs `terraform providers mirror` and ships the resulting filesystem mirror inside the artifact. The install runner finds it on unpack and initializes against it, so provisioning needs no Terraform Registry access. Pin `terraform_version` in your `sandbox.toml` so the build mirrors providers for the version that will actually run: ```toml sandbox.toml theme={null} terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-sandbox" branch = "main" ``` > [!TIP] > > Together, the sandbox artifact and vendored providers take a provision from "needs GitHub *and* > `registry.terraform.io`" to "pulls one more artifact from the registry it already pulls component > artifacts from." That is a much smaller ask of a customer with a restricted egress policy. ## Troubleshooting > [accordion] An install still cloned Git > > There's no `active` build for the app config version *that install* is pinned to. An install on > an older version has no artifact behind it until it moves to a version that does. Check the > app's **Sandbox** tab for which versions have builds, and the sandbox run's logs for which source > it chose. > [accordion] No sandbox build appeared on a branch run > > Two reasons it's skipped: the app has no sandbox config, or the run had no config changes and > wasn't forced. A run with nothing to build doesn't build anything, sandbox included. Re-trigger > the run with force, or build once from the **Sandbox** tab. > [accordion] The sandbox build failed > > Open it from the **Sandbox** tab or from the branch run's build step and read its logs. These are > the same failures you'd otherwise hit mid-provision: an unresolvable module, a provider > constraint that can't be satisfied, or invalid Terraform. That is the point of catching them here. > [accordion] Provisioning still reaches out to the Terraform Registry > > Confirm the install is using an artifact (not a Git fallback), and that `terraform_version` in > your `sandbox.toml` matches the version that runs so the mirror was built for the right CLI. > Rebuild after setting or changing it. ## See also * [Sandboxes](/concepts/sandboxes): what a sandbox is and what it provisions * [Configuring Sandboxes](/guides/configuring-sandboxes): the `sandbox.toml` reference * [App Branches](/concepts/app-branches): the workflow that builds sandboxes on every push * [App branches](/guides/app-branches#trigger-a-run): how builds and deploys fit together # Nuon Self-Hosted Source: https://docs.nuon.co/guides/self-hosted Run Nuon entirely within your own infrastructure, with no path for Nuon to reach in Nuon Self-Hosted is a single-tenant Nuon control plane running in your own AWS, Azure, or Google Cloud account, with no path for Nuon to reach in. It is the most disconnected deployment option: you install it, operate it, and upgrade it. This is the same software as [Nuon BYOC](/guides/byoc), but without the remote operator. There is no Nuon Runner in your account polling Nuon Cloud for jobs, no managed upgrades, and no remote troubleshooting. In exchange, the installation has no mechanism for Nuon to access, which is useful for compliance, sovereignty, or air-gap requirements where any remote-managed control plane (even a single-tenant one) is ruled out. Nuon Self-Hosted is open source. You can deploy and operate it yourself at no cost. A paid license is required only if you need Nuon support. [Contact sales](https://nuon.co/contact-sales) to learn more. ## Architecture Your control plane runs in your cloud account with no connection to Nuon. Customer Runners poll your control plane for jobs and pull artifacts from your container registry, the same flow as every other deployment model. ```mermaid theme={null} flowchart TD subgraph YourCloud["Your Cloud Account: AWS · Azure · GCP"] subgraph CP["Control Plane: EKS · AKS · GKE"] DASH["dashboard-ui"] CTL["ctl-api"] BR["Build Runner"] end subgraph Deps["Dependencies"] TMP["Temporal"] CH["ClickHouse"] DB[("Postgres")] REG[("Container Registry")] BLOB[("Blob Storage")] end end subgraph EndCustomers["Customer Clouds: AWS · Azure · GCP"] R["Nuon Runner"] I["Installs"] end DASH -->|"API calls"| CTL CTL --> TMP CTL --> CH CTL --> DB CTL --> BLOB CTL -->|"trigger builds"| BR BR -->|"push OCI artifacts"| REG R -->|"polls for jobs"| CTL R -->|"pull artifacts"| REG R -->|"deploys"| I ``` ## Operational Responsibility Self-hosting means you own the full lifecycle of the Nuon control plane: * **Upgrades**: you apply new Nuon releases. There is no Nuon Runner in your account to do this remotely. After each upgrade, your team and CI need the [matching CLI version](/cli#choosing-a-cli-version). Set ctl-api `min_cli_version_warn` to your control plane's version, or to `latest`, so older CLIs print a warning. `min_cli_version` is deprecated and is used only when `min_cli_version_warn` is empty. Set `min_cli_version_error` to the oldest CLI that can still run against this control plane. * **Backup and restore**: your Postgres, blob storage, and container registry are yours to back up and recover. * **Monitoring and alerting**: wire your own observability into the control plane services. * **Troubleshooting**: Nuon engineers cannot remotely inspect logs, run diagnostics, or apply hotfixes. Support is limited to guidance you can act on yourself. ## Supported Platforms * AWS: Nuon deploys on EKS with RDS, ECR, Route 53, ACM, and Secrets Manager. * Azure: AKS with Azure SQL, ACR, Blob Storage, and Key Vault. * GCP: GKE with Cloud SQL, GAR, GCS, and Secret Manager. # Nuon Self-Hosted Dependencies Source: https://docs.nuon.co/guides/self-hosted/dependencies Dependencies required to self-host Nuon ## Dependency Overview The `ctl-api` and `dashboard-ui` services depend on a handful of managed resources you'll provision in your cloud account before deploying Nuon. ### Temporal Nuon uses Temporal to orchestrate long-running workflows: component builds, install provisioning, and deployment actions. The `ctl-api` connects to Temporal to schedule and drive these workflows. This guide assumes you have an existing temporal deployment already. We suggest using the official [temporal helm chart](https://github.com/temporalio/helm-charts/). ### Clickhouse Clickhouse is the log and event store behind the Nuon dashboard: workflow logs, deployment history, and OTel traces stream into it from `ctl-api` and are served back to the UI for inspection. This guide is not concerned with configuring and operating clickhouse itself. We use the [`Altinity/clickhouse-operator`](https://github.com/Altinity/clickhouse-operator/) to deploy a 3-node CH Keeper cluster and a 2 node ClickHouse Cluster. The `ctl-api` expects a cluster since we leverage several features such as `ReplicatedMergeTree` tables. ### Postgres Two Postgres databases are required: one for `ctl-api`'s application state (orgs, apps, installs, builds) and one backing Temporal's persistence layer. **AWS:** Our [Nuon BYOC terraform module](https://github.com/nuonco/byoc/tree/main/byoc-nuon/src/components/rds_cluster_nuon) is a useful reference. **GCP:** Our [Nuon BYOC GCP terraform module](https://github.com/nuonco/byoc/tree/main/byoc-nuon-gcp/src/components) provides references for both `cloudsql_nuon` and `cloudsql_temporal`. ### Container Registry `ctl-api` builds customer components into OCI artifacts and pushes them to a container registry in the management account, where runners later pull them during install deployments. **AWS:** ECR is used for container image storage. **GCP:** Artifact Registry is used for container image storage. ### IAM & Permissions **AWS:** The `ctl-api` deployment relies on an IAM role (attached to the service account) with specific permissions which we enumerate here. The [Nuon BYOC terraform module](https://github.com/nuonco/byoc/tree/main/byoc-nuon/src/components/management) is a useful reference. #### ECR A management IAM role is used by `ctl-api` to push to ECR and assume cross-account roles into customer AWS accounts, while service-account roles (IRSA) grant the `ctl-api` and `dashboard-ui` pods scoped access to AWS APIs. #### RDS The `ctl-api` uses RDS IAM auth to connect to the db, as opposed to a `DATABASE_URI` with credentials baked in. #### S3 The blob storage requires the `ctl-api` to be able to read and write from an S3 bucket. **GCP:** The `ctl-api` and `dashboard-ui` deployments rely on GCP service accounts bound to Kubernetes service accounts via Workload Identity. The [Nuon BYOC GCP management component](https://github.com/nuonco/byoc/tree/main/byoc-nuon-gcp/src/components/management) is a useful reference for the required service accounts and IAM bindings. #### Artifact Registry A management service account is used by `ctl-api` to push to GAR. It is granted `roles/artifactregistry.admin` and bound to the `ctl-api/ctl-api` Kubernetes service account via Workload Identity. #### Cloud SQL The `ctl-api` connects to Cloud SQL using IAM database authentication via Workload Identity, as opposed to a `DATABASE_URI` with credentials baked in. #### Cloud Storage Blob storage requires the `ctl-api` to be able to read and write from a GCS bucket. ## Deploying Nuon We maintain helm charts for Nuon at [`nuonco/charts`](https://github.com/nuonco/charts). These can be deployed with helm into an existing Kubernetes cluster. **AWS:** > [!NOTE] > > Our helm configs make heavy use of annotations for nodepool selection because we use Karpenter. We recommend deploying to an EKS cluster with Karpenter installed or EKS Auto Mode. **GCP:** Deploy to an existing GKE cluster. Please refer to the charts to deploy the following two services: * [`ctl-api`](https://github.com/nuonco/charts/tree/main/charts/ctl-api) * [`dashboard-ui`](https://github.com/nuonco/charts/tree/main/charts/dashboard-ui) Note: `dashboard-ui` depends on `ctl-api`. # Slack Source: https://docs.nuon.co/guides/slack Install the Nuon Slack app, link it to your org, and subscribe channels to deploy, action, and approval events. The Nuon Slack app posts deploy, action, workflow, and approval events into Slack channels you choose, and lets users approve workflow steps without leaving Slack. > [!NOTE] > > The Slack integration is gated by an org feature flag. If you don't see **Slack** > in the dashboard sidebar, ask Nuon support to enable the `slack` feature flag for > your org. ## Overview There are three pieces of state involved: | Concept | What it is | | - | - | | **Slack installation** | The OAuth installation of the Nuon app in a Slack workspace. One per workspace. | | **Org link** | Connects a Nuon org to a Slack workspace. One Nuon org can be linked to multiple workspaces; one workspace can host multiple orgs. | | **Channel subscription** | A per-channel rule that decides *which* events from a linked org are posted into *that* channel. Backed by `match` + `interests`. | ## Installing the Slack app 1. In the dashboard sidebar, click **Slack**. 2. Click **Install in Slack**. You'll be redirected to Slack's OAuth consent screen. 3. Approve the requested scopes. Slack redirects back to Nuon and creates the workspace installation. 4. The workspace now shows up under **Slack → Linked workspaces** for your org. Repeat step 1–2 from another org to link the same workspace to multiple orgs. ## Subscribing a channel Subscriptions are created from inside Slack via the slash command: ``` /nuon subscribe ``` This opens a modal where you choose: * **Org** — which linked Nuon org to subscribe to. * **Match** — *which entities* in the org events must come from. * **Interests** — *which events* you care about. Re-running `/nuon subscribe` in a channel that already has a subscription opens the modal pre-filled with the current settings — you can use it to edit. ### Slash commands | Command | What it does | | - | - | | `/nuon subscribe` | Open the subscribe dialog for the current channel. | | `/nuon unsubscribe` | Open the unsubscribe dialog for the current channel. | | `/nuon status` | Show the workspace installation, linked orgs, and the current channel's subscription (if any). | | `/nuon help` | Show the help message. | All responses are ephemeral — only the user who ran the command sees them. ## Match — routing predicate `match` decides which entities a subscription cares about. Three modes: * **Org-wide** — every entity in the linked org. * **Specific IDs** — an explicit list of install / app / component IDs. * **Label selector** — entities whose labels match a selector (e.g. `env=prod,tier=critical`). The same `match` contract is shared with [webhooks](/guides/webhooks), so the same mental model applies in both places. ## Interests — event filter `interests` decides which kinds of events are delivered. It's a structured filter across: * **Resource kinds** — `installs`, `components`, `actions`, `workflows`. * **Operations** — `deploy`, `destroy`, `plan`, etc. * **Outcomes** — `completion`, `failures`. * **Approvals** — approval requests and approval responses. For example, a "production deploy failures" subscription matches `installs` with the `env=prod` label, and interests of `deploy` + `failures`. ## Role change notifications When a customer enables or disables an [operation role](/concepts/operation-roles) in their install stack, Nuon can post a notification to subscribed Slack channels. Role change events appear as standalone messages (not threaded under a workflow) showing the role name, type, and install context. To receive role change notifications, include **installs** in your subscription's interests. Role enable/disable events are delivered alongside other install lifecycle events. ## Approvals from Slack When a workflow step requires approval and a channel is subscribed to approval events, Nuon posts the approval request into that channel with **Approve** / **Reject** buttons. Clicking either button records the response against the approver's Nuon account (resolved from their Slack identity), so the audit trail matches a dashboard approval. ## Unsubscribing From inside the channel, run: ``` /nuon unsubscribe ``` You can also remove a subscription from **Slack → Subscriptions** in the dashboard. ## Removing the workspace installation To fully remove the Nuon app from a workspace, an org admin can delete the **Slack installation** from **Slack → Linked workspaces** in the dashboard. This deletes the OAuth token, all org links for the workspace, and all channel subscriptions tied to those links. ## Troubleshooting * **`/nuon subscribe` says "this workspace isn't linked to any Nuon org yet"** — Open the dashboard and complete the OAuth install for the org you want to subscribe to. * **No events arriving in a subscribed channel** — Run `/nuon status` in the channel to confirm the subscription is recorded, then verify the source entity's labels actually match the `match` selector. * **Buttons in approval messages do nothing** — The Slack app's *Interactivity Request URL* must be reachable from Slack. If you're running locally, your Slack app config must point at a public tunnel (e.g. Tailscale Funnel or ngrok) in front of the Nuon Slack listener. # Team Management Source: https://docs.nuon.co/guides/team-management Add team members to your Nuon Org You can add users to your Nuon Org using our CLI. ## Invite a user to your Org You can invite a user by email to your Nuon Org using our cli: ```sh theme={null} nuon orgs invite --email=user@yourdomain.com --role=org_read_only ``` Pass `--role` to set what the new member can do. See [Access control](/concepts/access-control) for the available roles and what each grants; run `nuon roles list` to see the current set. If you omit `--role`, the member is invited as an admin. The invited user will get a welcome email, and when they sign into the dashboard next will automatically be added to your Org. ## Change a member's role To change the role of an existing member, use their user ID. This requires org admin access. ```sh theme={null} nuon orgs update-user-role --user-id= --role=org_read_only ``` A member holds one role at a time, so this replaces their current role. ## View invites You can view invites for your Org using our cli: ```sh theme={null} nuon orgs list-invites ``` ## Delete an invite / remove users If you need to delete an invite, or remove a user from your Org, [please contact us](https://nuon.co/contact-us). # Using Terraform CLI Source: https://docs.nuon.co/guides/terraform-cli Run Terraform commands locally against your Nuon-managed sandbox and component workspaces. The Nuon dashboard provides a **Use Terraform CLI** option on both the Sandbox and Terraform Component detail pages. This lets you run Terraform commands locally against the remote state managed by Nuon. It's useful for debugging, inspecting resources, importing state, or running targeted plans. ## Prerequisites **1. Install the Nuon CLI** Install the Nuon CLI if you haven't already: ```bash theme={null} brew install nuonco/tap/nuon ``` On Nuon BYOC or Self-Hosted, install the CLI version that matches your control plane instead. See [Choosing a CLI version](/cli#choosing-a-cli-version). Authenticate with your account: ```bash theme={null} nuon auth login ``` **2. Match the Terraform version** You must use the **same Terraform version** configured for the sandbox or component. The version is displayed on the configuration card in the dashboard. For sandboxes, this is the `terraform_version` in your `sandbox.toml`. For components, it's the `terraform_version` in the component's `.toml` config. Terraform is deprecated on `brew`. Consider using Terraform version manager `tfenv` to install and use multiple Terraform versions locally. You can install it with: ```bash theme={null} brew update brew install tfenv ``` List remote versions, install specific versions, list versions, and globally select a version ```bash theme={null} tfenv list-remote tfenv install 1.13.5 tfenv install 1.11.3 tfenv list tfenv use 1.13.5 ``` Verify your local version matches: ```bash theme={null} terraform version ``` > [!WARNING] > > Running a different Terraform version can corrupt state or produce unexpected plan diffs. Use a version manager like [tfenv](https://github.com/tfutils/tfenv) or [asdf](https://github.com/asdf-vm/asdf) to switch versions easily. **3. Navigate to the Terraform source code** You must run Terraform commands from within the **same Terraform module directory** that the sandbox or component is configured to use. This is the directory containing your `.tf` files. For example, if your sandbox is configured with: ```toml sandbox.toml theme={null} [public_repo] repo = "nuonco/aws-eks-sandbox" directory = "." branch = "main" ``` Then clone and enter that repo: ```bash theme={null} git clone https://github.com/nuonco/aws-eks-sandbox.git cd aws-eks-sandbox ``` For a component configured with a subdirectory: ```toml components/database.toml theme={null} [public_repo] repo = "your-org/your-infra" directory = "modules/database" branch = "main" ``` Navigate to that subdirectory: ```bash theme={null} cd modules/database ``` ## Setting Up the Backend Click the **\{} Use Terraform CLI** button on the lower right part of Sandbox or Component detail page in the dashboard. This opens a modal, and click the Download button to retrieve a `nuon_backend.tf` file containing the HTTP backend configuration for that workspace. The generated file looks like this: ```hcl nuon_backend.tf theme={null} terraform { backend "http" { lock_method = "POST" unlock_method = "POST" address = "https://api.nuon.co/v1/terraform-backend?workspace_id=&org_id=&token=undefined" lock_address = "https://api.nuon.co/v1/terraform-workspaces//lock?org_id=&token=undefined" unlock_address = "https://api.nuon.co/v1/terraform-workspaces//unlock?org_id=&token=undefined" } } ``` Download this file and place it in your Terraform module directory alongside the other `.tf` files. ## Set your Nuon API token Create a service account for Terraform in your current org, then a token for it ```bash theme={null} account_id=$(nuon service-accounts create --name terraform-cli --role org_read_only --output json | jq -r .id) nuon service-accounts tokens create --id "$account_id" --name terraform-cli --output json | jq -r .token ``` Replace the three token `undefined` blocks in `nuon_backend.tf` with the token value. The token is only shown once, so copy it before continuing. ## Initializing Terraform Initialize the backend: ```bash theme={null} terraform init -reconfigure ``` The `-reconfigure` flag is required to switch Terraform's backend to the Nuon HTTP backend. After initialization, your local Terraform is connected to the remote workspace state. > [!NOTE] > > The service account is created in your currently selected org, and the token (valid one year by default) has that service account's access. Make sure you've selected the correct org with `nuon orgs select` before running these commands. The token authenticates all Terraform backend requests (state, lock, and unlock). Revoke it any time with `nuon service-accounts tokens delete --token-id `. ## Running Commands Once initialized, you can run standard Terraform commands against the workspace: ```bash theme={null} # View current state terraform state list # Inspect a specific resource terraform state show # Preview changes terraform plan # Apply changes terraform apply # Import an existing resource into state terraform import ``` > [!WARNING] > > Running `terraform apply` locally will modify the live install infrastructure. Use caution and prefer `terraform plan` for inspection. ## Unlocking State If a Terraform operation is interrupted (e.g., a network failure during apply), the workspace state may remain locked. You can unlock it from the dashboard using the **Unlock Terraform state** button on the Sandbox or Component detail page. > [!NOTE] > > Only force unlock a workspace if you are certain no other operation is actively running. Force unlocking a workspace in use by a running job may cause state corruption. ## Viewing State in the Dashboard The dashboard displays the current Terraform state for both sandboxes and components, organized into two tabs: * **Outputs** - all Terraform outputs and their current values * **Resources** - all managed resources with their type, provider, mode, and attribute values This state view updates after each successful sandbox run or component deploy. # Terraform Components Source: https://docs.nuon.co/guides/terraform-components Terraform components allow you to provision infrastructure in your customer's cloud account to power your install. Terraform components allow you to deploy Terraform from a public or connected repo, to provision infrastructure resources in customer installs. To learn more about components, see the [Components](/concepts/components) concept page. ## Configuring a Terraform component To configure a Terraform component, specify a repo, the required configuration values, and the version of Terraform to run it with. ```toml components/.toml theme={null} # terraform name = "certificate_wildcard_public" type = "terraform_module" terraform_version = "1.11.3" [public_repo] repo = "nuonco/byoc" directory = "byoc-nuon/src/components/certificate" branch = "main" [vars] install_id = "{{ .nuon.install.id }}" region = "{{ .nuon.install_stack.outputs.region }}" zone_id = "{{ .nuon.sandbox.outputs.nuon_dns.public_domain.zone_id }}" domain_name = "*.{{ .nuon.sandbox.outputs.nuon_dns.public_domain.name }}" ``` You can configure Terraform components to use either a public repo (using a `public_repo` block) or a private GitHub repo (using a `connected_repo` block). Read more about VCS configuration [here](/guides/vcs). You can also put the Terraform source inside of the same repo as your app config, and point to it. > [!NOTE] > > If you include the Terraform source in the app config repo, push the source along with the rest of the repo. A branch run rebuilds a component when its config changes, so a push that changes only the Terraform source does not rebuild it. After that push, run `nuon branches trigger --branch-id --force`, or build the component manually in the dashboard or CLI. ## Configuring Terraform Vars You can configure terraform variables for a component using [component variables](/guides/using-variables). These variables can access inputs, other Components, the sandbox, and details on the install itself using templating. ```toml components/.toml theme={null} # terraform name = "dynamodb_table" type = "terraform_module" terraform_version = "1.11.4" [public_repo] repo = "nuonco/example-app-configs" directory = "aws-lambda/src/components/dynamodb-table" branch = "main" [vars] name = "widgets-{{.nuon.install.id}}" hash_key = "ID" install_id = "{{.nuon.install.id}}" region = "{{.nuon.install_stack.outputs.region}}" ``` ## State Management All Terraform state is managed by the Nuon data plane through the Nuon http-based API. Each execution of a Terraform component in an install is visible in the plan and apply steps in the dashboard. The Enterprise edition has two additional features including requiring approvals of the plan and apply steps and showing diffs from previous runs. ## Execution and Permissions The [runner](/concepts/runners) is responsible for executing Terraform, and is provisioned as part of the initial Install Stack. e.g., in AWS, the CloudFormation stack creates a VPC, networking, ASG and an EC2 instance to start the runner. The runner is separate from the Install's infrastructure e.g., Kubernetes cluster. To learn more about the runner, read the [Nuon Runner Architecture](https://nuon.co/blog/the-nuon-runner-architecture/#nuons-runner-model) blog post. ## Per-install variable overrides To override a Terraform module's variables for a single install without changing your app config, use [component overrides](/guides/component-overrides). # Toggleable Components Source: https://docs.nuon.co/guides/toggleable-components Turn components on and off per install, with the install config as the source of truth. Some components are optional: a customer on one tier gets observability, another doesn't; one install needs a certificate, another brings its own. Toggleable components let each install decide which components are enabled, without forking your app config. To learn more about components, see the [Components](/concepts/components) concept page. ## Marking a component toggleable Set `toggleable = true` on a component in your app config, with an optional `default_enabled` for its starting state: ```toml components/observability.toml theme={null} name = "observability" type = "helm_chart" toggleable = true default_enabled = false ``` If you omit `default_enabled`, it defaults to `false` — the component starts disabled until an install enables it. A non-toggleable component is always enabled and cannot be turned off. Only toggleable components can be enabled or disabled per install. ## Toggling per install A toggleable component's enabled state is stored as an [install input](/guides/configuring-inputs-and-secrets). That input is the source of truth, and there are several ways to set it: the install config, the dashboard, and the CLI all write the same underlying input. If you manage the install with an install config, set the state per component in a `[component_toggles]` section, keyed by component name: ```toml install.toml theme={null} name = "customer-acme" [component_toggles] observability = true certificate = false ``` `true` enables the component on this install; `false` disables it. A component you don't list falls back to its `default_enabled` value from the app config. When you run `nuon installs sync`, Nuon reconciles every toggle in one pass: newly enabled components are deployed and newly disabled components are torn down, all within a single workflow. Enabling or disabling a component also runs its `pre`/`post` enable and disable [lifecycle actions](/guides/actions) when defined. ## Dependencies Toggle state has to stay consistent with the [component dependency graph](/guides/component-dependencies). Nuon enforces two rules whenever you sync: * An enabled component cannot depend on a disabled one. * A component cannot be disabled while a component that depends on it is still enabled. These run before any change is applied, so an inconsistent config is rejected up front rather than producing a broken install. Both declared `dependencies` and implicit output references (`{{.nuon.components..outputs...}}`) count as edges in the graph. For example, given `api_gateway` depends on `certificate`, syncing a config that enables the gateway while the certificate is disabled fails with: ``` component "api_gateway" is enabled but its dependency "certificate" is disabled Enable "certificate", or disable "api_gateway", so the install reaches a consistent state. ``` Fix the config — enable the dependency or disable the dependent — and sync again. ## Dashboard and CLI Each toggleable component's enabled state is exposed through the API, the dashboard, and the CLI: ```bash theme={null} nuon installs components list --install-id ``` You can also toggle a component imperatively from the dashboard or CLI, which sets the same enabled input directly: ```bash theme={null} nuon installs components toggle --install-id --component-id --enable nuon installs components toggle --install-id --component-id --disable ``` `--component-id` accepts a component ID or name. If you omit both `--enable` and `--disable`, the CLI prompts you to choose. For installs managed by an install config, the dashboard toggles are disabled, since the config file is the place these inputs are managed and a later `nuon installs sync` would overwrite an out-of-band change. > [!NOTE] > > Config sync reconciles all toggles in a single workflow. An imperative per-component toggle runs a dedicated enable or disable workflow for that one component. # Configure Triggers Source: https://docs.nuon.co/guides/triggers Create a trigger, route events with rules, and inspect events and dispatches. [Triggers](/concepts/triggers) turn external events into Nuon actions. This guide walks through creating a trigger, exposing its ingress URL, routing events with rules in your app config, and inspecting the events and dispatches that result. ## 1. Create a trigger Create a trigger with the CLI. Use a `--preset` to configure authentication and payload parsing for a known provider: ```sh theme={null} nuon triggers create my-trigger --preset github ``` Without a preset, set the authentication type explicitly. For secret-based types like `hmac`, Nuon generates a signing secret for the trigger — reveal and rotate it with the secret commands below. ```sh theme={null} nuon triggers create my-trigger --auth-type hmac ``` Use `--auth-config` to supply advanced settings as a JSON object — for example the header to read the signature from, the signature algorithm, or the expected JWT audience. Common flags: | Flag | Description | | - | - | | `--description` | A human-readable description. | | `--preset` | Provider preset (`github`, `slack-events`, `datadog`, `aws-eventbridge`, `aws-sns`, `google-pubsub`, `azure-event-grid`). | | `--auth-type` | `none`, `hmac`, `api_key`, `basic`, `bearer_jwt`, or `sns_signature`. | | `--auth-config` | JSON configuration for the chosen auth type. | | `--envelope` | Transport envelope to unwrap: `none`, `pubsub_push`, `cloudevents`, or `sns`. | | `--type-header` / `--type-payload` | Where to read the event type from — a header name or a payload JSONPath. | | `--id-header` / `--id-payload` | Where to read the event ID (used for deduplication) from. | ## 2. Get the ingress URL The ingress URL is the secret endpoint external systems POST events to. Reveal it, then configure it in the sending system: ```sh theme={null} nuon triggers reveal-ingress-url ``` If a URL is ever leaked, rotate it: ```sh theme={null} nuon triggers replace-ingress-url ``` ## 3. Route events with rules Rules decide which events start which targets. Author them in your app config's `triggers.toml`, where each `[[rules]]` entry references a trigger by name, matches events, and declares a target. ```toml triggers.toml theme={null} [[rules]] name = "runbook-on-main-push" trigger = "my-trigger" event_types = ["push"] [[rules.filters]] from = "payload" op = "eq" path = "$.ref" value = "refs/heads/main" [rules.target] type = "runbook" runbook = "redeploy" install = "acme-prod" ``` This example targets a **runbook**, which runs on an existing install and requires no app branch. To run an app branch instead, use the `app_branch_run` target — see [Targets](#targets) below. ### Rule fields | Field | Required | Description | | - | - | - | | `name` | yes | Unique name for the rule. | | `trigger` | yes | The name of the trigger this rule listens to. | | `event_types` | no | List of exact event type strings to match. | | `filters` | no | Payload or header predicates, ANDed together (max 20). | | `match_all` | no | Match every event. Cannot be combined with `event_types`. | | `target` | yes | The app branch run or runbook to start. | A rule must declare at least one of: `event_types`, a positive filter, or `match_all = true`. ### Filters Each filter compares a value from the payload or headers. ```toml triggers.toml theme={null} [[rules.filters]] from = "payload" # "payload" (default) or "headers" op = "eq" path = "$.action" # JSONPath for payload filters, or a header name for header filters value = "opened" ``` Supported `op` values: `eq`, `neq`, `in`, `prefix`, `suffix`, `contains`, `gt`, `gte`, `lt`, `lte`, `regex`, `exists`, `not_exists`. Omit `value` for `exists` and `not_exists`. Each filter's value must encode to at most 4096 bytes. To discover which payload paths and headers are available to filter on, use `nuon triggers events paths` against a received event — see [Test and inspect events](#4-test-and-inspect-events). ### Targets A target is either an **install runbook** or an **app branch run**. Run a runbook on a specific install, mapping payload values into runbook inputs. This target requires no app branch: ```toml triggers.toml theme={null} [rules.target] type = "runbook" runbook = "rotate-credentials" install = "acme-prod" [rules.target.inputs] requested_by = "$.sender.login" reason = "$.action" ``` Each entry under `inputs` maps a runbook input name to a singular payload JSONPath. The `runbook` must be declared in your app config, and `install` must name an existing install. Alternatively, run an app branch: ```toml triggers.toml theme={null} [rules.target] type = "app_branch_run" app_branch = "main" ``` The named `app_branch` must already be declared in your app config — the rule fails to sync if it doesn't exist. ## 4. Test and inspect events List received events for a trigger: ```sh theme={null} nuon triggers events list --trigger ``` Filter by type or outcome: ```sh theme={null} nuon triggers events list --trigger --event-type push --outcome failed ``` Inspect a single event, then replay it to re-run its routing: ```sh theme={null} nuon triggers events get nuon triggers events replay ``` Tail events live as they arrive: ```sh theme={null} nuon triggers events tail --trigger ``` Dry-run a local app config against a received event to see what would match, without dispatching. Pass the path to your app TOML with `--app-config`, and select the event with either `--last` (most recent event for a trigger) or `--event `: ```sh theme={null} nuon triggers events test --last --trigger --app-config ./app.toml nuon triggers events test --event --app-config ./app.toml ``` To discover which fields you can filter on, list the filterable payload paths and request headers for an event: ```sh theme={null} nuon triggers events paths --last --trigger nuon triggers events paths ``` ## 5. Inspect dispatches A dispatch is one target execution produced by a matching rule. List, inspect, and retry them: ```sh theme={null} nuon triggers dispatches list nuon triggers dispatches get nuon triggers dispatches retry ``` ## Rotating secrets and suspending Rotate a trigger's signing secret, or revoke a specific secret, without downtime: ```sh theme={null} nuon triggers rotate-secret nuon triggers revoke-secret ``` Suspend a trigger to stop processing events without deleting it, then re-enable it later: ```sh theme={null} nuon triggers disable nuon triggers enable ``` # Build a UI integration Source: https://docs.nuon.co/guides/ui-integration Build your own self-serve BYOC flow. Let your customers deploy your product into their own cloud account from your app's settings page. Your app calls the Nuon [API](/concepts/api) in the background. ## Before you start Create a [service account](/concepts/service-accounts) for your app with the least access that works, and store its token with your other secrets. Every call in this guide uses that token. > [!TIP] > > Creating cloud resources in your customer's account takes a while. Run setup as a background job, and send a > `request_id` on each call that starts work, so a retry after a timeout doesn't run it twice. See > [Idempotent operations](/guides/idempotent-operations). ## 1. Collect the [customer's inputs](/concepts/app-inputs) When the customer clicks **Start setup**, create an [install](/concepts/installs) with their inputs. ```bash theme={null} curl -X POST https://api.nuon.co/v1/installs \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{ "app_id": "app...", "name": "globex", "aws_account": { "region": "us-west-2" }, "inputs": { "domain": "analytics.globex.example.com" } }' ``` The response is the new install. Trimmed to the fields you'll use: ```json Response theme={null} { "id": "inl...", "name": "globex", "app_id": "app...", "workflow_id": "inw...", "created_at": "2026-10-29T17:14:20Z" } ``` Save `id` with the customer's record. Every later call uses it. * To let customers change an input later, see [Change a setting](/guides/control-plane-integration#change-a-setting). * To set up inputs and secrets in your app template, see [Configuring inputs and secrets](/guides/configuring-inputs-and-secrets). * For every input field, see the [inputs reference](/config-ref/inputs). ## 2. Have the customer connect their account Your customer connects their account by creating your app's [stack](/concepts/stacks), in their own cloud console. It's a good idea to give a quick explainer for your customer's security team. Call `GET /v1/installs/{install_id}/stack`. A trimmed example response: ```json Response theme={null} { "install_id": "inl...", "versions": [ { "quick_link_url": "https://console.aws.amazon.com/cloudformation/..." } ] } ``` Point your connect button at the newest version's `quick_link_url`. When the customer runs it, the stack creates the network, the permissions, and the [runner](/concepts/runners) in their account. [Positioning safety of BYOC](/guides/vendor-customers) covers the follow-up questions customers usually ask. ## 3. Show setup progress Once the customer initiates the install on their cloud account, Nuon deploys your product without any more input from the customer. You can show your customer each stage as it completes, and let them leave the page. Most software vendors track progress with [webhooks](/guides/webhooks): 1. Register a webhook for workflow step events on your installs, with a secret so you can [verify each request](/guides/webhooks#verifying-signatures) came from Nuon. 2. On each event, update the matching stage from `data.step.name` and `data.transition`. 3. On a `failed` event, show the customer `data.step.name` and `data.outcome.error`. Your support team sees the same error in Nuon. If your app can't receive webhooks, check the install's status on a timer instead with [`GET /v1/installs/{install_id}`](/api-ref/installs/get-an-install). ## 4. Getting customer approvals You can set installs to pause before anything your customers consider sensitive. Approvals happen on plan steps, before a Terraform, Helm, or Kubernetes manifest change applies. You choose which steps wait for the customer: * Set `approval_option = "prompt"` in the [install config](/config-ref/install) to require approval on the install. * Set `auto_approve_on_policies_passing = true` on a component or the sandbox to let its routine changes through. That step only waits for the customer when a [policy](/concepts/policies) check fails. See [Workflow approvals](/concepts/workflows#workflow-approvals) for how approvals work. When a step is waiting, find it with: ```bash theme={null} curl https://api.nuon.co/v1/workflows/pending-approvals \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" ``` Then send the customer's approval: ```bash theme={null} curl -X POST https://api.nuon.co/v1/workflows/$WORKFLOW_ID/steps/$STEP_ID/approvals/$APPROVAL_ID/response \ -H "Authorization: Bearer $NUON_API_TOKEN" \ -H "X-Nuon-Org-ID: $NUON_ORG_ID" \ -H "Content-Type: application/json" \ -d '{ "response_type": "approve" }' # or "deny" ``` You don't have to check for waiting steps on a timer. Set `approval_requests` to `true` in your [webhook](/guides/webhooks#filtering-events-with-interests) subscription, and Nuon calls your app as soon as a step needs approval. That's your cue to show the customer this screen. # Using READMEs Source: https://docs.nuon.co/guides/using-readmes Use READMEs to support operating Installs. Define a README on your app template; Nuon renders it on each install's **Overview**. This guide covers authoring and formatting. For per-install variables and live data components, see [Programmable READMEs](/guides/programmable-readmes). ## Adding a README to an app Set the `readme` field on your app: ```toml metadata.toml theme={null} # metadata name = "My App" readme = "This is the README for My App." ``` Sync, and it renders on each install's Overview. ## Formatting The `readme` is a string, rendered as Markdown in the dashboard. Use TOML multi-line strings for readability: ```toml metadata.toml theme={null} # metadata name = "My App" readme = """ # My App This is the README for My App. ## Sandbox This app uses the nuonco/aws-eks-sandbox. ## Components This app consists of the following components. | Name | Type | |------|------| | api | container_image | | deployment | helm_chart | """ ``` > [!NOTE] > > Markdown accepts HTML, so HTML/CSS/JS works too, but not all of it renders > reliably in the dashboard. Proceed with caution. ## Reference a README.md file Reference a `README.md` file instead of inlining. It's easier to manage for longer documents: ```toml metadata.toml theme={null} # metadata version = "v2" description = "Grafana App Config" display_name = "Grafana App Config" readme = "./README.md" ``` ## Tables Markdown tables render as interactive data tables with styled headers, click-to-sort columns, and horizontal auto-scroll when the content is wider than the page. ```markdown README.md theme={null} | Component | Type | Port | Health check | |-----------|------|------|--------------| | api-server | container_image | 8080 | /healthz | | worker | container_image | — | — | | ingress-nginx | helm_chart | 443 | /ready | | networking | terraform_module | — | — | ``` Cell content is full inline markdown, so links, **bold**, and `inline code` render inside cells. Column alignment from the delimiter row (`:---`, `:---:`, `---:`) is preserved. ### Searchable tables Add a `` tag directly before a table to render a search box that filters the rows client-side as the viewer types. ```markdown README.md theme={null} | Name | Status | Region | |------|--------|--------| | prod-us-east | Active | us-east-1 | | prod-eu-west | Active | eu-west-1 | | staging-us-west | Updating | us-west-2 | | dev-central | Inactive | us-central1 | ``` The tag must be the line immediately before the table (blank lines between are fine). Matching is case-insensitive substring, and searches the value of each cell — not its rendered markdown. Attributes: * `column` — which column(s) to search, by header name. Comma-separate for multiple (e.g. `column="name,region"`). Omit to search every column. * `placeholder` — custom placeholder text for the search box (defaults to "Search table…"). The same marker works on raw HTML `` markup. HTML tables render through the same common table component as markdown tables (sortable headers, shared styling), and a `` marker before one adds the search box: ```markdown README.md theme={null}
        MonitorStatus
        api-healthcheckfinished
        db-healthcheckerror
        ``` Tables that use `colspan`/`rowspan` or multiple header rows can't be represented this way, so they render as authored (with any custom markup preserved). ## Collapsible sections Use HTML `
        ` and `` tags to create expandable sections. These render with styled expand/collapse behavior, including a rotate animation on the chevron icon. ````markdown README.md theme={null}
        Troubleshooting: pod stuck in CrashLoopBackOff 1. Check the pod logs for the failing container: ```bash kubectl logs -n {{.nuon.install.name}} deploy/api-server --previous ``` 2. Verify the config map has the correct values: ```bash kubectl get configmap app-config -n {{.nuon.install.name}} -o yaml ``` 3. If the issue persists, re-run the **deploy components** action.
        ```` You can include any Markdown inside a collapsible section: lists, code blocks, tables, and even nested `
        `. ## Code blocks Fenced code blocks with a language identifier get syntax highlighting. ````markdown README.md theme={null} ```bash nuon installs deploy --install-id {{.nuon.install.id}} --component api-server ``` ```go func healthCheck(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) w.Write([]byte("ok")) } ``` ```` Supported languages include `bash`, `go`, `typescript`, `python`, `hcl`, `yaml`, `sql`, and many more. JSON code blocks render as an interactive tree viewer that you can expand and collapse: ````markdown README.md theme={null} ```json { "cluster": "eks-production", "region": "us-west-2", "node_pools": [ { "name": "default", "instance_type": "m5.xlarge", "min": 2, "max": 10 } ] } ``` ```` ## Mermaid diagrams Code blocks with the `mermaid` language render as diagrams. **Flowcharts** (`graph TD`, `flowchart LR`, etc.) render as interactive diagrams with pan, zoom, and drag via ReactFlow. Supported directions: `TD`, `TB`, `LR`, `RL`, `BT`. ````markdown README.md theme={null} ```mermaid graph TD A[networking] --> B[ingress-nginx] A --> C[api-server] B --> C C --> D[worker] ``` ```` Flowcharts support subgraphs, edge labels, node shapes, and custom styling via `style` directives. **All other diagram types** (sequence, class, state, etc.) render as static SVG: ````markdown README.md theme={null} ```mermaid sequenceDiagram participant Client participant API as api-server participant Worker Client->>API: POST /jobs API->>Worker: enqueue(job) Worker-->>API: job.complete API-->>Client: 200 OK ``` ```` ## Callouts READMEs support GitHub-style callout blockquotes. These render with a colored left border, icon, and label. ```markdown README.md theme={null} > [!NOTE] > Highlights information that users should take into account, even when skimming. > [!TIP] > Optional information to help a user be more successful. > [!IMPORTANT] > Crucial information necessary for users to succeed. > [!WARNING] > Critical content demanding immediate user attention due to potential risks. > [!CAUTION] > Negative potential consequences of an action. ``` Five types are supported: `NOTE` (blue), `TIP` (green), `IMPORTANT` (purple), `WARNING` (orange), and `CAUTION` (red). Regular blockquotes without a type prefix render normally. ## Local time Use the `` tag to render timestamps in the viewer's local timezone. ```markdown README.md theme={null} Last deployed Maintenance window: ``` Attributes: * `time` — ISO 8601 timestamp string * `seconds` — Unix timestamp (alternative to `time`) * `format` — `relative` (e.g. "2 hours ago"), `short-datetime`, `long-datetime`, `time-only` (defaults to `short-datetime`) The `relative` format auto-updates and shows a tooltip with the full date on hover. ## Display components READMEs support custom `` HTML tags that render as dashboard UI components. These are purely presentational and work in both app-level and install-level views. ### Badge Renders an inline badge. ```markdown README.md theme={null} healthy degraded ``` Attributes: * `theme` — `brand`, `default`, `neutral`, `success`, `warn`, `error`, `info` * `size` — `sm`, `md`, `lg` * `variant` — `default`, `code` ### Label badge Renders a key/value label badge — useful for tagging installs with metadata like environment, region, or version. ```markdown README.md theme={null} ``` You can pass the label as a single colon-separated `label` attribute, or as separate `key` and `value` attributes. Attributes: * `label` — colon-separated key:value string (e.g. `env:production`) * `key` — label key (alternative to `label`) * `value` — label value (alternative to `label`) * `theme` — `brand`, `default`, `neutral`, `success`, `warn`, `error`, `info` * `key-theme` — override the theme for just the key portion * `size` — `sm`, `md`, `lg` * `variant` — `default`, `code` The `theme` here only controls how a badge renders inside a README. To set the color a label key uses across the dashboard (on apps, installs, and components), see [label colors](/guides/multiple-app-configurations#label-colors). ### Banner Renders a callout banner for important notices. ```markdown README.md theme={null} This app requires a NAT gateway in the target VPC. Ensure one exists before creating an install. ``` Attributes: * `theme` — `brand`, `default`, `neutral`, `success`, `warn`, `error`, `info` ### Status Renders a status indicator dot with label. ```markdown README.md theme={null} ``` Attributes: * `status` — any string (e.g. `active`, `provisioning`, `error`) * `variant` — `default`, `badge`, `timeline` ### Group A flexbox layout container for arranging other elements. ```markdown README.md theme={null} v2.4.1 production us-west-2 ``` Attributes: `gap` (number), `align`, `justify`, `wrap` (`"true"` or `"false"`, defaults to true). ### Card Wraps content in a styled card container with border, padding, and shadow. ```markdown README.md theme={null} ## Quick reference | Variable | Default | Description | |----------|---------|-------------| | `REPLICAS` | `2` | Number of API server replicas | | `LOG_LEVEL` | `info` | Application log level | ``` Attributes: * `class` — optional CSS class name for custom styling ### Tabs Renders tabbed content sections. Wrap `` elements inside a `` block: ```markdown README.md theme={null} 1. Create an install from the dashboard 2. Run the **deploy components** action 3. Verify the health check endpoint returns 200 | Variable | Default | Description | |----------|---------|-------------| | `REPLICAS` | `2` | Number of API server replicas | | `LOG_LEVEL` | `info` | Application log level | ``` Each `` requires a `name` attribute. The content inside each tab is full markdown. ### Modal Renders a button that opens a modal dialog containing markdown content. ```markdown README.md theme={null} ## System architecture The application consists of three layers: 1. **Ingress** — NGINX handles TLS termination and routing 2. **API** — Go service processing requests 3. **Workers** — Async job processing via Temporal ``` Attributes: `heading`, `trigger` (button label, defaults to "View"), `size`. ### Panel Same as modal, but slides in from the side of the screen. ```markdown README.md theme={null} 1. Generate new credentials in the target cloud account 2. Update the install config with the new values 3. Re-run **deploy components** 4. Verify connectivity with the health check ``` Attributes: `heading`, `trigger` (button label, defaults to "View"), `size`. ## Render per-install values Everything above is static authoring. To render each install's live values and embed real-time components (status cards, the config graph, runnable runbooks), see [Programmable READMEs](/guides/programmable-readmes). # Using Variables Source: https://docs.nuon.co/guides/using-variables Using variables with your Nuon configurations. The Components of your app template can get custom configuration settings applied by using variables. Each deployed Component instance can make use of a set of name/value variables to handle configuration settings that need to be set differently on each customer's instance. Nuon brings in a tree of information from the sources detailed below, which can then be accessed by the Component using a templating syntax inspired by Go templates. This variable replacement templating syntax is used by several other infrastructure management tools. To learn more about app variables, see the [App Variables](/concepts/app-variables) concept page. You can set these variables as vars in your Terraform configuration. For example, if you wanted to set values in a Helm chart: ```toml components/helm_chart.toml theme={null} # helm name = "helm_chart" type = "helm_chart" chart_name = "" [connected_repo] directory = "components/helm-chart" repo = "/" branch = "main" [values] # manually set a variable "some-var-name" = "some-var-value" # reference another component "reference-to-other-component" = "{{.nuon.components.some_other_component.outputs.s3_bucket_name}}" ``` Example directly-set value would be | Name | Value | | - | - | | `port` | `3000` | Example dynamic variable reference would be | Name | Value | | - | - | | `bucket_name` | `{{ .nuon.components.storage.bucket_name }}` | **Note** After changing variables, you must trigger a new build and release of that component before your changes will take affect. ## Same Variable Value on Every Install Settings common to all your installs can be set directly on the component and it will be the same across all installs. Example: `cache_size` with value `4096`. ## Unique Variable Value For Each Install For example, the install id can be passed as a variable to the Sandbox for an EKS cluster name. ```toml sandbox.toml theme={null} [vars] cluster_name = "n-{{.nuon.install.id}}" ``` ## Labels Templating also works in [install labels](/guides/install-configs#dynamic-labels) and app-level [default labels](/guides/multiple-app-configurations#default-labels). Label values re-render automatically as the install state changes. ## Variable Data Sources ### Nuon Information * **Nuon Organization ID** `{{ .nuon.org.id }}` * Unique identifier for the vendor organization * **Nuon Application ID** `{{ .nuon.app.id }}` * Unique identifier for the app template * **Nuon Install ID** `{{ .nuon.install.id }}` * **Nuon Runner API URL** `{{ .nuon.runner.api_url }}` * Control-plane runner API base URL configured for this install's runner group, with the deployment's runner API URL as the fallback. Available even when the install runner is stopped; this is not the public API, telemetry relay, or runner instance address. * **Nuon Install Sandbox Type** `{{ .nuon.install.sandbox.type }}` * Example: `aws-eks` * **Nuon Install Sandbox Version** `{{ .nuon.install.sandbox.version }}` * Example: `0.11.1` ### Nuon Install Sandbox Outputs See the [aws-eks-sandbox](https://github.com/nuonco/aws-eks-sandbox/blob/main/outputs.tf) repository for the most up-to-date list of outputs available from the Sandbox. ### Install Inputs Any app input can be accessed using variables. For instance, given an app input, `foo`, it can be accessed using: * `{{ .nuon.install.inputs.foo }}` ### Output from Other Components in an Application Some component types including terraform components will provide output values that will be required as input variables to other components of the app. These outputs are available grouped under the slug version of the component name. * Template Syntax: `{{ .nuon.components..outputs. }}` * Example: `{{ .nuon.components.rds_db.outputs.db_url }}` ### Component Image Data from Other Components in an Application * `{{ .nuon.components..image.tag }}` * Docker/OCI Image tag used for the component deployment * `{{ .nuon.components..image.repository }}` * ECR Repository containing this component's images * `{{ .nuon.components..image.registry }}` * ECR Registry containing this component's images # Connect GitHub Source: https://docs.nuon.co/guides/vcs Connect your GitHub account to use both public and private repositories in your Nuon app templates. Connecting Nuon with your Version Control System (VCS) will give Nuon the ability to use your code when configuring your app template. To use public repositories, you do not have to connect Nuon with your VCS. In this guide we'll use the [Nuon CLI](/cli) to connect your Nuon Org to a GitHub account or repository and verify the connection is working by listing the connected repositories. > [!NOTE] > > You may want to update an existing GitHub connection (e.g. add a new repository to the connection). To do this follow the steps below, make the updates with in the GitHub connection flow and your existing connection should be updated. ## Select an Org Because a VCS connection is scoped to your Nuon Org you'll need to login using the CLI and select the Org you want to use. ```sh theme={null} nuon auth login ``` ```sh theme={null} nuon orgs select ``` Alternatively if you already have an existing CLI session you can just verify the Org is correct before you start the connection flow. ```sh theme={null} nuon orgs current ``` ## Start the connection flow Now that you're logged in with a valid Org selected you'll want to kick off the GitHub connection flow with the CLI. ```sh theme={null} nuon orgs connect-github ``` This command will open a tab in your browser asking you to install [Nuon Connect](https://github.com/apps/nuon-connect) app into your GitHub account. ## Select GitHub access At this point you'll follow the GitHub connection flow, selecting an account to install Nuon Connect and selecting which repositories Nuon can have access to. ![Select GitHub account](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/guides/github-connection.png?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=bb4f4cccff89f7757170e15aaf280deb) Select which GitHub account to want to install Nuon Connect ![Select repos](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/guides/select-repo.png?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=ee1365cff01d284cbb894ad0c7ff007d) Select which repos Nuon Connect can have access to After you've selected which repositories Nuon Connect can access you'll be redirected to the [Nuon web app](https://app.nuon.co). If the connection was a success you'll see either a success message or you'll be redirected back to the [Nuon web app](https://app.nuon.co) if you have an active web session. ## Verify connection works At this point you can close the browser tab and verify everything is correct in the terminal via the CLI. ```sh theme={null} nuon orgs list-vcs-connections ``` If the connection was successful you should see a list on connected GitHub accounts in Nuon. ## Use Connected Repositories in Nuon In a Component configuration file, you must use the `[connected_repo]` table syntax to reference a connected repository. For example: ```toml components/my-component.toml theme={null} # helm name = "my-private-component" type = "helm_chart" chart_name = "my-private-chart" namespace = "my-namespace" storage_driver = "configmap" [connected_repo] repo = "acmeco/my-app" directory = "chart" branch = "main" ``` If the repository is public, you must use the `[public_repo]` table syntax instead. If you use `[public_repo]` and the repository is private, Nuon will not be able to access it and will throw an error when you try to deploy the App. # Positioning Safety of BYOC Source: https://docs.nuon.co/guides/vendor-customers Learn how to position Nuon's security and user experience to customers. Bring Your Own Cloud (BYOC), or allowing vendors to install and manage their software in their customers' cloud accounts, introduces scrutiny and questions from those customers. This is reasonable and to be expected since BYOC is a newer software deployment paradigm and allowing an external party to do anything in a customer cloud should be managed carefully. For a technical overview of all security properties, see the [Security](/security) page. ### Secrets and Sensitive Values In Nuon, secrets and sensitive values are entered by the customer, not the vendor, when they deploy the [Stack](/concepts/stacks). They are then stored in AWS Secrets Manager, Azure Key Vault, or GCP Secret Manager and are retrieved programmatically by the Nuon [Runner](/concepts/runners) in the customer cloud account to insert into [components](/concepts/components) as the vendor's software is provisioned or updated. Nuon can automatically sync secrets to a Kubernetes cluster deployed by the Runner, which can then be referenced in components like Helm charts, Kubernetes manifests, and Terraform modules. The vendor by default cannot access the secrets unless the customer happened to approve IAM roles with elevated privileges to run action scripts to view the secrets. ### Log Viewing and Exfiltration Prevention By default, Nuon only stores logs of the infrastructure changing in the customer account, e.g., creating a Kubernetes cluster, deploying a Helm chart, running Terraform. Application logs are not accessible or sent to the Nuon control plane. Customers can independently [export runner audit logs](/guides/export-runner-audit-logs) from AWS, Azure, or GCP to an OTLP-compatible backend they control. The destination and credentials remain in the customer's cloud secret manager; they are not sent to the Nuon control plane. One of Nuon's concepts is an [action](/concepts/actions), which are vendor-defined scripts to deploy infrastructure but are also useful in troubleshooting and debugging. Outputs of actions are stored in the Nuon control plane. Actions are defined by IAM roles and permissions that vendor's customers would approve beforehand. If those roles were elevated enough to execute commands that can access sensitive data like a database table with `psql` or view a Kubernetes secret with `kubectl`, the outputs would be stored in the Nuon control plane. ### Customer Inputs [Inputs](/concepts/app-inputs) are dynamic values specific to an install that are entered and then referenced into the install provision workflow. With Nuon, inputs can be configured to be vendor-entered or customer-entered. Vendor inputs may be the Kubernetes and vendor product release versions or the compute node size. Customer inputs could be an AI or vendor license key. Customers enter inputs in the customer dashboard and can be updated over time. Vendors conversely enter their inputs either in the vendor dashboard or with the Nuon CLI. ### Customer Cloud Permissions When customers deploy the vendor's application through Nuon, they run a [Stack](/concepts/stacks) in their own cloud account that creates the IAM roles and policies defining what Nuon's Runner can do. The Runner is a lightweight agent deployed entirely within their cloud account that connects outbound-only to Nuon's control plane. No VPN tunnels, no cross-account access, and no inbound connections required. The vendor's app config defines three scoped IAM roles with different permission levels: provision (for initial setup), deprovision (for removal, automatically disabled after use), and maintenance (for ongoing updates and monitoring). Customers control these permissions directly through the Stack and can toggle them on or off at any time. When the vendor needs more access to service an install, such as during an incident, [break glass roles](/concepts/break-glass) work the same way. Each one is off by default, and customers turn it on or off with a Stack update. All Runner actions are logged for complete audit visibility. This architecture ensures the vendor's software can be deployed and managed in the customers' environment without ever exposing their cloud credentials to external parties. ### Nuon Deployment Options Nuon Cloud is our SaaS offering primarily targeted for free trials and smaller customers. Vendors' app templates, installs, and logs are stored in an encrypted PostgreSQL database and securely accessed by the vendors and customers using TLS for encryption of data in transit. For vendors and their customers concerned about data residency and multiple SaaS 3rd parties in the loop, Nuon supports self-hosting Nuon's control plane in the vendor's AWS or GCP cloud. Nuon uses its BYOC product to provision and update Nuon. In this deployment scenario, the metadata and logs about customer installs are stored encrypted in PostgreSQL (RDS on AWS, Cloud SQL on GCP) in the vendor's cloud. The vendor can cut off access of the Nuon Runner to the Nuon control plane except as required during maintenance windows to upgrade the Nuon control plane. This offering is called Nuon BYOC. Nuon also supports fully self-hosted deployments where the vendor can deploy Nuon using Helm charts into their own cloud account. For a technical overview of all these properties, see the [Security](/security) page. # Webhooks Source: https://docs.nuon.co/guides/webhooks Receive workflow lifecycle events from your Nuon Org as CloudEvents over HTTP. Org-scoped webhooks let you subscribe to **workflow** and **workflow step** lifecycle events as well as operational notifications for your Nuon [Org](/get-started/glossary). Whenever a subscribed event occurs, Nuon `POST`s a [CloudEvents v1.0](https://cloudevents.io) envelope to every matching webhook URL registered on the Org. Webhooks are scoped to the current Org. Manage them with the [Nuon CLI](/cli) or the dashboard. ## Manage webhooks ```sh theme={null} # List webhooks for the current Org nuon orgs webhooks list # Create a webhook (URL is required, secret is optional) nuon orgs webhooks create --url https://example.com/webhooks/workflow/lifecycle --secret # Update a webhook's subscription (interests + match) and/or rotate its signing secret nuon orgs webhooks update --webhook-id --subscription-file ./subscription.json nuon orgs webhooks update --webhook-id --secret # Delete a webhook nuon orgs webhooks delete --webhook-id ``` A few constraints to be aware of: * The `--url` must be an absolute `http` or `https` URL with a host. * Webhook URLs are unique per Org **per scope**. The uniqueness key is `(org_id, webhook_url, match)` — the same URL can be registered multiple times in one Org as long as each registration uses a different [match predicate](#scoping-deliveries-with-match) (for example, once for "all installs" and again for "components in env=prod"). Registering the exact same `(url, match)` twice returns a conflict. * The `--secret` is write-only. The API never returns it; responses include `has_secret: true|false` so you can tell whether one is configured. * The webhook URL is part of the `(org_id, webhook_url, match)` unique index and cannot be changed in place. To rename it, delete the webhook and create a new one. Use the dashboard's edit action (or `PATCH /v1/orgs/current/webhooks/{webhook_id}`) to rotate the signing secret or replace the [interests filter](#filtering-events-with-interests) / [match predicate](#scoping-deliveries-with-match) without recreating the webhook. ## Filtering events with interests By default a new webhook receives **every** supported workflow, deploy, sandbox, runner, and approval event for the Org. To narrow that down, attach an `interests` filter on create or update. The filter is a structured object stored on each webhook and persisted as JSONB on the webhook row. If you omit `interests` entirely (and on legacy webhooks created before this filter shipped), Nuon treats the configuration as `{"all_events": true}` so deliveries don't silently stop. The list endpoint surfaces this same effective shape so the CLI/dashboard/SDK stay in sync with what's actually delivered. ### Top-level shape A configuration is one of two shapes: ```json theme={null} { "all_events": true } ``` ```json theme={null} { "resources": { "installs": { "outcome": "completion", "approval_requests": true, "approval_responses": true }, "components": { "ops": ["deploy"], "outcome": "all", "drift_detected": true }, "sandboxes": { "outcome": "failures", "drift_detected": true }, "install_configurations": {}, "runners": { "ops": ["provision"] } } } ``` `all_events: true` is the new-subscription default and short-circuits everything else. To opt into a per-resource configuration, omit `all_events` (or set it to `false`) and populate `resources`. A resource missing from `resources` is **off** — no events of that kind are delivered. ### Resource vocabulary Each resource accepts a list of sub-ops drawn from a fixed vocabulary: | Resource | Supported `ops` | | - | - | | `installs` | `provision`, `deprovision`, `reprovision` | | `stacks` | `version_active` | | `components` | `deploy`, `teardown` | | `sandboxes` | `provision`, `reprovision`, `deprovision` | | `install_configurations` | `inputs`, `secrets` | | `runners` | `provision`, `reprovision`, `inactive`, `unhealthy` | | `actions` | `run` | Drift workflow lifecycle events (`drift_run`, `drift_run_reprovision_sandbox`) are intentionally **not** part of the `ops` vocabulary — every cron tick fires a started/completed pair, which is pure noise on a clean scan. To subscribe to drift, set `drift_detected: true` on `components` and/or `sandboxes` (see below). ### Per-resource fields | Field | Type | Default | Description | | - | - | - | - | | `ops` | `[]string` | `[]` | Sub-ops to subscribe to. An empty (or omitted) list means **every sub-op** for the resource. | | `outcome` | `string` | `"all"` | One of `all`, `completion`, `failures`, or `none`. Filters lifecycle events on terminal status; `none` mutes lifecycle for this resource entirely. | | `approval_requests` | `bool` | `false` | Deliver workflow-step approval **requests** for this resource. | | `approval_responses` | `bool` | `false` | Deliver workflow-step approval **responses** (approved / rejected) for this resource. | | `drift_detected` | `bool` | `false` | Deliver a notification **only when drift is actually detected** during a drift scan. Only meaningful for `components` and `sandboxes`. | | `component_health` | `bool` | `false` | Deliver a notification when a component's live health crosses into degraded or unhealthy, **and when it recovers**. Only meaningful for `components`. | | `install_degraded` | `bool` | `false` | Deliver a notification when the install's composite health crosses into degraded or unhealthy, **and when it returns to healthy**. Only meaningful for `installs`. | `outcome` semantics: * `all` — every `started` + terminal event for the matched ops. * `completion` — terminal events only (`succeeded`, `failed`, `cancelled`); suppress `started`. * `failures` — only `failed` and `cancelled` terminal events. * `none` — mutes lifecycle events entirely for this resource. Drift and approval events are gated independently and remain functional, so `none` is the right choice when you want a drift-only or approvals-only subscription for this resource. Approval events do not have a started/succeeded/failed lifecycle, only a requested / approved / rejected handshake. They are gated **independently of `outcome`** by the `approval_requests` and `approval_responses` booleans. #### Drift detection To receive drift notifications, set `drift_detected: true` on `components` and/or `sandboxes`. The notification fires once per component (inside `drift_run`) or once per sandbox (inside `drift_run_reprovision_sandbox`) whenever the plan-only check finds non-no-op changes. It works for both manually triggered and scheduled drift scans, and is gated **independently of `outcome`** — the same way `approval_requests` / `approval_responses` are. #### Component health To receive component health notifications, set `component_health: true` on `components`. One flag covers both directions: the notification fires when a component's live health crosses into `degraded` or `unhealthy`, and again when it recovers, so you always get the resolution to a failure you were told about. A verdict of `unknown` — the runner is offline or its observations are stale — never notifies; unhealthy runners have their own event, below. A worsening inside the bad band (`degraded` to `unhealthy`) does not re-notify. Like `drift_detected`, the flag is gated **independently of `outcome`**. Set `install_degraded: true` on `installs` for the same signal one level up: it fires when the install's composite health crosses into degraded or unhealthy, and when it returns to healthy. Subscribing to both levels means a single-component outage produces two messages. #### Unhealthy runners Runners emit `runners.unhealthy` when the 15-minute runner health check first transitions a runner from `active` to `offline` because its primary process is missing. Subsequent checks do not emit another notification while the runner remains offline. If the runner recovers and later transitions from `active` to `offline` again, a new notification is emitted. This operation is separate from process-level `runners.inactive` events, which can occur during routine process shutdown and rotation. Subscribe by including `unhealthy` in the `runners` `ops` list (or by leaving `ops` empty to receive every runner sub-op). ### Examples Subscribe to every supported event (this is the default if `interests` is omitted): ```json theme={null} { "all_events": true } ``` Per-resource opt-in matching the dashboard's "opted-out-of-AllEvents" baseline — terminal events plus approval notifications for the four most common resources: ```json theme={null} { "resources": { "installs": { "outcome": "completion", "approval_requests": true, "approval_responses": true }, "stacks": { "outcome": "completion" }, "components": { "outcome": "completion", "approval_requests": true, "approval_responses": true, "drift_detected": true }, "sandboxes": { "outcome": "completion", "approval_requests": true, "approval_responses": true, "drift_detected": true }, "install_configurations": { "outcome": "completion", "approval_requests": true, "approval_responses": true } } } ``` Narrowly scoped — only component deploy failures: ```json theme={null} { "resources": { "components": { "ops": ["deploy"], "outcome": "failures" } } } ``` Drift only — components, no lifecycle, no approvals: ```json theme={null} { "resources": { "components": { "outcome": "none", "drift_detected": true } } } ``` ### Setting interests via the CLI `nuon orgs webhooks create` and `nuon orgs webhooks update` take the full subscription — both the [interests filter](#filtering-events-with-interests) and the optional [match predicate](#scoping-deliveries-with-match) — as a single JSON document via `--subscription-json` (inline) or `--subscription-file` (path on disk). The two flags are mutually exclusive. Omit both to fall back to the default: every supported event in the Org, no scope. ```sh theme={null} # Default — subscribe to every supported event in the Org nuon orgs webhooks create --url https://example.com/hook # Inline JSON (interests only) nuon orgs webhooks create --url https://example.com/hook \ --subscription-json '{"interests":{"resources":{"components":{"ops":["deploy"],"outcome":"failures"}}}}' # Inline JSON (interests + match — scope to two specific installs) nuon orgs webhooks create --url https://example.com/hook \ --subscription-json '{"interests":{"all_events":true},"match":{"installs":{"ids":["ins_abc","ins_def"]}}}' # From a file (recommended for non-trivial configs) nuon orgs webhooks create --url https://example.com/hook --subscription-file ./subscription.json # Replace the subscription on an existing webhook nuon orgs webhooks update --webhook-id --subscription-file ./subscription.json ``` The wire shape is `{"interests": {...}, "match": {...}}` — both keys are optional. A missing `interests` defaults to `{"all_events": true}` so you can scope a webhook with `--subscription-json '{"match":{...}}'` without restating the events filter. A missing or `null` `match` is the org-wide ("every entity") subscription. `update` replaces both `interests` and `match` wholesale — it is not a deep merge. Pass `--secret ` to rotate the signing secret at the same time; omit `--secret` to leave the existing secret unchanged. The webhook URL plus its `match` predicate together form the `(org_id, webhook_url, match)` unique index — delete and recreate to rename, or register a sibling row with a different `match` to deliver the same URL with a different scope. ### Setting interests via the dashboard The dashboard's webhook create + edit forms expose the [interests filter](#filtering-events-with-interests) as an inline picker. Toggling **Send all events** off materializes the per-resource baseline shown above so you land on a sensible starting point instead of an empty config that silently drops every event. Saving the form persists the same JSON shape documented here. > **Match in the dashboard.** The dashboard's webhook forms do not yet expose the > [match predicate](#scoping-deliveries-with-match), and saving from the dashboard resets the webhook to org-wide. > To create or preserve a scoped webhook, manage it from the [CLI](#setting-interests-via-the-cli). ## Scoping deliveries with match By default a webhook is **org-wide** — it fires for every event the [interests filter](#filtering-events-with-interests) opts into, regardless of which install, component, or action triggered it. Attach a `match` predicate to scope deliveries to specific entities or to entities carrying specific labels. `match` is an object with up to three optional kinds — `installs`, `components`, `actions`. For each kind, list the `ids` you care about and/or a label `selector`: ```json theme={null} { "match": { "installs": { "ids": ["ins_abc", "ins_def"] }, "components": { "selector": { "match_labels": { "env": "prod" } } } } } ``` How matching works: * An event is delivered if **any** populated kind matches. * Within a kind, the entity matches if its ID is in `ids` **or** its labels satisfy `selector`. * A `selector` requires every `match_labels` entry to match (AND); use `"*"` as the value to require only that the key is present. * A `selector` may also carry `not_match_labels` exclusions: any entity whose labels contain the key with the exact value (`"*"` = key present at all) is rejected. Entities **without** the key still match, so `{"not_match_labels": {"monitor": "false"}}` scopes a kind to "everything except installs labelled `monitor=false`" without enumerating every other value. * An empty filter (`{}`) for a kind means "any entity of this kind". * Omit `match` entirely (or send `null`) for the org-wide default. ### Examples Every event, but only for two specific installs: ```json theme={null} { "interests": { "all_events": true }, "match": { "installs": { "ids": ["ins_abc123", "ins_def456"] } } } ``` Drift-only on components labelled `env=prod`: ```json theme={null} { "interests": { "resources": { "components": { "outcome": "none", "drift_detected": true } } }, "match": { "components": { "selector": { "match_labels": { "env": "prod" } } } } } ``` The same URL can be registered multiple times in one Org with different `match` predicates — for example, a noisy "all events" subscription to a staging endpoint plus a focused "drift only on env=prod components" subscription to a paging endpoint. ## Event types The webhook surface exposes two workflow lifecycle primitives plus dedicated notification event types: 1. **Workflow lifecycle** (`com.nuon.workflow.lifecycle.v1`) — fires for the workflow as a whole. Carries the workflow's `type` (e.g. `provision`, `reprovision`, `manual_deploy`, `action_workflow_run`) and its owner (`installs`, `apps`, `app_branches`). 2. **Workflow step lifecycle** (`com.nuon.workflow_step.lifecycle.v1`) — fires for each step within a workflow. Carries the step's `name`, `idx`, and `target_type` (e.g. `install_deploys`, `install_sandbox_runs`, `install_action_workflow_runs`) along with denormalized `component_id` / `sandbox_id` when applicable. 3. **Runner unhealthy** (`com.nuon.runner.unhealthy.v1`) — fires once when the runner health check transitions a runner from `active` to `offline`. Carries `kind: runner_unhealthy`, `transition: unhealthy`, runner and runner-group metadata, the reason, and install context when the runner belongs to an install. You do not need to memorize an operation taxonomy. To know "did the sandbox finish provisioning?", look at workflow events with `data.workflow.type == "provision"` and a step whose `target_type == "install_sandbox_runs"` succeeded. To know "did this component deploy?", look at a step whose `target_type == "install_deploys"` and inspect `data.step.component_id`. > [!NOTE] > > An `owner_type` of `app_branches` means the workflow is an [app branch](/concepts/app-branches) run: a rollout across > a fleet of installs rather than work on a single install. Its step names include `plan install group: ` and > `deploy install group: `, one pair per deployment group, so you can watch a staged rollout progress and drive > the next approval through the API. See [configuring app branches](/guides/app-branches). ## Transitions Both primitives use the same transition vocabulary: | Transition | When it fires | | - | - | | `started` | The workflow / step begins execution | | `succeeded` | Execution completed successfully | | `failed` | Execution errored or validation rejected the input | | `cancelled` | Execution was cancelled | | `unhealthy` | A runner transitioned from `active` to `offline` | `data.transition` is the transition name. `data.outcome.status` mirrors it on `*.succeeded`, `*.failed`, and `*.cancelled` events. Validation failures of the workflow / step wrappers surface as a `failed` outcome on the following execute event — there is no separate validate event. A typical Install provision produces, in order: 1. `workflow.lifecycle started` for the provision workflow. 2. For each step in the workflow: `workflow_step.lifecycle started` → `workflow_step.lifecycle succeeded` (or `failed` / `cancelled`). 3. `workflow.lifecycle succeeded` for the provision workflow once every step terminates. ## Delivery guarantees and failures Nuon webhooks are best-effort notifications, not a durable event stream. * A final `2xx` response is required for a delivery to succeed. * Nuon waits up to 5 seconds for a response. Endpoints should acknowledge promptly and perform long-running processing asynchronously. * Network errors, timeouts, and non-`2xx` responses are treated as delivery failures. Nuon does not retry these failures or provide delivery history or replay. * A failed webhook does not interrupt the workflow that produced the event or prevent delivery attempts to other webhook subscriptions. * Rare infrastructure interruptions can result in duplicate deliveries when Nuon cannot determine whether an earlier request completed. A duplicate logical event may have a different CloudEvents `id`. Make webhook handlers idempotent. Persist or enqueue the event before returning a `2xx` response, and derive an idempotency key from the relevant workflow, step, resource, and transition fields rather than relying only on the CloudEvents `id`. ## Payload format The body is a CloudEvents v1.0 JSON envelope sent with `Content-Type: application/cloudevents+json; charset=utf-8`. Nuon-specific extension attributes (`nuonorgid`, `nuonkind`, `nuontransition`) are mirrored on the envelope for routing. ### Workflow lifecycle event ```json theme={null} { "specversion": "1.0", "id": "9f6c5b4e-…", "type": "com.nuon.workflow.lifecycle.v1", "source": "//nuon.co/ctl-api", "time": "2026-04-28T12:34:56Z", "subject": "org_…/workflow/inwYY…/started", "datacontenttype": "application/json", "nuonorgid": "org_…", "nuonkind": "workflow", "nuontransition": "started", "interests": [ "resource:installs", "op:installs.provision", "event:lifecycle.started" ], "data": { "kind": "workflow", "transition": "started", "org_id": "org_…", "workflow": { "id": "inwYY…", "type": "provision", "owner_id": "ins_…", "owner_type": "installs" }, "links": { "org": "https://app.nuon.co/org_…", "install": "https://app.nuon.co/org_…/installs/ins_…", "workflow": "https://app.nuon.co/org_…/installs/ins_…/workflows/inwYY…" } } } ``` ### Workflow step lifecycle event ```json theme={null} { "specversion": "1.0", "id": "3487f2f5-…", "type": "com.nuon.workflow_step.lifecycle.v1", "source": "//nuon.co/ctl-api", "time": "2026-04-28T12:35:42Z", "subject": "org_…/workflow_step/inwYY…/iws_…/succeeded", "datacontenttype": "application/json", "nuonorgid": "org_…", "nuonkind": "workflow_step", "nuontransition": "succeeded", "interests": [ "resource:components", "op:components.deploy", "event:lifecycle.succeeded", "outcome:completion" ], "data": { "kind": "workflow_step", "transition": "succeeded", "org_id": "org_…", "workflow": { "id": "inwYY…", "type": "provision", "owner_id": "ins_…", "owner_type": "installs" }, "step": { "id": "iws_…", "name": "deploy api (apply)", "idx": 7, "target_type": "install_deploys", "target_id": "ind_…", "component_id": "cmp_…", "execution_type": "system" }, "outcome": { "status": "succeeded", "duration_ms": 12345 }, "links": { "org": "https://app.nuon.co/org_…", "install": "https://app.nuon.co/org_…/installs/ins_…", "workflow": "https://app.nuon.co/org_…/installs/ins_…/workflows/inwYY…", "component": "https://app.nuon.co/org_…/installs/ins_…/components/cmp_…" } } } ``` ### Nested workflows: `parent` When a workflow is launched from another workflow's step (for example, an action workflow run launched from a deploy step), the child workflow's events include a `data.parent` block: ```json theme={null} "parent": { "workflow_id": "inwParent…", "step_id": "iwsParentStep…", "kind": "workflow_step" } ``` `parent` is omitted for top-level workflows. ## Field reference | Field | Description | | - | - | | `nuonorgid` | Org id this event belongs to. Nuon CloudEvents extension; mirrors `data.org_id`. | | `nuonkind` | `workflow` or `workflow_step`. Mirrors `data.kind`. | | `nuontransition` | `started`, `succeeded`, `failed`, or `cancelled`. Mirrors `data.transition`. | | `interests` | Slug list produced by Nuon's classifier for this event. Always contains a `resource:` and `op:.` slug, plus an `event:<…>` slug identifying the transition (e.g. `event:lifecycle.succeeded`, `event:approval.request`, `event:drift.detected`, `event:component.unhealthy`, `event:component.recovered`, `event:install.degraded`) and zero or more `outcome:<…>` slugs (`outcome:completion` on terminal events, plus `outcome:failures` on failed or cancelled transitions). Consumers can route by slug prefix without re-implementing the classifier. | | `data.kind` | `workflow` or `workflow_step`. | | `data.transition` | `started`, `succeeded`, `failed`, or `cancelled`. | | `data.org_id` | Org id. | | `data.workflow.id` | Workflow id. Stable across all events for the workflow. | | `data.workflow.type` | Workflow kind (`provision`, `reprovision`, `manual_deploy`, `action_workflow_run`, etc.). | | `data.workflow.owner_id` | Id of the entity that owns the workflow (an install, app, or app branch). | | `data.workflow.owner_type` | One of `installs`, `apps`, `app_branches`. | | `data.step.id` | Workflow step id (workflow\_step events only). | | `data.step.name` | Human-readable step name (for example, `"deploy api (apply)"`). | | `data.step.idx` | Step index within the workflow. | | `data.step.target_type` | The kind of resource the step manipulates: `install_deploys`, `install_sandbox_runs`, etc. | | `data.step.target_id` | Id of the manipulated resource. | | `data.step.component_id` | Component id when `target_type == "install_deploys"`. | | `data.step.sandbox_id` | Sandbox id when `target_type == "install_sandbox_runs"`. | | `data.step.execution_type` | `system`, `user`, `approval`, `skipped`, or `hidden`. | | `data.parent` | Present when this workflow was launched from another workflow's step. See above. | | `data.outcome.status` | Mirrors `data.transition` on terminal events. Omitted on `started`. | | `data.outcome.error` | Human-readable error message. Set only on `failed` events. | | `data.outcome.duration_ms` | How long the workflow / step took to run, in milliseconds. | | `data.links` | Dashboard URLs for the org, install, workflow, sandbox, and component (when applicable). | ## Verifying signatures When a webhook is created with `--secret`, Nuon signs the raw request body with HMAC-SHA256 using your secret and sends the lowercase hex digest in the `X-Nuon-Signature` header. Reject any request whose signature does not match. When no secret is configured, no signature header is sent. ## End-to-end example 1. Start your receiver locally and expose it (for example with `ngrok http 8080`). 2. Register the webhook with your Org: ```sh theme={null} nuon orgs webhooks create \ --url https:///webhooks/workflow/lifecycle \ --secret $NUON_WEBHOOK_SECRET ``` 3. Trigger a workflow. The smallest reliable trigger is reprovisioning a Sandbox: ```sh theme={null} nuon installs reprovision-sandbox --skip-components ``` 4. Your receiver should record one `workflow.lifecycle.started`, a sequence of `workflow_step.lifecycle.*` deliveries (one started + one terminal per step), and finally a `workflow.lifecycle.succeeded` (or `failed` / `cancelled`). A `401` response from your receiver, such as when the secrets do not match, is a delivery failure. See [Delivery guarantees and failures](#delivery-guarantees-and-failures). 5. When you are done, remove the webhook: ```sh theme={null} nuon orgs webhooks list nuon orgs webhooks delete --webhook-id ``` # API Source: https://docs.nuon.co/nuon-api Get started using the Nuon API endpoints. You'll need an access token to use the Nuon API. Create an [API token](/concepts/api-tokens) from the Nuon [Dashboard][1] or the Nuon CLI. Tokens are shown only once, so store them somewhere safe. ```sh theme={null} nuon login nuon service-accounts create --name my-service-account --role org_read_only nuon service-accounts tokens create --id --name my-token ``` With the API itself, create a service account with `POST /v1/service-accounts`, then a token for it with `POST /v1/tokens`. For automation and CI/CD, we recommend using [OIDC Federation](/concepts/oidc-federation) to avoid storing long-lived tokens. ## Using the Swagger API Reference You can call the Nuon API endpoints from the API Reference by visiting the [Swagger API Reference](https://api.nuon.co/docs/index.html) ## Using the API You can call the Nuon API endpoints from the API Reference by adding `Bearer ` to the "Authorization" field in each endpoint card. Verify your API token with the [current-user](/api-ref/general/get-current-user) endpoint. [1]: https://app.nuon.co # AWS Source: https://docs.nuon.co/platform-support/aws Deploy and manage BYOC apps on AWS. ## Configuration To install an app template on AWS, configure it to use an AWS sandbox and runner. We provide a minimal sandbox you can use to get started. You will need to set some vars to configure the sandbox. Create inputs for the public and private domains, since those will be different for each install. You will also need to set some IAM roles to grant the runner access to the EKS cluster. ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/aws-eks-karpenter-sandbox" branch = "main" [vars] cluster_version = "1.33" cluster_name = "n-{{.nuon.install.id}}" public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" [[var_file]] contents = "./sandbox.tfvars" ``` ```toml sandbox.tfvars theme={null} maintenance_role_eks_access_entry_policy_associations = { eks_admin = { policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy" access_scope = { type = "cluster" } } eks_view = { policy_arn = "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy" access_scope = { type = "cluster" } } } ``` ```toml runner.toml theme={null} # runner runner_type = "aws" helm_driver = "configmap" ``` ## Installation When you create a new install, Nuon generates the install stack your customer uses to provision the runner and base infrastructure in their AWS account. Two stack formats are produced for every AWS install, and your customer can use whichever fits their tooling: * **CloudFormation** — a generated Cloudformation template, installable via a Quick-Create URL or the AWS CLI. * **Terraform** — generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files for the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) Terraform module, applied with the standard `terraform` CLI. Both formats describe the same set of resources (IAM operation roles, secrets, and trust to the Nuon control plane), so installs end up in the same state regardless of which one your customer runs. ### Create an Install Navigate to the Installs tab in the Nuon dashboard, click "Create Install", and select the app you want to install. This kicks off a provision workflow. Both the CloudFormation stack and the Terraform tfvars are templated with the install ID, region, and other settings. The provision workflow's "await install stack" step exposes both via tabs ("CloudFormation" and "Terraform"), which can be shared with your customer. ### Install the Stack Your customer must log into the AWS account they want to install your app in, and ensure they have the required permissions. #### Option 1: CloudFormation Either: * Open the **Quick-Create URL** in a browser and complete the web flow, or * Run the provided **AWS CLI** `create-stack` snippet ([install the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) first). #### Option 2: Terraform From the Terraform tab in the dashboard: 1. Download the generated `inputs.auto.tfvars` and `secrets.auto.tfvars` files. 2. Create a `backend.tf` to store Terraform state (an S3 snippet is provided in the dashboard). 3. Run `terraform init && terraform apply` against the [`install-stacks/aws`](https://github.com/nuonco/install-stacks) module. Both `.auto.tfvars` files are loaded automatically. Custom resources from CloudFormation nested stacks are not translated automatically. If you extend the install stack with custom Cloudformation resources, fork [`install-stacks`](https://github.com/nuonco/install-stacks) and make the equivalent Terraform changes there. ## Updating If you make changes to the install stack, the install must be reprovisioned. 1. From the install's Overview page, click "Reprovision install" in the "Manage" drop-down. This triggers a reprovision workflow. 2. A new CloudFormation template and Terraform tfvars are generated. 3. Send the updated Quick-Create URL / CLI command, or the new `inputs.auto.tfvars` and `secrets.auto.tfvars` files, to your customer. 4. Customers using Terraform re-run `terraform apply` against the same backend. # Azure Source: https://docs.nuon.co/platform-support/azure Deploy and manage BYOC apps on Microsoft Azure. ## Configuration To install an app template on Azure, configure it to use an Azure sandbox and runner. We provide an AKS sandbox you can use to get started. You will need to set some vars to configure the sandbox. Create inputs for the public and private domains, since those will be different for each install. ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/azure-aks-sandbox" branch = "main" [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" location = "{{.nuon.cloud_account.azure.location}}" vnet_name = "{{.nuon.install_stack.outputs.network_name}}" resource_group_name = "{{.nuon.install_stack.outputs.resource_group_name}}" private_subnet_names = "{{.nuon.install_stack.outputs.private_subnet_names}}" public_subnet_names = "{{.nuon.install_stack.outputs.public_subnet_names}}" ``` ```toml runner.toml theme={null} # runner runner_type = "azure" helm_driver = "configmap" ``` ## Installation Azure does not support a GUI installation flow, so you must use the CLI installation flow. It consists of 3 steps: 1. You will create the install in the dashboard. 2. Your customer will provision the install stack, which includes the install runner, in their Azure account. 3. The install runner will provision your app. Let's walk through each step in detail. ### Create an Install Navigate to the Installs tab in the Nuon dashboard, and click on the "Create Install" button, and select the app you want to install. This will kick off a provision workflow. A new install stack template will be generated along with CLI commands to install it. These commands are templated with the install ID and other settings, and can be shared with your customer to run as-is. ### Install the Stack Your customer must [install the Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) and log in. ```sh theme={null} az login ``` They will be prompted to select a subscription. They should select the subscription they want to manage the install under. Now they can run the command to create the resource group that the install will be provisioned in. ```sh theme={null} az group create --name {{install_id}}-rg --location eastus ``` > [!NOTE] > > We limit the install runner's permissions to this resource group, with the exception of service provider registration. > Providers must be registered at the subscription level before their services can be used. We grant the runner this > lone permission at the subscription level to facilitate provisioning in a new subscription. Once the resource group has been created, they can provision the stack. ```sh theme={null} az stack group create --name {{install_id}}-stack --resource-group {{install_id}}-rg --template-uri https://nuon-install-templates.s3.us-east-1.amazonaws.com/templates/{{install_id}}/{{install_stack_version_id}}.json --deny-settings-mode "denyDelete" --aou deleteAll ``` Each install stack version gets its own template, so the `--template-uri` changes whenever a new stack version is generated. The dashboard renders this command with the current template URL filled in. ### Deploy to Azure Quick Link Subscription-scoped installs also get a Deploy to Azure quick link. It deploys the same template through a deployment stack named `{{install_id}}-stack`, so it converges with the CLI path rather than creating a second stack. Find it under **Subscription › Deployment stacks**; it is not listed with the install's resource group. The form shows a checkbox per role. A role unticked on a later deploy is removed: its identity, role definition and assignments are deleted, and Nuon marks it not provisioned. > [!WARNING] > > To delete an install, delete the stack and choose **Delete resources** (or run > `az stack sub delete --name {{install_id}}-stack --action-on-unmanage deleteAll`). The portal's default detaches > the resources instead, leaving them orphaned in the subscription. ### Customer Inputs Every app input declared with `source = "customer"` is a parameter on the install stack template, named `input` — `db_name` becomes `inputDbName`. The Deploy to Azure quick link renders one form field per input, and on the CLI they are `--parameters` arguments: ```sh theme={null} az stack group create ... --parameters inputDbName="orders" inputApiKey="" ``` The values the stack deploys with are reported back and become the install's inputs, so they show up on the install's Inputs page and are available to components as `{{ .nuon.inputs.inputs. }}`. Each parameter defaults to the value the install already has, falling back to the input's declared default. An input that has neither and is marked required has no default at all, so Azure refuses the deploy until a value is supplied rather than writing a blank one. Omitting a parameter keeps the install's current value. > [!NOTE] > > Customer inputs are ordinary template parameters, so their values are visible in the deployment history of the > customer's own subscription. Anything that needs to stay secret belongs in the app's `secrets` config, which is > written to Key Vault instead. ## Updating If you make changes to the install stack template, and need to update an install, your customer must re-provision the stack. 1. From the install's Overview page, click on "Reprovision install" in the "Manage" drop-down menu. This will trigger a reprovision workflow, and an updated CLI command will be provided. 2. Send the command to your customer for them to run. Note that the provided CLI command is the same `az stack group create` command you used to create the install. Even though the command is `create` it is effectively an upsert, and will update the stack if it already exists. # Google Cloud Source: https://docs.nuon.co/platform-support/gcp Deploy and manage BYOC apps on Google Cloud. ## Configuration To install an app template on GCP, configure it to use a GCP sandbox and runner. We provide a [GKE sandbox](https://github.com/nuonco/gcp-gke-sandbox) you can use to get started, which provisions a GKE cluster and the IAM bindings the runner needs. Create inputs for the public and private domains, since those will be different for each install. ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.11.3" [public_repo] directory = "." repo = "nuonco/gcp-gke-sandbox" branch = "main" [vars] cluster_name = "n-{{.nuon.install.id}}" public_root_domain = "{{ .nuon.inputs.inputs.domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.domain }}" [[var_file]] contents = "./sandbox.tfvars" ``` ```toml sandbox.tfvars theme={null} additional_namespaces = ["whoami"] ``` ```toml runner.toml theme={null} # runner runner_type = "gcp" helm_driver = "configmap" ``` ## Installation When you create an install, Nuon generates a Terraform install stack. Your customer applies it in their GCP project to create the runner and base infrastructure. They can run Terraform themselves or through Google Cloud's [Infrastructure Manager](https://cloud.google.com/infrastructure-manager/docs). ### Create an Install In the Nuon dashboard, open the Installs tab, click **Create Install**, and select the app you want to install. This starts a provision workflow. Its **Await install stack** step shows how to apply the stack, with the **TF Module** tab selected by default. ### Install the Stack The recommended path is the published [`nuonco/stack/gcp`](https://registry.terraform.io/modules/nuonco/stack/gcp) module. Your customer adds the snippet from the **TF Module** tab to their own Terraform project, sets their Nuon credentials and secret values as environment variables, and runs: ```bash theme={null} terraform init && terraform apply ``` On the first apply, the snippet passes `project_id` and `region` to the module, because the control plane hasn't recorded the install's project yet. Your customer can drop them once the install is provisioned. See [Provision Stacks with a Terraform Module](/guides/provision-stacks-with-terraform-module) for every step, including credentials and secrets. > [!NOTE] > > The **Terraform** tab still offers the legacy flow: clone `install-stacks/gcp` and apply generated > `inputs.auto.tfvars` and `secrets.auto.tfvars` files. See > [Provision Stacks with Terraform](/guides/provision-stacks-with-terraform). ## Try it with a sample app We maintain [`gke-simple`](https://github.com/nuonco/example-app-configs/tree/main/gke-simple), a sample app that uses the GKE sandbox to deploy a `whoami` workload with a certificate and load balancer. To try it: * Install the [CLI](../cli) * Clone the [example apps repo](https://github.com/nuonco/example-app-configs) * `cd` into the `gke-simple` directory * Run `nuon auth login` * Run `nuon apps create -n gke-simple` * Add `branches/main.toml` with a `[public_repo]` block pointing at `nuonco/example-app-configs`, directory `gke-simple`, branch `main` (see [Configure app branches](/guides/app-branches)) * Run `nuon branches sync --file branches/main.toml`, which creates the branch and starts its first run * Open the Nuon dashboard and create an install ## Updating If you make changes to the install stack template, the install must be reprovisioned to update the stack. 1. From the install's Overview page, click on "Reprovision install" in the "Manage" drop-down menu. This will trigger a reprovision workflow. 2. A new stack version is generated. 3. Your customer runs `terraform apply` again. With the module, the new version is picked up on the next plan. With the legacy flow, send them the updated `inputs.auto.tfvars` and `secrets.auto.tfvars` files first. See [Updating the stack](/guides/provision-stacks-with-terraform-module#updating-the-stack) for input, secret, and role changes. # Introduction Source: https://docs.nuon.co/platform-support/introduction Overview of supported cloud platforms — AWS, Azure, and Google Cloud — and what's available on each. The first and most obvious challenge of BYOC is supporting all the cloud platforms you want to deploy to. Leveraging our runner architecture, Nuon is able to provide first-class support for the major cloud platforms, while maintaining a constistent experience for day-2 operations. ## Stacks To install the Nuon runner into your customer's cloud account, Nuon generates a Stack template in both Terraform and the platform's native IaC language. Each version of the Stack will create the same resources, so you can pick whichever one suits you and your customers the best. The Stack is meant to be provisioned by your customer in their cloud account, phoning home to the Nuon control plane after it has provisioned. This means no cross-account access is required to provision it — your customer stays in full control of the runner identity and the resources it manages. Nuon will generate links and CLI commands you can share with your customer to install the Stack. You can also download the template if your customer would like to inspect it. If the platform offers a simple, one-click installation method, such as AWS Cloudformation Quickcreate, will support that. > [!NOTE] > > Google Cloud's IaC solution, Infrastructure Manager, uses Terraform natively, so we do not generate a separate template for Google installs. | | AWS | Azure | Google Cloud | | - | - | - | - | | **Terraform** | | | | | **Native IaC** | [Cloudformation](https://aws.amazon.com/cloudformation/) | [Bicep](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/) | N/A | | **GUI Installation** | | | | | **CLI Installation** | | | | | **Download Template** | | | | You can find more information about Stacks on the [Stacks Concept page](/concepts/stacks). ## Access Control Each cloud platform has it's own conventions, best practices, and tools to manage access control. At the same time, BYOC requires an approach that can be consistently applied across all of them. How does Nuon balance these competing concerns? ### Nuon Runner Identity-Based Authentication The Nuon runner is designed to be platform-independent and stateless. When deployed, it is given an identity by the Stack, which is granted limited access to the cloud environment based on your application config. The runner does not store platform credentials. It will attempt to authenticate for each job it runs, using whatever identity has been assigned to it. Since your customer installs the Stack, they have full control over it, and can revoke the runner identity's access at any time using their cloud's native access control. The runner will immediately lose access to the cloud environment if they do this. ### Platform-Native Permissions The access the runner identity has is controlled by each platform's native access control features. See the page for each platform for implementation and configuration details. | | AWS | Azure | Google Cloud | | - | - | - | - | | **Custom Roles and Permissions** | | | | | **Kyverno Policies on Runner Jobs** | | | | | **Kyverno Policies in Kubernetes Cluster** | | | | # Go SDK Source: https://docs.nuon.co/sdks Use the Nuon Go SDK to integrate with organizations, app templates, installs, components, workflows, and other Nuon resources. # Use the Nuon API from Go The Nuon Go SDK provides typed access to the Nuon control-plane API. Use it to work with organizations, app templates, installs, components, workflows, action workflows, runbooks, and other Nuon resources from a Go program. > **Package to use:** `github.com/nuonco/nuon/sdks/nuon-go` > > The former standalone package at `github.com/nuonco/nuon-go` is deprecated. New integrations should use the SDK in the main Nuon repository. ## Requirements * Go 1.24.4 or later * A Nuon API token * The ID of the Nuon organization the request should access The examples use these environment variables: | Variable | Required | Description | | - | - | - | | `NUON_API_TOKEN` | Yes | Bearer token used to authenticate API requests. | | `NUON_ORG_ID` | Yes for organization-scoped operations | Nuon organization ID sent with each request. | | `NUON_API_URL` | No for Nuon Cloud; **required in practice for BYOC** | API base URL. The examples default to `https://api.nuon.co`, but BYOC clients must target their deployed control plane. | | `NUON_INSTALL_ID` | Yes for the example lookup | ID of the install to retrieve. | The SDK does not read environment variables itself. Your program must read them and pass their values to the client constructor. ## Match the SDK to the deployed control plane Version selection is part of correctness for BYOC integrations. The SDK's methods, request types, response types, enum values, and validation are generated from a particular snapshot of the Nuon control-plane OpenAPI document. A BYOC control plane may run a different Nuon release from Nuon Cloud, especially during a rollout. Do **not** assume that the latest SDK is compatible with every deployed control plane. Nuon does not currently publish a broad SDK/API compatibility matrix, and the SDK does not perform a runtime compatibility handshake. Before selecting or upgrading the SDK: 1. Query the control plane the integration will actually call: ```sh theme={null} curl -fsS "${NUON_API_URL%/}/version" ``` A response includes the deployed `version`, source `git_ref`, and `recommended_cli_version`. For example, Nuon Cloud at `https://api.nuon.co` returned the following on August 10, 2026: ```json theme={null} { "git_ref": "0.19.1113", "recommended_cli_version": "0.19.1102", "version": "0.19.1113" } ``` This example is a point-in-time response, not a version recommendation. Query the target control plane before selecting or upgrading its SDK. 2. Pin the SDK version or source revision verified for that control-plane release. Do not infer compatibility from version-number similarity: control-plane and SDK module versions are separate release streams. 3. Test the exact SDK and control-plane pairing in a non-production environment. Exercise every endpoint and model shape the integration uses, including pagination and writes. 4. Record the verified pairing in the integration's release metadata or dependency-update notes. For example, pin a published SDK module release rather than asking Go for `latest`: ```sh theme={null} go get github.com/nuonco/nuon/sdks/nuon-go@ ``` If Nuon identifies a source revision rather than a published SDK module version, Go can pin the module from that revision and record a pseudo-version in `go.mod`: ```sh theme={null} go get github.com/nuonco/nuon/sdks/nuon-go@ ``` Commit both `go.mod` and `go.sum`. Avoid an unreviewed `go get ...@latest` in automated dependency updates. ### Plan control-plane and client upgrades together Treat a control-plane upgrade and an SDK upgrade as one compatibility change, even when they are deployed separately: 1. Inventory the SDK methods and generated model fields the integration uses. 2. Validate the existing client against the candidate control plane. 3. Validate the candidate SDK against the candidate control plane. 4. If the candidate control plane remains compatible with the existing client, upgrade the control plane first, then the client. This avoids deploying a client that calls endpoints an older control plane does not have. 5. If either side contains a breaking API change, coordinate the rollout and get an explicit supported upgrade path from Nuon rather than relying on deployment order alone. 6. Keep rollback artifacts for both the client and control plane until production verification is complete. `recommended_cli_version` applies to the Nuon CLI; it is useful release context but is **not** an SDK compatibility declaration. Likewise, API responses include `X-Nuon-API-Version`, but the Go SDK does not currently read or enforce that header. These values are useful for diagnostics and deployment checks, not proof of compatibility. ## Install the SDK ```sh theme={null} go get github.com/nuonco/nuon/sdks/nuon-go@ ``` Import the client and, when needed, its generated model types: ```go theme={null} import ( nuon "github.com/nuonco/nuon/sdks/nuon-go" "github.com/nuonco/nuon/sdks/nuon-go/models" ) ``` ## Create a client Create one client and reuse it. `WithURL` is required. In most integrations, validate the token and organization ID before constructing the client so configuration errors fail early. ```go theme={null} package main import ( "context" "fmt" "os" "strings" "time" nuon "github.com/nuonco/nuon/sdks/nuon-go" ) func main() { apiURL := strings.TrimSpace(os.Getenv("NUON_API_URL")) if apiURL == "" { apiURL = "https://api.nuon.co" } token := strings.TrimSpace(os.Getenv("NUON_API_TOKEN")) if token == "" { panic("NUON_API_TOKEN is required") } orgID := strings.TrimSpace(os.Getenv("NUON_ORG_ID")) if orgID == "" { panic("NUON_ORG_ID is required") } installID := strings.TrimSpace(os.Getenv("NUON_INSTALL_ID")) if installID == "" { panic("NUON_INSTALL_ID is required") } client, err := nuon.New( nuon.WithURL(apiURL), nuon.WithAuthToken(token), nuon.WithOrgID(orgID), ) if err != nil { panic(fmt.Errorf("create Nuon API client: %w", err)) } ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() install, err := client.GetInstall(ctx, installID) if err != nil { panic(fmt.Errorf("get install: %w", err)) } fmt.Printf("%s: %s\n", install.ID, install.Name) } ``` The Cloud default is an application choice in this example, not an SDK default. `nuon.New` requires `WithURL`; it does not automatically select Nuon Cloud or discover a BYOC control plane. For software that must never fall back from BYOC to Nuon Cloud, require `NUON_API_URL` instead of applying the default: ```go theme={null} apiURL := strings.TrimSpace(os.Getenv("NUON_API_URL")) if apiURL == "" { panic("NUON_API_URL is required") } ``` The client sends the following headers automatically: ```http theme={null} Authorization: Bearer X-Nuon-Org-ID: ``` Do not log tokens, include them in error messages, or commit them to source control. ### Switch organizations Organization-scoped methods use the client's current organization ID. If an application intentionally operates across organizations, update it before the next request: ```go theme={null} client.SetOrgID(orgID) ``` Avoid changing the organization concurrently on a client shared by multiple goroutines. Prefer one client per organization in concurrent multi-organization applications. ## Call the API The SDK exposes a `nuon.Client` interface with resource-oriented methods. Most methods accept a `context.Context`, identifiers, and an optional generated request or query model. ### Get one resource ```go theme={null} install, err := client.GetInstall(ctx, installID) if err != nil { return fmt.Errorf("get install %q: %w", installID, err) } ``` Other common lookups follow the same pattern: ```go theme={null} app, err := client.GetApp(ctx, appID) component, err := client.GetInstallComponent(ctx, installID, componentID) workflow, err := client.GetWorkflow(ctx, workflowID) stack, err := client.GetInstallStack(ctx, installID) ``` ### Create or update a resource Request and response types live in the `models` package: ```go theme={null} req := &models.ServiceUpdateInstallRequest{ Name: "production-us-east-1", } install, err := client.UpdateInstall(ctx, installID, req) if err != nil { return fmt.Errorf("update install %q: %w", installID, err) } ``` The model types are generated from Nuon's OpenAPI definition. Consult the [SDK models](https://github.com/nuonco/nuon/tree/main/sdks/nuon-go/models) for the fields accepted by a particular request. ### Work with nested data Some resources support recursive responses. For example, requesting an app configuration with `recurse` enabled includes its related configuration data: ```go theme={null} recurse := true config, err := client.GetAppConfig(ctx, appID, appConfigID, &recurse) if err != nil { return fmt.Errorf("get app config %q: %w", appConfigID, err) } ``` ## Paginate every list operation Paginated methods return three values: ```go theme={null} (items, hasMore, error) ``` Passing `nil` as the query uses the server default, which is currently 10 results. If the integration needs the complete collection, continue until `hasMore` is false. ```go theme={null} func allInstallComponents( ctx context.Context, client nuon.Client, installID string, ) ([]*models.AppInstallComponent, error) { const pageSize = 100 var all []*models.AppInstallComponent for offset := 0; ; offset += pageSize { page, hasMore, err := client.GetInstallComponents( ctx, installID, &models.GetPaginatedQuery{ Offset: offset, Limit: pageSize, }, ) if err != nil { return nil, fmt.Errorf( "list install components at offset %d: %w", offset, err, ) } all = append(all, page...) if !hasMore { return all, nil } } } ``` The same pattern applies to methods such as `GetApps`, `GetAllInstalls`, `GetAppInstalls`, `GetAppComponents`, `GetWorkflows`, and `GetInstallDeploys`. The maximum page size is 100. Do not increment the offset by the number of returned records; increment it by the requested page size, as shown above. ## Handle errors Always preserve the SDK error with `%w` when adding operation-specific context: ```go theme={null} install, err := client.GetInstall(ctx, installID) if err != nil { return fmt.Errorf("get install %q: %w", installID, err) } ``` The SDK includes helpers for common HTTP error classes: * `nuon.IsBadRequest(err)` — HTTP 400 * `nuon.IsUnauthorized(err)` — HTTP 401 * `nuon.IsForbidden(err)` — HTTP 403 * `nuon.IsNotFound(err)` — HTTP 404 * `nuon.IsServerError(err)` — HTTP 5xx * `nuon.ToAPIError(err)` — extracts a readable API error message * `nuon.ToUserError(err)` — extracts an API response explicitly marked as a user error Classify an error before wrapping it. The status helpers currently inspect the direct SDK error, while `ToAPIError` and `ToUserError` walk wrapped error chains. ```go theme={null} install, err := client.GetInstall(ctx, installID) if err != nil { switch { case nuon.IsUnauthorized(err): return fmt.Errorf("Nuon API token was rejected: %w", err) case nuon.IsForbidden(err): return fmt.Errorf("token cannot access organization %q: %w", orgID, err) case nuon.IsNotFound(err): return fmt.Errorf("install %q does not exist: %w", installID, err) case nuon.IsServerError(err): return fmt.Errorf("Nuon API server error: %w", err) default: return fmt.Errorf("get install %q: %w", installID, err) } } ``` Respect context cancellation and timeouts separately when callers need to distinguish them: ```go theme={null} if err != nil { if errors.Is(err, context.DeadlineExceeded) { return fmt.Errorf("Nuon API request timed out: %w", err) } return fmt.Errorf("get install %q: %w", installID, err) } ``` ## Common API areas The public client covers these major resource groups: | Area | Representative methods | | - | - | | Authentication and organizations | `ValidateToken`, `GetAuthMe`, `GetOrg`, `GetOrgs`, `SetOrgID` | | Apps and app configuration | `GetApps`, `GetApp`, `CreateApp`, `GetAppConfig`, `GetAppLatestConfig`, `BuildAppConfig` | | Components and builds | `GetAppComponents`, `GetComponent`, `GetComponentBuilds`, `GetComponentLatestBuild` | | Installs | `GetAllInstalls`, `GetInstall`, `CreateInstall`, `UpdateInstall`, `ReprovisionInstall`, `DeprovisionInstall` | | Install components and deploys | `GetInstallComponents`, `GetInstallDeploys`, `DeployInstallComponents`, `GetInstallComponentOutputs` | | Inputs and secrets | `GetInstallInputs`, `UpdateInstallInputs`, `GetAppSecrets`, `CreateAppSecret` | | Workflows | `GetWorkflows`, `GetWorkflow`, `GetWorkflowSteps`, `CancelWorkflow`, `RetryWorkflowStep` | | Actions and runbooks | `GetActionWorkflows`, `CreateInstallActionWorkflowRun`, `GetInstallRunbooks`, `CreateInstallRunbookRun` | | Runners and logs | `GetInstallRunnerGroup`, `GetRunnerJobs`, `GetLogStream`, `LogStreamTailLogs` | | VCS and service accounts | `GetVCSConnections`, `CreateVCSConnection`, `ListServiceAccounts`, `CreateServiceAccountToken` | See the current [`Client` interface](https://github.com/nuonco/nuon/blob/main/sdks/nuon-go/client.go) for the complete method list and signatures. ## Structure integrations for testing `nuon.Client` intentionally exposes the whole SDK, which is often more than one package needs. Define a small local interface containing only the methods your code calls. Production code can receive the real SDK client, and tests can provide a focused fake. ```go theme={null} type installReader interface { GetInstall(context.Context, string) (*models.AppInstall, error) GetInstallComponents( context.Context, string, *models.GetPaginatedQuery, ...nuon.GetInstallComponentsOpts, ) ([]*models.AppInstallComponent, bool, error) } type Service struct { api installReader } func NewService(api installReader) *Service { return &Service{api: api} } ``` This keeps test doubles small and prevents application code from depending on generated transport internals. ## Recommended integration practices 1. Use the in-tree SDK path, not the deprecated standalone module. 2. Identify the deployed control-plane `version` and `git_ref`, then pin a verified SDK version for that environment. 3. Require the correct `NUON_API_URL` for BYOC integrations; do not silently send their traffic to Nuon Cloud. 4. Validate `NUON_API_TOKEN` and `NUON_ORG_ID` in your configuration layer. 5. Reuse a client rather than constructing one for every request. 6. Give network operations a caller-controlled context and timeout. 7. Paginate list calls explicitly when completeness matters. 8. Wrap errors with `%w`, but run the SDK's HTTP status helpers before wrapping. 9. Program against the handwritten `nuon.Client` facade, not generated `client/operations` transport types. 10. Treat generated `models` as versioned API contracts and test them when either the SDK or control plane changes. 11. Commit the pinned dependency in `go.mod` and `go.sum`; avoid unattended `@latest` upgrades. 12. Never expose API tokens in logs, command output, or error messages. ## Working examples Two Nuon extensions demonstrate current SDK usage: * [`nuon-ext-terraform`](https://github.com/nuonco/nuon-ext-terraform) shows client construction, install and app-config lookups, generated model inspection, and complete pagination. * [`nuon-ext-cf-stack`](https://github.com/nuonco/nuon-ext-cf-stack) shows client construction and retrieving an install and its stack before operating on AWS resources. ## Reference * [Nuon Go SDK source](https://github.com/nuonco/nuon/tree/main/sdks/nuon-go) * [Complete client interface](https://github.com/nuonco/nuon/blob/main/sdks/nuon-go/client.go) * [Generated models](https://github.com/nuonco/nuon/tree/main/sdks/nuon-go/models) * [SDK generation from the control-plane OpenAPI document](https://github.com/nuonco/nuon/blob/main/sdks/nuon-go/generate.sh) * [Control-plane version response](https://github.com/nuonco/nuon/blob/main/services/ctl-api/internal/health/version.go) * [Nuon API OpenAPI document](https://api.nuon.co/docs/doc.json) * [OpenAPI v2 specification](https://api.nuon.co/oapi/v2) * [OpenAPI v3 specification](https://api.nuon.co/oapi/v3) * [Nuon documentation](https://docs.nuon.co) # Security Source: https://docs.nuon.co/security How Nuon keeps customer cloud accounts secure throughout the BYOC deployment lifecycle. Nuon is designed so that vendors can deploy and manage software in customer cloud accounts without ever having direct access to those accounts. ## No Cross-Account Access The Nuon [Control Plane](/architecture/platform) never has credentials or network access to customer cloud accounts. [Runners](/concepts/runners) are deployed inside the customer's environment and communicate outbound only, polling the Control Plane for jobs. The Control Plane cannot push commands or open connections into customer accounts. ## Customer-Deployed Infrastructure All infrastructure in a customer's account is created by the customer themselves. When a vendor creates an [install](/concepts/installs), Nuon generates a [Stack](/concepts/stacks) template — both a Terraform version and the platform's native IaC version (CloudFormation on AWS, Azure Resource Manager (Bicep) on Azure; on GCP, only Terraform is generated since Infrastructure Manager is Terraform-native). The customer reviews and deploys whichever format fits their tooling, using their own credentials, retaining full ownership and visibility of every resource created. ## Least-Privilege IAM Roles Runners use separate IAM roles for different operations (provisioning, maintenance, deprovisioning), each scoped to the minimum permissions required. Components and actions define their own roles and policies, so the Runner never holds more access than a single job needs. See [Permissions](/config-ref/permissions) for configuration details. ## Control-Plane Access Control Access within your Nuon org is governed by roles. Every identity — a team member, service account, API token, or OIDC trust policy — is assigned a single role that determines what it can read and change, and roles are scoped to a single org. See [Access control](/concepts/access-control) for the full model. ## Customer Kill Switch The customer controls the Runner through the Stack. They can disable the Runner at any time to stop it from executing jobs, and re-enable it when ready. No action from the vendor or Nuon is required. ## Break Glass Access Vendors can define break glass roles for when they need more access to service an install, such as during an incident. Each role is off by default and doesn't exist in the customer's account until they turn it on with a Stack update. They can turn it off at any time. See [Break Glass](/concepts/break-glass). ## Secrets Stay in the Customer's Cloud [Secrets](/concepts/app-secrets) are entered by the customer when deploying the Stack and stored in their cloud's secret manager: AWS Secrets Manager, Azure Key Vault, or GCP Secret Manager. Neither Nuon nor the vendor ever sees secret values. ## Log Visibility Nuon only stores logs of infrastructure operations (e.g., creating a Kubernetes cluster, deploying a Helm chart, running Terraform). Application logs are never sent to the Control Plane. [Actions](/concepts/actions) can execute operational scripts, but the IAM roles they use are defined by the vendor and approved by the customer through the Stack. Customers running installs on AWS, Azure, or GCP can optionally [export detailed runner audit logs](/guides/export-runner-audit-logs) directly from their cloud account to an OTLP-compatible logging backend they control. Only Nuon audit events are forwarded. Application logs and general runner logs are excluded, and the destination and credentials remain in the customer's cloud secret manager. ## Build Isolation Builds run in the [Control Plane](/architecture/platform#builds) and never touch your install infrastructure. Build artifacts are stored as OCI images in the customer's cloud registry. ## Policies Vendors can enforce compliance and security standards across builds and deploys using [OPA](https://www.openpolicyagent.org/) and [Kyverno](https://kyverno.io/) policies. Policies can validate Terraform plans, Helm charts, Kubernetes manifests, container images, and sandbox infrastructure, blocking or warning on violations. See [Policies](/concepts/policies) for details. ## Deployment Options **Nuon Cloud** is the SaaS offering. App template and install metadata is stored in an encrypted PostgreSQL database, accessed over TLS. **Nuon BYOC** deploys the Nuon Control Plane into the vendor's own AWS or GCP account. Install metadata and logs stay in the vendor's cloud, and the vendor can restrict Runner access to the Control Plane outside of maintenance windows. For vendors with stricter requirements, Nuon also supports fully self-hosted deployments using Helm charts. # Support Source: https://docs.nuon.co/support/support Get help with the Nuon platform. The best way to get help with the Nuon platform is via our community Slack. ## Support Channels > [card] [Slack](https://join.slack.com/t/nuoncommunity/shared_invite/zt-1q323vw9z-C8ztRP~HfWjZx6AXi50VRA) > > Nuon community Slack support. > [card] [Contact Form](https://nuon.co/contact-sales) > > Submit a contact request via our web form. # TUI Source: https://docs.nuon.co/tui Run entire workflows and trigger install actions via our TUIs ## Workflow TUI Our workflow terminal user interface (TUI) lets users manage and follow the steps of an install in real time. Review plan diffs, approve steps, retry failed actions, and cancel workflows when needed. We designed this TUI to make working in our CLI faster and easier. ![Workflow TUI](https://mintcdn.com/nuoninc/_Vs2WNdcWVbLbMqS/images/resources/tui/workflow-tui.jpeg?fit=max\&auto=format\&n=_Vs2WNdcWVbLbMqS\&q=85\&s=61f40c8e3f4b97d4590e1a43e3c39e74) ## Quickstart Select your install ```bash theme={null} nuon installs select ``` Open the TUI ```bash theme={null} nuon installs workflows ``` ## Actions TUI The action terminal user interface (TUI) lets users trigger and view action runs in any app template with actions configured. ![Actions TUI](https://mintcdn.com/nuoninc/_Vs2WNdcWVbLbMqS/images/resources/tui/actions-tui.jpeg?fit=max\&auto=format\&n=_Vs2WNdcWVbLbMqS\&q=85\&s=eb4fcbc57143aaf329b8accb4dbaa99d) ## Quickstart Select your install ```bash theme={null} nuon installs select ``` Open the TUI ```bash theme={null} NUON_PREVIEW=true nuon installs actions ``` > [!NOTE] > > The action TUI is currently still experimental and in preview mode. # 001 - Install Workflow Updates Source: https://docs.nuon.co/updates/001-install-workflows-actions Updates to install workflows, bug fixes and actions improvements. *May 5th, 2025* v0.19.539 > This update introduces significant improvements to install workflows, including detailed step information, workflow cancellation, enhanced action outputs, and Terraform workspaces management. ## Workflows UI The UI view of each step now includes details on the step itself. For instance, you can see details when generating a step. ![Detailed view of a workflow step showing execution details and logs](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/001_workflow_step.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=73d6e0508e600ab1e558085431bd8f10) > [!NOTE] > > Workflows are now supported by actions and deploys ## Workflow Cancellation You can now cancel a workflow by clicking the "Cancel" button at the bottom of any running workflow. ![UI showing the cancel button at the bottom of a running workflow](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-05-17-09-48.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=e751fa2e13cddbca754fc003071ecdf5) > [!NOTE] > > This cancellation will make a best effort to cancel the current running step, including cancelling any running jobs on the runner. ## Improvements to Action Outputs Previously, action outputs combined the outputs from all steps into a single dictionary. Now, you can access all outputs by step as well. ![Interface showing how action outputs are organized by step name](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/001-actions-outputs.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=f4447aa9d2e8c15c2d84d5efe184b31d) > [!NOTE] > > Renaming an action step can potentially break references to actions. We plan to add an ID field for output references soon. ## Kube Config + Credentials We now automatically inject a valid kube config into the environment for each action. You can reference the `KUBECONFIG` env var to find a configuration file for the install sandbox the runner has access to. > [!NOTE] > > Currently, all actions use the maintenance role defined in your app. ## Terraform Workspaces All sandboxes and terraform components use the Nuon API as their state backend. You can now see resources that are managed via the UI: ![Terraform workspace UI showing managed resources for a component](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-05-16-53-39.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=2083bd943abc5f84c261c6376b48f83d) For manual state imports or bringing existing apps into Nuon, you can now generate a `backend` configuration for working with the state of an install sandbox or component directly. ![Button to generate a Terraform backend configuration file](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-05-16-51-16.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=553e6b7c2cef8976d1c78c7d051e55a5) > [!NOTE] > > If you get a deploy error saying you have two backends configured, please remove your customer backend configuration as the runner environment will automatically configure it > [!NOTE] > > This is controlled with a feature flag and we will be working with users to enable this one-by-one. ## Bug Fixes and Internals * Fixed an issue where the runner could run out of space. * Fixed an issue where reprovisioning an install could fail if the stack was unable to be templated during initial setup. * Fixed a bug where all components would rebuild if the previous sync failed. ## Coming Soon We are working on approvals, a way to preview and accept or deny changes to an install before they are executed. # 002 - Install Inputs, dependencies, and more Source: https://docs.nuon.co/updates/002-inputs-dependencies Install Inputs, dependencies and more *May 6th, 2025* v0.19.540 > This update adds support for input types, internal inputs, auto-configured dependencies, and improvements to Terraform component workflows with KUBECONFIG integration and workspace management. ## Input Types You can now define an input type, which denotes which type of input is accepted. This is used to control rendering across different install inputs and will allow us to build more semantic meaning into inputs. You can define a `type` field on an input in your config. The following types are supported: * `string` * `bool` * `number` * `json` * `list` Input types are currently only settable as metadata, but will be rolled out to all different surfaces of install management soon. > [!NOTE] > > This change is backwards compatible and all current inputs will default to `string` as their `type`. ## Internal Inputs Internal inputs are inputs that are only settable via the Nuon dashboard. This allows you to define inputs that a customer cannot control directly or set internal values. You can use `internal: true` to mark an input as internal. > [!NOTE] > > This change is backwards compatible and all current inputs will default to `internal: false`. ## Dependencies Dependencies are now auto-configured based on the variables that you define. For example, the following config would mark `container_image` as a dependency. ```toml theme={null} [values] "image.repo" = "{{.nuon.components.container_image.outputs.repo_url}}" "image.tag" = "{{.nuon.components.container_image.outputs.tag}}" ``` If you would like to manually declare a dependency, you can define it in a component config using: ```toml theme={null} # define a dependency directly, if you do not use any outputs from it. dependencies = ["container_image"] ``` ## Terraform Component `KUBECONFIG` Each terraform component run will now have a `KUBECONFIG` env-var with the path to the kubeconfig for the run. You can use the `kubectl` provider without any additional configuration, as the file and env var are exposed using defaults: ```hcl theme={null} provider "kubectl" {} resource "kubectl_manifest" "example" { yaml_body = < This update focuses on improvements to install management, including component dependency ordering, UI enhancements, and comprehensive options for deprovisioning installs, components, sandboxes, and stacks. ## Component Dependencies Sub-Ordering When multiple components have either the same dependencies or no dependencies, they will automatically be ordered by component type. They will use this ordering: 1. `container_image` 2. `terraform_module` 3. `helm_deploy` ![UI showing component ordering based on type and dependencies](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-48-54.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=78fda748c2907d314990b7e9c0a7b60e) If two components have the same dependencies *and* the same type, they will be ordered by name. For instance, in the following deploy, only the helm deploy has any defined dependencies. ## Auto Hide Nav The side-nav bar will now automatically hide when not being used. ![Collapsible side navigation bar](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-16-02-30.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=e4d3d73db472c237d93ca644c4493261) ## Restart Runner While you should not need this for normal usage, you can now restart your runner from the runners page. ![Button to restart a runner from the runners page](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-16-44-36.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=e6af29215d1b6048c6a3b3ec64e34b4b) ## OCI Artifact Information Whenever a component is deployed into an install, an OCI artifact is synced into the install first. You can now see any container image, helm chart artifact or terraform artifact that was synced during a deploy on the image tab. ![UI showing OCI artifacts synced during component deployment](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-16-52-47.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=e71de33c7584b5ce33edce869e8dc25b) ## Deprovision an Install Deleting an install requires tearing down its deployed components, destroying the sandbox, and destroying the CloudFormation Stack via AWS. You can now delete an install from the install overview page in the UI: ![Deprovision Install button on the install overview page](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-58-31.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=6a872475fc23dc1709ee6f49d1c75288) If you have components that are not successfully deploying and you want to attempt to tear down everything in the install, you can use the `continue` option: ![Continue option when deprovisioning with failing components](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-57-57.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=f5fb0c2c8df6187b8efb19e2f86251e4) ## Forgot an Install Once you have deprovisioned an install, you must forget it to remove it from Nuon's system. You can do this from the install overview page: ![Forget Install button to remove a deprovisioned install](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-16-01-21.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=7dbda932b6108de9e84390324abd780d) ## Additional Delete Options In the happy path, an install should be able to be deleted with just a single run of `Deprovision Install`. However, when things go wrong or you are iterating, you can delete individual parts of an install directly. ### Delete an Install Component Sometimes an install will fail to destroy because a single component has leaked state. You can manually tear down a component on the install component page. ![Teardown Component button on the install component page](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-55-12.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=d7430efc35e05ba06685252446da90b2) > [!NOTE] > > If you have a failed install deprovision due to a component, you can directly tear down the component and then re-run Deprovision Install to try again ### Teardown Install Components You can delete all install components using the Teardown All Components option from the components overview. ![Teardown All Components option on the components overview page](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-56-47.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=9fcede981a568c932aae2436a88d98bc) ### Deprovision a Sandbox In rare cases, it can be helpful to forgo tearing down install components and deprovision only the sandbox. You can deprovision a sandbox directly from the sandbox tab on an install. ![Deprovision Sandbox button on the sandbox tab](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-53-35.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=42ad35b0febd37b133ad29f5d0cf6d75) > [!NOTE] > > It is recommended to try the `Deprovision Install` button first ### Deprovision Install Stack The install stack can only be deleted from an install AWS account directly. If you click the deprovision stack button from the install overview, you can find directions to deprovision it. ![Deprovision Stack dialog with AWS CloudFormation instructions](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/003/2025-05-07-15-50-36.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=40cbad5c0c8db399c367ffaf7a0dbf7d) # 004 - Secrets Syncing Source: https://docs.nuon.co/updates/004-secrets Automatically sync customer secrets into Kubernetes *May 10th, 2025* v0.19.544 ## Customer Secrets Customer input secrets can be defined in your `secrets.toml` config. This allows you to define secrets that need to be added by users when provisioning an install via the CloudFormation stack. You can define a secret with the following config: ```toml theme={null} [[secret]] name = "license_key_{{.nuon.id}}" display_name = "license key for {{.nuon.id}}" description = "License key" ``` Templating can be used on any field, allowing you to dynamically namespace secrets and other things. Since secrets are synced *before* components are > [!NOTE] > > `required` secrets will cause the CloudFormation Stack to fail, if not added. ## Auto Generated Secrets You can automatically generate a secret value by adding the `auto_generate: true` field. For instance, to create a unique value that is configured in your cluster: ```toml theme={null} [[secret]] name = "db_password_{{.nuon.id}}" display_name = "Auto generated database password" description = "Auto generated database password" auto_generate = true ``` ## Automatic Syncing You can automatically sync secrets into your sandbox kubernetes cluster by adding the `kubernetes_sync: true` value to your config. ```toml theme={null} [[secret]] name = "license_key_{{.nuon.id}}" display_name = "License Key" description = "License Key" kubernetes_sync = true kubernetes_secret_namespace = "{{.nuon.id}}" kubernetes_secret_name = "database-password" ``` > [!NOTE] > > Syncing can be disabled via your config, and requires that correct permissions are enabled for the Provision role > in your `permissions.toml`. ## Outputs You can use the outputs of a synced secret using the `{{.nuon.secrets}}` template. The values If you *do not* see your secrets in `{{.nuon.secrets}}`, it means you do not have syncing on. You can reference the source ARN directly using `{{.nuon.install_stack.outputs}}`. > [!NOTE] > > If you are having trouble working with your state, we recommend adding it directly to your readme using the following block. > > ```toml theme={null} >
        > Full Nuon State >
        > {{ toPrettyJson .nuon }}
        > 
        >
        > ``` > [!NOTE] > > Secret values are not available in your state, and can only be read from your application by using the source > secret (AWS Secrets Manager) or the Kubernetes secret directly. ## Life Cycle Currently secrets are synced on `Provision`, `Reprovision` and `ReprovisionSandbox` workflows. > [!NOTE] > > We currently do not automatically sync secrets. We are considering this for a future release ## Fixes * Fixed an issue where terraform state was attempted to be displayed on all component types. * Fixed a bug with dependency ordering. * Fixed a bug in helm value templating. * Fixed a bug where syncing an app with no installer, components or actions could fail. * Fixed an issue where secrets would not sync when the kubernetes name was not valid. # 005 - nuon dev and improvements Source: https://docs.nuon.co/updates/005-developer-experience `nuon dev` allows you to iterate on configs with a single command, view install state, view an app dependency graph and more. *May 16th, 2025* v0.19.550 ## `nuon dev` CLI Command > [!WARNING] > > This feature is currently in alpha. Please reach out to use if you are > interested in using it. We have added a new CLI command, `nuon dev`, that you can use to create a new app version and deploy it to a dev install. ```bash theme={null} ~nuon (main)$ nuon dev ~/nuon/byoc/byoc-nuon -y Checking that you are ready to create a new app version... INFO checking git branch... SUCCESS you are on branch ja/005-changlog-updates INFO verifying app exists... SUCCESS app ID is appt2zli0c6rx6utsd922i9kbl INFO parsing app config... SUCCESS parsed app config successfully INFO validating config... SUCCESS app config is valid INFO checking component branches... SUCCESS component branches are ok INFO checking that local changes have been pushed... SUCCESS all required changes have been pushed INFO syncing config to api... ``` To use it: 1. Open a nuon app directory. 2. Create a dev branch. 3. Run `nuon installs select` to select the install you want to develop with. 4. Make some changes and push them to your remote. 5. Run `nuon dev` and follow the prompts. A new app version will be created and deployed to your dev install. This new version will **only** be deployed to your dev install. Other installs will not be affected. Additionally, you can pass the flag `--yes` to auto-approve all prompts. Make sure you have the correct branch and install set up before you do this. > [!NOTE] > > If you update only the source code of a component, and not it's config, a new > build will not be created. You must create a build for that component > yourself. This shortcoming will be resolved in a future update of this > feature. Using the existing `nuon apps sync` command will update *all* installs to the config being synced, where as `nuon dev` will only update the *current* install. ## View Component Dependency Graph You can now view a graph of component dependencies for an app. On the "Components" tab of any app, click the "View dependency graph" button. ![View Dependency Graph 1](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/005/view-dependency-graph-1.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=4bbb9cb2a2a9814ef435d04f94b64051) ## View Install State You can now view the complete state of an install in JSON format. On any install, click the "View state" item in the "Manage" drop-down menu. ![View Install State One](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/005/view-state-1.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=2863ee9955960c8aedfc50282f496fa1) ![View Install State Two](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/005/view-state-2.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=af98a86e2a64601bf23d3bbbc7d4460a) ## Improved Step Viewer We have made improvements to the step viewer that make it easier to work with and debug steps. ![Improved Step Viewer](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-16-14-44-48.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=f4fa7345a8edf47a83e9c5372d68430b) ## Improved Components Page Performance The install components page has been overhauled to load faster, and support rendering more components. ![Improved Components Page Performance](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-16-14-45-53.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=762537af064ef4e5f97e6ae92dc6eb0c) ## Cancel Workflows From History Page You can now cancel workflows from the history page. ![Cancel Workflows From History Page](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-16-14-57-35.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=5ff5a7dfaee4de27f3d1509dc3bdc153) ## Fixes * Fixed a bug where cancelling a reprovision would leave a runner unable to recover. * Fixed a bug where inputs did not properly use their defaults. * Fixed a bug where manual env-var overrides on an action run were not respected. * Fixed a bug where `current-inputs` would show all historical inputs. * Fixed a bug where you could not update an input with an install name (needed an install id), via the CLI. * Fixed a bug where cancelling future workflows did not give the expected behavior. * Fixed a bug where cancelling an in-progress workflow left a deploy, sandbox run or other in an in-progress status. # 006 - Secrets improvements, workflow retries and bug fixes Source: https://docs.nuon.co/updates/006-secrets-workflows Secrets improvements, workflow retries and bug fixes. *May 19th, 2025* v0.19.558 ## Improved Secrets The secrets have had their naming convention updated to better support multiple deployments into the same account and faciliate access to these names which are guaranteed to be unique. The new naming convention is: ```txt theme={null} {{.nuon.install.id}}/{{.secret.name}} ``` Additionally, the secret ARN is now included in the `secrets` objects in `{{.nuon.secrets}}`. ## Handle Expired Stacks CloudFormation stacks have an expiration of 24 hours when setting up a customer install. If a stack is not run in 24 hours, it will show a better error message. ![](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-21-21-06-45.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=0b1368ccae026e5bc0e154b8678fe628) ## Retry Failed Workflow You can now retry a workflow from where it failed by clicking the "Retry Workflow From This Step". This will create a new workflow that starts at the step that was failed. ![Retry workflow](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-21-21-12-20.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=293f606fd7b143aa5e64acd12de2fdfd) > [!NOTE] > > This is just the first pass at allowing more interaction when a workflow fails. We plan to integrate failures into approvals, next. ## View Deploy Plan You can now view a deploy plan, from the UI: ![Deploy plan view](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-21-20-10-22.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=b58e5e536a2894e26195705c0585bfb3) > [!NOTE] > > This is useful for debugging the rendered variables that went into a deploy, or other run. ## Nuon Helm driver You can now store helm release information in Nuon API. You can customise it by editing the `helm_driver` value in `runner.toml` file of the app. ```toml theme={null} runner_type = "aws" helm_driver = "nuon" ``` ## Helm Driver Options * `secret`- Store helm release information in kubernetes secrets. This is the default driver. * `configmap`- Store helm release information in kubernetes configmaps. * `nuon`- Store helm release information in Nuon API. > [!NOTE] > > This feature is currently in alpha and experimental. ## Internal Migrations We have been rolling out the following internal, platform improvements: ### Nested Event Loops Each Nuon app and install is backed by a long lived Temporal workflow called [an eventloop](). Event loops are used for orchestration, control-flow and limit concurrency. Previously, each install had a single event loop meaning only a single deploy or job could be executed at once. We have updated the install to have an event loop for each component, action, and the sandbox. This is a future migration that will allow us to build parallel deploys based on the component graph, and more. ### Component Builds As part of now building Nuon BYOC, we have deprecated an internal service, and changed the way we build components. ## Fixes * Deprovisioning an install now works when outputs are missing. Previously, a failed deprovision could leave an install in an undeprovisionable state. * Deprovisioning an install uses the previous active deploy config. * Fixed a bug where some outputs were not showing in the state. * Fixed a bug where the permissions boundary was not set properly on the stack. * Fixed a bug where a required secret was not required in the CloudFormation stack config. # 007 - Secret formats, bug fixes Source: https://docs.nuon.co/updates/007-secret-formats Secrets formats, bug fixes *May 24th, 2025* v0.19.573 ## Secret Formats Some complex secrets have formatting that can cause problems when being added to a CloudFormation stack. To enforce that a secret is base64 encoded, you can add the `format: base64` field to a secret. The following secret will be expected as a base64 encoded secret when inserted into the stack. ```toml theme={null} [[secret]] name = "github_app_key" display_name = "GitHub App Key" description = "Github App Key for Nuon BYOC Install {{.nuon.id}}" required = true kubernetes_sync = true kubernetes_secret_namespace = "ctl-api" kubernetes_secret_name = "github-app-key" format = "base64" ``` The runner sync job will automatically decode the value based on the format when syncing into the Kubernetes secret. # 008 - Stack Tab, VCS Import, and Component Build Updates Source: https://docs.nuon.co/updates/008-vcs-stacks-fixes New stack management features, VCS connection importing, and improved component build system *May 27th, 2025* v0.19.576 ## Install Stacks You can now view and interact with versions of an install's stack. ![](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/stacks-screenshot.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=c7a554f48bbcd40c32ee441580710890) ## Import a VCS Connection You can now import a VCS connection into your org. This is useful for sharing the same Github installation of between different Nuon orgs. ![](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-27-16-13-26.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=a4c40a6c3297dcd8edfcda2a6d2eb6b9) ## Refactored component build checksum We have updated the logic for determining when component builds are triggered. The checksum calculation now relies on the contents of the component configuration file rather than the previous method. ![](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-05-27-16-12-51.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=aa9c4f3b9ebe5ed3a6f2ca84c3260304) > [!NOTE] > > Please note that this change is not backwards > compatible and will require a rebuild of all components during your first file sync > following this update. ## Bug Fixes * Fixed an issue where cancelling a workflow could leave a component undeployable. * Fixed an issue where deprovisioning an install failed to find the latest deploy. * Fixed an issue where a failed provision on the first run would prevent future stack runs from getting to a healthy runner. # 009 - Action Triggers, improved configs, default secrets Source: https://docs.nuon.co/updates/009-action-triggers-secrets-configs Action triggers, improved configs, default secrets. *June 5th, 2025* v0.19.590 ## Action Triggers Action triggers are now available for all workflows. You can now use the following set of triggers: * `pre-provision` * `post-provision` * `pre-reprovision` * `post-reprovision` * `pre-deprovision` * `post-deprovision` * `pre-deploy-all-components` * `post-deploy-all-components` * `pre-teardown-all-components` * `post-teardown-all-components` * `pre-deprovision-sandbox` * `post-deprovision-sandbox` * `pre-reprovision-sandbox` * `post-reprovision-sandbox` * `pre-update-inputs` * `post-update-inputs` * `pre-secrets-sync` * `post-secrets-sync` Each workflow trigger is called at the beginning or end of the workflow. In some cases, such as `pre-provision` or `pre-reprovision` that include a stack-run, the trigger will be called right after the runner is healthy. The following triggers require a `component_name` field to be set, as they are tied to a specific component: * `pre-deploy-component` * `post-deploy-component` * `post-teardown-component` * `pre-teardown-component` > [!NOTE] > > `pre-component-deploy` and `post-component-deploy` have been renamed to `pre-deploy-component` and `post-deploy-component` for consistency with other triggers. > `pre-sandbox-run` and `post-sandbox-run` have been deprecated, in favor of `pre|post-reprovision`, `pre|post-provision`, and `pre|post-deprovision` ## Inputs, Permissions and Secrets Dirs You can now structure configs using directories. The following fields support loading their config from either a sub-directory, or a single file: * `secrets` - supports either a `secrets.toml` or a `secrets/` directory * `inputs` - supports either an `inputs.toml` or an `inputs/` and `input_groups` directory. * `permissions` - support either a `permissions.toml` or a `permissions/` directory. The configuration format is slightly different for files that are added to a directory: ### Input No longer requires the `[[inputs]]` syntax when added into `./inputs/input-name.toml`. ```toml theme={null} name = "auth_audience" description = "Auth0 Audience" default = "api.{{.nuon.install.id}}.nuon.run" display_name = "Auth0 Audience" group = "auth" ``` ### Input Group No longer requires the `[[groups]]` syntax when added into `./input_groups/group-name.toml`. ```toml theme={null} name = "auth" description = "Auth0" display_name = "Authentication Configuration." ``` ### Secret No longer requires the `[[groups]]` syntax when added into `./input_groups/group-name.toml`. ```toml theme={null} name = "clickhouse_cluster_pw" display_name = "Clickhouse Cluster Password" description = "Password for the Clickhouse Cluster for the Nuon CTL API User." auto_generate = true kubernetes_sync = true kubernetes_secret_namespace = "clickhouse" kubernetes_secret_name = "clickhouse-cluster-pw" ``` ### Permissions No longer requires the `[provision_role]`, `[deprovision_role]`, or `[maintenance_role]` syntax, but now requires a `type`. ```toml theme={null} type = "deprovision" name = "{{.nuon.install.id}}-deprovision" description = "deprovision" display_name = "deprovision" permissions_boundary = "./deprovision_boundary.json" [[policies]] managed_policy_name = "AdministratorAccess" ``` ## Improved Schema Each configuration file now supports a JSON schema that can be loaded via our api. You can now add `#:schema https://api.nuon.co/v1/general/config-schema?type=input` at the beginning of any Nuon config file for editor supported TOML LSP integrations. The following `types` are valid: * `runner` - for use in `runner.toml` * `sandbox` - for use in `sandbox.toml` * `helm` - for use in any helm component toml config in `components/`. * `docker-build` - for use in any docker-build component toml config in `components/`. * `container-image` - for use in any container-image component toml config in `components/`. * `terraform` - for use in any terraform component toml config in `components/`. * `permissions` - for use in any permissions config in `permissions/`. * `secret` - for use in any permissions config in `secrets/`. * `input` - for use in any input config in `input/`. * `input-group` - for use in any input config in `input_groups/`. * `metadata` - for use in `metadata.toml`. * `action` - for use in action defined in `actions/`. * `stack` - for use in `stack.toml`. * `installer` - for use in `installer.toml`. * `full` - only useful for validating a full, parsed Nuon config. ## Component and Action Groups You can now group components and actions using subdirectories. For now, the change is purely for configuration management, but will soon be added into the ui and other places. ## Default Secrets You can now provide a default for secrets that get added in a cloudformation stack. ## Fixes * Made org creation email configurable for BYOC installs of Nuon. * Fixed a bug where content in the `permissions` config would not look in the `./permissions` subdirectory. # 010 - Approvals Source: https://docs.nuon.co/updates/010-approvals Workflows now support approvals, so you can verify the helm / terraform plan. *June 16th, 2025* v0.19.582 ## Approvals You can now see a Helm or Terraform plan when updating an install. Each workflow will automatically prompt you to approve the plan, and only proceed upon approval. ![Approve Sandbox](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/010_approve_sandbox.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=fc0078b260fd71f5a6ecf142e07b5568) ## Auto Approve Install You can auto approve all changes on an install. ![Auto Approve Install](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/010_auto_approve_enabled.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=5127c956eb8e2291b0cb60d6e48c848c) ## Auto Approve Workflow Sometimes, you just want to approve the first step in a workflow. You can approve all following steps on a workflow, which means each step will automatically proceed. ![Approve Workflow](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/010_approve_workflow.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=82ddd0b3b36ce81eecc12b99159f1b39) ## Re Plan When an approval has been waiting for an extended period of time, you can re-run the plan phase by pressing the **Retry Plan** button. ![Retry Plan](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/010_retry_plan.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=ab146ce03cfa66f3d8e1bec38dd9370b) ![Retry Plan Two](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/010_retry_plan_two.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=40c5b75bf3ceff529aec038c8ba6f8cf) This will re-run the plan step, and prompt the approval before continuing. ## Helm component config You can now define the `TakeOwnership` flag in the helm component config. ```toml theme={null} name = "helm_chart_two" type = "helm_chart" chart_name = "acme-corporation" take_ownership = true ``` We'll be exposing more helm install flags in the future releases. ## Bug Fixes and other * `nuon apps sync-dir` has been deprecated in favor of `nuon apps sync`. * Fixed an issue related to authentication for BYOC installs of Nuon. * Fixed a bug where actions could not be deleted. * Fixed a bug where some cron actions did not run. * Fixed a bug where an empty permissions boundary errored out. # 011 - Approval Improvements Source: https://docs.nuon.co/updates/011-approval-updates Inline workflow retries, auto-approve all steps, UI renames, and team member removal. *June 27th, 2025* v0.19.595 ## Inline Workflow Retries Failures can now be retried inline, and a new step will be generated. ![Inline workflow retries interface](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-06-27-15-38-48.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=a232e2df6eaa7568cc8c3e0fd7f23943) ## Auto Approve Workflow You can now approve all steps in a workflow. ![Auto Approve Workflow interface](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-06-27-15-33-52.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=f51e2ba218850a3cb1ecadfce1873d6e) ## Renamed History to Workflows In preparation of the new Audit Log tool, we are renaming history to workflows. ![Inline workflow retries interface](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-06-27-15-25-59.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=7b1d74df557c3c67fc2300fa3c4724d9) ## Remove Team Member You can now remove team members from your org. ![Update](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-06-27-15-24-23.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=b7fc544eff0e4aa2af79b8f71fbf2a49) ## Improved Approval Diffs The diffs displayed for Helm and Terraform approval steps have been improved to preview more of the underlying changes. ![Improved Approval Diffs interface](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-06-27-15-49-17.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=e8748333fe45b3b82dc09a1a664602c2) ## Approvals on Deploy and Sandbox Run Pages We now keep approvals for all deploys and sandbox runs on the detail pages. ![Approvals pinned interface](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/2025-06-27-15-30-22.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=0db784e2feec287d664db2aa6970d252) ## Fixes * Default secrets are now respected. Adding a `default` field on a secret will be respected. * Fixed an issue where `connected_github` repos for sandboxes were not respected. * Selective component build on install input update. * Improved ctl-api healthchecks. * Inputs reference parsing. * Fixed a bug where authentication cookie could become too large and show a 431 response. * Fixed a bug where components that were not deployed, would still be torndown during deprovision. # 012 - Approval Diffs Source: https://docs.nuon.co/updates/012-approval-diffs-plan-only Helm teardown diffs, plan-only workflow mode, manual secret sync, and CLI pagination flags. *July 15th, 2025* v0.19.601 ## Improved Helm Resource Diff Improved the diff for helm teardowns. ![Improved Helm Resource Diff](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-07-08-21-18-48.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=53b111c8333131c0176057944d21e210) ## Plan Only Mode You can now run most workflows in plan only mode. This means that changes will only be planned, and execution skipped. This is useful for checking for drift, for instance. ![Plan Only Mode](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-07-08-21-26-56.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=3e87fde7f3b864f1f4720a1f29d76346) ## Sync Secrets You can sync secrets manually, using the UI. ## Nuon CLI list command pagination The CLI now accepts limit & offset options for listing out items from commands. `nuon components list --offset=15 --limit=5` ## Improved naming for manual Action Workflow runs Workflow runs for manually triggered Actions now show the Action name in the Workflows page. ![Improved Workflow history for Action runs](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/012_improved_workflow_history_for_actions.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=9e024898e933111e44ca8b4a5ec11051) ## Bug Fixes * Fixed an issue where the Terraform state for a component would show an old state version. * Fixed an issue where deprovisioning was not properly tearing down from a plan. * Fixed an issue where some workflows would not get executed, due to an internal error. * Fixed an issue with empty workflow on input update. # 013 - Kubernetes Manifest Component Source: https://docs.nuon.co/updates/013-kubernetes-manifest-component New Kubernetes Manifest component type for deploying raw Kubernetes resources into customer cloud accounts. *August 1st, 2025* v0.19.611 ## New component type: Kubernetes Manifests Adds support for kubernetes manifests component type. ![Kubernetes Manifest Component Support](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/013-kubernetes-component-config.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=a88babae4e5c7bd76acbc559f68e021b) ![Kubernetes Manifest Approvals and Diffs](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/013-kubernetes-component-approvals.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=e1b4ef5fd597596af5af8bb268974e94) ## Support Helm Resource Diffs Previously, we did not support showing Helm resource-level diffs. ![Helm Changes Overview](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/013-helm-resource-diffs.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=7d184ac71e2a4d91dce0a815d2e85643) ## Support for Large Terraform Diffs Some Terraform diffs, such as nested kubernetes manifests could not render correctly in the UI. ![Improved Support for Larger Plans](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/013-improved-larger-plans.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=79bb1a93d6418ddf42f913bdae181650) ## Bug Fixes * Fixed issue supporting large plans. * Fixed performance issues in application. * Fixed issue where you could not deprovision an application. * Added a new internal Temporal codec server for better performance. * Fixed an issue creating new org runners. * Fixed an issue where LSP server did not work correctly. * Fixed a bug where skipping some steps could render a workflow to make no progress. * Fixed a bug where apps would not delete with the CLI. Note: Components must still be deleted first. * Fixed a bug where the App's Components tab would error after nuon apps create --no-template and before nuon apps sync. # 014 - Install Config Files Source: https://docs.nuon.co/updates/014-install-config-files Manage Installs via Source Control *August 7th, 2025* v0.19.614 ## Install Config Files You can now manage installs via source control for apps managed by `nuon apps sync`. Create one config file per-install in a folder named `installs/` under your app's config. Now syncing the app will also create/update the corresponding installs. For more details take a look at [Install Config file reference](/configuration-files#install-config). ```toml theme={null} name = "config_demo" approval_option = "approve-all" [aws_account] region = "us-east-1" [inputs] sub_domain = "whoami" test = "required-value" testdefault = "default-value" ``` ## Generate an Install Config File To make it even easier to manage existing installs using CI, we have added a new command `nuon installs generate-config` to export an existing install to stdout. Create a TOML config file for the install in the `installs` folder of your app's config and paste the stout. If required, make updates e.g., you app's release number, and `nuon apps sync` to update the install. In the dashboard, see the newly-created workflow to track the install's upgrade process. ```bash theme={null} cd mkdir -p installs touch installs/.toml nuon installs generate-config -i | tee installs/.toml ``` ![Generate Install Config](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/014-cli-output.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=ed599e019c7441061f6577e4f7efeeb1) ## Workflow Step Groups Workflow steps are now grouped, and some retries will retry an entire group when required. For instance, when retrying a Terraform apply step, the plan can not be reused, so a new group is created and the plan is retried (and re-approved) first. ![Workflow Step Groups](https://mintcdn.com/nuoninc/9iPczvWtZjaPMqNy/updates/assets/2025-08-06-16-46-05.png?fit=max\&auto=format\&n=9iPczvWtZjaPMqNy\&q=85\&s=8bbec4615dafbbd338549fbbbc3879da) ## Runner Instance Lifetime > **Deprecated**: MaxInstanceLifetime is no longer set on the ASG. Instance > refresh is now handled by a backend cron that gracefully shuts down the > runner before powering off the VM. As part of the install stack, we now set the MaxInstanceLifetime for Runner instances to 7 days by default and recreate it via the autoscaling group. This serves as a safety net in case the runner instance becomes unresponsive for some reason due to accumlated state, such as disk space. ## Bug Fixes * Fixes an issue where you could not cancel an install reprovision. * Fixes an issue where running a `plan-only` action did not update it's status correctly. * Fixes an issue where an install showed a "deprovisioned" status on first setup. * Fixed memory leak that would cause page crashes during workflows. * Removed extra fields on the log read endpoints. # 015 - Azure Support Source: https://docs.nuon.co/updates/015-azure-support Deploy and manage installs on Azure *August 8th, 2025* v0.19.615 ## Azure Support You can now configure, deploy, and manage apps on Microsoft's Azure cloud platform. Nuon had Azure support before we made the switch to the independent runner architecture. When we made that change, we decided to focus on one platform first, AWS, in order to ensure the best possible experience. We always intended to re-introduce Azure support once the new architecture had matured, and we felt that time had arrived. We have taken great care to ensure the Nuon experience is as consistent as possible across both AWS and Azure. Aside from a few small digressions, the experience of configuring, deploying, and maintaining an Azure app should be familiar and require little to no ramp-up time. ### Configuring an Azure App To get started, configure an app using an Azure sandbox and runner. Here's an example using our off-the-shelf Azure AKS sandbox. ```toml sandbox.toml theme={null} # sandbox terraform_version = "1.12.2" [public_repo] directory = "." repo = "nuonco/terraform-azure-aks-sandbox" branch = "main" [vars] public_root_domain = "{{ .nuon.inputs.inputs.root_domain }}" internal_root_domain = "internal.{{ .nuon.inputs.inputs.root_domain }}" location = "{{.nuon.cloud_account.azure.location}}" vnet_name = "{{.nuon.install_stack.outputs.network_name}}" resource_group_name = "{{.nuon.install_stack.outputs.resource_group_name}}" private_subnet_names = "{{.nuon.install_stack.outputs.private_subnet_names}}" public_subnet_names = "{{.nuon.install_stack.outputs.public_subnet_names}}" ``` ```toml runner.toml theme={null} # runner runner_type = "azure" helm_driver = "configmap" ``` You can then add components to the app as you normally would. All component types are supported. > [!NOTE] > > Keep in mind that Terraform components will need to create Azure resources using the [azurerm provider](https://registry.terraform.io/providers/hashicorp/azurerm/latest). Many Helm charts may also rely on platform-specific operators. If you want to re-use components across platforms, you must avoid platform-specific dependencies. ### Installing an App on Azure When you create an Azure install, you will be presented with an install creation modal, just as you would for AWS, except with an Azure location selector instead of an AWS region selector. ![azure\_install\_modal](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/changelog/015_azure_install_modal.png?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=25c9666e3060a4c343b727eca53ef159) The provision workflow will create an Azure Resource Manager template, and provide azure CLI commands your customer can use to create a resource group and install the Nuon runner in it. ![azure\_awaiting\_stack](https://mintcdn.com/nuoninc/_kMmIa3KI58brGSH/images/changelog/015_azure_awaiting_stack.png?fit=max\&auto=format\&n=_kMmIa3KI58brGSH\&q=85\&s=acd3355899a6f0a8292904456ad00d71) ### Maintaining an Azure Install Once the install has been provisioned, the experience is practically identical for both cloud platforms. You will have access to the same info and controls for the runner, the sandbox, components, and actions. > [!NOTE] > > Currently, the runner does not have the Azure CLI installed. This will be added in a future update, so it can be used for actions on Azure like the AWS CLI can be used on AWS. For more details on Azure, and how it compares to AWS, and our general approach to supporting cloud platforms, see our [Platform Support docs](/platform-support/introduction) # 016 - Enhanced Install Config Files and Improved Plans Source: https://docs.nuon.co/updates/016-enhanced-install-config-files-and-improved-plans Directory and file-level install config file syncing. More clear Helm diffs. Improved performance with optimized state management. *August 19th, 2025* v0.19.619 ## New Installs Sync CLI Command Syncing installs is now independent from app syncing. The new "installs sync" command can be used with a single [Install config file](/configuration-files#install-config) or with a directory containing multiple install config files. ```bash theme={null} nuon installs sync -a -d ``` ![Installs Sync CLI Command](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/016-cli-installs-sync.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=1bee829b00a985ee96d58169cce5dcd6) ## Forget Install CLI Command The "forget install" command is now available in our CLI client, bringing feature parity with the dashboard. This gives developers more flexibility in managing their installs directly from the command line. ```bash theme={null} nuon installs forget -i inlcz0349isibg7pyw1f5p8zf5 --confirm ``` ## Improved Plans Added inline YAML diff support to Helm plan UI so Helm plan changes now display with inline YAML diffs for better visibility. ![improved\_diff](https://mintcdn.com/nuoninc/5DMv6qeYvbBezGcn/updates/assets/016_improved_diff.png?fit=max\&auto=format\&n=5DMv6qeYvbBezGcn\&q=85\&s=9bab7cc002cfa834351417cb37b1f877) ## State Management Improvements We've refactored our install state generation and fetching to deliver better performance across the platform. This optimization reduces loading times for Dashboard views that rely on state data and improves memory efficiency in our temporal background processes. ## Bug Fixes * Fixed CLI nuon installs deploy-components command. * Fixed missing stack outputs from state. * Fixed teardown of Docker build images not working. * Upgraded AWS EKS sandbox AWS provider version. * Improved error display for "build is not deployable". # 017 - Noop Approvals, Install Config Improvements and more Source: https://docs.nuon.co/updates/017-noop-approvals-stability-updates Approvals with no changes will automatically be approved, and more stability fixes. August 28th, 2025 v0.19.621 ## Resource Drift for Terraform Component Plans We now show resource drift for Terraform Component Plans. ![Resource Drift](https://mintcdn.com/nuoninc/neUGFGjWByd3pnz6/updates/assets/017-image-1.png?fit=max\&auto=format\&n=neUGFGjWByd3pnz6\&q=85\&s=d0834b664ed90fd9e8acfaf34372b809) ## Install Config Updates For installs managed by a config file, a confirmation in the UI will be shown before making any input changes. ![Prompt](https://mintcdn.com/nuoninc/neUGFGjWByd3pnz6/updates/assets/017-image-2.png?fit=max\&auto=format\&n=neUGFGjWByd3pnz6\&q=85\&s=7f82def8fbc6703783378a0a7f5451ce) The UI now shows whether an install is managed by a config file or not. ![UI Label](https://mintcdn.com/nuoninc/neUGFGjWByd3pnz6/updates/assets/017-image-3.png?fit=max\&auto=format\&n=neUGFGjWByd3pnz6\&q=85\&s=115924e6745c9f5556d80f7b6f050e4a) ## Noop Approvals Approvals for deploys with no changes will automatically be approved. ![Auto Approvals](https://mintcdn.com/nuoninc/neUGFGjWByd3pnz6/updates/assets/017-image-4.png?fit=max\&auto=format\&n=neUGFGjWByd3pnz6\&q=85\&s=8dfe16632073c16736fc0ea407ba38d3) > [!NOTE] > > To prevent inadvertently mutating infrastructure due to drift, when noop changes are auto-approved the apply step is skipped. ## Org Search Box For users with many orgs, you can now search for them in the UI: ![Search](https://mintcdn.com/nuoninc/neUGFGjWByd3pnz6/updates/assets/017-image-5.png?fit=max\&auto=format\&n=neUGFGjWByd3pnz6\&q=85\&s=4b4b95788426d582568fdb562a062ac0) ## Stability Improvements We have been rolling out stability improvements for workers that are running in BYOC installs, including: * Workers use less memory. * States will automatically be marked as stale when generating. * Improvements to worker caching. ## Bug Fixes * Removed deprecated sandboxes from [nuonco GitHub org](https://github.com/nuonco). * Improved documentation for [Kubernetes Manifests](https://docs.nuon.co/guides/kubernetes-manifest-components). * Fixed a bug where some orgs would not properly provision due to a timeout. * Fixed an issue where some workflows could fail and not show any user feedback. * Fix for wrong account id set for the manual deploys. * Fix for workflow panics on noop approvals. * Increase CPU allocation for cloud and BYOC workers. * Fixed an issue where some workflow steps required additional retries. # 018 - Management Mode Source: https://docs.nuon.co/updates/018-management-mode Runner Management Mode, input updates, and App Variables for storing values across installs. *Sep 8, 2025* v0.19.630 ## Management Mode Management mode is a standalone runner process that runs on the install runner VM and is responsible for monitoring and managing the health of the VM as well as the runner process itself. Read more about how to enable this for your installs here: [Runner Management Mode](/guides/runner-management-mode). ## Stack Config Breaking Change We fixed a bug where the `runner_nested_template_url` is now recognized, where as before it was ignored. > [!WARNING] > > This requires a config update for any apps that currently define a > `runner_nested_template_url` in their `stack.toml`, as older versions of the > nested template could be invalid or not work. We recommend using the latest nested template url: ```toml theme={null} runner_nested_template_url = "https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/v0.1.6/runner/asg/stack.yaml" ``` ## Sensitive Inputs and Install Config Files When you generate a config, inputs will now be grouped together, reflecting the input groups you have defined in the app. Sensitive inputs will be excluded, to avoid saving them in plain text in version control. ```toml theme={null} name = "my_install" [aws_account] region = "us-east-1" [[inputs]] use_insecure_cookies = "false" [[inputs]] bool_type = "true" json_type = "{\"key\": \"value\"}" number_type = "10" ``` When syncing install config files, sensitive inputs will be ignored. They can still be managed manually via the dashboard. ## App Variables App Variables is a feature that allows you to define values you can use across all installs of an app. The values are not managed in the app itself, and therefore do not need to be stored in version control, and are not displayed to your customer during the install process. You can create app variables via the CLI. ```sh theme={null} nuon apps variables create --name=my_var --value="some value" ``` To use an app variable, reference it in your app with a template expression. ```toml actions/demo_action.toml theme={null} # action name = "simple_demonstration" timeout = "1m" [[triggers]] type = "manual" [[steps]] name = "show the value of my_var" inline_contents = """ #!/usr/bin/env sh echo $MY_VAR """ [steps.env_vars] MY_VAR="{{.nuon.app.variables.my_var}}" ``` Learn more about App Variables here: [Concepts - App Variables](/concepts/app-variables). ## Orderable Action Triggers It is often useful to be able to define an explicit order for actions. We are introducing a new optional field ,`index`, on action triggers that allows you to define an order for actions with the same trigger. For example, you can define a trigger like this in one action: ```toml theme={null} # post_cert_deploy_action_1.toml [[triggers]] type = "post-component-deploy" component_name = "certificate" index = 1 ``` and in another action: ```toml theme={null} # post_cert_deploy_action_2.toml [[triggers]] type = "post-component-deploy" component_name = "certificate" index = 2 ``` This will result in the actions running in the order defined by `index`. ## Bug Fixes * Nested Runner ASG Cloudformation Stack is now respected and used during install stack re/provisions. * Fixed a bug causing workflow cancellation to intermittently fail. * Fixed a bug where large plans could cause failures when being checked for noop plans. # 019 - Self-Service Cloud Registration Source: https://docs.nuon.co/updates/019-self-service Anyone can now sign up for Nuon Cloud *Sep 30, 2025* v0.19.649 ## Self-Service Cloud Registration Anyone can now sign up for Nuon Cloud, without needing an invite. To get started, go to [https://app.nuon.co](https://app.nuon.co) and click "Sign Up". ![Sign Up](https://mintcdn.com/nuoninc/FxsAc30yL7FW7j7s/updates/assets/019-image-1.png?fit=max\&auto=format\&n=FxsAc30yL7FW7j7s\&q=85\&s=82181ed3433870826b7dbf5abd0f8b4e) After you sign in, a trial org will be created for you, and you will be sent to our onboarding flow. You can then select one of our example apps to get started with. ![Select an App](https://mintcdn.com/nuoninc/GLxDeRgTDea8dV3v/updates/assets/019-image-2.png?fit=max\&auto=format\&n=GLxDeRgTDea8dV3v\&q=85\&s=57220e58f897ced4bd271857c4144bb1) Once you have an app, you can create an install. ![Select an App](https://mintcdn.com/nuoninc/GLxDeRgTDea8dV3v/updates/assets/019-image-3.png?fit=max\&auto=format\&n=GLxDeRgTDea8dV3v\&q=85\&s=1db5cc6deb069b4f41a72b48bf0c13a7) At any point during this process, you can click the "Skip" button to exit the onboarding flow and do your own thing. ## CLI UX Improvements We have landed a workflow TUI in the `nuon` cli for viewing and approving workflows. ![Workflow TUI](https://mintcdn.com/nuoninc/GLxDeRgTDea8dV3v/updates/assets/019-image-4.png?fit=max\&auto=format\&n=GLxDeRgTDea8dV3v\&q=85\&s=b3aa381f9d497ae96e3b4d864db8d570) This feature requires the `NUON_PREVIEW` to be set to `true` in the environment. You can try it like this: ```bash theme={null} nuon installs workflows-get -w inwxxxxxxxxxxxxxxxxxxxxxxx ``` This is part of a concerted effort to provide rich functionality directly in the TUI. ## Improved Helm Drift Detection When you run a plan-only deploy, or are doing a noop deploy with no expected changes to a Helm chart, we will now detect any resource changes. Previously, the diff functionality only included changes to the chart values or rendered yaml, and did not account for drift in the cluster. ## Bug Fixes and Improvements * Fixed a bug where uninstalling a Helm chart could fail because the diff could not be loaded. * We have rolled out changes to our networking stack in the dashboard to decrease network usage, prevent unexpected errors (or hnadle them more gracefully) and also make the application feel more performant. * We fixed a bug where some endpoints in the UI and some plans would not use the current install's app-config, leading to situations where components could not be deleted, or would be incorrectly rendered on the graph. * Fixed a bug causing new actions to now work for a few seconds after syncing an app config. * Fixed a bug where some workflows could fail if there were too many steps, too large of plans or were not approved in time. * Fixed a bug where the install component summary endpoint did not always succeed. # 020 - Break glass actions Source: https://docs.nuon.co/updates/020-break-glass-actions Define actions that customers can enable to break glass. *Oct 7, 2025* Define actions that can use break glass roles for executing privileged operations. v0.19.662 ## Actions with break glass permissions Actions can now utilize break glass roles and policies that have been enabled via an install CloudFormation stack. This allows for elevated permissions during critical operations while maintaining security boundaries. ### Break Glass Role Configuration Break glass roles are enabled in CloudFormation and can be referenced in your action configurations. These roles provide temporary elevated access for emergency situations or critical deployments. Sample break glass configuration: ```toml break_glass.toml theme={null} [[role]] name = "bucket-operations-break-glass" description = "Grants access to the install bucket" display_name = "Bucket operations Break Glass" permissions_boundary = "" [[role.policies]] name = "bucket operations" contents = """ { "Version": "2012-10-17", "Statement": [ { "Sid": "SpecificS3BucketAccess", "Effect": "Allow", "Action": [ "s3:CreateBucket", "s3:DeleteBucket", "s3:ListBucket", "s3:GetBucketLocation", "s3:GetBucketVersioning" ], "Resource": "arn:aws:s3:::{{.nuon.install.id}}-*" }, { "Sid": "ListAllBuckets", "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets" ], "Resource": "*" } ] } """ ``` To configure an action with break glass permissions, specify the break glass role name in your action definition: ```toml action.toml theme={null} name = "simple_demonstration" timeout = "1m" break_glass_role="bucket-operations-break-glass" [[triggers]] type = "manual" [[steps]] name = "manage install-specific bucket" inline_contents = """ #!/usr/bin/env sh set -x BUCKET_NAME="{{.nuon.install.id}}-demo-bucket-$(openssl rand -hex 4)" aws s3 mb s3://$BUCKET_NAME --region us-east-1 aws s3 ls | grep {{.nuon.install.id}} aws s3api delete-bucket --bucket $BUCKET_NAME --region us-east-1 """ ``` ### CloudFormation Stack Integration The break glass role and associated policies are created through a CloudFormation stack that you deploy to your AWS account. This stack creates: * A break glass IAM role with elevated permissions * Policies that define the scope of emergency access * Trust relationships that allow Nuon runners to assume the role Once enabled, the roles can be referenced in your actions, providing secure access to elevated permissions when needed. ### Security Considerations Break glass roles enable a customer to temporarily grant elevated permissions and should be used with caution. They are primarily designed for mitigating customer issues, running migrations and other opt-in operations that require a customer to grant temporary elevated permissions. ## Nuon Workflows TUI You can now run entire workflows via our experimental TUI. To interact with workflows, you can use the following command: ```bash theme={null} NUON_PREVIEW=true nuon installs workflows ``` You will then see all recent workflows, and can select a workflow to enter the TUI view: ![Nuon Workflows TUI](https://mintcdn.com/nuoninc/A2qzOucGBPlkn_Yo/updates/assets/2025-10-07-10-39-23.png?fit=max\&auto=format\&n=A2qzOucGBPlkn_Yo\&q=85\&s=70283866cbf79e4a703f3cf0d7c79a58) ## Bug Fixes and Improvements * Fixed an issue where some Nuon Workflows would not generate if too many actions or components were defined. * Fixed an issue where some Nuon Workflows could fail silently. * Reduced logging volume by not logging requests unless debug flags are enabled. * Reduced metrics volume by pruning some redundant metrics. # 021 - Drift Detection for Components and Sandboxes Source: https://docs.nuon.co/updates/021-drift-detection Detect infrastructure drift automatically on your installations *Oct 13, 2025* v0.19.662 ## Drift Detection Drift detection allows you to automatically identify discrepancies between your defined infrastructure and what's actually running. You can now configure periodic drift detection checks for components and sandboxes through a simple cron schedule. ## Features ### Drift Detection for Sandboxes You can now define a cron schedule in your `sandbox.toml` that periodically checks for drift by performing a "terraform plan": ```toml theme={null} terraform_version = "1.11.3" drift_schedule = "0 * * * *" # Runs every hour at minute 0 ``` ### Drift Detection for Components Similarly, drift detection can be configured at the component level for Terraform, Helm, and Kubernetes Manifest components. Example for a Helm component: ```toml theme={null} name = "helm_chart" type = "helm_chart" chart_name = "nuon" namespace = "{{.nuon.install.id}}-test" storage_driver = "configmap" drift_schedule = "0 * * * *" # Runs every hour at minute 0 ``` > **Note:** Changes to drift\_schedule require rebuilding the sandbox or component to take effect. ### Drift Visibility The install components page now clearly highlights components that have drifted from their defined state and provides direct links to the relevant workflows to review the differences. ![Dashboard to view drifted component](https://mintcdn.com/nuoninc/TTMsp1_UzqUpi7R7/updates/assets/021/drift-install-components-page.png?fit=max\&auto=format\&n=TTMsp1_UzqUpi7R7\&q=85\&s=281f478dd1cb34a216842ae75f85c921) Install workflows page also marks the workflows that are drift scans. ![Install workflows flagging drift scans](https://mintcdn.com/nuoninc/TTMsp1_UzqUpi7R7/updates/assets/021/install-workflows.png?fit=max\&auto=format\&n=TTMsp1_UzqUpi7R7\&q=85\&s=b7d8ea6c203da9770afe5bb3d0fb5063) ## Limitations **Current Workflow Constraint:** At present, only one workflow can run per install at a time. This means: * If a drift detection workflow is running when you attempt to manually deploy a component or reprovision a sandbox, your workflow will be queued until the drift workflow completes. * We're actively working to remove this limitation in an upcoming release. ### Deny plans and continue workflow We can now deny plan and continue with the workflow with rest of the component. Deny button comes with additional option to deny and skip steps. ![Denied and continued plan](https://mintcdn.com/nuoninc/W1BzCWTTB874cWIb/updates/assets/021-approval-deny-continue-01.png?fit=max\&auto=format\&n=W1BzCWTTB874cWIb\&q=85\&s=01dab17b6ad850ebd31f33bed5660608) ### Actions TUI Actions and Action Runs for installs can now be viewed via the cli. ```bash theme={null} NUON_PREVIEW=true nuon installs actions ``` ![Actions TUI](https://mintcdn.com/nuoninc/TTMsp1_UzqUpi7R7/updates/assets/021/install-workflows.png?fit=max\&auto=format\&n=TTMsp1_UzqUpi7R7\&q=85\&s=b7d8ea6c203da9770afe5bb3d0fb5063) ### Nuon Runner Cloudformation Stack The stack has been updated to remove a policy in order to reduce permissions available to the Runner ASG instances. It is recommended to update the stack to version `v0.1.8`. ## Bug Fixes and Improvements * Improvements to generate steps to improve resilience in Temporal. * Fix to disable server side apply on helm client for components. * Fix where some Nuon plans can not be generated if outputs are not ready yet. * Fix where some app configs from older cli versions (pre 0.19.620) would not correctly build. * Fix where some build runners could run out of memory and not recover. # 022 - Nuon CLI Github Action Source: https://docs.nuon.co/updates/022-nuon-cli-github-actions GitHub Action for setting up the Nuon CLI in CI/CD workflows *Oct 17, 2025* v0.19.673 ## Nuon CLI GitHub Action A GitHub Action is now available for setting up the Nuon CLI in your CI/CD workflows. Here's an example of how the action can be used: ```yaml theme={null} - name: Run Nuon command uses: nuonco/actions-nuon@v1 with: org_id: ${{ secrets.NUON_ORG_ID }} api_token: ${{ secrets.NUON_API_TOKEN }} command: 'orgs current' ``` Take a look at [nuonco/actions-nuon GitHub repo](https://github.com/nuonco/actions-nuon) for documentation. ## Improvements * Onboarding flow can now be re-opened from the sidebar. ## Bug Fixes * Fixed various issues with Terraform backend download. * Fixed bug causing user to get stuck in onboarding if they close the view before creating an org. * Fixed bug causing sandboxes to not reprovision after input update. * Fixed bug causing helm diffs to not render changes. * Assorted small UI and API fixes. # 023 - Drift Scanning Improvements Source: https://docs.nuon.co/updates/023-drift-workflow-improvements Enhanced drift detection capabilities. *Oct 27, 2025* v0.19.678 ## Drift Scanning Enhancements We've expanded our drift detection capabilities with new scanning features. **Component Drift Scanning**: You can now trigger drift scans directly from individual component pages to detect configuration drift at the component level. ![Component Drift Scanning](https://mintcdn.com/nuoninc/B8dYo4CrqNr3ivRx/updates/assets/023-image-1.png?fit=max\&auto=format\&n=B8dYo4CrqNr3ivRx\&q=85\&s=a80a87b18dcb3d3925efa6cf4b69072e) **Sandbox Drift Scanning**: Added drift scan functionality for sandbox environments, allowing you to identify discrepancies between expected and actual sandbox states. **Break Glass Action Info**: Added comprehensive break glass information to action pages, giving you better visibility into emergency access procedures and their usage. ## Bug Fixes and Improvements * **Log Streams**: Fixed issue resulting in log streams not being closed properly. * **Component Configuration**: Resolved issues with TOML parsing and component capability handling. * **Action Validation**: Resolved action run validation errors that were preventing successful action execution. * **Monitoring**: Added frontend endpoint timing metrics for better observability. # 024 - Improvements to Install Inputs Source: https://docs.nuon.co/updates/024-install-inputs-ui-redesign Install inputs via CloudFormation stacks, and user-configurable inputs. *Nov 5, 2025* v0.19.688 ## Install Inputs Install input parameters can now be integrated into your CloudFormation stack, allowing users to add them when installing your application. You can now also distinguish between vendor-provided inputs and user-configurable inputs, with vendor as the default source type. ## Sign-Up Updates Support users are now added to trial orgs, to provide support for new users. ## Bug Fixes * Fixed issue with steps ordering during teardown processes. * Removed empty input groups from CloudFormation templates. * Improved resilience to state issues caused by cookies. * Fixed rendering of break glass roles on install actions page. * Install will be put into "mangaed-by-config" mode, even if there are no changes to sync. * Install configs will generate even if inputs are empty. # 025 - Temporal Workflow Stability Improvements Source: https://docs.nuon.co/updates/025-temporal-stability Fix issues with component workflows retrying. *Nov 10, 2025* v0.19.690 ## Temporal Workflow Stability Improvements Fixed an issue where temporal workflows were being continuously retried when an install was created and not deployed. This was resulting in extra memory pressure on the temporal workers and postgres instance. ## Bug Fixes * Fixed a null pointer issue with missing input values. * Fixed validation responses now returning 400 level responses instead of 500s. # 026 - Helm Repository Support Source: https://docs.nuon.co/updates/026-helm-repository-support Deploy charts directly from public Helm repositories. *Nov 12, 2025* v0.19.691 ## Helm Repository Support Helm Components now support deploying charts directly from public Helm repositories via the `helm_repo` block. This allows you to use any chart available on public repositories like the Prometheus Community charts without needing to maintain your own Git repository. To use a public Helm chart, specify the repository URL and chart name: ```toml theme={null} [helm_repo] repo_url = "https://prometheus-community.github.io/helm-charts" chart = "kube-prometheus-stack" ``` This is equivalent to the Helm CLI workflow: ```bash theme={null} helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm install my-release prometheus-community/kube-prometheus-stack ``` You can discover public Helm charts on [Artifact Hub](https://artifacthub.io/), which indexes thousands of open-source Helm charts. See the [Helm Chart Components](/guides/helm-chart-components#using-public-helm-repositories) guide for more details. # 027 - Install config toggle Source: https://docs.nuon.co/updates/027-install-config-toggle Clearer install config mode switching. *Nov 20, 2025* v0.19.707 ## Install Config file improvements ### Toggle Install Config file syncing Users can now enable or disable syncing an Install from a config file, from dashboard as well as CLI. **Dashboard:** You can find the toggle to enable/disable config file syncing in the management menu of an Install. ![New install config toggle button](https://mintcdn.com/nuoninc/Ljr0DTWVbbc6xM4N/updates/assets/027_install_config_toggle_button.png?fit=max\&auto=format\&n=Ljr0DTWVbbc6xM4N\&q=85\&s=23553d4cf8489c9a7fdca00c980406ee) ![New install config toggle button](https://mintcdn.com/nuoninc/Ljr0DTWVbbc6xM4N/updates/assets/027_install_config_toggle_modal.png?fit=max\&auto=format\&n=Ljr0DTWVbbc6xM4N\&q=85\&s=d461131765f25f0ffe2672c8d5955bb5) **CLI** The CLI features a new command to toggle config file syncing for an Install. Run `nuon installs toggle-sync` to toggle the config file syncing, or use `--enable` or `--disable` to explicitly set the syncing status. ![New CLI command installs toggle-sync](https://mintcdn.com/nuoninc/Ljr0DTWVbbc6xM4N/updates/assets/027_cli_installs_toggle_sync.png?fit=max\&auto=format\&n=Ljr0DTWVbbc6xM4N\&q=85\&s=69b2985f11f85ec91e29cb6c1a3eb414) > **Note:** Please upgrade the CLI to `0.19.708` to avoid seeing the error `unable to sync installer - &{ false} (*models.StderrErrResponse) is not supported by the TextConsumer` when running `nuon apps sync`. ### Required Inputs Install Config files now need to have the required inputs defined explicitly. Now it is not possible to set their value from UI, or utilising the default value implicitly. ### UI Refresh We've been rolling out our new design system to users, bringing a more modern and polished look to the dashboard. This update includes refreshed UI components, improved visual hierarchy, and a cleaner overall aesthetic for developer workflows. If you would like to use the updated UI, reach out to our team so we can enable it for your organization. We would love to hear your feedback! ![Stratus screenshot](https://mintcdn.com/nuoninc/XNjIj6y_RKrDnSUd/updates/assets/027/Stratus_screenshot.png?fit=max\&auto=format\&n=XNjIj6y_RKrDnSUd\&q=85\&s=65dece57f49486bd26be674ff82a6336) ### Mermaid Diagrams in READMEs READMEs now support [Mermaid](https://mermaid.js.org/) diagram rendering. ![Mermaid diagram screenshot](https://mintcdn.com/nuoninc/XNjIj6y_RKrDnSUd/updates/assets/027/mermaid_diagram_screenshot.png?fit=max\&auto=format\&n=XNjIj6y_RKrDnSUd\&q=85\&s=e67afc610636a4dc56faa2df74714b26) ## Bug Fixes * UI: Fixed missing badge for Install managed by config file in the header. * CLI: Fix empty diff when syncing a new install using a config file. * CLI: Syncing an Install without having Install Config syncing enabled now results in an error. These only produced a warning before, going unnoticed in CI workflows. * UI: Fixed missing API URL in Terraform backend config download. * Azure: Fixed phone home script in Azure install stack. * CLI: Fixed new input values not syncing from install config files * Azure: Correctly load and display azure stack outputs # 028 - Nuon is now Open Source Source: https://docs.nuon.co/updates/028-open-source Nuon's core platform is now open source, plus new features and improvements. *Dec 24, 2025* v1.0.0rc ## Nuon is now Open Source 🎉 We're excited to announce that **Nuon is now open source**! The core platform powering BYOC deployments is now available on GitHub at [github.com/nuonco/nuon](https://github.com/nuonco/nuon). This release marks a major milestone for Nuon, enabling the community to contribute, inspect, and build upon the platform. ## Nuon Labs We've launched [Nuon Labs](https://labs.nuon.co/) — a place where we'll announce new and upcoming features, share experimental ideas, and give you early access to what we're building next. Check it out to stay ahead of the curve! ## New Features ### Organization Dashboard A new organization dashboard provides visibility into your org's stats and usage at a glance. ![Organization Dashboard](https://mintcdn.com/nuoninc/oKq5PsOI1XBTYmvG/updates/assets/028/org_dashboard.png?fit=max\&auto=format\&n=oKq5PsOI1XBTYmvG\&q=85\&s=1b3b60203f16f81d5fba346fbde9b039) ### Real-time Streaming Logs Logs throughout the dashboard now stream in real-time using Server-Sent Events (SSE), giving you instant visibility into workflow execution without manual refreshing. ### CLI `--no-input` Flag The CLI install script now supports a `--no-input` flag for fully non-interactive installations, making it easier to integrate into CI/CD pipelines and automation scripts. ```bash theme={null} curl -sSL https://install.nuon.co | bash -s -- --no-input ``` ### VS Code Extension & Language Server Nuon now includes a Language Server Protocol (LSP) implementation with a [VS Code extension](https://marketplace.visualstudio.com/items?itemName=Nuon.nuon-lsp), providing autocomplete, validation, and inline documentation for Nuon configuration files. ### Templatable Stacks Stacks now support templating, allowing you to parameterize and reuse stack configurations across different environments and installs. ## Bug Fixes * UI: Fixed invalid state issue during multi-tab login * UI: Login page button now uses proper `` tag for accessibility * API: Fixed missing `org_id` bugs * CLI: Fixed `nuon delete` command * API: Fixed post-install validation response code * API: Fixed error handling when getting workflow logger # 029 - BYO-VPC, Auth & UX Improvements Source: https://docs.nuon.co/updates/029-auth-inputs-better-nested-templates BYO-VPC support, Nuon Auth service, Runner Auth, and numerous UX improvements *Feb 3, 2026* v0.19.770 ## Better Support for Custom Nested VPC Templates We've improved handling of nested VPC stack parameters to better support custom templates for `byo-vpc` (bring your own VPC) and `byo-eks` (bring your own EKS Cluster) deployments. Parameters from nested VPC stack templates are now dynamically loaded and "hoisted" into the parent stack in the "VPC Configuration" parameter group. ### Stack Config Breaking Change > [!WARNING] > > Breaking Change Apps using the nuon `vpc/eks/default` nested VPC stack should upgrade to `v0.1.12`. This change is a noop on CloudFormation but addresses an issue with earlier versions that affected strict YAML parsers. ## Nuon Auth Service ![Nuon Auth](https://mintcdn.com/nuoninc/C_HgJsqVVPVJL9BS/updates/assets/029/auth-service.png?fit=max\&auto=format\&n=C_HgJsqVVPVJL9BS\&q=85\&s=53dcb712db0ae0ccd4eff5767bb3106e) BYOC installs now have the option of using the new Nuon Auth service which adds support for `google` and generic `oidc` providers. Users can bring their own IdP and Nuon BYOC no longer has a dependency on Auth0. Key features: * Suport for multiple IdPs * Device code login flow for CLI authentication * Configurable allowed domains ## Runner IAM Authentication Runners can now authenticate using an AWS IAM-based scheme with pre-signed requests. This improves security, simplifies install provisioning, and reduces friction during runner token refresh. ## Onboarding UX Improvements Moved new user onboarding to it's own page, to make entering and leaving the flow more intuitive. ## Install Form Improvements Install form values are now saved as drafts preventing the need to re-input a large set of inputs if the install modal is closed. ## Customer and Vendor Inputs App authors can now define inputs as customer or vendor inputs. This is used to control which inputs a customer has control over in the upcoming customer dashboard. ## Forget Install Component New feature to "forget" an install component, removing it from an app. Intended to be used for components that have already been torn down. ## Drift Detection UI Updated drift detection elements for better visibility into infrastructure state changes. ## Dashboard UX Improvements * New sign up page design * Stratus design system updates across app inputs, team page, install forms * Improved VCS connection experience * Better action run outputs display * SSE log connection improvements * Auto-approved status display for workflow steps * Improved async boundary patterns for better loading states ## Kustomize Support Kubernetes manifest components now support Kustomize for more flexible manifest management. ## Bug Fixes * Fixed empty string handling in edit inputs form * Fixed platform passing on create install form * Fixed handling of Temporal workflow not found during cancel * Fixed short circuit for action crons if install not provisioned * Fixed app config sync not migrating existing install inputs * Fixed VCS validation handling * Fixed multi-tab login invalid state issue # 030 - Policies Source: https://docs.nuon.co/updates/030-policies Enforce compliance, security, and operational standards across component deploys, sandbox runs, and external images. *Feb 19, 2026* ## Policies Nuon now supports **Policies** for component deployments, sandbox runs, and external container images. Nuon policies now extends beyond the existing in-cluster Kyverno policies to give you control over your entire deployment pipeline. ### What's New * **Deploy-time policies**: Validate Terraform plans, Helm charts, and Kubernetes manifests before changes are applied. Enables blocking of deployments with `deny` rules and logging warnings with `warn` rules * **Sandbox policies**: Enables enforcing standards on sandbox infrastructure provisioning * **External image policies**: Validate container image metadata during builds to check for signed images, SBOMs, and attestations and provenance before images are deployed into an install * **Policy reporting**: View and filter all policy reports across installs by status, type, for compliance auditing and governance reporting ### Learn More * [Policies Concepts](/concepts/policies): Understand how policies work, supported types, and evaluation phases * [Configuring Policies Guide](/guides/configuring-policies): Step-by-step walkthrough for adding policies to your app * [Example Policies Repository](https://github.com/nuonco/policies): Ready-to-use policy examples for Terraform and Kubernetes ## Custom Nested CloudFormation Stacks The install stack, `stack.toml`, now supports custom nested CloudFormation templates. This enables the provisioning of additional AWS or Kubernetes resources before the sandbox or any components simplifying the permissions story and enabling two new deploy methods: `byo-vpc` and `byo-eks`. Custom stacks are configured via `[[custom_nested_stacks]]` blocks in `stack.toml`. These are ideal for use cases like creating Kubernetes namespaces, EKS access entries, dedicated subnets, or transit VPCs. See the [Custom Nested Stacks guide](/guides/custom-nested-stacks) for full details. ## Introducing Ad-hoc Actions Run one-off bash scripts or commands on installs for debugging and maintenance without creating permanent action config, with full UI support including a code editor component. ## Nuon LSP Improvements ### Added * Workspace-wide (multi-file) diagnostics. * Rich hover documentation with signatures, required/deprecated badges, constraints, and examples. ## Dashboard UX Improvements * Policy reports UI with filtering and dedicated policy detail pages. * Auto-approve option on the install creation. * Improved install stack page with stack version details and config visibility * Redirect to workflow page after manual action runs with improved log filtering * Stratus design system updates for component config, install tables, and workflow filters * Break glass role display fix for unprovisioned installs. ## Bug Fixes * Fixed Kubernetes manifest plan rendering * Fixed manual action now display the workflow name instead of a generic message * Fixed handling of null props in action run outputs rendering * Made `CreateApprovalResponse` idempotent to prevent duplicate approval errors on workflow retries * Bumped default Helm timeout to 30 minutes to avoid bad state on initial deploy failures * Fixed CloudFormation stack to omit secrets section when none are configured * Fixed empty allowed domains env var handling in auth service # 031 - Operation Roles Source: https://docs.nuon.co/updates/031-operation-roles Assign different roles to different operations across sandbox, components, and actions for least-privilege access control. *Feb 26, 2026* ## Operation Roles Nuon now supports **operation roles** — a flexible system for assigning distinct roles to individual operations across your app's sandbox, components, and actions. Instead of relying on a single maintenance role for everything, you can grant exactly the permissions each operation needs and nothing more. ### What's New * **Entity-level roles**: Assign specific roles inline on `sandbox.toml`, component configs, and action configs. Entity roles take precedence over app-wide matrix rules * **App-wide matrix rules** (`operation_roles.toml`): Define a central lookup table that maps entity principals and operations to role names, with support for wildcards (`nuon::component:*`, `nuon::action:*`) * **Runtime role override**: Pass `--role ` via the CLI or use the role selector in the dashboard to override the role for a single run without changing any config * **Break-glass role for actions**: The existing `break_glass_role` field on actions is now part of the formal precedence chain, sitting above entity roles for emergency elevated access * **Role name templating**: All role name fields support Go template syntax (e.g., `{{.nuon.install.id}}-deploy-role`) for per-install role isolation ### Role Selection Precedence When the runner selects a role for an operation it uses the first match from: 1. Runtime override (CLI `--role` flag or dashboard selection) 2. Break-glass role (actions only) 3. Entity role (inline `operation_roles` block or `role` field) 4. Matrix rule (`operation_roles.toml`) 5. Default role (`permissions.toml`) ### Valid Operations by Entity | Entity | Operations | | - | - | | Sandbox | `provision`, `reprovision`, `deprovision` | | Component | `deploy`, `teardown` | | Action | `trigger` | ### Learn More * [Operation Roles Concepts](/concepts/operation-roles): Understand the mental model, precedence chain, and role name resolution * [Operation Roles Guide](/guides/operation-roles): Step-by-step configuration for entity roles, matrix rules, CLI overrides, and templating # 032 - Nuon TUIs and Extensions, Dashboard UX, and Role Management Updates Source: https://docs.nuon.co/updates/032-extensions-and-roles We're shipping CLI workflow TUIs, CLI Extensions to GA, dashboard-ui shipped major workflow and onboarding improvements, and ctl-api expanded operation role support. *Mar 25, 2026* Since v0.19.821 ## Workflow TUI The install workflows TUI is now generally available in the `nuon` CLI. The workflow TUI provides a single place to follow workflow progress in real time, inspect step details, and take action all from the terminal. ![workflow-tui](https://mintcdn.com/nuoninc/5h1TRHoCZAFkTnFw/images/changelog/032-workflow-tui.png?fit=max\&auto=format\&n=5h1TRHoCZAFkTnFw\&q=85\&s=d636e52e3dd324302e4f56d16b8b3783) Run `nuon installs workflows` to open a guided, interactive view of your install workflows. From there, you can review plan diffs, approve steps, retry failed actions, and cancel workflows when needed. The experience is designed to make day-to-day operations faster and easier for teams that work directly in CLI-first environments. ## Introducing CLI Extensions We are introducing a way to extend the functionality of the Nuon CLI via custom extensions. Extensions are generally available and work as first-class `nuon` commands. This enables teams to build tailored workflows directly into the CLI usage. We've authored a few extensions which are available now. For example, with `nuon api`, you can browse and call Nuon's public API from the command line using a spec-driven client that supports interactive discovery and script-friendly output. Run `nuon extensions` to explore extensions. ``` nuon extensions browse NAME VERSION INSTALLED REPO DESCRIPTION ────────────────────────────────────────────────────────────────────────────────────────────────────── api v0.19.821 * nuonco/nuon-ext-api Nuon Extension: API Client render v0.1.5 * nuonco/nuon-ext-render Nuon Extension: Utility to render app c… ``` Try out the `api` extension. ``` nuon extensions install nuonco/nuon-ext-api nuon api --help ``` ### Learn More * [Nuon CLI Extensions](/guides/cli-extensions) ## Dashboard UI Changes and Improvements The Nuon dashboard has focused on two themes: moving key product surfaces onto the SPA/BFF architecture and making install operations more observable and easier to act on. ### Platform and Navigation * Migrated major product surfaces to the SPA pattern, including onboarding, install components, admin panel, audit logs, and install config download flows. * Improved navigation behavior with empty-route redirects, safer login redirects, and org-level dashboard redirects when enabled. * Simplified and modernized dashboard presentation with better page titling, icon usage, scroll ergonomics, and version rendering consistency. [https://www.youtube.com/embed/63qBsCQeZnc?autoplay=1\&mute=1\&loop=1\&playlist=63qBsCQeZnc\&controls=0\&showinfo=0\&modestbranding=1\&rel=0](https://www.youtube.com/embed/63qBsCQeZnc?autoplay=1\&mute=1\&loop=1\&playlist=63qBsCQeZnc\&controls=0\&showinfo=0\&modestbranding=1\&rel=0) Workflow notifications and Status bar in action. ### Workflow Visibility and Approvals * Added org-level and install-level active workflow experiences, with follow-up refinements to keep only in-progress workflows in active views. * Added pending-approval toasts and notification improvements so approval-required workflows are easier to spot and action. * Expanded workflow detail panels to include logs and added downloadable logs for easier incident and support handling. * Improved approvals UX with better defaults and guardrails (including duplicate build warning and safer stack-run handling). ### Install and Action Operations * Added role-aware UI paths for reprovision and install input updates, including custom role selection improvements. * Added role provision status indicators for install and app role visibility. * Added quick-action improvements like forget install, ad-hoc action reruns, and better quick-menu loading behavior. * Improved runner and runner-job interactions, including endpoint alignment for restart behavior. * Added the ability to download logs to a `.txt` file. ## Role and Operation Roles ### Operation Role Selection and Workflow Propagation * Refactored role resolution so role mapping and auth context are determined in plan workflows, improving consistency between planning and execution. * Added explicit role override support to reprovision and install-input update workflows via role fields in workflow creation paths. * Continued hardening selector behavior around template rendering, stack-output role lookup, and default-role fallback behavior. ### Available Roles and Role Status APIs * Role picker now allows selecting from all available enabled roles. * Enable UI visibility into enabled/provisioned roles along with its identifier. ### GCP, Break-Glass, and Custom Role Support ![gcp-role-support](https://mintcdn.com/nuoninc/w2l-EVwtgc4iadX2/images/changelog/032-gcp.png?fit=max\&auto=format\&n=w2l-EVwtgc4iadX2\&q=85\&s=433320d4519cf774ea04c8794baeb339) * GCP installs now resolve custom roles and break-glass service accounts through the same operation-role selection used by AWS and Azure. * GCP stack outputs are parsed into the role lookup flow so role pickers and plan workflows see GCP roles alongside other cloud roles. * Sandbox-mode fake stack outputs include custom role, break-glass, and install-input identifiers for role-aware sandbox planning. ### Install Stack Role Provisioning Behavior * Updated CloudFormation role parameter defaults so custom roles are auto-selected when referenced by operation role configs (entity-level roles or matrix rules). ## Changed * Improved `auth login` to better respect configured API URL. * `installs create` now has support for install selection * New `runner` group with `restart` and `shutdown` commands. * Standardized `get`/`current` behavior. `current` is deprecated but will remain supported for some time. * Fully deprecated `nuon apps sync` command. * Dashboard UI now routes key surfaces through the SPA architecture, including onboarding, install components, admin panel, audit logs, and install config download. * Workflow UX in dashboard now emphasizes active in-progress runs, surfaces pending approvals earlier, and improves plan/step visibility with better defaults and safeguards. * Operation-role selection in ctl-api was hardened so planning and execution use the same role-resolution flow with stronger runtime override handling. * Install role APIs in ctl-api were expanded and normalized so role availability/provisioning state is exposed consistently across clouds. * Custom role enablement in install stack generation now defaults correctly when roles are referenced, with follow-up nil-safety fixes. * GCP permission fields (GCPPermissions, GCPPredefinedRole, CloudPlatform) are now synced when converting IAM roles. * Role configs now enforce platform validation to prevent misconfigured cloud-specific fields. * Deploy flow step sequencing was refined, including noop output handling and retry-after-timeout scenarios. ## Added * Added interactive app selection to `nuon installs create`. When `--app-id` is omitted, a new app selector contextual TUI Is surfaced. * Added install runner management commands under `nuon installs runner` (`get`, `restart`, `shutdown-vm`). * Added install workflow diff support in the workflow TUI. * Added preview `nuon installs reprovision-sandbox` command to schedule sandbox reprovision workflows. * Added dashboard support for org-level and install-level active workflow views, pending-approval notifications, and workflow log downloads. * Added dashboard role-aware actions for reprovision and install input updates, plus role provision status visibility in install/app role workflows. * Added ctl-api role override inputs for reprovision and install input update workflows so selected roles propagate into workflow creation. * Added ctl-api support for GCP custom and break-glass role resolution in available-role and operation-role selection paths. * Added richer sandbox fake stack outputs (custom roles, break-glass roles, and install inputs) to support role-aware sandbox-mode planning. * Added new param to action config to allow toggle injection of kube config in action context. * Added auto-retry toggle to the workflow TUI for retrying failed steps without leaving the TUI. * Added break-glass directory support in the CLI. ## Bug Fixes * Fixed React hook bug causing deploy pages to crash. # 033 - Parallel Workflows, Policy Analytics, and Improved GCP/Azure Source: https://docs.nuon.co/updates/033-Workflow-Policy-and-improved-cloud-support **New**: Parallel Workflows, Retries, Policy Analytics, Labels **Improved**: Azure, GCP, Plan Diffs, Runner Management *April 24, 2026* Since v0.19.952 ## Parallel Workflows No longer blocked on an in-flight deploy - you can run multiple workflows concurrently. ![dashboard-overview](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-dashboard-overview.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=a28826671f02fb13f0f251e7c9160ac5) [Workflows](/concepts/workflows) on an install used to queue behind each other, now you can fire off diagnostic actions *while* a deploy is in flight. ## Automatic Retries Configure `auto_retry` on a [component](/concepts/components) and it re-plans + re-applies itself on transient failures; bound retries per component with `max_auto_retries` so a genuinely broken component still surfaces instead of looping forever. ![automatic-retries](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-automatic-retries.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=46a5d2bd096c634491431872d45e5e35) ## Runner Process Management On the Install's [Runner](/concepts/runners), we now show both the management (VM) process and container process directly and let you control them. ![runner-processes](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-runner-processes.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=a7f66e98f0217efe36a39cc23e05e9c2) ## Drift Detection - Better diffs Diff rendering is updated to be easier to navigate and approve changes. Preventing a missed critical change in the customer environment. ![plan-diffs](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-plan-diffs.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=c17b0cf9231de32aa2ddb25e3e581652) ## Policy Evaluation Analytics When a policy is starting to throw warnings, you need to know which install and which component, action or deploy triggered it. Every [policy evaluation](/concepts/policies) is now surfaced on a per-app Analytics page. ![policy-analytics](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-policy-analytics.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=3180983b907ecf29ac8aba6ad7b7bbc4) ## Labels You can now label installs, components, and actions. This enables you to add additional metadata to labels and correlate installs, actions and more together. ![labels](https://mintcdn.com/nuoninc/dkxtFMjK3vkWLBtg/images/changelog/033-labels.png?fit=max\&auto=format\&n=dkxtFMjK3vkWLBtg\&q=85\&s=cb643fa5bfaecacb8307505951f1afef) ## Azure Improvements ### Bring your own stack Vendors and customers can layer their own infrastructure on top of the default Azure install using the new [install-stacks](https://github.com/nuonco/install-stacks) repo. This makes it easy to meet enterprise networking, compliance, or naming requirements. ### Pick the right sandbox for the job * [AKS sandbox](https://github.com/nuonco/azure-aks-sandbox) now supports Karpenter via the Node Auto Provisioning add-on. * [Azure Min sandbox](https://github.com/nuonco/azure-min-sandbox) is a lightweight sandbox for foundation Azure infrastructure such as container registry. It can power environments such as Azure Container Apps. ### Start fast with proven app templates * [aks-simple](https://github.com/nuonco/example-app-configs/tree/main/aks-simple) for Kubernetes apps * [aca-simple](https://github.com/nuonco/example-app-configs/tree/main/aca-simple) for serverless container apps on Azure Container Apps ### Runner authentication Runners on Azure authenticate to Nuon using Azure's workload identity. This removes shared secrets and rotation, and matches the zero-trust posture already available on AWS and GCP. ### First-class container registry support Builds, image syncs, and component deploys work seamlessly with Azure Container Registry, with per-organization identity and access handled automatically. ### Customer-managed secrets via Key Vault App secrets sync directly into Azure Key Vault, so workloads can consume them through native Azure mechanisms, the same pattern customers already use with AWS Secrets Manager. ## GCP Improvements ### BYOC on GCP Nuon BYOC is now available on Google Cloud. The control plane runs on GKE using GCP-native primitives — Cloud SQL for state, [Google Artifact Registry](https://cloud.google.com/artifact-registry) for builds, GCS for install stack templates, and [Secret Manager](https://cloud.google.com/security/products/secret-manager) for secrets — all wired together with Workload Identity. Managed remotely by Nuon the same way as the AWS BYOC offering. ### Cross-cloud image sources * `aws_ecr` external images can now be pulled from GCP-managed runners. The runner exchanges its GCP OIDC token for AWS credentials via STS `AssumeRoleWithWebIdentity`, no shared secrets required. * New `gcp_gar` external image source mirrors `aws_ecr`. Vendors provide a service account email and workload identity provider; the control plane impersonates the SA via ADC on GCP, or via Workload Identity Federation when running on AWS. ### Simpler install creation `project_id` and `region` are no longer required up front when creating a GCP install. Customers pick them when they install the stack, and can re-run the stack with a different project or region without recreating the install. ### Runner authentication Runners on GCP authenticate to Nuon using [management-mode credentials](/guides/runner-management-mode) backed by Workload Identity. This removes shared secrets and matches the zero-trust posture already available on AWS and Azure. ### Default runner template Spinning up a GCP install is a one-step flow — installs ship with a default runner template, no custom Terraform required. ### First-class container registry support Builds, image syncs, and component deploys work seamlessly with [Google Artifact Registry](https://cloud.google.com/artifact-registry), with per-organization service accounts and Workload Identity bindings handled automatically. ### Customer-managed secrets via Secret Manager App secrets sync directly into [GCP Secret Manager](https://cloud.google.com/security/products/secret-manager), so workloads can consume them through native GCP mechanisms — the same pattern customers already use with AWS Secrets Manager and Azure Key Vault. ### Start fast with proven app templates * [gke-simple](https://github.com/nuonco/example-app-configs/tree/main/gke-simple) for Kubernetes apps on GKE ## Other Updates **Policy Config API & Reporting** * Added a [`GET /v1/apps/{app_id}/policies-configs/{config_id}`](https://api.nuon.co/docs/index.html#/apps/GetAppPoliciesConfig) endpoint for retrieving an app's policy configuration, with corresponding dashboard-ui integration. * "Policy Evaluations" has been renamed to "Policy Reports" across the UI and docs. Sandbox policies now correctly scope to the sandbox install only. **Nuon CLI - New Commands** `nuon install stacks` For listing and retrieving [install stacks](/concepts/stacks). This command is useful for scripting workflows and ```bash theme={null} nuon installs stacks # e.g. to get th emost recent aws quick link url nuon installs stacks latest --json | jq '.quick_link_url' ``` `nuon installs actions` Has been augmented with sub-commands to get action outputs: ```bash theme={null} # for use in CI nuon installs actions outputs --action-workflow-id --json ``` `nuon installs components` Has been augmented with sub-commands to get component outputs: ```bash theme={null} # for use in CI nuon installs components outputs --component-id --json ``` # 034 - Slack Integration, Webhooks, and AWS Terraform Stacks Source: https://docs.nuon.co/updates/034-aws-terraform-install-stack Slack notifications, org-scoped webhooks, and Terraform stacks for AWS. *May 12, 2026* ## Slack integration The Nuon Slack app is now available. Connect a workspace from your org's **Slack** page in the [dashboard](https://app.nuon.co/), then run `/nuon subscribe` in any channel to route install, workflow, approval, and drift events into Slack. ![Subscribe a channel modal](https://mintcdn.com/nuoninc/GHPrxpfE8HIHkNXa/images/changelog/034-subscribe-channel-modal.png?fit=max\&auto=format\&n=GHPrxpfE8HIHkNXa\&q=85\&s=28af6637945e3a0b6a4560fc979411fe) See the [Slack guide](/guides/slack) for the full walkthrough — workspace linking, channel subscriptions, slash commands, and how events render in threads. ## Webhooks Org-scoped [Webhooks](/guides/webhooks) are now available. Nuon now POSTs workflow and workflow step lifecycle events to any HTTPS endpoint you register on your Org. Manage webhooks from your org's **Webhooks** page in the [dashboard](https://app.nuon.co/) or from the CLI: ```sh theme={null} # List webhooks for the current Org nuon orgs webhooks list # Create a webhook (URL is required, secret is optional) nuon orgs webhooks create --url https://example.com/webhooks/nuon --secret # Update a webhook's subscription scope and event filter nuon orgs webhooks update --webhook-id --subscription-file ./subscription.json ``` Each webhook supports an [interests filter](/guides/webhooks#filtering-events-with-interests) that narrows down which events get delivered, and a [match predicate](/guides/webhooks#scoping-deliveries-with-match) that scopes deliveries to specific installs, components, or actions. ## Terraform Stack template for AWS You can now provision [Stacks](/concepts/stacks) for AWS installs using Terraform. ![aws await install stack screenshot](https://mintcdn.com/nuoninc/fVR1KMgnmEDzSoCm/images/changelog/034-aws-tf-stack-await-install-stack.png?fit=max\&auto=format\&n=fVR1KMgnmEDzSoCm\&q=85\&s=f2b27e5eec0e70402feafc55cb7d8b97) Cloudformation is still supported, and you can choose either option when creating an install. The Terraform template will create the same resources as the Cloudformation template, and the resulting Stack will function exactly the same. The template is open source and can be found in the [nuonco/install-stacks](https://github.com/nuonco/install-stacks) repo. If you use [custom nested stacks](/guides/custom-nested-stacks) in the Cloudformation template, you can customize the Terraform template by forking the repo, just like you would for any other Terraform module. Read the [Customizing Terraform Stack Templates](/guides/customizing-terraform-stack-templates) guide for more details. ## Also in this release * **AWS install stacks now use IID-based runner auth by default.** * **Workflow timeouts** apply at every stage of execution. * **Dashboard refinements** across policy reports, install navigation, and the trace viewer. # 035 - Runbooks and rendered READMEs Source: https://docs.nuon.co/updates/035-runbooks-and-readmes Notebooks that define common actions you need so you've got a runbook for the next incident or upgrade *June 1, 2026* ## Runbooks Runbooks let you define a named, ordered sequence of steps, and run it in your customer's environment with confidence the actions are already proven. The common use cases: * on-call restart * version upgrade * database migration Define runbooks as TOML files in a `runbooks/` directory in your app config. Each step is either a **deploy** (deploy a component, optionally with its dependencies) or an **action** (run an existing action, or a command defined inline): ```toml theme={null} name = "restart-and-verify" [[steps]] name = "restart" type = "action" action_name = "deployments_restart" [[steps]] name = "verify" type = "action" command = "curl --fail --silent --retry $MAX_RETRIES https://{{ .nuon.inputs.inputs.subdomain }}.{{ .nuon.install.sandbox.outputs.nuon_dns.public_domain.name }}/" timeout = "5m" [steps.env_vars] MAX_RETRIES = "20" ``` ![A runbook's detail page in the Nuon dashboard, showing its steps](https://mintcdn.com/nuoninc/rd6pvVRsnxCqJdIp/images/changelog/035-runbook-detail.png?fit=max\&auto=format\&n=rd6pvVRsnxCqJdIp\&q=85\&s=cf845e233438ddd26e305ed534c94231) Trigger and watch runs from the new **Runbooks** tab in the dashboard, or from the CLI with `nuon runbooks --install-id `. See the [Runbooks guide](/guides/runbooks) for the full configuration reference. > [!TIP] > > See the [`programmable-runbook-and-readme`](https://github.com/nuonco/example-app-configs/tree/main/programmable-runbook-and-readme) example app config for a complete, runnable demo of runbooks and rendered READMEs together. ## Rendered READMEs An install's README can be **rendered with information specific to that install**. Go template expressions resolve against the install's live values, so you get real URLs, IDs, and outputs. Author READMEs as Markdown on: * the app (the `readme` field in `metadata.toml`) * individual [runbooks](/guides/runbooks) (each runbook's `readme` field) See [Using READMEs](/guides/using-readmes). ![A per-install README rendered in the dashboard, with runnable runbooks](https://mintcdn.com/nuoninc/rd6pvVRsnxCqJdIp/images/changelog/035-app-readme.png?fit=max\&auto=format\&n=rd6pvVRsnxCqJdIp\&q=85\&s=a976233b27df1dd027804a63277abdbb) ## Sandbox auto-retries [Sandboxes](/concepts/sandboxes) now support `max_auto_retries`, matching components. Transient failures self-heal without manual re-runs. ## Skip no-op deploys and auto-approve on passing policies [Components](/concepts/components) and [sandboxes](/concepts/sandboxes) gained two new deploy-control fields in their config: * `skip_noops`: when a plan comes back with no changes, skip the deploy step entirely instead of running (or waiting on approval for) a no-op. * `auto_approve_on_policies_passing`: automatically approve a deploy when its policy checks pass, so only deploys that fail policy require manual sign-off. Both default to off and can be set on a [Helm](/config-ref/helm), [Terraform](/config-ref/terraform), Docker build, or [Kubernetes manifest](/config-ref/kubernetes-manifest) component, or on the [sandbox](/config-ref/sandbox). ```toml theme={null} skip_noops = true auto_approve_on_policies_passing = true ``` ## Per-webhook event filters Org [webhooks](/guides/webhooks) now take a structured `interests` filter, so each subscription opts into a subset of events instead of receiving every lifecycle event. Scope by: * resource: workflow, step, approval, runner * operation, outcome, or approval state Existing subscriptions default to `all_events: true` and behave exactly as before. ## Nuon CLI * New **`nuon-ext-replay-stack`** [CLI extension](/guides/cli-extensions) for recovering an install stuck at **awaiting phone-home**. If the stack's phone-home payload was received but the version never activated, reprovision the install and run the extension to replay the stored payload to the new phone-home URL. ## API * `POST /v1/installs/{install_id}/workflows/cancel`: cancel active workflows for an install. * Active workflows and pending approvals are now excluded from responses for deleted installs. # 036 - Toggleable Components Source: https://docs.nuon.co/updates/036-toggleable-components Turn components on and off per install, plus Kubernetes contexts and YAML/HCL inputs. *June 30, 2026* ![Toggleable components — enable or disable individual components per install](https://mintcdn.com/nuoninc/N52MdBGZmyeEoQ7h/images/changelog/036-header.png?fit=max\&auto=format\&n=N52MdBGZmyeEoQ7h\&q=85\&s=b0a9b34db95a559267f9ee642d0a57bc) ## Toggleable components In enterprise software, custom agreements for gating product features are common. Now you can skip deploying unneeded parts of your app to a customer. ### App Config Mark a component `toggleable` in your [app config](/configuration-files), with an optional `default_enabled` starting state: ```toml components/observability.toml theme={null} name = "observability" type = "helm_chart" toggleable = true default_enabled = false ``` ### Install Config You can manage an install's toggled components by `install.toml` config files via CLI and [API](https://api.nuon.co/docs/index.html#/) at `PATCH /v1/installs/{install_id}`, or in the browser via the Dashboard. A component's enabled state is stored as an [install input](/guides/configuring-inputs-and-secrets). For `install.toml` config-managed installs, set the state per component in a `[component_toggles]` section: ```toml install.toml theme={null} name = "customer-acme" [component_toggles] observability = true certificate = false ``` You can also toggle a single component imperatively from the dashboard or CLI: ```bash theme={null} nuon installs components toggle --install-id --component-id --enable nuon installs components toggle --install-id --component-id --disable ``` Newly enabled components are deployed and newly disabled ones are torn down, all within one workflow. Enabling or disabling a component also runs its `pre`/`post` [lifecycle actions](/guides/actions) when defined. Dependency rules, lifecycle hooks, and per-install behavior are all covered in the [Toggleable Components guide](/guides/toggleable-components) — see it for the full reference. ## Kubernetes contexts You can now bind a component to a cluster produced by a **peer component** through a named **Kubernetes context**. Define a context that points at a `terraform_module` or `pulumi` component exposing a `cluster` output, then have other components opt into it by name: ```toml metadata.toml theme={null} [[kubernetes_context]] name = "data-cluster" component = "data-eks" ``` This decouples *where* a component deploys from *how* its cluster is provisioned, so several components can target different clusters defined elsewhere in the same app. See the [Kubernetes contexts reference](/config-ref/kubernetes-contexts). ## YAML and HCL inputs [Inputs](/config-ref/inputs) now support `yaml` and `hcl` types in addition to `string`, `number`, `list`, `json`, and `bool`. Nuon validates the value's syntax when it's set, so a malformed Helm values block or `tfvars` snippet is caught at configuration time instead of mid-deploy. ```toml theme={null} [[inputs]] name = "helm_values" type = "yaml" [[inputs]] name = "network" type = "hcl" ``` # 037 - Split install stack tfvars Source: https://docs.nuon.co/updates/037-split-install-stack-tfvars Install stack Terraform config is now split into inputs.auto.tfvars and secrets.auto.tfvars. *July 3, 2026* ## Split install stack tfvars The Terraform install stack config is now generated as two separate, auto-loaded files instead of a single `install.tfvars`: * **`inputs.auto.tfvars`** — install identity, runner settings, IAM operation roles, and `install_inputs`. * **`secrets.auto.tfvars`** — `secrets` and `auto_generate_secrets`. Both use the `.auto.tfvars` suffix, so Terraform loads them automatically. The apply command drops the `-var-file` flag: ```bash theme={null} terraform init && terraform apply ``` The provision workflow's "await install stack" step in the dashboard now shows each file in its own block, each with its own copy and download buttons, so you can hand the non-secret config and the secrets to different owners. This applies to both the [AWS](/platform-support/aws) and [GCP](/platform-support/gcp) Terraform install stacks. # 038 - Spacelift install stacks and CLI automation Source: https://docs.nuon.co/updates/038-spacelift-and-cli-automation Provision install stacks through Spacelift, get improved error messages, and drive the nuon CLI reliably from CI/CD. *July 10, 2026* ## Provision install stacks with Spacelift You can now provision and manage Nuon install stacks through [Spacelift](https://spacelift.io) instead of applying the stack's Terraform yourself — letting Spacelift handle state, run history, and drift for the install stack. It currently supports GCP, with AWS support planned. A new guide walks through both the blueprint and Terraform provisioning paths. * Generate and apply install stacks through Spacelift. * New [Provision stacks with Spacelift](/guides/provision-stacks-with-spacelift) guide. * Install stacks now use a dedicated Terraform provider. ## Improved error messages Component deploy errors are now parsed and surfaced directly in the UI, classified by failure type. When a Helm or Terraform deploy fails, the workflow shows a specific reason, making it faster to tell a transient error from a real misconfiguration. ![A classified deploy failure in the Nuon dashboard: 'Terraform could not acquire the state lock', with how-to-fix steps and the raw output](https://mintcdn.com/nuoninc/rwkI-PuH3GKcdjG2/images/changelog/038-classified-errors.png?fit=max\&auto=format\&n=rwkI-PuH3GKcdjG2\&q=85\&s=24965ab0bfd8cb9514d8225539af591f) ## Custom label colors Labels can now be assigned custom colors, making apps, installs, and components easier to scan and group. Set them in your app config's `label_colors` map or from the dashboard — see [label colors](/guides/multiple-app-configurations#label-colors).