-
Notifications
You must be signed in to change notification settings - Fork 63
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
new content request - create token / orphan token #210
Comments
Hi @emper0r , the latest released version of
However these don't seem to do what you'd like, which is to use an existing token (authorization) to then create a new (possibly orphaned) token. I do plan to add that capability in the collection, along with many other capabilities, but I do not have a timeline just yet. I do like to respond to user requests when possible though, so because you requested it, I may implement something sooner than expected; I will be sure to update this issue with any news. |
In fact this is to create a particular token to can use for a service ... in any case if you can develop a simple patch we can test it (like beta-tester) because we are developing right now to automatize our vault production using all configuration with ansible of course so your module lookup would be very usefull right now. |
if would be helpfully for you this is an old doc about a similar module |
Thank you, I will certainly reach out, additional testing is always helpful.
I'm not completely sure what you mean here, but I will guess a little bit. Mostly in this collection we are not concerned so directly with HTTP verbs like But I think I kind of understand what you mean more generally: in Vault there are many operations that we (human side) think of as a "read", but it requires a "write" in Vault. This includes things like, creating a token, a new secret ID for an approle, etc. This affects how we name or treat the Ansible plugins. One example is that we do not have a generic A generic write plugin will, as you said, solve many use cases by being a sort of all-purpose write, similar to what But I still want to keep creating more purposeful plugins too, because they will be able to take more specific parameters, do better verification and error handling, have better semantics for the specific operation, etc. So both will be a reality!
Thank you, I appreciate that. In fact, within our integration tests, we already need to create tokens, so we have an internal only module to create tokens. The internal modules are very lean, since they are meant to do very specific things, but this might give you an idea of how simple this could be: |
@emper0r have a look at #213 when you can. It's not complete yet, so I'd ask that you wait to do a formal/in-depth review until it's taken out of draft mode, but if you want to take an early look at the code and documentation, go for it! I don't expect the functionality to change much from the way it is now, but after writing tests I usually find something or other that needs updating, so there might be differences in the final product. |
Hi @briantist i saw the doc seams ok for me. we wait until be ready. thanks again |
@briantist good!..thanks for all. |
@emper0r this is now released in 2.3.0, thanks for requesting and reviewing! |
SUMMARY
ISSUE TYPE
according to the doc https://www.vaultproject.io/docs/concepts/tokens#token-hierarchies-and-orphan-tokens
create a token do a POST using write function into endpoint and lookup just do GET.
in this case isn't "write" a data .... we are asking to Vault to give us a token made by itself so would be "like a GET method" but... API for this need a POST.
COMPONENT NAME
hashi_vault_lookup
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
Concept or an idea about it
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: