mibexsoftware / bamboo-plan-dsl-plugin

Configuration as code with a Groovy-based DSL or YAML for Atlassian Bamboo.
https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.plandsl/
Other
40 stars 16 forks source link

[secrets] how to manage secrets variables #83

Closed ozbillwang closed 6 years ago

ozbillwang commented 6 years ago

This plugin looks very promise and far better than the new feature bamboo spec in bamboo server. I do have feeling that Bamboo developer team just clone your idea directly.

But with variables management, I can't find any suggestions to handle secret variable in this plugin.

How can I do that?

mrueegg commented 6 years ago

@ozbillwang Thanks for your nice words about our plug-in. Could you please explain what you mean by "secret variables"? Do you mean accessing Bamboo variables (like described here: https://github.com/mibexsoftware/bamboo-plan-dsl-plugin/wiki/Advanced-topics#accessing-bamboos-env-variables)?

ozbillwang commented 6 years ago

In our origination, we have no permission to create global variables in bamboo. Second, we have thousands projects and plans. It is not convenience to create global variables.

Then I have to create variables for each plan, because bamboo doesn't support variables at project level.

when use this plugin, I hope to set variables in a new plan, especially for secrets (password_xxxx). How to do that?

mrueegg commented 6 years ago

@ozbillwang We actually recommend Bamboo variables for credentials because they are available in build plans automatically and they are stored encrypted. When it is not possible for you to use Bamboo variables, I can only see the possibility to access credentials from your system environment, e.g., by using

System.getenv('MY_VARIABLE')

Would that be a possibility?

ozbillwang commented 6 years ago

got your point. Thanks.