> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# Remediation Orchestrator Deployment Checklist

> Quickstart checklist for standing up Remediation Orchestrator

<a id="maestro-deployment-checklist"></a>

The shortest path to a running Remediation Orchestrator deployment. No prescribed hosting
provider, orchestrator, secrets manager, or delivery pipeline. An empty workflow list is valid on first start.

For Kubernetes, follow the [Helm deployment guide](/remediation-orchestrator/deployment/helm) instead of this checklist. It can deploy PostgreSQL and Temporal alongside the application, and it runs schema migrations in a bootstrap Job before the application release installs. The provisioning and startup steps below are for deployments without Helm.

## Prerequisites

Have these ready before deployment:

- **Artifact**
  - A reviewed Remediation Orchestrator source revision
  - An immutable OCI image built from that revision. From the application source
    root (the directory containing `cmd/maestro/`), this command builds the image
    and loads it into the local container runtime as `maestro:latest`:

    ```bash
    bazel run //cmd/maestro:maestro.image.local_load
    ```

  - Compatibility information for the selected revision: PostgreSQL and Temporal
    versions, runtime architecture, and schema compatibility. The local Compose
    example declares dependency versions for local evaluation.

- **Infrastructure**
  - A PostgreSQL service with permission to create a database, role, and extensions
  - A Temporal service with permission to create a namespace and search attributes
  - A mechanism for delivering secrets as environment variables. For example, use
    [HashiCorp Vault](https://developer.hashicorp.com/vault/docs/install)
    via the [External Secrets Operator](https://external-secrets.io/latest/introduction/getting-started/),
    but any secrets manager that projects environment variables works.

- **Networking**
  - A DNS hostname you control for the Remediation Orchestrator service, such as
    `maestro.<environment>.example.com` or a cluster-scoped name such as
    `maestro-<cluster>.platform.example.com`
  - A TLS certificate valid for that hostname
  - Network routes from the runtime to PostgreSQL, Temporal, and telemetry

PostgreSQL and Temporal are the only required infrastructure dependencies.

## Module runtime dependencies

### Redfish console text extraction

`redfish.get_console_text` requires [Tesseract OCR](https://tesseract-ocr.github.io/tessdoc/Installation.html)
with English language data to extract text from BMC screen captures. Other Redfish
operations do not require Tesseract.

Install Tesseract and its English language data (`tesseract-ocr` and `tesseract-ocr-eng`
on Debian/Ubuntu). Ensure the directory containing the `tesseract` executable is
on the worker's `PATH`. Redeploy the worker after changing its image or environment.

Inside the worker environment, check that Tesseract runs and lists `eng` among
its available languages:

```sh
tesseract --version
tesseract --list-langs
```

If the worker cannot find the executable, `get_console_text` fails with an error
beginning with:

```text
tesseract binary not found in PATH: ...
```

## Security before exposure

Authentication and authorization are not startup requirements, but configure
them before exposing Remediation Orchestrator beyond a trusted network. Authentication
determines how people sign in. Built-in RBAC maps identity-provider groups to
least-privilege roles (`viewer`, `operator`, `maintainer`, and `admin`) and
controls which UI and API actions are available. Manage each person's access
through group membership and verify the mappings before broader access.
## 1. Provision PostgreSQL

1. Create a dedicated Remediation Orchestrator database and role on a PostgreSQL version
   supported by the release (currently tested against PostgreSQL 16):

   ```sql
   CREATE DATABASE maestro;
   CREATE ROLE maestro WITH LOGIN PASSWORD 'change-me';
   GRANT CONNECT ON DATABASE maestro TO maestro;
   ```

2. Install the `pgcrypto`, `citext`, `btree_gist`, and `btree_gin`
   [extensions](https://www.postgresql.org/docs/current/contrib.html). All
   four ship with standard PostgreSQL distributions, so this is four
   statements run as an administrator connected to the new database:

   ```sql
   CREATE EXTENSION IF NOT EXISTS pgcrypto;
   CREATE EXTENSION IF NOT EXISTS citext;
   CREATE EXTENSION IF NOT EXISTS btree_gist;
   CREATE EXTENSION IF NOT EXISTS btree_gin;
   ```

   Pre-installing them as an administrator means the `maestro` role never
   needs superuser access.

3. Allow the `maestro` role to create and change Remediation Orchestrator's schema — the same
   role applies migrations and serves traffic:

   ```sql
   GRANT USAGE, CREATE ON SCHEMA public TO maestro;
   ```

4. Enable backups before go-live. Choose backup frequency and retention for
   your recovery requirements. Continuous
   [WAL archiving](https://www.postgresql.org/docs/current/continuous-archiving.html)
   with periodic base backups is standard PostgreSQL practice for
   point-in-time recovery.

**Pass condition:** the `maestro` role connects and the four extensions are
present:

```sql
SELECT extname FROM pg_extension
WHERE extname IN ('pgcrypto', 'citext', 'btree_gist', 'btree_gin');
```

## 2. Provision Temporal

1. Create a dedicated namespace and choose its workflow-retention period.
2. Create these namespace-scoped custom search attributes as `Keyword` values:

   | Attribute | Type |
   | --- | --- |
   | `CreatedBy` | `Keyword` |
   | `ScriptWorkflowName` | `Keyword` |
   | `Hostname` | `Keyword` |
   | `ClusterID` | `Keyword` |
   | `TenantUUID` | `Keyword` |

Both are one-time operations performed with the
[Temporal CLI](https://docs.temporal.io/cli) by an operator with namespace
admin access — at runtime Remediation Orchestrator itself needs only plain read/write access to
the namespace:

```bash
temporal operator namespace create --namespace <namespace> --retention 30d

for attr in CreatedBy ScriptWorkflowName Hostname ClusterID TenantUUID; do
  temporal operator search-attribute create --namespace <namespace> \
    --name "$attr" --type Keyword
done
```

Search-attribute creation should be idempotent. An existing attribute with a
different type is a deployment failure.

**Pass condition:** all five attributes are readable through Temporal's metadata
API in the selected namespace.

## 3. Set the runtime environment

Module configuration for the default tenant lives in a TOML file set by
`--config` or `MAESTRO_CONFIG_FILE` (default `config_files/local_config.toml`);
`--config` wins when both are set. On every start, a nonempty file replaces the
default tenant's configuration, including edits made in the UI. If the file is
absent or empty, the configuration stored in the database stays active.

Set these environment variables:

| Variable | Value |
| --- | --- |
| `MAESTRO_DB_CONNECTION_STRING` | PostgreSQL connection string; secret |
| `MAESTRO_TEMPORAL_URI` | Temporal frontend address |
| `MAESTRO_TEMPORAL_NAMESPACE` | Dedicated namespace |
| `MAESTRO_TEMPORAL_API_KEY` | Set only for the supported API-key/TLS profile |
| `MAESTRO_HOST` | External hostname, plus port if non-standard; no URL scheme |

**Pass condition:** environment and secret inputs resolve.

### Log-level rules

NRO reads log-level rules from the default tenant's TOML at startup. Use
`[loglevels.path_levels]` to match complete segments of a source file path, such as
`modules/ssh`. Use `[loglevels.function_levels]` to match a prefix of a fully
qualified Go function name. Restart NRO to apply changes.

A matching function rule takes precedence over a path rule. Within each table, the
longest matching key wins. When neither table matches, NRO uses the logger's
default level.

<a id="4-start-and-expose-maestro"></a>

## 4. Start and expose Remediation Orchestrator

1. Start the image with no arguments. Without Helm, schema migrations apply
   automatically on startup, so there is no separate migration job to run. With
   the image available to the runtime and secrets in an env file, this is one command:

   ```bash
   docker run --rm -p 6787:6787 --env-file maestro.env maestro:latest
   ```

2. Route the hostname through TLS to Remediation Orchestrator's service port (`6787` by
   default; override with `MAESTRO_LISTEN_PORT`).
3. Permit only required egress: PostgreSQL, Temporal, and configured
   telemetry destinations.
4. Restrict `/metrics`, `/healthz`, and `/readyz` to monitoring and health
   callers.

For rollouts that must apply migrations before any instance serves traffic,
run the same image once with the `migrate` argument, wait for exit `0`, then
set `MAESTRO_DISABLE_STARTUP_SCHEMA_MIGRATIONS=true` on the service.

Keep the route on a trusted network until
[authentication and authorization](#appendix-b-authentication-and-authorization) are
configured.

**Pass condition:** the service answers through its route:

```bash
curl -fsS "https://$MAESTRO_HOST/healthz"
```

A `200` with body `OK` passes. `/healthz` is a shallow process probe. After
authentication is configured, confirm an authenticated `GET /api/v1/scripts`
returns `200` to exercise authentication and the database together.

## Appendix A: Common first-start failures

- **Search attribute errors:** an attribute is absent, has the wrong type, or
  hasn't propagated yet. Confirm all five are readable through Temporal's API
  before starting — successful submission doesn't guarantee immediate
  readability.
- **Migration failure:** the database role lacks DDL permissions, the database
  is unreachable, or the migration version is incompatible with the image.
- **Healthy probe, broken app:** `/healthz` and `/readyz` return `200` even
  when misconfigured. Check startup logs and run `GET /api/v1/scripts`.
- **Config changes on restart:** a mounted TOML file wins over the database
  config on every restart. Decide which is authoritative before go-live.

## Appendix B: Authentication and authorization

Authentication and authorization are not required for Remediation Orchestrator to start. Keep
the service on a trusted network until they are configured.

<Warning title="Authentication defaults apply to every ingress profile">

The legacy proxy-auth provider is disabled by default
(`MAESTRO_DISABLE_NVPROXY_AUTH=true`). When explicitly enabled, it reads identity
claims from the `X-Nvproxy-Auth-Token` header and `nvproxyIdToken` cookie, and
accepts a token only when it verifies against an entry of
`MAESTRO_TRUSTED_JWT_ISSUERS`.

Clients can supply NVProxy tokens directly, including when Dex handles browser
login. Use built-in RBAC to limit permissions. If your deployment relies on
additional rules enforced only by a proxy, block paths that bypass it; token
verification does not enforce those rules.

</Warning>

**Migration: legacy proxy authentication is now opt-in.**

For browser login, configure Dex, OIDC ingress or Teleport before upgrading.
To keep accepting NVProxy tokens, set `MAESTRO_DISABLE_NVPROXY_AUTH=false` or
`--disable-nvproxy-auth=false` and configure `MAESTRO_TRUSTED_JWT_ISSUERS`.
Dex browser login can remain enabled.

**Migration: OIDC bearer tokens are now verified.**

Before upgrading a deployment that sets `MAESTRO_ENABLE_OIDC_AUTH=true`, set
`MAESTRO_TRUSTED_JWT_ISSUERS` to the issuers whose tokens the ingress forwards.
Without it, Remediation Orchestrator fails at startup.

For a standalone deployment, configure Dex, require UI authentication,
disable proxy-trusting authentication, and enable built-in RBAC.
The variables below refer to capabilities in this repository; supply your
own issuer, client registration, secrets, and access groups.

Authentication-related variables (including the built-in Dex profile):

| Variable | Purpose |
| --- | --- |
| `MAESTRO_DEX_ISSUER_URL` | Browser-visible OIDC issuer used to validate tokens |
| `MAESTRO_DEX_BACKEND_URL` | Backend-reachable OIDC endpoint; enables browser login routes |
| `MAESTRO_DEX_CLIENT_ID` | OIDC client ID and expected token audience |
| `MAESTRO_DEX_CLIENT_SECRET` | OIDC client secret |
| `MAESTRO_DEX_GRPC_ADDR` | Optional Dex gRPC address for listing SSO connectors on the login page |
| `MAESTRO_AUTH_REDIRECT_URL` | Exact external callback URL ending in `/auth/callback` |
| `MAESTRO_REQUIRE_UI_AUTH` | `true` to enforce login; has no effect unless `MAESTRO_DEX_BACKEND_URL` is also set |
| `MAESTRO_DISABLE_NVPROXY_AUTH` | Default `true`; set `false` with trusted JWT issuers to accept verified NVProxy header or cookie tokens |
| `MAESTRO_ENABLE_OIDC_AUTH` | `true` only when the sole ingress validates OIDC bearer tokens |
| `MAESTRO_TRUSTED_JWT_ISSUERS` | JSON array of `{issuer, audience, jwksUrl}`; required when legacy proxy or OIDC authentication is enabled |
| `MAESTRO_ENABLE_TELEPORT_AUTH` | `true` only when Teleport's app proxy is the sole ingress |
| `MAESTRO_TELEPORT_ISSUER` | Teleport cluster name, which must equal the JWT `iss` claim exactly, without scheme or port; required with Teleport authentication |
| `MAESTRO_TELEPORT_AUDIENCE` | URI of the Teleport application that fronts the service, which the JWT `aud` claim must contain; required with Teleport authentication |
| `MAESTRO_TELEPORT_JWKS_URL` | Optional; default `https://<issuer>/.well-known/jwks.json`. Set it when the Teleport proxy does not serve its keys at that address |

Authorization-related variables:

| Variable | Purpose |
| --- | --- |
| `MAESTRO_AUTHORIZATION_PROVIDER` | `none` (default, allow-all) or `rbac` (built-in RBAC) |
| `MAESTRO_SITE_ADMIN_GROUPS` | Comma-separated OIDC groups that receive `site:admin` when RBAC is enabled |

`MAESTRO_AUTHORIZATION_PROVIDER` defaults to `none` (allow-all); an empty
value is treated like `none`. Set it to `rbac` to enable built-in
authorization. Any other value, including a different case such as `RBAC`,
stops startup with an error. When `rbac` is enabled, set
`MAESTRO_SITE_ADMIN_GROUPS`: an empty list leaves every `site:admin` route
(tenant onboarding and lifecycle) behind a permanently empty allow-list, and
Remediation Orchestrator logs a warning at startup. Access is granted only where a tenant
grants it: without an `[rbac]` TOML section, or with a `default_role` that is
empty or unrecognized, every authenticated identity receives `no-access`. Set
`default_role = "viewer"` under `[rbac]` to keep a tenant open to any
authenticated caller, or `default_role = "no-access"` to require an explicit
mapping. Turning on `rbac` without an `[rbac]` section denies everyone outside
the site-admin groups.

Built-in browser authentication can block anonymous health check requests; use
a TCP or authenticated HTTP probe in that topology.

## Appendix C: Runtime notes

- `/healthz` and `/readyz` are shallow process probes — they do not test
  PostgreSQL, Temporal, or any dependency.
- `/metrics` is on the service port and is not protected by Remediation Orchestrator
  authorization.
- If Temporal is self-hosted, provision its persistence separately from the
  Remediation Orchestrator database. Managed Temporal handles this itself.

## Next Steps

With a running, protected Remediation Orchestrator deployment, continue to
[Your First Script](/remediation-orchestrator/guides/first-scripts-checklist) to upload and run a workflow.