Production Hardening

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

Production hardening is about reducing avoidable risk before a Nomatron deployment becomes a dependency for real teams and real delivery workflows.

The clearest way to think about hardening is through the three classic pillars of security:

  • confidentiality
  • integrity
  • availability

This page uses that model and translates it into practical controls for running Nomatron responsibly in production.

Hardening Priorities

For most teams, the first production hardening milestones should be:

  1. enable TLS or terminate it safely at the edge;
  2. change the bootstrap root password immediately;
  3. protect the database as a high-value system of record;
  4. encrypt Serf gossip for multi-server deployments;
  5. lock down network exposure so only the right ports are reachable;
  6. put the service behind a load balancer that uses /api/v1/health;
  7. set up backups and restore testing for PostgreSQL;
  8. use least-privilege access for users, operators, and integrations; and
  9. make an explicit decision about logging, audit review, and telemetry behavior.

Confidentiality

Confidentiality is about keeping sensitive information away from unauthorized users, systems, and networks.

For Nomatron, the main confidentiality concerns are:

  • credentials and tokens;
  • database contents;
  • agent connectivity;
  • server and API traffic;
  • configuration secrets; and
  • backups.

TLS For HTTP And gRPC

The first confidentiality control is transport encryption.

Nomatron supports TLS directly in the server process, and the current agent gRPC listener also uses the server TLS certificate and key when server TLS is enabled.

That means you should do one of these:

  1. terminate TLS at a trusted reverse proxy or load balancer and keep the traffic private behind it; or
  2. enable TLS directly in Nomatron when that is the better fit for your environment.

At a minimum:

  • public HTTP/UI traffic should not be left unencrypted;
  • the gRPC path for private network agents should not cross untrusted networks in plaintext; and
  • certificates should be rotated on a normal schedule rather than left indefinitely.

Protect Secrets And Sensitive Configuration

Do not leave production secrets in:

  • committed HCL files;
  • shell history;
  • copied example job specifications; or
  • ad hoc notes and runbooks.

Use a real secret delivery path such as:

  • Nomad Variables;
  • Vault;
  • cloud secret managers; or
  • another approved runtime secret mechanism in your environment.

High-value values include:

  • PostgreSQL connection strings;
  • license keys;
  • Serf encryption keys; and
  • TLS private keys.

Change The Bootstrap Root Password Immediately

The default bootstrap root credentials are useful for initial setup, but they are not acceptable as a steady-state production posture.

As soon as the first production environment is initialized:

  • change the root user password immediately;
  • avoid sharing the root account between operators; and
  • use named admin accounts for normal administration wherever possible.

Treat the built-in root user as a high-sensitivity account, not as the everyday operator identity.

Limit Public Exposure

Not every Nomatron port should be reachable from every network.

A safer default exposure model is:

  • 4649 reachable from users through the load balancer;
  • 4650 reachable only from trusted private agents or internal networks;
  • 7946 reachable only between Nomatron servers; and
  • PostgreSQL reachable only from Nomatron servers and approved database administration paths.

In other words: public UI access, private agent access, private cluster membership, and private database access should be treated as separate concerns.

Use Tight Cloud Network Boundaries

If you run Nomatron in a public cloud, reflect those port boundaries in the cloud network layer as well.

That usually means:

  • only the load balancer accepts public inbound traffic;
  • Nomatron servers accept inbound traffic only from the load balancer, trusted agents, and peer Nomatron servers;
  • PostgreSQL accepts inbound traffic only from Nomatron servers and approved administration paths; and
  • east-west traffic for Serf stays private inside the application network.

In practice, do not rely only on Nomatron’s process configuration to express trust boundaries. Make the cloud network policy enforce them too.

Cloud Network Controls By Provider

AWS

On AWS, apply these controls through:

  • security groups;
  • subnet placement; and
  • route-table design.

A strong default is:

  • Application Load Balancer in public subnets;
  • Nomatron servers in private subnets;
  • PostgreSQL in private subnets;
  • security groups that allow:
    • 4649 from the ALB to Nomatron servers
    • 4650 only from trusted agent networks if needed
    • 7946 only between Nomatron servers
    • PostgreSQL only from Nomatron server security groups

Avoid broad rules like:

  • 0.0.0.0/0 to Nomatron servers
  • 0.0.0.0/0 to PostgreSQL
  • unrestricted east-west rules between unrelated workloads

Azure

On Azure, apply the same model through:

  • VNets and subnets;
  • Network Security Groups; and
  • route and peering controls.

A strong default is:

  • Application Gateway or the chosen edge layer in the public-facing subnet;
  • Nomatron servers in private subnets;
  • PostgreSQL in private subnets or a managed service boundary;
  • NSG rules that allow:
    • 4649 only from the ingress tier
    • 4650 only from trusted private agents or internal ranges
    • 7946 only between Nomatron servers
    • PostgreSQL only from the Nomatron server subnet or identities approved for administration

