Python Nomad Versions Save

Client library Hashicorp Nomad

1.0.1

5 years ago

Update requests to 2.20.0

Vulnerable versions: <= 2.19.1
Patched version: 2.20.0
The Requests package through 2.19.1 before 2018-09-14 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.

1.0.0

5 years ago

Restructure base Requester class, inherit from class instead of passing object to each instantiation. Removes all helpers _get, _post, _no_post, _put, _delete in each endpoint. Additional exceptions for status_codes. Should address:

#42 #59 #62 #64

Additional endpoints for client:

read_at stream_file stream_logs gc_allocate gc_all

Fixes: Diff parameter for jobs plan endpoint, thanks @jeteon!

This change is a breaking change along with some methods in the init being removed:

Exceptions that occur from communication with the Nomad API should now be following based on the status codes from, and inherit from BaseNomadException:

https://www.nomadproject.io/api/index.html#http-response-codes

set_namespace set_token

0.9.0

6 years ago
  • Parse endpoint support, thanks to @Tethik!
  • Region support, thanks to @tzahimizrahi

0.8.0

6 years ago

Add support for:

  • node drain with drainspec
  • node eligibility
  • node prune

0.7.0

6 years ago

Metrics and Stats Endpoints thanks to @gokhansengun Environment Variable lookups and matching to other tools thanks to @vladshub

0.6.1

6 years ago

Exception handling fix to obtain nomad_resp object for all custom exceptions raised. Thanks to @etrabelsi

0.6.0

6 years ago

Huge thanks to @i4s-pserrano who added functionality for:

Tokens Policies Namespaces (Enterprise only) Sentinel policies (Enterprise only) As well as documenting examples for all the properties available currently!

0.5.0

6 years ago

Add optional cert file parameter for cert tuple (cert,key)

0.4.0

6 years ago

Added calls for features new to nomad 0.6.0:

  • deployments
  • deployment
  • validate

0.3.0

6 years ago

CA certfile option to request session thanks to @marcjay