-
Notifications
You must be signed in to change notification settings - Fork 280
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
Don't use is_secret
attribute for secrets in variable groups
#887
base: main
Are you sure you want to change the base?
Conversation
@AlexPykavy Thank you for opening this PR. Is there any specific reason why to remove the |
Because having the For me, the more logical approach is to use binary logic: either |
You are right, |
This would be a great change. I just wasted waaay too much time trying to figure out why some secret variable was empty when using Sure, it's documented and examples are available, but when you have worked with this provider only a couple of times, you might remember the is_secret property, but not necessarily that you also need to switch to secret_value. And then it gets confusing quickly... Instead of removing the is_secret property, you could also remove secret_value, then the change doesn't have to be breaking immediately. For regular variables, users keep using value. For a secret variable, you can use either value or secret_value in combination with is_secret. But if you use secret_value, you get a warning, saying it's deprecated and you should use value instead? Then after some time, you can remove secret_value in a breaking change. But at least there was a transition period. Or another option: display an error when |
Because specifying the `secret_value` attribute is enough to designate the variable as secret.
Hi @HerrSubset , thank you for the upvoting. I've updated this PR to make it a little clearer. To be honest, even I had a hard time understanding some things since it was opened a long time ago 😆 I'll keep this one as it seems as a proper solution to the problem. At the same time, I agree that adding simple validation will help users of this provider right now, so I'll open a new one. |
Because specifying the
secret_value
attribute is enough to designate the variable as secret.All Submissions:
What about the current behavior has changed?
Issue Number:
Does this introduce a change to
go.mod
,go.sum
orvendor/
?Does this introduce a breaking change?
Any relevant logs, error output, etc?
(If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
Other information