Affected by GO-2022-0560
and 19 other vulnerabilities
GO-2022-0560 : Nomad Spread Job Stanza May Trigger Panic in Servers in github.com/hashicorp/nomad
GO-2022-0573 : Improper Authentication in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0584 : Arbitrary file reads in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0591 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0600 : HashiCorp Nomad Artifact Download Race Condition in github.com/hashicorp/nomad
GO-2022-0622 : Improper Privilege Management in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0634 : Hashicorp Nomad Information Exposure Through Environmental Variables in github.com/hashicorp/nomad
GO-2022-0709 : Improper network isolation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0732 : Privilege escalation in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2022-0770 : Path Traversal in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0806 : Use After Free in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0821 : Improper Certificate Validation in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-0840 : Allocation of Resources Without Limits or Throttling in HashiCorp Nomad in github.com/hashicorp/nomad
GO-2022-1062 : Nomad Panics On Job Submission With Bad Artifact Stanza Source URL in github.com/hashicorp/nomad
GO-2024-2670 : ACL security vulnerability in github.com/hashicorp/nomad
GO-2024-3073 : Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking in github.com/hashicorp/nomad
GO-2024-3262 : Hashicorp Nomad Incorrect Authorization vulnerability in github.com/hashicorp/nomad
GO-2024-3354 : Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
GO-2025-3510 : Unintentional exposure of the workload identity token and client secret in logs in github.com/hashicorp/nomad
GO-2025-3758 : Hashicorp Nomad Incorrect Privilege Assignment vulnerability in github.com/hashicorp/nomad
Discover Packages
github.com/hashicorp/nomad
client
servers
package
Version:
v0.9.3
Opens a new window with list of versions in this module.
Published: Jun 12, 2019
License: MPL-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 30
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package servers provides an interface for choosing Servers to communicate
with from a Nomad Client perspective. The package does not provide any API
guarantees and should be called only by `hashicorp/nomad`.
New is the only way to safely create a new Manager struct.
FindServer returns a server to send an RPC too. If there are no servers, nil
is returned.
GetServers returns a copy of the current list of servers.
NotifyFailedServer marks the passed in server as "failed" by rotating it
to the end of the server list.
NumNodes returns the number of approximate nodes in the cluster.
NumServers returns the total number of known servers whether healthy or not.
func (m *Manager ) RebalanceServers()
RebalanceServers shuffles the order in which Servers will be contacted. The
function will shuffle the set of potential servers to contact and then attempt
to contact each server. If a server successfully responds it is used, otherwise
it is rotated such that it will be the last attempted server.
func (m *Manager ) ResetRebalanceTimer()
ResetRebalanceTimer resets the rebalance timer. This method exists for
testing and should not be used directly.
SetNumNodes stores the number of approximate nodes in the cluster.
SetServers sets the servers and returns if the new server list is different
than the existing server set
Start is used to start and manage the task of automatically shuffling and
rebalancing the list of Nomad servers in order to distribute load across
all known and available Nomad servers.
Pinger is an interface for pinging a server to see if it is healthy.
Server contains the address of a server and metadata that can be used for
choosing a server to contact.
Equal returns if the two server lists are equal, including the ordering.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.