-
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
Core: CLI imporvement VAULT_ADDR Warning message #17008
Conversation
…ress is not set. Resolves hashicorp#9684.
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.
Looks good! Just one concern here. How often do deployments have VAULT_ADDR
and -address
both unset. Could this potentially cause alarm (or introduce noise)? If that's the case, maybe we could step this down to Info
? Otherwise 👍
Great question - from my observation 99% (if not 100%) is operators on CLI or in an administration scenarios directly accessing a host / pod where defaults that might be set via some script / ENV setter, was not run or forgotten and to make it even more interesting ofc there is no explicit (127.0.0.1) loopback binding and especially not one with v3 SAN DNS + IP certificates which I am opinionated on 😄 (yes you need it! - 0 trust shouldn't mean we tls_disable loopback cause its fine) Anyway I've generally observed operators do typically find their way back and recall the need to explicitly define something not right - however just a reminder that nothing is set and that defaults address are being used will hopefully prevent repeats of trying the same command and expecting a different outcome (I've seen that too) 🤣
I agree I'd personally do it Info - but playing the devils advocate - other conflicts like in the case of ~/vault_token & TOKEN overlap are WARN - just based on that being a cautionary note then this could equally qualify with its YELLOW colour scheming which is actually why I thought it may be more fitting; also the fact that it's expected less commonly will over-time make it the lesser yet most common YELLOW which could actually be a good thing? 👺 @shaypepper @mr-fixit - do you folks have any opinions here - is WARN too much noise to be seeing each time and can INFO level messages suffice instead? PS - @mpalmi on a separate topic related to |
As a newbie, it's the first mistake I made.
The reason I asked for this was to help the newbie. Will 'INFO' still show up to the newbie? |
@mr-fixit - difference: |
i'm happy either way. |
@mpalmi I'm actually now inclined to the Yellow warning which also becomes the first note on dev mode too. WDYT should I move over to |
…ress is not set. Resolves hashicorp#9684. Feedback.
@mpalmi please recheck. |
I just looked through the existing I defer to your judgment on this @aphorise. |
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.
Looks good to me! I'm comfortable with the Warn
if you'd prefer to keep it that way.
Hey @mpalmi do you know if this will make it into 1.12 - prior to it's code freeze? |
Closing in favour of replacement: #17076 |
When
VAULT_ADDR
or-address
is not set provide warning messages as below. Resolves #9684.