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
Group CI/CD Variables (group_secret_variables) not honoring protected and masked values #384
Comments
Interesting. I have the same issue. The workaround is to double quote the boolean values of those keys ( For CI CD variables, I'm still using gitlabform v1. Haven't had time to upgrade to v2. I was curious if the issue exists in v2. Sounds like it probably does. Not sure if it's an issue with gitlabform or gitlab api. Didn't get time to investigate. |
Debug output shows that it seems to be a GitLab API bug as the request looks as in the GitLab API docs:
Notably the project-level variables API does not behave like this. |
That's right. For project level variables, those values can be boolean type. |
I have merged the workaround and released v2.12.0 with it. I will remove the workaround when/if GitLab will fix the bug in their code. I reported the bug to GitLab here https://gitlab.com/gitlab-org/gitlab/-/issues/365317. @rossbeehler, @amimas : can you please share your GitLab versions in case GitLab Devs will need this info? |
Closing as v2.12.0 effectively resolves the issue for the GitLabForm users. |
I'm currently using GitLab EE version 14.10. Can't recall how far in previous versions this bug exists. It's probably in 13.x. |
Describe the bug
When adding a
group_secret_variable
like this:The variable will be created with
protected
andmasked
astrue
.Successive runs shows that the difference is understood:
But it still doesn't update their values.
Only when you manually change the values to both
false
in the GitLab UI, will you get the following verbose output from gitlabform:GitLabForm version
GitLabForm version: 2.11.1.post3 = the latest stable
GitLab version
GitLab.com SaaS Premium Subscription on 15.1-pre
The text was updated successfully, but these errors were encountered: