Skip to main content

RelyAuth Resource

RelyAuth Resource

A RelyAuth resource configures the authentication policy that Relixy applies to incoming client requests before proxying them. See RelyAuth documentation for the full definition reference.

Accept only one RelyAuth resource

Make sure that there is only one RelyAuth resource. Relixy will fail to start if there are many resources.

version: v1
kind: RelyAuth
definition:
# RelyAuth definition fields
# See the RelyAuth docs for the full reference
modes:
- mode: apiKey
tokenLocation:
in: header
name: Authorization
scheme: bearer
value:
value: "randomsecret" # Literal value
env: RELIXY_API_KEY # Environment variable