Add support to specify secrets in services
**What**
- During function creation, accept an array of strings defining swarm secrets
that are required for the service
- Update docs
- Add new guide on using the secrets capability
- Add new sample function to highlight using environment variables
- Update `ApiKeyProtected` sample function to utilize the new secrets
capabilities
**Why**
- This allows secrets to remain encrypted at rest instead of being unencrypted
in environment variables and yaml files.
Fixes #285
Signed-off-by:
Lucas Roesler <lucas.roesler@gmail.com>
Showing
- api-docs/swagger.yml 4 additions, 0 deletionsapi-docs/swagger.yml
- gateway/handlers/create_handler.go 79 additions, 5 deletionsgateway/handlers/create_handler.go
- gateway/requests/requests.go 3 additions, 0 deletionsgateway/requests/requests.go
- guide/secure_secret_management.md 75 additions, 0 deletionsguide/secure_secret_management.md
- sample-functions/ApiKeyProtected/README.md 1 addition, 1 deletionsample-functions/ApiKeyProtected/README.md
- sample-functions/ApiKeyProtected/app 0 additions, 0 deletionssample-functions/ApiKeyProtected/app
- sample-functions/ApiKeyProtected/handler.go 13 additions, 11 deletionssample-functions/ApiKeyProtected/handler.go
- sample-functions/NodeHelloEnv/Dockerfile 5 additions, 0 deletionssample-functions/NodeHelloEnv/Dockerfile
- sample-functions/NodeHelloEnv/build.sh 3 additions, 0 deletionssample-functions/NodeHelloEnv/build.sh
- sample-functions/NodeHelloEnv/handler.js 13 additions, 0 deletionssample-functions/NodeHelloEnv/handler.js
guide/secure_secret_management.md
0 → 100644
sample-functions/ApiKeyProtected/app
0 → 100755
File added
sample-functions/NodeHelloEnv/Dockerfile
0 → 100644
sample-functions/NodeHelloEnv/build.sh
0 → 100755
sample-functions/NodeHelloEnv/handler.js
0 → 100644
Please register or sign in to comment