Remediation Orchestrator Deployment Checklist
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 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 asmaestro:latest: -
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 via the External Secrets Operator, 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.comor a cluster-scoped name such asmaestro-<cluster>.platform.example.com - A TLS certificate valid for that hostname
- Network routes from the runtime to PostgreSQL, Temporal, and telemetry
- A DNS hostname you control for the Remediation Orchestrator service, such as
PostgreSQL and Temporal are the only required infrastructure dependencies.
Module runtime dependencies
Redfish console text extraction
redfish.get_console_text requires Tesseract OCR
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:
If the worker cannot find the executable, get_console_text fails with an error
beginning with:
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
-
Create a dedicated Remediation Orchestrator database and role on a PostgreSQL version supported by the release (currently tested against PostgreSQL 16):
-
Install the
pgcrypto,citext,btree_gist, andbtree_ginextensions. All four ship with standard PostgreSQL distributions, so this is four statements run as an administrator connected to the new database:Pre-installing them as an administrator means the
maestrorole never needs superuser access. -
Allow the
maestrorole to create and change Remediation Orchestrator’s schema — the same role applies migrations and serves traffic: -
Enable backups before go-live. Choose backup frequency and retention for your recovery requirements. Continuous WAL archiving 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:
2. Provision Temporal
-
Create a dedicated namespace and choose its workflow-retention period.
-
Create these namespace-scoped custom search attributes as
Keywordvalues:
Both are one-time operations performed with the Temporal CLI by an operator with namespace admin access — at runtime Remediation Orchestrator itself needs only plain read/write access to the namespace:
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:
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.
4. Start and expose Remediation Orchestrator
-
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:
-
Route the hostname through TLS to Remediation Orchestrator’s service port (
6787by default; override withMAESTRO_LISTEN_PORT). -
Permit only required egress: PostgreSQL, Temporal, and configured telemetry destinations.
-
Restrict
/metrics,/healthz, and/readyzto 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 are configured.
Pass condition: the service answers through its route:
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:
/healthzand/readyzreturn200even when misconfigured. Check startup logs and runGET /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.
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.
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):
Authorization-related variables:
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
/healthzand/readyzare shallow process probes — they do not test PostgreSQL, Temporal, or any dependency./metricsis 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 to upload and run a workflow.