Files
infrastructure/llm-server/monitoring/ansible/roles/gnmon_firewall/defaults/main.yml
T
spektr 6b42a460f4 M8-T4 umgesetzt: GPT Researcher auf ghostnet-ki (backend :8086, frontend :8085) hinter IAP
- Rolle gpt_researcher + playbooks/research.yml; Images digest-gepinnt
  (gptresearcher/gpt-researcher sha256:8e0975ec.., gptr-nextjs sha256:69e7e2fa..)
- LLM via OPENAI_BASE_URL=http://llama-cpp:8080/v1, FAST/SMART/STRATEGIC_LLM=Production-Alias,
  Retriever duckduckgo, LLM_TIMEOUT=600; User=root (upstream compose), Volumes unter gptr/
- NPM-vHost: location / -> 8085, /api -> 8086 (600s), beide auth_request; firewall 8085+8086 nur NPM
- Verifiziert: research.yml idempotent changed=0, backend /docs 200, frontend 200,
  research/ + research/api/docs unauth -> 302 Keycloak, 8086 WAN geblockt

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-18 14:26:29 +01:00

40 lines
1.4 KiB
YAML

# GNMON-001 section 7: host nftables on ghostnet-ki (M6 ingress control).
#
# System scope only (ghostnet-ki). The workstation (user scope) needs no
# host firewall: everything binds to 127.0.0.1 there as well.
#
# Safety: the input policy stays ACCEPT. This role only adds GNMON-specific
# restrictions (dashboard ingress from NPM only, monitoring ports loopback
# only). A default-drop host firewall is a separate sprint (GNAI-001 M1)
# and must never be introduced from here.
gnmon_firewall_scope: user
gnmon_firewall_config_path: /etc/nftables.conf
gnmon_firewall_service_name: nftables.service
# Dashboard ingress (M6): the Blazor dashboard binds to the LAN address,
# but only NPM (CT-103) may reach it; NPM terminates TLS and OIDC.
gnmon_firewall_dashboard_port: 8080
gnmon_firewall_dashboard_allowed_ip: 10.0.0.10
# LAN-published app ports reachable only from NPM (CT-103): 8080 dashboard
# (GNMON M6), 8081 OpenWebUI (GNAI-001 M6, role open_webui in the llm
# project). NPM terminates TLS and OIDC in front of both.
gnmon_firewall_npm_only_ports:
- 8080
- 8081
# GNAI-023 M8: GPT Researcher behind NPM + oauth2-proxy (IAP)
- 8085
- 8086
# Monitoring APIs bind to 127.0.0.1 (GNMON-000 M5); deny non-loopback
# access to them anyway (defense in depth, GNMON-001 section 7).
gnmon_firewall_loopback_only_ports:
- 3100 # Loki HTTP
- 9096 # Loki gRPC
- 8428 # VictoriaMetrics
- 8880 # vmalert
- 9093 # Alertmanager
- 9100 # node_exporter