openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
262 stars 115 forks source link

Support function authentication with OpenFaaS IAM #158

Closed welteki closed 3 months ago

welteki commented 4 months ago

Description

If JWT authentication is enabled by setting the env variable jwt_auth: true in the stack.yml file the watchdog requires an OpenFaaS function token for request authentication.

Authentication tokens can be optioned through OpenFaaS IAM.

The watchdog verifies the token is valid and checks of an actor is authorized to invoke the function by looking at the function claim in the token and validating the permissions.

Motivation and Context

Support IAM authentication for functions.

How Has This Been Tested?

Types of changes

Checklist: