BAO_ADDR
is not propagated to the token helper when provided as -address
#314
Labels
bug
Something isn't working
Describe the bug
The token helper might inherit
BAO_ADDR
from the environment, but if the address is configured through the-address
flag instead, then the token helper has no way of knowing about the address.To Reproduce
Steps to reproduce the behavior:
BAO_ADDR
and then fails as the token helper in~/.bao
.BAO_ADDR=foo bao login
, observe it gets theBAO_ADDR
.bao login -address foo
, observe it does not getBAO_ADDR
.Expected behavior
The token helper needs to know the address of the instance it’s connecting to, so it can store a token per instance, that is the point of the token helper. Therefore,
bao
needs to setBAO_ADDR
in the environment of the token helper it executes, and not rely on it being present implicitly.Environment:
bao status
): irrelevantbao version
):OpenBao v2.0.0-alpha20240329 ('74c2dddb0612b9a3da79384c20638266aa7de407'), built 2024-04-26T10:19:19Z
OpenBao server configuration file(s): irrelevant
Additional context
This bug report is an adaptation of hashicorp/vault#22257.
The text was updated successfully, but these errors were encountered: