Deprecated example of how to pass secrets to a running java application.
This repository has been archived on 2024-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Nils 89a778d111
Update README.md
2020-10-14 10:43:33 +02:00
src Provide example of using system properties to configure a java application locally and in the cloud 2019-11-09 17:48:16 +01:00
.gitignore initial commit 2019-11-09 17:16:02 +01:00
README.md Update README.md 2020-10-14 10:43:33 +02:00
nbactions.xml initial commit 2019-11-09 17:16:02 +01:00
pom.xml Provide example of using system properties to configure a java application locally and in the cloud 2019-11-09 17:48:16 +01:00
scaffolded_readme.md Provide example of using system properties to configure a java application locally and in the cloud 2019-11-09 17:48:16 +01:00

README.md

Deprecated! Java legacy secrets example

Recent Google Cloud changes has made this approach non-viable: More info.

This project was scaffolded from a java app engine example, see original readme. The purpose of this project is just to show how you can pass secrets as system properties to the running java application.

Prerequisites for running the code:

Local development

  1. Run mvn clean appengine:devserver -DMY_SECRET_KEY=cookies-are-great. This will start a local development server on http://localhost:8080 displaying the contents of the provided MY_SECRET_KEY secret.

Deployment

  1. Run mvn appengine:update -DMY_SECRET_KEY=cookies-are-great to deploy an application to the cloud together with the provided MY_SECRET_KEY secret.