45 Commits

Author SHA1 Message Date
ethel-hashicorp
6ea57a589d SMRE-733: Updates post-install text to properly reflect the updated IPLA blurb (#26791) 2025-09-19 07:35:58 +01:00
Tim Gross
2d771f0f10 security: bypass scan for GO-2025-3829 (#26505)
* security: bypass scan for GO-2025-3829

This report is unverified by upstream and has no release fixing it. In any case,
this problem with firewalld doesn't impact Nomad's use of the dependency as a
library, only the uses of it in `dockerd`. Bypass it from our scans for now.

Ref: https://github.com/moby/moby/releases/tag/v28.3.3
Ref: https://pkg.go.dev/vuln/GO-2025-3829

* Update .release/security-scan.hcl

Co-authored-by: Deniz Onur Duzgun <59659739+dduzgun-security@users.noreply.github.com>

---------

Co-authored-by: Deniz Onur Duzgun <59659739+dduzgun-security@users.noreply.github.com>
2025-08-12 15:46:33 -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
James Rasell
3ab1673552 sec: Suppress GO-2025-3543 for github.com/opencontainers/runc (#25536)
The vulnerability has been withdrawn but it may be a while until
it is removed from the DB used by scanning. Suppressing this
removes the false result in scanning processes. The change should
be reverted once the DB is updated.
2025-03-27 12:58:06 +00:00
Tim Gross
8c57fd5eb0 fingerprint: initial fingerprint of Vault/Consul should be periodic (#25102)
In #24526 we updated the Consul and Vault fingerprints so that they are no
longer periodic. This fixed a problem that cluster admins reported where rolling
updates of Vault or Consul would cause a thundering herd of fingerprint updates
across the whole cluster.

But if Consul/Vault is not available during the initial fingerprint, it will
never get fingerprinted again. This is challenging for cluster updates and black
starts because the implicit service startup ordering may require
reloads. Instead, have the fingerprinter run periodically but mark that it has
made its first successful fingerprint of all Consul/Vault clusters. At that
point, we can skip further periodic updates. The `Reload` method will reset the
mark and allow the subsequent fingerprint to run normally.

Fixes: https://github.com/hashicorp/nomad/issues/25097
Ref: https://github.com/hashicorp/nomad/pull/24526
Ref: https://github.com/hashicorp/nomad/issues/24049
2025-02-13 14:26:04 -05:00
James Rasell
4fbacee328 sec: Remove yamux suppression as vuln has been revoked. (#25044) 2025-02-07 15:15:15 +00:00
James Rasell
e4659970b1 sec: Suppress additional yamux advisory and AWS v1 indirect dep. (#25003) 2025-02-03 14:52:27 +00:00
James Rasell
0d57e91282 sec: Surpress yamux OSV alert in CRT. (#24978)
The change also removes an old surpression which has now been
resolved.
2025-01-30 15:27:19 +00:00
Deniz Onur Duzgun
a4ac2025f4 sec: suppress osv alert in CRT (#24701)
* sec: suppress GO-2022-0635 osv alert in CRT

* hclfmt
2024-12-17 14:56:52 -05:00
Tim Gross
5bb6d96773 build: update versions file for backports (#24174) 2024-10-11 12:30:34 -04:00
Deniz Onur Duzgun
52f0b40f4c security: fine tune security-scanner to reduce false-positives (#20465)
Resolve scan job runner

Resolve linting alerts

adding EOF on files

adding EOF on gitignore too

add hclfmt and bump action versions

update scan.hcl comments

Co-authored-by: Tim Gross <tgross@hashicorp.com>

fix typo

move scan.hcl file and paths-ignore for scans

change action runner

use org secret to checkout

typo

change runner

use hashicorp/setup-golang@v3

Co-authored-by: Tim Gross <tgross@hashicorp.com>

pin the github action sha
2024-09-18 16:55:39 -04:00
Tim Gross
8a774702c7 build: revert change to active versions
In #23720 we removed the 1.7.x and 1.6.x release branches from the "active"
versions for backports. But we forgot that we needed these backports to remain
active for documentation backports because of versioned docs.
2024-08-06 16:33:01 -04:00
Jeanne Angeles Franco
cfce3e56be Add artifacts manifest (automatically generated) (#23719) 2024-08-02 09:15:43 -04:00
Tim Gross
0c01b2d4e4 build: remove inactive CE versions from being backport eligible (#23720)
As of Nomad 1.8.0 LTS we're no longer backporting changes to Nomad CE versions
1.7.x and 1.6.x. We never got around to removing the flags in the file the
backport assistant uses to control automated backports.
2024-08-01 14:56:34 -04:00
James Rasell
6a7eb15590 release: explicitly set Linux service file user and group param. (#23687)
The default root:root is used as this provides permissions to run
both server and client agents. The comment details what changes
can be made to operators if needed.

When running the service file prior to this change, root:root
would be the default.
2024-07-25 15:18:47 +01:00
claire labry
e9d6c39dba SMRE/BPA Onboarding LTS (#20595)
Configuration changes to use backport assistant with LTS support. These include:

* adding a manifest file for active releases
* adding configuration to send backport to ENT repo
2024-05-17 08:21:42 -04:00
Tim Gross
54fc146432 agent: add support for sdnotify protocol (#20528)
Nomad agents expect to receive `SIGHUP` to reload their configuration. The
signal handler for this is installed fairly late in agent startup, after the
client or server components are up and running. This means that configuration
management tools can potentially reload the configuration before the agent can
handle it, causing the agent to crash.

We don't want to allow configuration reload during client or server component
startup, because it would significantly complicate initialization. Instead,
we'll implement the systemd notify protocol. This causes systemd to block
sending configuration reload signals until the agent is actually ready. Users
can still bypass this by sending signals directly.

Note that there are several Go libraries that implement the sdnotify protocol,
but most are part of much larger projects which would create a lot of dependabot
burden. The bits of the protocol we need are extremely simple to implement in a
just a couple of functions.

For non-Linux or non-systemd Linux systems, this feature is a no-op. In future
work we could potentially implement service notification for Windows as well.

Fixes: https://github.com/hashicorp/nomad/issues/3885
2024-05-03 13:42:07 -04:00
Daniel Bennett
30c0461048 systemd: comment on OOMScoreAdjust in service unit (#20392) 2024-04-15 16:35:41 -05:00
Adrian Todorov
8cde5f799c dist: move systemd unit file rate limits from [Service] to [Unit] block (#19098) 2023-11-16 08:25:04 -05:00
Kerim Satirli
5e1bbf90fc docs: update all URLs to developer.hashicorp.com (#16247) 2023-10-24 11:00:11 -04:00
hashicorp-copywrite[bot]
f2acbdb49b Update copyright file headers to BUSL-1.1 2023-08-10 17:27:09 -05:00
Luiz Aoqui
b7c2d65a0e build: add Docker image (#17017)
Co-authored-by: Daniel Kimsey <90741+dekimsey@users.noreply.github.com>
2023-06-23 15:57:09 -04:00
hashicorp-copywrite[bot]
f005448366 [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
Luiz Aoqui
1061ddd0b0 ci: send notification when prepare is complete (#16627) 2023-03-23 17:34:45 -04:00
Michele Degges
ebe4b5187b [CI only] Prepare workflow rollout (#15600) 2023-02-16 15:51:59 -08:00
Tim Gross
4fd3c17a79 docs: update example license_path (#16082)
In #13374 we updated the commented-out `license_path` in the packaged example
configuration file to match the existing documentation. Although this config
value was commented-out, it was reported that changing the value was
confusing. Update the commented-out line to the previous value and update the
documented examples to match that. This matches most of the examples for
Consul/Vault licensing as well. I've double-checked the tutorials and it looks
like it'd been left on the previous value there, so no additional work to be
done.
2023-02-07 16:28:51 -05:00
Piotr Kazmierczak
949a6f60c7 renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
claire labry
0c575d5544 Merge pull request #13815 from hashicorp/post-publish-website
Introduces the post publish website event
2022-08-08 10:34:31 -05:00
Michele Degges
728f20fc31 [CI-only] Use pattern matching for release_branches (#13857)
### Description
Pattern matching was [recently added](https://github.com/hashicorp/crt-orchestrator/pull/51) so that teams no longer have to explicitly list every branch that should trigger the CRT pipeline. This simplifies release preparation- anytime a new release branch is created, it will produce releasable artifacts and exercise the full pipeline.

### Testing & Reproduction steps
This has been tested in multiple projects since being rolled out. There are no nomad-specific tests that need to be done.

### Links
PR where this functionality was added: https://github.com/hashicorp/crt-orchestrator/pull/51

### PR Checklist

* [ ] updated test coverage
* [ ] external facing docs updated
* [X] not a security concern
2022-08-02 09:38:33 -07:00
Claire Labry
671e8fb191 introduces the post publish website event 2022-07-18 12:48:16 -04:00
Kyle Penfound
98bd846aa9 packaging: restart nomad service after package update (#13773) 2022-07-15 14:20:04 -07:00
Michele Degges
2f3d110c8f fix hcl formatting 2022-07-08 14:07:18 -07:00
Michele Degges
1c5d80cc3b Remove test trigger 2022-07-07 15:40:37 -07:00
Michele Degges
58c8bccf87 Support fossa scanning 2022-07-07 11:18:44 -07:00
Ted Behling
b335e04008 Update example license_path to match docs (#13374) 2022-06-20 09:04:02 -04:00
Luiz Aoqui
d7d578b3f4 ci: revert file changes and add some checks (#12873)
During the release there are several files that need to be modified:

  - .release/ci.hcl: the notification channel needs to be updated to a
    channel with greater team visibility during the release.
  - version/version.go: the Version and VersionPrerelease variables
    need to be set so they match the release version.

After the release these files need to be reverted.

For GA releases the following additional changes also need to happen:

  - version/version.go: the Version variable needs to be bumped to the
    next version number.
  - GNUMakefile: the LAST_RELEASE variable needs to be set to the
    version that was just released.

Since the release process will commit file changes to the branch being
used for the release, it should _never_ run on main, so the first step
is now to protect against that.

It also adds a validation to make the user input version is correct.

After looking at the different release options and steps I noticed that
automatic CHANGELOG generation is actually the exception, so it would be
better to have the default to be false.
2022-05-05 18:07:51 -04:00
James Rasell
52faa167dd release: fix hcl linting error within CI file. (#12867) 2022-05-04 10:48:42 +02:00
Michele Degges
d551cda6f5 Add config key to the promote-staging event 2022-05-03 08:51:19 -07:00
Luiz Aoqui
d63158786f ci: setup release process with CRT (#12781) 2022-04-27 20:14:23 -04:00
Luiz Aoqui
8bde164eaa ci: change notification channel to feed-nomad-releases (#12550) 2022-04-11 19:12:58 -04:00
claire labry
5a0a8f606f move nomad.service out of etc (#12541) 2022-04-11 18:26:10 -04:00
claire labry
0becc4a9b7 [Main] Onboard to CRT (#12276) 2022-04-06 11:47:02 -04:00
Seth Hoenig
fb760d154b ci: add trailing newline to release metadata 2022-03-30 08:12:55 -05:00
Seth Hoenig
1b06e01d0f ci: hcl format release metadata file 2022-03-30 08:02:55 -05:00
Michele Degges
7d7235ff5e [RelAPI Onboarding] Add release API metadata file 2022-03-22 17:06:33 -07:00