1. The problem I’m having:
Hi, I am currently using Caddy to reverse proxy and do forward_auth to Authentik to secure my apps (Zigbee2MQTT, Grocy…). I am a begginer.
Now, I want to incorporate those apps as iframes into Home Assistant UI. But in that case, I don’t want Caddy to do forward_auth, as users are already authenticated to access Home Assistant UI. So I thought about Request Matchers. I am already using some so that api calls on /api/*
paths, on some apps, can get through without forward_auth. I would like to use the same concept but this time, only if the request comes through an iframe in Home Assistant. To configure an iframe in Home Assistant, I just set an URL. I there a way to set like a token in the URL I give to Home Assistant, and create a Request Matcher in Caddy based on this token ? Would that be secure ? How would I do that ?
Thanks in advance for any suggestion. I may or may not have been clear, so I can give more details if needed.
2. Error messages and/or full log output:
I am not trying to fix an error.
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
3. Caddy version:
v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
4. How I installed and ran Caddy:
a. System environment:
Docker
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.