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.
java-app-engine-legacy-secrets/README.md
2020-10-14 10:43:33 +02:00

1.1 KiB

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.