BUG FIXES:
- Fix
initialize()
methodrecovery_shares
andrecovery_threshold
parameter validation regression. GH-416
Python 2.7/3.X client for HashiCorp Vault
BUG FIXES:
initialize()
method recovery_shares
and recovery_threshold
parameter validation regression. GH-416BACKWARDS COMPATIBILITY NOTICE:
Client()
class constructor now behaves similarly to Vault CLI in that it uses the VAULT_ADDR
environmental variable for the Client URL when that variable is set. Along the same lines, when no token is passed into the Client()
constructor, it will attempt to load a token from the VAULT_TOKEN
environmental variable or the ~/.vault-token
file where available. GH-411IMPROVEMENTS:
BUG FIXES:
recovery_threshold
and recovery_shares
during initialization. GH-398generate_credentials()
method. GH-403n_bytes
-> bytes
) for Transit secrets engine generate_random_bytes()
method. GH-377Thanks to @engstrom, @viralpoetry, @bootswithdefer, @steved, @kserrano, @spbsoluble, @uepoch, @singuliere, @frgaudet, @jsporna, & @mrsiesta for their lovely contributions.
IMPROVEMENTS:
BUG FIXES:
Adapter
class to fix issues following location headers with fully qualified URLs. Note: hvac now converts //
to /
within any paths. GH-348read_health_status()
system backend method can be retrieved without exceptions being raised. GH-347read_seal_status()
in Client
class’s seal_status
property. GH-354DOCUMENTATION UPDATES:
login()
call with google-api-python-client usage added: Example with google-api-python-client Usage. GH-350MISCELLANEOUS:
develop
is the main integration branch for the hvac project. The master
branch is now intended to capture the state of the most recent release.create_or_update_policy
system backend method now supports a “pretty_print” argument for different JSON formatting. This allows create more viewable policy documents when retrieve existing policies (e.g., from within the Vault UI interface). GH-342DEPRECATION NOTICES:
auth
property on the hvac.Client
class. GH-310. (E.g. the github
, ldap
, and mfa
Client properties’ methods are now accessible under Client.auth.github
, etc.)secrets
property on the hvac.Client
class. GH-311 (E.g. the kv
, Client property’s methods are now accessible under Client.secrets.kv
)sys
property on the hvac.Client
class. GH-314 ([GH-314] through [GH-325]) E.g. methods such as enable_secret_backend()
under the Client class are now accessible under Client.sys.enable_secrets_engine()
, etc.IMPROVEMENTS:
Thanks to @tiny-dancer, @jacquat, @deejay1, @MJ111, @jasonarewhy, and @alexandernst for their lovely contributions.