Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fork #1

Merged
merged 46 commits into from Apr 4, 2019
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b9591bb
Release v0.7.2 (#371)
jeffwecan Jan 1, 2019
25f2cfc
Add Kubernetes Auth Method (#408)
jsporna Mar 27, 2019
591f6d1
Add support for setting VAULT_ADDR and VAULT_TOKEN via env vars (#411)
mrsiesta Mar 27, 2019
8dacef2
Fix delete_role_secret_id_accessor method (#375)
frgaudet Mar 28, 2019
2ade607
#376 : fix length in transit.generate_random_bytes() (#377)
kserrano Mar 28, 2019
73e2729
Update Test Runs With Latest Vault Versions (1.0.3 & 1.1.0) (#396)
singuliere Mar 28, 2019
ffe089e
-Fixed AWS sts generation to use POST rather than GET. (#392)
spbsoluble Mar 29, 2019
7a102d2
Add possibility to specify type in create_token (#393)
uepoch Mar 29, 2019
9ea1a50
Add initial retrieve_mount_option method
jeffwecan Mar 27, 2019
e363738
Fix recovery_threshold / recovery_shares conditional
jeffwecan Mar 27, 2019
fb29b89
fix docstring typo
jeffwecan Mar 27, 2019
f3c9c3f
Fix allowed kv versions logic
jeffwecan Mar 27, 2019
17da10f
Tweak server manager logic a bit
jeffwecan Mar 27, 2019
8e6706b
Add doctest for getting started bits
jeffwecan Mar 28, 2019
b097611
Add missing colon in docstring
jeffwecan Mar 28, 2019
9bb769a
Fix getting-started link
jeffwecan Mar 28, 2019
17bc919
Drop stray comments
jeffwecan Mar 29, 2019
b5c2256
Ensure kv engine enabled for v1.1.0 doctests
jeffwecan Mar 29, 2019
8db9d4f
Bump requested go version so we can build Vault HEAD ref (#412)
jeffwecan Mar 29, 2019
787a76e
Fix formatting
jeffwecan Mar 29, 2019
f306604
drop stray character / typo
jeffwecan Mar 29, 2019
916f773
Update Readme + Add Doctests (#413)
jeffwecan Mar 29, 2019
10dbdbf
Merge remote-tracking branch 'upstream/master' into develop
jeffwecan Mar 29, 2019
426e4e6
Do no run doctest during readthedocs builds
jeffwecan Mar 29, 2019
234f5a5
Changelog updates for v0.8.0 release
jeffwecan Mar 29, 2019
71cfe7d
Bump version: 0.7.2 → 0.8.0
jeffwecan Mar 29, 2019
3b7e919
Drop RST markup that made it into the readme
jeffwecan Mar 29, 2019
1037893
Hacky workaround / fork of doctest for RTD builds
jeffwecan Mar 29, 2019
62d623a
Drop remaining HVAC_RENDER_DOCTESTS references
jeffwecan Mar 29, 2019
6ab5a58
Clarify some wording
jeffwecan Mar 29, 2019
13250e5
Ignore forked sphinx ext for the purposes of flake8 for now
jeffwecan Mar 29, 2019
1c20711
Revert "Fix recovery_threshold / recovery_shares conditional"
jeffwecan Mar 31, 2019
eb2dd8a
Merge pull request #417 from jeffwecan/revert_regression
jeffwecan Mar 31, 2019
8d6db9b
Changelog updates for v0.8.1 release
jeffwecan Mar 31, 2019
52f2476
Bump version: 0.8.0 → 0.8.1
jeffwecan Mar 31, 2019
14b253f
Merge pull request #414 from hvac/develop
jeffwecan Mar 31, 2019
e56883a
Actually do not install tests
Apr 1, 2019
de49e75
Merge pull request #418 from eltoder/dont-install-tests
jeffwecan Apr 1, 2019
ed85a27
Fix precedence of `VAULT_ADDR` environment variable vs client `url` p…
andytumelty Apr 3, 2019
54445dc
Move client default url value to client constants
andytumelty Apr 3, 2019
2556c65
Merge pull request #423 from andytumelty/develop
jeffwecan Apr 4, 2019
c6092c6
Changelog updates for v0.8.2 release
jeffwecan Apr 4, 2019
839a313
Bump version: 0.8.1 → 0.8.2
jeffwecan Apr 4, 2019
4555870
Merge branch 'master' into develop
jeffwecan Apr 4, 2019
c68da20
Merge pull request #424 from hvac/develop
jeffwecan Apr 4, 2019
5abadbf
Merge pull request #425 from hvac/master
jeffwecan Apr 4, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.7.2
current_version = 0.8.2
commit = True
tag = True

@@ -13,3 +13,7 @@ test/*.log

# sphinx build folder
docs/_build/

.idea/
venv/
.envrc
@@ -5,11 +5,11 @@ python:
- '3.6'
- '3.7'
env:
- HVAC_VAULT_VERSION=0.9.6
- HVAC_VAULT_VERSION=0.10.4
- HVAC_VAULT_VERSION=0.11.0 # This ver kept explicitly; it has subsequently reverted backwards-incompatible changes.
- HVAC_VAULT_VERSION=0.11.6
- HVAC_VAULT_VERSION=1.0.1
- HVAC_VAULT_VERSION=1.0.3
- HVAC_VAULT_VERSION=1.1.0
- HVAC_VAULT_VERSION=HEAD
- TOXENV=flake8
matrix:
@@ -1,5 +1,38 @@
# Changelog

## 0.8.2 (April 4th, 2019)

BUG FIXES:

* Fix priority of client url and VAULT_ADDR environment variable. [GH-423](https://github.com/hvac/hvac/pull/423)
* Update setup.py to only compile hvac package. [GH-418](https://github.com/hvac/hvac/pull/418)

Thanks to @eltoder and @andytumelty for their lovely contributions.

## 0.8.1 (March 31st, 2019)

BUG FIXES:

* Fix `initialize()` method `recovery_shares` and `recovery_threshold` parameter validation regression. [GH-416](https://github.com/hvac/hvac/pull/416)

## 0.8.0 (March 29th, 2019)

BACKWARDS COMPATIBILITY NOTICE:

* The `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-411](https://github.com/hvac/hvac/pull/411)

IMPROVEMENTS:

* Support for the Kubernetes auth method. [GH-408](https://github.com/hvac/hvac/pull/408)

BUG FIXES:

* Fix for comparision `recovery_threshold` and `recovery_shares` during initialization. [GH-398](https://github.com/hvac/hvac/pull/398)
* Fix request method for AWS secrets engine `generate_credentials()` method. [GH-403](https://github.com/hvac/hvac/pull/403)
* Fix request parameter (`n_bytes` -> `bytes`) for Transit secrets engine `generate_random_bytes()` method. [GH-377](https://github.com/hvac/hvac/pull/377)

Thanks to @engstrom, @viralpoetry, @bootswithdefer, @steved, @kserrano, @spbsoluble, @uepoch, @singuliere, @frgaudet, @jsporna, & @mrsiesta for their lovely contributions.

## 0.7.2 (January 1st, 2019)

IMPROVEMENTS:
@@ -11,62 +11,29 @@
[![Twitter - @python_hvac](https://img.shields.io/twitter/follow/python_hvac.svg?label=Twitter%20-%20@python_hvac&style=social?style=plastic)](https://twitter.com/python_hvac)

Tested against the latest release, HEAD ref, and 3 previous major versions (counting back from the latest release) of Vault.
Currently supports Vault v0.9.6 or later.
Currently supports Vault v0.10.4 or later.

## Documentation

Documentation for this module is hosted on [readthedocs.io](https://hvac.readthedocs.io/en/latest/).

## Getting started
## Installation

### Installation

```bash
```console
pip install hvac
```
or
```bash
pip install "hvac[parser]"
```
if you would like to be able to return parsed HCL data as a Python dict for methods that support it.

### Initialize the client

```python
import os
import hvac

# Using plaintext
client = hvac.Client()
client = hvac.Client(url='http://localhost:8200')
client = hvac.Client(url='http://localhost:8200', token=os.environ['VAULT_TOKEN'])
# Using TLS
client = hvac.Client(url='https://localhost:8200')
# Using TLS with client-side certificate authentication
client = hvac.Client(url='https://localhost:8200', cert=('path/to/cert.pem', 'path/to/key.pem'))
# Using Namespace
client = hvac.Client(url='http://localhost:8200', token=os.environ['VAULT_TOKEN'], namespace=os.environ['VAULT_NAMESPACE'])
If you would like to be able to return parsed HCL data as a Python dict for methods that support it:

```console
pip install "hvac[parser]"
```

### Read and write to secret backends

```python
client.write('secret/foo', baz='bar', lease='1h')

print(client.read('secret/foo'))
client.delete('secret/foo')
```
## Documentation

### Authenticate using token auth backend
Additional documentation for this module available at: [hvac.readthedocs.io](https://hvac.readthedocs.io/en/stable/usage/index.html):

```python
# Token
client.token = 'MY_TOKEN'
assert client.is_authenticated() # => True
```
* [Getting Started](https://hvac.readthedocs.io/en/stable/overview.html#getting-started)
* [Usage](https://hvac.readthedocs.io/en/stable/usage/index.html)
* [Advanced Usage](https://hvac.readthedocs.io/en/stable/advanced_usage.html)
* [Source Reference / Autodoc](https://hvac.readthedocs.io/en/stable/source/index.html)
* [Contributing](https://hvac.readthedocs.io/en/stable/contributing.html)
* [Changelog](https://hvac.readthedocs.io/en/stable/changelog.html)
No changes.
@@ -16,16 +16,16 @@
author = u'Ian Unruh, Jeffrey Hogan'

# The short X.Y version
version = '0.7.2'
version = '0.8.2'
# The full version, including alpha/beta/rc tags
release = '0.7.2'
release = '0.8.2'


# -- General configuration ---------------------------------------------------

extensions = [
'docs.ext.doctest',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
@@ -49,7 +49,11 @@

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']

html_context = {'no_skippy': True}
html_theme_options = {
# Toc options
'collapse_navigation': False,
}

# -- Options for HTMLHelp output ---------------------------------------------

@@ -67,6 +71,34 @@
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']

# -- doctest configuration -------------------------------------------------
if os.getenv('READ_THE_DOCS_BUILD') is not None:
doctest_global_enabled = False

doctest_global_setup = '''
import os
from pprint import pprint, pformat
import mock
import hvac
from tests import utils as test_utils
from tests.doctest import doctest_global_setup
from tests.utils.server_manager import ServerManager
client_cert_path = test_utils.get_config_file_path('client-cert.pem')
client_key_path = test_utils.get_config_file_path('client-key.pem')
server_cert_path = test_utils.get_config_file_path('server-cert.pem')
manager = doctest_global_setup()
client = manager.client
'''

doctest_global_cleanup = '''
# mocker.stop()
manager.stop()
'''

# -- Autodoc configuration -------------------------------------------------


No changes.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.