mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
Also bumps golang builder version to 1.9.4 for sample functions. Signed-off-by: John McCabe <john@johnmccabe.net>
Api-Key-Protected sample
To use this sample provide an env variable for the container/service in secret_api_key
.
Then when calling via the gateway pass the additional header "X-Api-Key", if it matches the secret_api_key
value then the function will give access, otherwise access denied.