-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
1.16.0 requires $HOME to be set #26199
Comments
According to docker run --rm -i --entrypoint bash \
docker.io/golang:1.22.1@sha256:0b55ab82ac2a54a6f8f85ec8b943b9e470c39e32c109b766bbc1b801f3fa8d3b -s <<EOF
mkdir -p github.com/hashicorp
cd github.com/hashicorp/
git clone https://github.com/hashicorp/vault
cd vault/
git bisect start
git bisect good v1.15.6
git bisect bad v1.16.0
git bisect run bash -c "make dev; HOME='' ./bin/vault login -method=aws|& grep 'Error authenticating'"
EOF e0216cab5b2de7463f28adb22905a895e536e003 is the first bad commit ...which ultimately boils down to an expectation to read/write a config cache with vault-hcp-lib in user home dir |
Also seeing this trying to start Vault agent, causing a lot of issues for us |
seeing this issue when running |
This will affect anyone running vault agent as a systemd service |
Describe the bug
Prior to 1.16.0, we had scripts that ran without a $HOME directory set. Then in vault 1.16.0, we encountered this issue:
To Reproduce
Steps to reproduce the behavior:
HOME='' ./vault login -method=aws
Expected behavior
Previously, this would work:
Environment:
vault status
): 1.9.9vault version
): 1.16.0Vault server configuration file(s):
Not applicable
Additional context
There is no mention of $HOME in the release notes for 1.16.0 (which are still on rc3). We wonder if 1.16.0 was released prematurely, and/or if there was a dependency in the golang libraries that got updated, that suddenly required $HOME to be set.
The text was updated successfully, but these errors were encountered: