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
deps: provider should avoid importing github.com/hashicorp/vault
#150
Comments
jrasell
added a commit
to hashicorp/levant
that referenced
this issue
Sep 2, 2020
The Nomad module setup is not designed nor intended to have any pkg apart from api imported. This caused problems when using the jobspec package. The Nomad Terraform provider has exactly this problem and has its own version of the Parse functionality. I attempted to import this to avoid more duplication but ran into hashicorp/terraform-provider-nomad#150. This is therefore a temp solution so the project can be easily used and released.
lgfa29
added
stage/needs-investigation
theme/dependency
type/bug
and removed
bug
dependencies
labels
Jan 15, 2021
A note for anyone caught when you broke your Vault token helper.... this is the error message displayed.
Is there a reason why a vault misconfiguration should affect a 3 line nomad config? data "nomad_job" "example" {
job_id = "example"
} |
Hi @tristanmorgan, The Nomad provider uses the same logic as Vault to find a token, so if your Vault token helper is incorrect, the Nomad provider will fail as well. |
Closed by #445 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vault issue comment reference: hashicorp/vault#9575 (comment)
The Nomad provider currently imports
github.com/hashicorp/vault
because of its use ofconfig.DefaultTokenHelper()
withinprovider.go
. A per the above discussion Vault imports should be limited tosdk
andapi
otherwise problems may occur.A quick look indicates there is no token helper functionality within either of the recommended packages, although this was not exhaustive.
The text was updated successfully, but these errors were encountered: