Skip to content
Back to skills

Nomad Knowledge Patch

ASecurity

HashiCorp Nomad

  • 25 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 5, 2026
developmentgojavanodedockerapibackendsecurity

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill nomad-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nomad Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nomad Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-nomad-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-nomad-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nomad-knowledge-patch
description: HashiCorp Nomad
version: "2.1.1"
license: MIT
metadata:
  author: Nevaberry
---


# HashiCorp Nomad compatibility guidance

Load this skill when upgrading Nomad, changing job or agent configuration,
integrating its APIs or task drivers, or diagnosing scheduling and allocation behavior.
The references contain migration requirements, configuration details, and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [CLI, API, and Observability](references/cli-api-and-observability.md) | API fields and responses, job commands, web UI, diagnostics, metrics, events |
| [Drivers, Plugins, and Platforms](references/drivers-plugins-and-platforms.md) | Plugin configuration and APIs, Docker, exec, raw_exec, Java, QEMU, networking, platforms |
| [Jobs, Scheduling, and Deployments](references/jobs-scheduling-and-deployments.md) | Validation, placement, resources, deployments, disconnects, templates, secrets, services, artifacts |
| [Security, Identity, and Governance](references/security-identity-and-governance.md) | ACLs, client and workload identities, OIDC, Consul, Vault, Sentinel, quotas, TLS, licenses |
| [Storage and Volumes](references/storage-and-volumes.md) | Dynamic host volumes, deletion permissions, feasibility, disk reservation, CSI |
| [Upgrading and Server Operations](references/upgrading-and-server-operations.md) | Upgrade sequencing, Raft, snapshots, membership, startup, reloads, RPC, support lifecycle |

## Breaking changes and deprecations

### Consul and Vault authentication

Use workload identities for allocation authentication to Consul and Vault after
the deprecated token-based workflows were removed in 1.10.0. Templates that read
Consul need an explicitly configured Consul workload identity; a `template` block
no longer triggers automatic identity injection.
Remove `vault.allow_unauthenticated`, `vault.task_token_ttl`, `vault.token`, and
`consul.allow_unauthenticated` from agent configurations before upgrading to 1.10.
Replace the job's `vault.policies` with a Vault role specifying policies and task token TTL.

### ACL policy writes

From 1.10.6, writes fail for policies with duplicate or invalid keys. Existing
policies continue to work, but you must correct the source before writing it again.
Strict write validation also applies from 1.11.0 in the 1.11 line and 1.8.18 in the 1.8 line.

### Job validation and disconnect settings

- From 1.11.0, remove `reschedule` blocks from `system` and `sysbatch` jobs; submissions containing them are rejected.
- Rename tasks called `alloc` before submission in Enterprise 1.10.6 or Community Edition 1.11.0.
- Before moving to 1.10, migrate `max_client_disconnect`, `stop_after_client_disconnect`, and `prevent_reschedule_on_lost` to the group-level `disconnect` block. Nomad ignores the legacy fields.
- From 2.0.6, `reschedule.delay` must be at least one second, and lifecycle task groups must contain at least one main task.
- From 2.0.5, job validation and registration reject negative `resources.cores` values.

### Template and plugin removals

Nomad 1.10.2 removes the Sprig functions listed in the jobs reference from job
templates. Update templates that call these functions before upgrading.
Binaries in `plugin_dir` require a matching agent `plugin` block to run;
`plugin "my-driver" {}` is sufficient when no settings are needed.
The task-driver interface drops remote task support in 1.10.0; migrate integrations
that depend on it before upgrading.
Enterprise 1.10.15 and Community Edition 2.0.5 remove `DriverNetwork.Hash`.
Update Go integrations that call it before rebuilding against the new API.

### Go API resource fields

In 1.11.0, the Go API's `Node` and the Read Node HTTP response deprecate the always-empty
`Resources` and `Reserved` fields. Read `NodeResources` and `ReservedResources`, respectively.
Nomad 2.1.0 deprecates `Allocation.Resources` and `Allocation.TaskResources`;
read `Allocation.AllocatedResources` instead.
The Nomad API Go module shipped with 2.0.6 requires Go 1.26.0 or later.

### Server joins and Raft storage

Nomad 2.0.4 deprecates unauthenticated `nomad server join` and Join Agent API requests;
2.1.0 will require a token with `agent:write`. Target the region leader when adding
a node or the authoritative region when federating. Bootstrap a new cluster with
`server.server_join`, gossip encryption, and mTLS enabled.
Move `server.retry_join`, `server.retry_interval`, `server.retry_max`, and
`server.start_join` into `server.server_join` before upgrading to 2.1.0.
Nomad 2.0.0 deprecates `server.raft_boltdb` in favor of `server.raft_logstore`.
Take a snapshot before `nomad operator raft migrate-backend`: reverting from WAL
to BoltDB requires restoring a pre-migration snapshot.

### Storage reservations and quotas

