Skip to content
Back to skills

Nomad Knowledge Patch

ASecurity

HashiCorp Nomad

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentgojavanodedockerapibackend

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 7 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-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-nomad-knowledge-patch-nevaberry-plugins)

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 diagnosing scheduling, identity, storage, and telemetry
behavior. Use the topic references for complete conditions, examples, and
release- and edition-specific guidance.

## Reference index

| Reference | Topics |
| --- | --- |
| [Identity and Policy](references/identity-and-policy.md) | ACLs, workload and client identities, OIDC, Consul, Vault, secrets, TLS, Sentinel, quotas |
| [Jobs and Scheduling](references/jobs-and-scheduling.md) | Validation, deployments, placement, resources, batch queues, dispatch, disconnects, templates, networking, job plans |
| [Operations and Observability](references/operations-and-observability.md) | Agent configuration, CLI, diagnostics, metrics, events, logs, HTTP and Go APIs, licensing |
| [Storage, Drivers, and Plugins](references/storage-drivers-and-plugins.md) | Host volumes, CSI, disk reservations, Docker, exec, Java, QEMU, artifacts, driver APIs |
| [Upgrades and Raft](references/upgrades-and-raft.md) | Upgrade procedure, federation, membership, Raft migration, snapshots, release cadence and support |

## Breaking changes and deprecations

### Allocation authentication and policies

Nomad 1.10.0 removes the deprecated token-based Consul and Vault allocation
authentication workflows. Use workload identities. Tasks whose templates read
Consul need a Consul workload identity configured explicitly; a `template`
block no longer triggers automatic identity injection.

Before upgrading to 1.10, remove `vault.allow_unauthenticated`,
`vault.task_token_ttl`, `vault.token`, and `consul.allow_unauthenticated` from
agent configurations. Replace the job's `vault.policies` with a Vault role that
specifies the policies and task token TTL. See Identity and Policy for the
edition-specific availability of later Consul token fallback.

ACL policy writes fail on duplicate or invalid keys starting in 1.10.6;
existing policies continue to work, but their source must be corrected before
rewriting them. The same strict validation starts in 1.11.0 and 1.8.18 in their
respective release lines.

### Job and API migrations

- Nomad 1.11.0 rejects `reschedule` blocks on `system` and `sysbatch` jobs.
- The task name `alloc` is reserved in Enterprise 1.10.6 and Community Edition 1.11.0.
- In 1.10.0, legacy disconnect fields are ignored. Move `max_client_disconnect`,
  `stop_after_client_disconnect`, and `prevent_reschedule_on_lost` to the
  group-level `disconnect` block, available from 1.8.0.
- In 1.11.0, the Go API's `Node` and the Read Node HTTP response deprecate
  `Resources` and `Reserved`, which are always empty. Read `NodeResources`
  and `ReservedResources`, respectively.
- Nomad 2.1.0 deprecates `Allocation.Resources` and `Allocation.TaskResources`;
  read `Allocation.AllocatedResources`.
- From 2.0.6, `reschedule.delay` must be at least one second, and lifecycle
  task groups must include at least one main task.

### Agent, join, and Raft changes

An agent exits on a configuration reload error starting in 1.10.1. Monitor the
agent process when rolling out configuration changes through reloads.
In 2.0.3, `PUT /v1/agent/reload` triggers an agent configuration reload.

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 their scheduled 2.1.0 removal.

Nomad 2.0.0 deprecates `server.raft_boltdb` in favor of `server.raft_logstore`.
Use `nomad operator raft migrate-backend` to migrate a server from BoltDB to WAL.
Take a snapshot first: reverting requires restoring a pre-migration snapshot.
Check log store details in `/v1/agent/self`.

### Drivers, storage, and templates

- External binaries in `plugin_dir` require a matching agent `plugin` block
  from 1.10.0; `plugin "my-driver" {}` suffices when no settings are needed.
- The task-driver interface removes remote task support in 1.10.0. Migrate
  integrations that depend on remote tasks before upgrading.
- Enterprise 1.10.15 and Community Edition 2.0.5 remove `DriverNetwork.Hash`.
  Update Go integrations before rebuilding against the new API.
- In 1.11.1, move deprecated `client.disk_free_mb` to `client.reserved.disk`.
  Schedulable storage is `totalBytes - client.reserved.disk`; reserve at least
  the host OS's disk usage. The `unique.storage.bytesfree` attribute is removed.
- QEMU filesystem environment variables hold host paths from 1.11.2. Update
  jobs that expect `/alloc` or `/local`.
- Update templates calling the Sprig functions removed in 1.10.2. The complete
  function list is in Jobs and Scheduling.
- A 2.1.0 client fails to start with state restored from a backup created before
  Nomad 0.9. From 2.1.1, clients refuse to migrate symlinked task directories.

