Commit Graph

26931 Commits

Author SHA1 Message Date
Michael Schurter
0d9b108498 cleanup 1.10.0 entry and move 1.7 out 2025-04-09 16:09:01 -07:00
hc-github-team-nomad-core
7db0bdf2de Prepare for next release 2025-04-09 16:03:21 -07:00
hc-github-team-nomad-core
71af41b4b1 Generate files for 1.10.0 release 2025-04-09 16:03:21 -07:00
hc-github-team-nomad-core
9f33796156 Prepare for next release 2025-04-09 16:03:21 -07:00
hc-github-team-nomad-core
239c5f11ee Generate files for 1.10.0 release 2025-04-09 16:03:21 -07:00
Aimee Ukasick
87aabc9af2 Docs: 1.10 release notes, some factoring, sentinel apply update (#25433)
* Docs: 1.10 release notes and upgrade factoring

* Update based on code review suggestions

* add CLI for disabling UI URL hints

* fix indentation

* nav: list release notes in reverse order

fix broken link to v1.6.x docs

* Update PKCE section from Daniel's latest PR

* update pkce per daniel's suggestion

* Add dynamic host volumes governance section from blog
2025-04-09 15:43:58 -07:00
Michael Schurter
95c914624e build: Update Go to v1.24.0 (#25623)
* build: Update Go to v1.24.0

Fixes Go CVE https://pkg.go.dev/vuln/GO-2025-3563
2025-04-08 16:07:47 -07:00
James Rasell
311a83d706 e2e: Ensure UI is enabled. (#25620)
The `ui.enabled` parameter is a non-pointer bool which means the
merge function is unable to differentiate between false and not
set. When e2e introduced the `ui.show_cli_hints` configuration
parameter, the way we merge meant the UI became disabled.
2025-04-08 13:57:29 +01:00
dependabot[bot]
b8143368d8 chore(deps): bump github.com/hashicorp/raft from 1.7.2 to 1.7.3 (#25602) 2025-04-07 22:30:21 +00:00
dependabot[bot]
d6b429aa6b chore(deps): bump github.com/miekg/dns from 1.1.62 to 1.1.64 (#25603) 2025-04-07 22:29:13 +00:00
dependabot[bot]
f72fea22a7 chore(deps): bump github.com/docker/docker (#25604) 2025-04-07 22:27:56 +00:00
dependabot[bot]
60cc55615e chore(deps): bump google.golang.org/grpc from 1.71.0 to 1.71.1 (#25605) 2025-04-07 22:26:39 +00:00
dependabot[bot]
09ebb390e2 chore(deps): bump github.com/golang/snappy from 0.0.4 to 1.0.0 (#25606) 2025-04-07 22:23:13 +00:00
Daniel Bennett
5c8e436de9 auth: oidc: disable pkce by default (#25600)
our goal of "enable by default, only for new auth methods"
proved to be unwieldy, so instead make it a simple bool,
disabled by default.
2025-04-07 12:36:09 -05:00
James Rasell
6c39285538 e2e: Ensure test resources are cleaned. (#25611)
I couldn't find any reason the exec2 HTTP jobs were not being run
with a generated cleanup function, so I added this.

The deletion of the DHV ACL policy does not seem like it would
have any negative impact.
2025-04-07 14:15:29 +01:00
James Rasell
0316309276 ci: Run the build workflow on pushes to long-lived branches only. (#25597) 2025-04-07 07:16:24 +01:00
Tim Gross
95520ac819 Post-release 1.10.0-rc.1 (#25596) 2025-04-03 16:49:58 -04:00
Tim Gross
c653f52b8d release: update backport versions for 1.10.0 (#25595)
With the release of Nomad 1.10.0-rc.1, we'll start backporting to the 1.10.x
release series. Add this to the supported versions and remove 1.7.x.
2025-04-03 15:29:35 -04:00
hc-github-team-nomad-core
0f29b0c51b Prepare for next release 2025-04-03 18:22:07 +00:00
hc-github-team-nomad-core
a18faebda1 Generate files for 1.10.0-rc.1 release 2025-04-03 18:21:58 +00:00
Tim Gross
fffef3c6b1 Prepare release 1.10.0-rc.1 2025-04-03 14:16:30 -04:00
Daniel Bennett
6383d5f54d auth: oidc client assertion tweaks (#25565)
* allow for newline flexibility in client assertion key/cert

* if client assertion, don't send the client secret,
but do keep the client secret in both places in state
(on the parent Config, and within the OIDCClientAssertion)
mainly so that it shows up as "redacted" instead of empty
when inspecting the auth method config via API.
2025-04-03 11:53:37 -05:00
Daniel Bennett
6a0c4f5a3d auth: oidc: enable pkce only on new auth methods (#25593)
trying not to violate the principle of least astonishment.

we want to only auto-enable PKCE on *new* auth methods,
rather than *new or updated* auth methods, to avoid a
scenario where a Nomad admin updates an auth method
sometime in the future -- something innocent like a new
client secret -- and their OIDC provider doesn't like PKCE.

the main concern is that the provider won't like PKCE
in a totally confusing way. error messages rarely
say PKCE directly, so why the user's auth method
suddenly broke would be a big mystery.

this means that to enable it on existing auth methods,
you would set `OIDCDisablePKCE = false`, and the double-
negative doesn't feel right, so instead, swap the language,
so enabling it on *existing* methods reads sensibly, and to
disable it on *new* methods reads ok-enough:
`OIDCEnablePKCE = false`
2025-04-03 10:56:17 -05:00
Denis Rodin
aca0ff438a raw_exec windows: add support for setting the task user (#25496) 2025-04-03 11:21:13 -04:00
Tim Gross
e4d2fc93cd upgrade testing: temporarily disable CSI workload (#25589)
The CSI workload we're using for upgrade testing seems to be flaky to come
up. The plugin jobs don't launch in a timely fashion despite several
attempts. In order to not block running the rest of the upgrade testing, let's
disable this workload temporarily. We'll fix this in NET-12430.

Ref: https://hashicorp.atlassian.net/browse/NET-12430
2025-04-03 08:53:20 -04:00
tehut
27b1d470a8 modify rawexec TaskConfig and Config to accept envvar denylist (#25511)
* modify rawexec TaskConfig and Config to accept envvar denylist
* update rawexec driver docs to include deniedEnvars options
Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>

---------

Co-authored-by: Daniel Bennett <dbennett@hashicorp.com>
2025-04-02 12:25:28 -07:00
Tim Gross
78cc7ec1eb dynamic host volumes: enforce that namespace exists (#25590)
Testing found that if you create or register a dynamic host volume in a
non-existing namespace, the volume gets created on the client but then we can't
write it to state. Add a check for this in the initial validation.
2025-04-02 15:18:55 -04:00
Nikita Eliseev
76fb3eb9a1 rpc: added configuration for yamux session (#25466)
Fixes: https://github.com/hashicorp/nomad/issues/25380
2025-04-02 10:58:23 -04:00
Tim Gross
1a1ccec8b2 CNI: add warning log for CNI check command failures (#25581)
In #24658 we fixed a bug around client restarts where we would not assert
network namespaces existed and were properly configured when restoring
allocations. We introduced a call to the CNI `Check` method so that the plugins
could report correct config. But when we get an error from this call, we don't
log it unless the error is fatal. This makes it challenging to debug the case
where the initial check fails but we tear down the network and try again (as
described in #25510). Add a noisy log line here.

Ref: https://github.com/hashicorp/nomad/pull/24658
Ref: https://github.com/hashicorp/nomad/issues/25510
2025-04-02 10:43:05 -04:00
Phil Renaud
afa9e65afa Update playwright to 1.51.0 for e2e ui tests (#25585) 2025-04-02 15:12:00 +01:00
Michael Smithhisler
c8cc519f54 e2e: disable cli hints for command parsing (#25584) 2025-04-02 09:12:36 -04:00
Michael Smithhisler
95c9029df0 e2e: update consul task policy and add empty consul block to task groups (#25580) 2025-04-01 16:29:47 -04:00
Deniz Onur Duzgun
80da9cb211 bump: go-discovery to latest commit SHA (#25566)
* bump: go-discovery to latest commit SHA

* go mod tidy
2025-04-01 11:12:06 -04:00
James Rasell
1a60464ca5 volumes: Version gate create/delete host volume RPCs. (#25571)
All Nomad servers should be running v1.10.0 before the DHV feature
can be used. Without this, it is possible for a write to succeed
and cause immediate loss and subsequent failure to establish
leadership.
2025-04-01 15:53:37 +01:00
Aimee Ukasick
9778fa4912 Docs: Fix broken links in main for 1.10 release (#25540)
* Docs: Fix broken links in main for 1.10 release

* Implement Tim's suggestions

* Remove link to Portworx from ecosystem page

* remove "Portworx" since Portworx 3.2 no longer supports Nomad
2025-04-01 09:09:44 -05:00
James Rasell
3ffe6e5f53 test: Move client server manager tests to use must library. (#25569) 2025-04-01 14:23:08 +01:00
Tim Gross
cdd40cf81b docs: document requirements for Consul tokens in admin partitions (#25529)
When using Nomad with Consul, each Nomad agent is expected to have a Consul
agent running alongside. When using Nomad Enterprise and Consul Enterprise
together, the Consul agent may be in a Consul admin partition. In order for
Nomad's "anti-entropy" sync to work with Consul, the Consul ACL token and ACL
policy for the Nomad client must be in the same admin partition as the Consul
agent. Otherwise, we can register services (via WI) but then won't be able to
deregister them unless they're the default namespace.

Ref: https://hashicorp.atlassian.net/browse/NET-12361
2025-04-01 08:45:05 -04:00
Michael Smithhisler
7176cf443a docs: add missing podman task config options (#25465)
---------

Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com>
2025-04-01 08:31:58 -04:00
Juana De La Cuesta
8257465ffa Merge pull request #25548 from hashicorp/dependabot/npm_and_yarn/scripts/screenshots/src/tar-fs-2.1.2
chore(deps): bump tar-fs from 2.1.0 to 2.1.2 in /scripts/screenshots/src
2025-04-01 14:08:41 +02:00
Allison Larson
17d191ae24 Add -group flag to alloc exec, alloc logs command (#25568)
* Add -group flag to `alloc exec`, `alloc logs` command

* fixup! Add -group flag to `alloc exec`, `alloc logs` command

* Add -group option to alloc fs

* Add changelog
2025-03-31 14:17:45 -07:00
Michael Smithhisler
077c1921ef e2e: disable IMDSv2 in tests (#25564)
Consul needs to use a newer version of go-discover that can query IMDSv2
in order for our test infrastructure to be enabled with it.
2025-03-31 12:07:45 -04:00
Sooter Saalu
e93bda31ea Update placement.mdx (#25538)
* Update placement.mdx

Added explanations on initial and blocked evaluation for placement failures.

fixes #24824

* Update website/content/docs/concepts/scheduling/placement.mdx

Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com>

* Update website/content/docs/concepts/scheduling/placement.mdx

Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com>

---------

Co-authored-by: Aimee Ukasick <aimee.ukasick@hashicorp.com>
2025-03-31 09:08:06 -05:00
dependabot[bot]
d4b40a8e5e chore(deps): bump github.com/hashicorp/consul/sdk from 0.16.1 to 0.16.2 (#25549) 2025-03-31 08:14:42 +00:00
dependabot[bot]
658c8f3c5a chore(deps): bump github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2 (#25551) 2025-03-31 08:14:05 +00:00
dependabot[bot]
05ae690e6c chore(deps): bump golang.org/x/mod from 0.23.0 to 0.24.0 (#25552) 2025-03-31 08:12:49 +00:00
dependabot[bot]
5e002a750b chore(deps): bump github.com/prometheus/client_golang (#25553) 2025-03-31 08:11:57 +00:00
dependabot[bot]
3fc2451ac2 chore(deps): bump github.com/opencontainers/image-spec (#25550) 2025-03-31 08:10:08 +00:00
dependabot[bot]
0cb2db86a9 chore(deps): bump tar-fs from 2.1.0 to 2.1.2 in /scripts/screenshots/src
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.0 to 2.1.2.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.0...v2.1.2)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-29 00:09:47 +00:00
Michael Smithhisler
8e3625a716 e2e: create consul policies and roles in respective namespaces (#25546) 2025-03-28 13:52:49 -04:00
James Rasell
37af365cf3 deps: Update golang.org/x/net from 0.36.0 to 0.38.0 (#25543) 2025-03-28 15:13:58 +00:00