mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
**What** - Update the documentation about secret management to note the changed file location - Remove the documentation on secret rotation, because this will not currently work - Update apikey-secret and ApiKeyProtected-Secrets to read secret values from both the old and the new locations **Why** - Recent updates to faas-swarm and faas-netes changed the mount location of secrets. These changes update the docs to reflect this change. Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Api-Key-Protected sample
See the secure secret management guide for instructions on how to use this function.
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.