Multiline environment variable doesn't parsed to K8S_SECRET correctly
Summary
Using the auto-devops
K8S_SECRET_
feature to create secrets,
I have noticed that this env var processing doesn't work with multiline.
I have tried using a pem
formatted key and to generate a secret out of it,
but instead it created the value only from the first line (-----BEGIN CERTIFICATE------
)
Steps to reproduce
Make use of auto-devops
and create a multi line environment variable
Example Project
https://gitlab.com/natvaldev/env-var-bug
What is the current bug behavior?
The secret is created with only the first line of the variable value.
What is the expected correct behavior?
Gitlab should load the value of the variable with the line breaks.
Relevant logs and/or screenshots
https://gitlab.com/natvaldev/env-var-bug/-/jobs/370574277
Output of checks
This bug happens on GitLab.com