In 1.11.1, move the deprecated `client.disk_free_mb` reservation to `client.reserved.disk`.
Schedulable storage is `totalBytes - client.reserved.disk`; `unique.storage.bytesfree`
is removed. Reserve at least the disk space used by the host OS.
Move quota `variables_limit` to `variables` in a `storage` block inside `region_limit`.
Enterprise server upgrades to 1.10.0 migrate stored variable quota limits automatically;
update quota files used by deployment tooling separately. The security reference
contains the corresponding Go API field changes.

## Job and allocation features

### Dynamic host volumes

Create volumes while clients are running with `nomad volume create ./data.volume.hcl`
or the API. Reference the volume in the task group's `volume` block and set
`volume = "data"` in the task's `volume_mount` block. `sticky = true` keeps replacement
allocations associated with the same volume for stateful deployments.

```hcl
volume "data" {
  type   = "host"
  source = "data"
  sticky = true
}
```

### Client identities and task secrets

Use the server's `client_introduction` enforcement level to control client registration
alongside mTLS. Generate signed JWTs with `nomad node intro create` or
`/v1/acl/identity/client-introduction-token`, optionally restricting node name, node pool, and TTL.
Servers issue and rotate client identity tokens for RPC authentication and authorization.
Set their TTL with node-pool `node_identity_ttl`; inspect claims with `nomad node identity get`.
A `secret` block fetches named values from Nomad, Vault, or a custom secret provider.
Reference fetched keys with `${secret.<name>.<key>}` in the task specification.

### Templates

Set `once = true` to render a task template once and stop watching for updates.

```hcl
template {
  data        = "MODE=production"
  destination = "local/settings.env"
  once        = true
}
```

From 2.0.4, `run_on_first_render = true` in `change_script` runs the script after the
first render and on subsequent changes. In 2.0.5, that initial script runs in the
task's `poststart` lifecycle hook.

### Placement and deployments

Changes limited to `affinity` or `spread` can be applied in place without replacing allocations.
If they need to redistribute running allocations, include a replacement-triggering
change, such as a change to a `meta` block.
Use an `update` block for `system` job rollouts and inspect them with `nomad deployment`
commands or the web UI. For `service` and `batch` jobs, `count = 0` has the same
scheduling effect as removing the group and stops its non-terminal allocations.

### Batch runtime limits and experimental queues

From 2.0.3, `max_run_duration` on a `batch` or `sysbatch` task group caps each allocation's runtime.
Nomad 2.1.0 adds experimental batch job queues on node pools. FIFO orders jobs by
submission; Dynamic Priority can prioritize by age and fairness based on requested
resources, placed resources, or both. Nomad 2.1.1 fixes constraint timeouts that could
expire immediately in 2.1.0.

### Memory reservation without a hard limit

With cluster memory oversubscription enabled, 1.11.2 supports reserve-only memory
on Docker, `exec`, `raw_exec`, and Podman tasks. Set `memory_max = -1`:

```hcl
resources {
  memory     = 256
  memory_max = -1
}
```

## CLI and observability quick reference

Use `-group` when selecting an allocation by job with `nomad alloc exec`,
`nomad alloc logs`, or `nomad alloc fs`:

```sh
nomad alloc logs -job -group=web example
```

Use `-json-output` on `nomad job plan` for JSON or `-t` for templated output.
`nomad eval status` shows related evaluations, placements, preemptions, and plan annotations;
annotations describe the intended plan before node feasibility checks.
`nomad alloc status -verbose <alloc-id>` shows node scores and evaluated/rejected node counts.

Starting in 1.10.2, clients collect and publish allocation metrics only with explicit opt-in.
Set this on each client whose allocation metrics you monitor:

```hcl
telemetry {
  publish_allocation_metrics = true
}
```

Use `nomad monitor export` for an agent's journald or log-file history.
`nomad operator debug` captures historical logs with `-log-lookback` and `-log-file-export`.
From 1.11.2, `EventStream.Stream` exits on the first error; open a new stream to resume watching.

## Upgrade operations

Downgrades are unsupported. Moving clients back requires draining allocations and
removing the client data directory; moving servers back safely requires reprovisioning the cluster.
In federated clusters, upgrade every agent in the affected region and every server
in the authoritative region before relying on new features.
An in-place client upgrade may reschedule all its allocations if restart exceeds
the server's `heartbeat_grace`, which defaults to `10s`.
Before proceeding to the next server, use `nomad agent-info` to check that Raft
`last_log_index` is close to the other servers' values; repeat after removing an old server.
From 1.10.1, agents exit on configuration reload errors. Monitor the agent process
when rolling out changes through reloads.
For Enterprise upgrades, run `nomad license inspect` with the binary you are about to install.
The operations reference includes Raft protocol migration and single-server `peers.json` generation.

Files in this skill

  • SKILL.md8 KB
  • coverage.json1 KB
  • references/cli-api-and-observability.md3.2 KB
  • references/drivers-plugins-and-platforms.md1.8 KB
  • references/jobs-scheduling-and-deployments.md3.4 KB
  • references/security-identity-and-governance.md2.6 KB
  • references/storage-and-volumes.md1.5 KB
  • references/upgrading-and-server-operations.md4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.