## Workload and client identities

Use the server's `client_introduction` enforcement level to control registration
alongside mTLS. Generate a signed JWT with `nomad node intro create` or
`/v1/acl/identity/client-introduction-token`, optionally restricting node name,
node pool, and TTL, then pass it to the client for initial registration:

```sh
nomad agent -config=client.hcl -client-intro-token="$intro_token"
```

Servers issue and rotate client identity tokens for RPC authentication and
authorization. Set `node_identity_ttl` in the node pool and inspect it with
`nomad node pool info`. Use `nomad node identity get` for claims and
`nomad node identity renew` to request rotation on the client's next heartbeat.

In 2.0.3, namespace `required_extra_claims` and `optional_extra_claims` control
extra workload identity claims. From 2.0.7, the default workload identity policy
permits `namespace=*` queries for Nomad-native services.

## Secrets and template rendering

A `secret` block fetches named values from Nomad, Vault, or a custom provider.
Reference a fetched key as `${secret.<name>.<key>}`. In 2.0.5, task secrets also
resolve in service `tags` and service-check `header` and `args`.

Set `once = true` in a task's `template` block to render once and stop watching
for updates, starting in 1.10.2. In 2.0.4, `run_on_first_render = true` inside
`change_script` runs the script after the first render as well as later changes.
In 2.0.5, that initial script runs in the task's `poststart` lifecycle hook.
In 2.0.6, Vault token renewal no longer triggers the task's `change_mode`, and
Nomad stops renewing tokens for dead tasks.

## Stateful volumes and resource limits

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

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

Set `node_max_allocs` in `client` to cap allocations on that client. From 1.11.0,
`server.job_max_count` caps the sum of a job's group `count` values, defaults to
`50000`, and is checked on submission or scaling; changing it leaves existing
jobs in place.

With cluster memory oversubscription enabled, 1.11.2 supports reserving memory
without a hard limit on Docker, `exec`, `raw_exec`, and Podman tasks. Set
`memory_max = -1` in the task's `resources` block.

## Job updates and planning

Changes limited to `affinity` or `spread` can be applied in place from 1.10.0. To
redistribute running allocations, include a replacement-triggering change,
such as a `meta` block change. Use `-preserve-resources` on `nomad job run` to
keep existing task resource settings in Enterprise 1.10.6 or Community Edition
1.11.0.

Use `update` to control `system` job rollouts, and inspect them with
`nomad deployment` commands or the web UI. For `service` and `batch` jobs,
`count = 0` has the scheduling effect of removing the group and stops every
non-terminal allocation in it.

From 2.0.5, `nomad job plan` accepts `-json-output` for JSON or `-t` for templated
output. In 2.0.6, job plan diffs order indexed fields numerically.

## Experimental batch queues and job variables

Nomad 2.1.0 adds experimental configurable batch job queues on node pools.
FIFO places jobs in submission order. 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.

In 2.0.3, set `max_run_duration` on a `batch` or `sysbatch` task group to cap each
allocation's runtime. In 2.1.0, jobspec2 accepts `optional()` object attributes
in input variable types, allowing those attributes to be omitted from values.

## Diagnostics and telemetry

From 1.10.2, clients collect and publish allocation metrics only when
`telemetry.publish_allocation_metrics` is explicitly enabled on each monitored
client. Eval broker label changes and certificate, HTTP connection, and reserved
core CPU metrics are detailed in Operations and Observability.

`nomad eval status` shows related evaluations, placements, preemptions, and plan
annotations. Annotations describe the intended plan before node feasibility
checks. Use `nomad alloc status -verbose <alloc-id>` for node scores and counts
of evaluated and rejected nodes.

In 1.10.4, `nomad monitor export` retrieves an agent's journald or log-file
contents; `nomad operator debug` can capture historical logs with `-log-lookback`
and `-log-file-export`. From 1.11.2, `EventStream.Stream` exits on its first error;
open a new stream if the caller needs to resume watching events.

## Upgrade procedure reminders

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 upgrades, upgrade every agent in the affected region
and every server in the authoritative region before relying on new features.

An in-place client restart may reschedule all its allocations if it exceeds
the server's `heartbeat_grace`, which defaults to `10s`. Before moving to the
next server, use `nomad agent-info` to confirm that its Raft `last_log_index` is
close to the other servers' values; repeat after removing an old server.
Use Upgrades and Raft for membership handling and protocol migration procedures.

Files in this skill

  • SKILL.md8.3 KB
  • coverage.json1 KB
  • references/identity-and-policy.md3.8 KB
  • references/jobs-and-scheduling.md3.4 KB
  • references/operations-and-observability.md2.7 KB
  • references/storage-drivers-and-plugins.md2.5 KB
  • references/upgrades-and-raft.md4 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.