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

Improve handling of secrets #80

Open
dancancro opened this issue Jun 21, 2017 · 4 comments
Open

Improve handling of secrets #80

dancancro opened this issue Jun 21, 2017 · 4 comments

Comments

@dancancro
Copy link
Owner

dancancro commented Jun 21, 2017

@jasondt
Copy link

jasondt commented Jul 9, 2017

I recently found starkandwayne.com's genesis tool which uses hashicorp vault painlessly to manage secrets for templating cloud foundry deployments. I think their approach is ideal and surprisingly simple. Placeholders are stored in yml config files that get resolved out of vault as needed with values inserted during deployment. I think it'd be worth taking a look to see if the solution can be ported to jhipster.

Check out some of their tools at their homebrew tap: https://github.com/starkandwayne/homebrew-cf (specifically Spruce is their merge tool for config files)

@dancancro
Copy link
Owner Author

@jasondt Thanks. I also wonder how the jhipster registry could help here. That seems to be a multi-application configuration server of some sort, but I haven't tried it out yet.

@jasondt
Copy link

jasondt commented Jul 10, 2017

oh, yeah that would definitely be part of it. Spring cloud config server would hold the configuration files which ideally would only have values with references to the secrets in vault like Spruce does instead of plain text or even encrypted values. The config server is sourced by a git repo (local or github/bitbucket/etc) and can be triggered by webhooks when branches for master/prod, stage, etc are updated and then update registered services over messaging with Spring Cloud Streams or making a post (I prefer RabbitMQ).

For the record, I've used spring cloud / netflix oss for a few years now, but I'm new to jhipster and it seems to be lacking on documentation. If you're new to spring cloud, I might try starting with their documentation instead of jhipster. There's some good example apps too:
https://github.com/kbastani/spring-cloud-microservice-example
https://github.com/joshlong/microservices-dzrc

@wilsonmar
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants