Skip to content
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

Encrypting values #5

Closed
ihr opened this issue Sep 13, 2016 · 6 comments
Closed

Encrypting values #5

ihr opened this issue Sep 13, 2016 · 6 comments

Comments

@ihr
Copy link
Contributor

ihr commented Sep 13, 2016

Hi,

Thanks for the great work. I'm trying out the configuration feature and I can't find correct way of encrypting the values to be put in the yml file. I couldn't find much in the docs, could you please provide some more information?

@tomzo
Copy link
Owner

tomzo commented Sep 13, 2016

Hi,

There isn't a convenient way to do this, yet. There should be UI or API at least in server to encrypt some text and save it in your configuration in SCM. There is an issue about this in gocd gocd/gocd#1829

I tested that it is possible to take some text from cruise-config.xml and actually put it in yaml like this:

secure_variables:
  MY_PASSWORD: "<encrypted-text>"

@ihr
Copy link
Contributor Author

ihr commented Sep 14, 2016

Hi,

Thanks, I will try that. I have first feedback of using the YAML configuration. Is there a forum or other place where we can discuss this? I think there could be some improvements in the documentation and I would like to make some suggestions

@tomzo
Copy link
Owner

tomzo commented Sep 14, 2016

There isn't a forum yet. You're very welcome to open an issue with suggestions or PR with documentation improvements.

@ihr
Copy link
Contributor Author

ihr commented Sep 14, 2016

Thank you, I created a pull requests regarding the README. Once I tested a way to have the password secured I will submit another PR

@jskswamy
Copy link
Contributor

jskswamy commented Nov 2, 2016

For now this can be achieved using openssl, refer this pull request

@ketan
Copy link
Contributor

ketan commented Jul 26, 2017

@tomzo — can you close this, since the encryption API is available. https://api.gocd.org/current/#encrypt-a-plain-text-value since 17.1. I'll update the README in another PR.

@tomzo tomzo closed this as completed Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants