Add Caddy bypasses so MCP can reach *arr and Uptime Kuma through Authentik.
Deploy to valhalla / deploy (push) Has been cancelled

TB-006 forward_auth blocks machine clients with HTML/302; route /api on *arr
sites and /api plus socket.io on uptime (LAN/tailnet only) before forward_auth.
Also add Cursor interview-first rule and small Authentik/FreshRSS debug helpers.
This commit is contained in:
ginnoir
2026-06-11 17:37:21 -05:00
parent 776478c035
commit e3bf11d18e
4 changed files with 66 additions and 0 deletions
@@ -0,0 +1,16 @@
"""Print userinfo payload Portainer receives (ak shell: exec(open(...).read()))."""
from authentik.core.models import User
from authentik.providers.oauth2.models import OAuth2Provider, AccessToken
from authentik.providers.oauth2.views.userinfo import UserInfoView
from django.test import RequestFactory
u = User.objects.get(username="ginnoir")
p = OAuth2Provider.objects.get(name="portainer")
t = AccessToken.objects.create(user=u, provider=p, scope="openid email profile")
req = RequestFactory().get(
"/application/o/userinfo/",
HTTP_AUTHORIZATION=f"Bearer {t.token}",
)
resp = UserInfoView.as_view()(req)
print("status", resp.status_code)
print(resp.content.decode())