test(config): align trusted portal proxy assertions and docs with deployed IP

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-11-07 23:38:29 +01:00
1 parent ae4b194b44
commit a6ba28d6a0
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ Keine Passwoerter oder Tokens loggen. Dem Browser keinen
[NexVerseWorldApi]
EnableNativeTokens = true
PortalAccountSelfDeleteEnabled = true
PortalRegistrationTrustedProxyIPs = "109.91.20.9"
PortalRegistrationTrustedProxyIPs = "152.53.143.155"
```
Die benoetigte Proxy-IP entspricht der tatsaechlichen TCP-Quelladresse
+2 -2
View File
@@ -404,11 +404,11 @@ TCP-Quelladresse des Proxys in der **lokalen** `bin/Robust.HG.ini`
unter `[NexVerseWorldApi]` eintragen:
```ini
PortalRegistrationTrustedProxyIPs = "109.91.20.9"
PortalRegistrationTrustedProxyIPs = "152.53.143.155"
PortalRegistrationTrustedHttpPeers = ""
```
Die Quell-IP `109.91.20.9` wurde vom Betreiber für den KeyHelp-Proxy angegeben. Der Wert muss bei `peer=` im ROBUST-Log mit der echten Quelladresse übereinstimmen. Bei anderer `peer`-Adresse ist die reale TCP-Quell-IP zu verwenden, nicht die Client-IP.
Die Quell-IP `152.53.143.155` wurde vom Betreiber für den KeyHelp-Proxy angegeben. Der Wert muss bei `peer=` im ROBUST-Log mit der echten Quelladresse übereinstimmen. Bei anderer `peer`-Adresse ist die reale TCP-Quell-IP zu verwenden, nicht die Client-IP.
Am HTTPS-VHost des Reverse Proxys muss `X-Forwarded-Proto: https`
**vom Proxy gesetzt/überschrieben** werden (nicht vom Browser übernommen).
@@ -197,7 +197,7 @@ assert "NexScopes.UsersRegister," in key_store
# Production HG configuration now enables registration only for the
# users:register machine key and explicitly trusted KeyHelp/HTTP backend.
assert "PortalAvatarRegistrationEnabled = true" in Path("bin/Robust.HG.ini").read_text()
assert 'PortalRegistrationTrustedProxyIPs = "109.91.20.9"' in Path("bin/Robust.HG.ini").read_text(), "Production HG proxy IP must be configured"
assert 'PortalRegistrationTrustedProxyIPs = "152.53.143.155"' in Path("bin/Robust.HG.ini").read_text(), "Production HG proxy IP must be configured"
for path in ("bin/Robust.HG.ini.example", "bin/Robust.ini.example",
"bin/Robust.HG.OGLAsset.ini.example"):
assert "PortalAvatarRegistrationEnabled = false" in Path(path).read_text(), path
@@ -66,7 +66,7 @@ for path, expected in (
docs = read("doc/NexVerse/PORTAL_SELF_ACCOUNT_DELETE.md")
for marker in ("Konto & Sicherheit", "CSRF", "Bearer", "logout_required",
"core_identity_only", "109.91.20.9"):
"core_identity_only", "152.53.143.155"):
assert marker in docs, marker
print("Citizen self-account-deletion API and explicit portal logout contract: OK")