-
Notifications
You must be signed in to change notification settings - Fork 28
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
Case change for variable names #20
Comments
I have confirmed with Buildkite support that the key names passed down to plugins are kept in their correct case, so the problem lies with how this plugin interprets them. You can see the correct values from Buildkite on a test pipeline by going to the step where the plugin is used and clicking on the Environment tab, then scrolling to the |
Heya @rafaelmagu, is Buildkite now recommending to parse |
@72636c I've asked Buildkite to pitch in on that answer. |
Taking the view that we probably can't rely on property case sensitivity when using BUILDKITE_PLUGIN_* (and we don't really want to rebuild or overcomplicate the whole parsing business) I have suggested a feature that would allow a workaround in #23 It still wouldn't allow the simple case to work: plugins:
- vital-software/aws-sm#v2.4.0:
env:
MY_env_var: my/secret/value # <- produces MY_ENV_VAR
MY_FOO: other/secret/value But it does build upon the existing plugins:
- vital-software/aws-sm#v2.4.0:
env:
my_env_var: # <- not used
export-name: MY_env_var # <- produces MY_env_var
secret-id: my/secret/value
MY_FOO: other/secret/value |
Any plans to retackle this? |
Problem
While implementing this plugin to work with a Terraform pipeline, we found that the key names used in the pipeline YAML do not have their case respected when the variables are exported.
For example:
Yields:
This problem does not occur for the
json-to-env
method, presumably because the keys are not being passed through Buildkite's plugin framework (which I believe is the real culprit).Resources
Terraform respects the case sensitivity of variables when the OS allows: https://www.terraform.io/docs/configuration/variables.html#environment-variables
The text was updated successfully, but these errors were encountered: