go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.84k stars 1.01k forks source link

add warning about different fallback env var values #1986

Closed santschi closed 1 year ago

santschi commented 1 year ago

A little QOL addition in showing a warning when fallback env vars are set to different values.

ldez commented 1 year ago

Hello,

Can you explain why do you think this is important?

Do you have a problem related to this function?

santschi commented 1 year ago

Hey!

I ran into a situation where it turned out that there was a env var set with higher priority than the one I was changing and lingering on the system. I took a while to figure out why my configuration was not working since I kept getting error messages about api access etc.

I would have been glad about a short warning which would have saved me some time so I figured I could also just add it myself.

ldez commented 1 year ago

I will decline because you will validate only if the main value is filled and because I think this is outside of the scope of what lego should check.

Thank you anyway for the time you've spent to contribute to lego.