-
Lucas Roesler authored
**What** - Add a description for the secret key to the api swagger spec. - Remove optional examples from the secret management guide. - Update the ApiKeyProtected README to point at the new guide. - Refactor the `makeSpec` function to accept the already assembled secrets array because this should be easier to unit test. Signed-off-by:
Lucas Roesler <lucas.roesler@gmail.com>
Lucas Roesler authored**What** - Add a description for the secret key to the api swagger spec. - Remove optional examples from the secret management guide. - Update the ApiKeyProtected README to point at the new guide. - Refactor the `makeSpec` function to accept the already assembled secrets array because this should be easier to unit test. Signed-off-by:
Lucas Roesler <lucas.roesler@gmail.com>
README.md 328 B
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.