Google Cloud

On Google Cloud, express the same controls through:

  • VPC design;
  • subnet boundaries; and
  • firewall rules.

A strong default is:

  • public load balancing at the edge;
  • Nomatron servers on private Compute Engine networks;
  • PostgreSQL on private networking or a managed private service path; and
  • firewall rules that allow:
    • 4649 only from the load balancer path
    • 4650 only from trusted private agents or internal ranges
    • 7946 only between Nomatron servers
    • PostgreSQL only from Nomatron servers and tightly controlled operator paths

Use Least-Privilege Cloud IAM

Nomatron itself should not need broad cloud-administrator permissions just because it is running in your cloud environment.

The surrounding infrastructure should follow least-privilege IAM too.

The goal is:

  • the Nomatron runtime gets only the cloud permissions it actually needs;
  • operators have separate, auditable administrative identities;
  • database, secret, and network administration do not collapse into one shared super-role; and
  • the application runtime is not allowed to mutate unrelated infrastructure by default.

Cloud IAM Guidance By Provider

AWS IAM

For AWS, prefer:

  • instance profiles or task roles with the minimum permissions needed;
  • narrowly scoped access to Secrets Manager parameters if Nomatron reads secrets that way;
  • separate roles for platform operators, database operators, and security administrators; and
  • avoiding broad policies like AdministratorAccess on the Nomatron runtime.

If Nomatron does not need to call AWS APIs directly in your design, the safest IAM policy is often a very small one or no broad cloud API permissions at all.

Azure IAM

For Azure, prefer:

  • managed identities where appropriate;
  • narrowly scoped Key Vault access if Nomatron consumes secrets that way;
  • role assignments at the smallest practical scope; and
  • clear separation between application runtime permissions and operator administration rights.

Avoid treating the Nomatron VM or workload identity as a general-purpose platform administrator.

Google Cloud IAM

For Google Cloud, prefer:

  • dedicated service accounts for the Nomatron runtime;
  • tightly scoped Secret Manager access if used;
  • narrowly scoped IAM bindings rather than project-wide broad privileges; and
  • separation between runtime service accounts and human operator roles.

As with the other clouds, if the Nomatron runtime does not need broad GCP API access, do not give it broad GCP API access.

Protect Backups Like Production Data

Backups are part of the confidentiality boundary.

If PostgreSQL backups are readable by the wrong people, the deployment is not meaningfully protected just because the live database is private.

Apply the same care to backups that you would apply to the primary database:

  • encryption at rest;
  • restricted access;
  • retention controls; and
  • auditable operator access.

Integrity

Integrity is about making sure the system behaves as intended and that changes, identities, and state are trustworthy.

For Nomatron, integrity controls include:

  • trusted identities;
  • trustworthy cluster membership;
  • auditable changes;
  • controlled software rollout; and
  • protection against accidental or silent configuration drift.

Encrypt Serf Gossip In Multi-Server Deployments

If you run multiple Nomatron servers, configure serf.encrypt_key.

That protects cluster membership traffic from unauthenticated gossip participation and reduces the risk of a compromised or misrouted network path interfering with server membership.

For clustered Nomatron, Serf encryption should be treated as a normal production requirement, not an optional nice-to-have.

Use Least-Privilege Access

Avoid giving every operator broad server-wide rights if they only need a subset of actions.

Use RBAC to separate:

  • server administration;
  • security and audit review;
  • day-to-day organization operations; and
  • read-only access.

This reduces both accidental change risk and the blast radius of a compromised account.

Review And Preserve Audit Logs

Nomatron already has audit-log support and dedicated RBAC permissions around audit visibility.

In production, use that deliberately:

  • review audit events regularly;
  • reserve export access for the right people;
  • keep high-value administrative actions attributable to named users; and
  • avoid normalizing “everyone uses the same admin account.”

Audit trails become much more useful when operator identity and permission boundaries are clean.

Pin Releases And Upgrade Intentionally

Do not run vague mutable deployment inputs forever if you can avoid it.

For example:

  • prefer pinned image tags over a casual long-term dependence on latest;
  • upgrade with a deliberate rollout plan;
  • keep release provenance and artifact verification in your release workflow where possible; and
  • avoid ad hoc patching on one node without updating the rest of the cluster consistently.

A hardened environment is not just secure at one point in time. It is also upgraded in a way that preserves trust.

Protect The Database As A Trust Anchor

Nomatron stores important security and control-plane state in PostgreSQL, including the persisted JWT signing secret.

That means database integrity matters for:

  • user authentication continuity;
  • configuration trust;
  • server behavior; and
  • recoverability.

Protect the database against:

  • casual administrator sprawl;
  • unaudited manual changes;
  • weak backup handling; and
  • silent schema or operational drift.

Make Telemetry A Deliberate Choice

If your environment has strict outbound or compliance requirements, decide explicitly whether telemetry should be enabled, proxied, or disabled.

