-
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
hashi_vault does not use VAULT_ADDR environment variable anymore #60
Comments
Thanks for reporting @transferkraM , I will look into this, as it definitely should not be the expected behavior. |
I think I know why this is happening. I will confirm and look at doing a bugfix release of the collection. |
@transferkraM I have a fix in #61 Wanted to address this:
The change from |
First of all thanks a lot for this exemplary reaction on that bug report, including to move it to the correct location. That's amazing. I'm not sure though how to test in a real world scenario based on #61. I'd love to provide useful feedback. As far as I understand, the PR looks good, but I'm not an expert and I don't want to pollute #61 with useless commentary. |
@transferkraM thanks and no worries. The change has been merged and a new version of the collection has been released, so you can now upgrade your collection version to get the fix: |
Thanks a lot @briantist |
Confirmed with 3.0 and manual installation of the "collection" (whatever that means though ;)). Thanks a lot! |
@transferkraM
A big reason for the work in the refactor project (beyond better testing) is to make writing additional plugins and modules much easier, while ensuring consistency between them. When that work is reaches a tipping point, I expect to start introducing new content, so stay tuned! Thank you for following up and confirming! |
From @transferkraM on Feb 23, 2021 15:23
SUMMARY
Before 3.0,
hashi_vault
functions properly withVAULT_ADDR
andVAULT_TOKEN
environment variables. Starting with 3.0ANSIBLE_HASHI_VAULT_ADDR
is required.ISSUE TYPE
COMPONENT NAME
hashi_vault
lookup plugin.ANSIBLE VERSION
NOTE: Various irrelevant path information is abbreviated as
<>
.CONFIGURATION
OS / ENVIRONMENT
pyenv virtualenvs|ag ansible
STEPS TO REPRODUCE
export VAULT_ADDR=http://127.0.0.42:12345 sudo tcpdump -i lo port 12345 ansible ...
EXPECTED RESULTS
VAULT_ADDR
is respected (again) and wins over all other possible configuration values!ACTUAL RESULTS
VAULT_ADDR
is not evaluated/usedCopied from original issue: ansible/ansible#73698
The text was updated successfully, but these errors were encountered: