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

Documentation doesn't detail consul secrets engine functions. #633

Open
dogfish182 opened this issue Sep 16, 2020 · 1 comment
Open

Documentation doesn't detail consul secrets engine functions. #633

dogfish182 opened this issue Sep 16, 2020 · 1 comment
Assignees
Labels
consul documentation documentation updates and/or requests for expanded documentation

Comments

@dogfish182
Copy link
Contributor

https://hvac.readthedocs.io/en/stable/source/hvac_api_secrets_engines.html
is missing consul despite it being available in the latest stable library.

This
https://github.com/hvac/hvac/blob/b9343973307eaba1bbe28ebf9e1911520ffcbf0a/docs/source/hvac_api_secrets_engines.rst
seems to autodoc it, but it is not published.

@jeffwecan jeffwecan added the documentation documentation updates and/or requests for expanded documentation label Sep 21, 2020
@jeffwecan jeffwecan self-assigned this Sep 21, 2020
@pkutaj
Copy link

pkutaj commented Dec 9, 2022

If someone needs to obtain a Consul token via HVAC, this is a minimalist way to do this — note that I am taking vault authentication for granted

import hvac
from hvac.api.secrets_engines.consul import Consul
client = hvac.Client()
Consul.generate_credentials(client, name="<my-role>")["data"]["token"])

The token is the same as the one mentioned in https://developer.hashicorp.com/vault/docs/secrets/consul#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consul documentation documentation updates and/or requests for expanded documentation
Projects
None yet
Development

No branches or pull requests

3 participants