Skip to main content
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.

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.
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.

Export Runner Audit Logs

On AWS, the Stack creates the nuon/<install-id>/telemetry-export-config secret and grants the Runner read access. On GCP, the secret is named <install-id>-telemetry-export-config. Update the secret to export Runner audit logs to your own OTLP-compatible backend. See 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, then use 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.
1
Create a Slack app using this manifest file, replacing <your-root-domain> with the domain you have chosen.
2
Click Create.
3
Add the following inputs and secrets to your stack module, then apply.
For detailed instructions on configuring and using the Slack app, see the Slack integration guide.

Restrict Where App Config URLs May Point

An app config can set URLs that the runner and the install stack then trust: the API the runner sends its token to, the script that runs on the runner host, and the templates deployed into the customer’s cloud account. By default Nuon accepts any value. As the operator of a Nuon BYOC control plane, you can restrict each kind of URL to a list of locations you trust. This is called allowed hosts. Allowed hosts are settings on the control plane API (ctl-api), read from environment variables. Each list is comma-separated. A list works as follows:
  • An empty list leaves that kind of URL unrestricted. This is the default.
  • A list with at least one entry restricts that kind of URL to your entries plus the built-in entries. You do not need to repeat the built-in entries.
  • The built-in entries cannot be removed. An entry of yours that is narrower than a built-in entry on the same host has no effect. For example, https://nuon-artifacts.s3.us-west-2.amazonaws.com/aws-cloudformation-templates/ does not narrow ALLOWED_HOSTS_STACK_TEMPLATES, because the built-in entry already allows the whole bucket.
  • To allow only the built-in entries, set the list to one of them. For example, set ALLOWED_HOSTS_RUNNER_API to your control plane’s runner API URL so that an app config can only point runners at your control plane.

Entry Format

An entry is a URL prefix, not only a host name. Hosts such as raw.githubusercontent.com and s3.amazonaws.com serve content from anyone, so include the bucket or the repository owner in the entry.
  • Entries must use https.
  • The host must match exactly, apart from letter case. *.example.com matches any subdomain, but not example.com itself.
  • The port must match. Leave it out for port 443.
  • The path must start with the entry’s path at a / boundary. https://example.com/runner allows /runner/init.sh and does not allow /runner-other/init.sh.
Once a kind of URL is restricted, a value for it must be an absolute https URL. Values that contain credentials, .. path segments or encoded slashes are rejected, and so are git::, file:// and relative values. Values that contain whitespace, control characters or a quote, a backtick, a backslash, $, ;, |, < or > are also rejected. The control plane does not start when an entry is malformed.

Reserved Runner Environment Variables

When ALLOWED_HOSTS_RUNNER_API is set, env_vars in runner.toml may not set variables that redirect the runner’s traffic or credentials: variables ending in _PROXY, variables starting with RUNNER_ or NUON_, and the AWS credential and endpoint variables such as AWS_ACCESS_KEY_ID and AWS_ENDPOINT_URL. The certificate and host name variables SSL_CERT_FILE, SSL_CERT_DIR and HOSTALIASES are reserved too. RUNNER_AUTH_METHOD is the one exception: it is still allowed. This list blocks the known variables. It is not a guarantee that no other variable can change how the runner behaves.

What Is Checked

  • The control plane checks every app config when it is synced. A sync that sets a URL outside a restricted list fails with an error that names the field and the setting.
  • The control plane checks per-install stack overrides against ALLOWED_HOSTS_STACK_TEMPLATES when an install config is created or updated, through the API or nuon installs sync.
  • nuon apps validate fetches the allowed hosts from the control plane and reports the same violations before you push.
The following are not checked yet:
  • Configs that were synced before you set a list. They are checked at their next sync.
  • The runner settings API.
  • Redirects. Only the URL written in the config is checked. If an allowed location redirects elsewhere, the control plane follows the redirect.

Turn It On

1

List the URLs your apps use today

Run the scan in the control plane API container, with the control plane’s environment:
It prints every distinct URL in the latest config of each app and install, by org and category. The status column is unrestricted while the category has no list. Once you set a list, it is allowed or violation, so you can run the scan again to check your entries. Reserved runner environment variables are listed under runner_api. Add --all-configs to include older configs. The scan only reads.
2

Start in warn mode

Set your lists and set ALLOWED_HOSTS_MODE to warn. In this mode a violation does not fail the sync. The control plane logs app config value is outside the allowed hosts with the field and the value, and counts it in the allowed_hosts.violation metric.
3

Sync your apps and review the warnings

Sync each app, or run nuon apps validate in each app config directory. Add an entry for every location you want to keep.
4

Switch to enforce

Set ALLOWED_HOSTS_MODE to enforce, or remove it.