Do not leave that as an accidental byproduct of whichever environment variables happened to be present.

A hardened environment should know:

  • whether telemetry is allowed;
  • where it is sent;
  • which proxies it uses; and
  • who approved that behavior.

Availability

Availability is about keeping Nomatron usable when infrastructure, nodes, or networks fail.

For Nomatron, availability work is mainly about:

  • more than one server;
  • a durable PostgreSQL tier;
  • good health checks;
  • controlled restarts and updates; and
  • recoverable operational procedures.

Run Behind A Load Balancer

Nomatron servers are designed to run behind a load balancer.

That should be your normal production model.

Use the health endpoint:

text
/api/v1/health

for load balancer health checks.

This is better than a plain TCP probe because the health response reflects:

  • HTTP server readiness;
  • database reachability;
  • Serf readiness; and
  • licensing health state.

Run Multiple Nomatron Servers

For production, prefer:

  • 3 Nomatron servers;
  • on different hosts;
  • behind one load balancer;
  • sharing one PostgreSQL database.

That gives you a much better operating posture for:

  • maintenance;
  • rolling upgrades;
  • single-host failures; and
  • brief instance disruption.

Use Highly Available PostgreSQL

High availability for Nomatron does not stop at the application tier.

If PostgreSQL is a single weak point with no resilience plan, the overall deployment is not truly hardened.

A good production posture usually means:

  • managed HA PostgreSQL where available; or
  • a clearly operated HA PostgreSQL design if self-managed;
  • tested backup retention;
  • restore drills; and
  • monitoring for replication or failover health where relevant.

Separate Hosts And Failure Domains

Do not place all Nomatron servers on one host if you want real availability.

Spread them across:

  • separate VMs or Nomad clients;
  • separate failure domains where practical; and
  • ideally separate zones when your infrastructure supports that cleanly.

The same idea applies to the database tier and the edge layer.

Reserve Adequate Resources

A service can be “secure” and still fail under normal operational load if resource reservations are too optimistic.

Use conservative initial sizing and then tune from observation.

As a starting point:

  • run multiple Nomatron servers rather than one oversized node;
  • keep enough CPU and memory headroom for routine control-plane bursts; and
  • watch PostgreSQL capacity as the cluster grows.

Backups, Restore Testing, And Recovery Plans

Backups only improve availability if you can restore from them under pressure.

Production hardening should include:

  • scheduled PostgreSQL backups;
  • clear restore runbooks;
  • periodic restore testing; and
  • agreement on recovery objectives before an incident happens.

If operators have never practiced a restore, the deployment is not operationally hardened yet.

Runtime Hardening

Beyond CIA, there are a few runtime-specific controls worth calling out.

Prefer Hardened Container Runtimes When Using Containers

The published Nomatron server image already uses a minimal distroless non-root runtime.

That is a good default, but operators should keep going:

  • avoid adding unnecessary tooling to the runtime image;
  • mount only the files the process actually needs;
  • keep file permissions tight; and
  • avoid privileged container settings unless there is a real need.

Use Controlled Restart And Update Policies

If you run Nomatron under Nomad or another scheduler, use update and restart policies that reflect the fact that this is a control-plane service.

Prefer:

  • one-at-a-time rolling updates;
  • health-checked rollouts;
  • automatic revert on unhealthy rollout where possible; and
  • placement controls that keep clustered servers on different hosts.

Watch The Right Signals

A hardened deployment should alert on more than just “the process is up.”

At minimum, watch:

  • load balancer health;
  • /api/v1/health;
  • PostgreSQL health and connection behavior;
  • Serf membership churn;
  • failed or repeated restarts;
  • certificate expiry; and
  • backup success and failure.

Practical Hardening Checklist

Use this as a production-readiness checklist:

  • TLS is enabled or safely terminated at the edge
  • the bootstrap root password has been changed
  • named admin accounts are used for day-to-day administration
  • PostgreSQL is external, backed up, and monitored
  • restore procedures have been tested
  • Nomatron runs behind a load balancer
  • load balancer health checks use /api/v1/health
  • multi-server deployments use at least three Nomatron servers
  • Nomatron servers are on different hosts or failure domains
  • Serf gossip encryption is enabled for clustered deployments
  • 4650 is not exposed more broadly than necessary
  • 7946 is reachable only between Nomatron servers
  • secrets are not stored in committed config files
  • image tags or release versions are pinned intentionally
  • audit logs are reviewed and access to them is controlled
  • telemetry behavior is an explicit choice, not an accident

The goal of hardening is not to make Nomatron complicated.

It is to make the production deployment predictable, defensible, and recoverable.

If you keep the model simple, the best hardening pattern is usually:

  • encrypted traffic;
  • tightly scoped network exposure;
  • least-privilege identities;
  • auditable changes;
  • multiple Nomatron servers;
  • resilient PostgreSQL; and
  • recovery plans that have actually been tested.

After this page, the most useful companion pages are: