M8 Vorbereitung: Rolle reverse_proxy_oauth2proxy (oauth2-proxy v7.15.5 auf CT 103)
- Quadlet Network=host, bind 127.0.0.1:4180 (kein publish; LAN/WAN blocked, per Task verifiziert) - Keycloak-OIDC (provider oidc, issuer realm Ghost.net, client gnai-research), cookie/client secrets als Podman-Secrets, Haertung: cookie secure/httponly/lax, 24h expiry, reverse-proxy, set-xauthrequest, allowed-group via groups-claim, whitelist-domain, skip-auth-regex ^/ping$ - image digest placeholder (Pin nach erstem Pull), site.yml um Rolle erweitert - GNAI-023 M8-T1: exakte Keycloak-Admin-UI-Schritte fuer Client gnai-research + Rolle gnai-research-user Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -124,7 +124,7 @@ Internet → NPM (CT 103, 443) → auth_request-Subrequest an oauth2-proxy
|
||||
|
||||
| # | Paket | Ziel | Wo |
|
||||
| --- | --- | --- | --- |
|
||||
| M8-T1 | Keycloak-Client `gnai-research` (confidential, Redirect `https://research.ghostnet.selfhost.eu/oauth2/callback`, Scopes openid email profile groups) + Realm-Rolle `gnai-research-user` + Mapper auf `groups`-Claim; Secret als Podman-Secret | CT 102 (Ansible oder Admin-UI) | Keycloak |
|
||||
| M8-T1 | Keycloak-Client `gnai-research` + Realm-Rolle + Claim-Mapper; Secret als Podman-Secret. **Betreiberschritte (Admin-UI `https://auth.ghostnet.selfhost.eu`, Realm Ghost.net):** 1) Realm Roles → Create role `gnai-research-user`. 2) Clients → Create client: id `gnai-research`, **confidential**, Standard Flow, Valid Redirect URIs `https://research.ghostnet.selfhost.eu/oauth2/callback`, Web Origins `https://research.ghostnet.selfhost.eu`. 3) Client Scopes `gnai-research-dedicated` anlegen mit Mapper „realm roles" (claim name `groups`, add to access/id token ON) — oder `groups` direkt. 4) Secret kopieren → auf CT 103: `printf '%s' '<secret>' \| podman secret create oauth2-proxy-client-secret -`. 5) User `ghost` die Rolle `gnai-research-user` zuweisen (Users → Role Mappings). | CT 102 (Admin-UI) + CT 103 (Secret) | Keycloak |
|
||||
| M8-T2 | oauth2-proxy v7.15.5 (quay.io, digest-gepinnt) als Quadlet auf CT 103 in eigenem Podman-Netz mit NPM, **kein** publish; Env: provider `oidc`, issuer, client-id/secret + cookie-secret als Podman-Secrets, `--email-domain`, `--whitelist-domain=.ghostnet.selfhost.eu`, `--allowed-group=gnai-research-user`, `--oidc-groups-claim=groups`, `--skip-auth-regex=^/ping$`, `--reverse-proxy=true`, `--set-xauthrequest` | CT 103, Rolle im CT-103-Ansible-Projekt | IAP |
|
||||
| M8-T3 | NPM-vHost `research.ghostnet.selfhost.eu` (LE-TLS, Force SSL) mit Advanced-Snippet `auth_request /oauth2/auth` + interne `location /oauth2/`; Split-DNS-Record auf CT 100; NPM-API via CT-103-Ansible | CT 103 + CT 100 | Ingress |
|
||||
| M8-T4 | GPT Researcher (digest-gepinnt) als Quadlet auf `ghostnet-ki` im Production-Netz, Port `10.0.0.90:8085` (Firewall: nur NPM); Env: `OPENAI_BASE_URL=http://llama-cpp:8080/v1`, `OPENAI_API_KEY`=Placeholder-Secret, `FAST_LLM`/`SMART_LLM`=Production-Alias, Search via SearXNG (custom retriever, `SEARXNG_URL=http://searxng:8080`) | `llm-server/llm/ansible` (neue Rolle `gpt_researcher`, Playbook `research.yml`) | Harness |
|
||||
|
||||
Reference in New Issue
Block a user