John McCabe 89878f0c8a Migrate from alexellis org to openfaas
Note, not all `alexellis/github` references should be changed, there are
a number of repos which are not part of the openfaas org, this commit
excludes those.

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-10-04 09:18:06 +01:00
..
2017-03-31 20:40:25 +01:00
2017-03-31 20:40:25 +01:00
2017-03-31 20:40:25 +01:00
2017-03-31 20:40:25 +01:00

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.