-
Notifications
You must be signed in to change notification settings - Fork 549
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
Remove dependency on github.com/hashicorp/vault
package
#2251
Conversation
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.
LGTM! Left some questions/suggestions but nothing blocking. The refactoring of Vault could be done at a later time if we wanted since the test helpers are drop-in replacements.
@@ -454,6 +454,9 @@ const ( | |||
EnvVarRadiusPassword = "RADIUS_PASSWORD" | |||
// EnvVarTokenFilename for the TokenFile auth login. | |||
EnvVarTokenFilename = "TERRAFORM_VAULT_TOKEN_FILENAME" | |||
|
|||
// EnvVarVaultConfigPath to override where the Vault configuration is. | |||
EnvVarVaultConfigPath = "VAULT_CONFIG_PATH" |
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.
Do we need to document this env variable?
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.
It's a constant that is only used to override the config in tests and is not user-facing, so we should be good on that front! I also added a doc string to the constant here mentioning that it is only for tests, and that the TFVP does not rely on the constant to read the actual config for Vault, to make things clearer :)
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.
Should we consider moving Vault's consulhelper and mssqlhelper to the Vault sdk package under sdk/helper/testhelpers/
? That could prove useful for TFVP and other projects.
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.
Good call! I can take care of this in a follow-up PR in Vault 👍🏼
Looks like removing the Vault package saves us about 4M too!
|
This PR was generated via `$ upgrade-provider pulumi/pulumi-vault` with significant manual tweaks: - Removes the fork.patch. All instances of patch conflicts were in files addressed by the [upstream removal of the hashicorp/vault dependency](hashicorp/terraform-provider-vault#2251) - either pertaining to package imports, use of an updated library, or the patch dropped tests, which should not affect us either by presence or absence. - Removes the BUSL workaround patch due to ^^ - Migrates the remaining docs patch to a DocsEditRule --- - Upgrading terraform-provider-vault from 4.2.0 to 4.3.0. Fixes #540
Description
Now that hashicorp/vault#25744 has been merged, we are able to complete the updates needed to remove the dependency on the vault package. This PR removes the package dependency and has additional/related changes:
consts
andtestutil
packages