-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add local mode and remove deprecated http_instance call #16
Open
tuxmaster5000
wants to merge
9
commits into
voxpupuli:master
Choose a base branch
from
tuxmaster5000:local_vault
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
22f4d15
Addm local mode
tuxmaster5000 9a4638a
Code style
tuxmaster5000 dc2d4a6
Syntax
tuxmaster5000 a185862
SSL fix
tuxmaster5000 4d25c25
SSL fix
tuxmaster5000 744308c
Syntax
tuxmaster5000 0d8575e
Syntax
tuxmaster5000 a93ec7b
Merge
tuxmaster5000 a70978f
Merge
tuxmaster5000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tuxmaster5000 have you considered in adding in support for Hashicorp environment variables?
I'm not sure of your use case, but I think that adding support similar to what is already present for
VAULT_ADDR
might be a better approach than expanding the argument list here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far I understood the link, the variable store the token itself. But my idea was to add an option the load the token from an file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested following support for some of the Hashicorp environment variables because it seems like a good idea to follow some of the standard ways Hashicorp supports reading in the token. If we are going to add support for it as a method argument, it might be a good idea to add support reading it from the environment as well? There is already a pattern for reading in the vault_url from the
ENV
, and I think it would be good to extend that pattern.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this implementation, the code is setting a default location for the token file to be in
/etc/vault.token
, but the standard place is often~/.vault-token
. Is this the reason for splittinglocal_token
andlocal_token_file
, so we can set that default location? I'm not sure we need to provide that default here, but I'd like to hear why the code is written that way.