* feat(iar): introduce TLS-verified, NAS-pinned WebDAV transport for managed archives * feat(iar): enable WebDAV-first resident archive flow in ROBUST without NFS mounts * feat(iar): transfer native simulator IARs to NAS WebDAV with cleanup and fail-closed login * config(iar): default to WebDAV storage, keep NFS opt-in * config(iar): default to WebDAV storage, keep NFS opt-in * config(iar): default to WebDAV storage, keep NFS opt-in * config(sim): document WebDAV native IAR working directory and NAS credentials * config(sim): document WebDAV native IAR working directory and NAS credentials * fix(iar): suppress optional NAS transport until WebDAV endpoint configured * fix(iar): preserve existing admin archive directory in simulator defaults * fix(iar): preserve existing admin archive directory in simulator defaults * test(iar): protect WebDAV default, pinned NAS transport, and legacy NFS gate * docs(iar): replace NFS-only manual with WebDAV default deployment for OpenVZ * fix(ci): terminate legacy IAR config marker string correctly * fix(iar): support secure bounded WebDAV retention scans and retryable PUT * feat(iar): enforce WebDAV retention after job rotation using NAS-owned markers * fix(iar): include TaskCanceledException namespace for WebDAV transport * fix(config): keep simulator INIs compact while defaulting IAR transport to WebDAV * fix(config): keep simulator INIs compact while defaulting IAR transport to WebDAV * ci(sim): allow compact WebDAV IAR section without weakening runtime policy gates * test(iar): compile WebDAV transport with transfer policy regression * test(iar): verify WebDAV TLS policy and GUID-only archive keys * chore(config): keep simulator Architecture include at end after WebDAV module * fix(ci): avoid shadowing resident self-service flag in NodeAgent * fix(iar): isolate WebDAV XML/storage failures inside retention timer * docs(iar): secure secret entry and document marker-guarded WebDAV orphan cleanup
62 lines
3.7 KiB
Python
62 lines
3.7 KiB
Python
#!/usr/bin/env python3
|
|
"""Validate compact simulator INIs and optional HTTP TCP auto-port allocation."""
|
|
from configparser import ConfigParser
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
for rel, arch, enabled, http, xmlrpc in (
|
|
("bin/OpenSim.ini", "config-include/GridHypergrid.ini", True, 0, -1),
|
|
("bin/OpenSim.ini.example", "config-include/Standalone.ini", False, 9000, 20800),
|
|
):
|
|
src = (ROOT / rel).read_text(encoding="utf-8")
|
|
cfg = ConfigParser(interpolation=None, strict=True)
|
|
cfg.optionxform = str
|
|
cfg.read_string(src)
|
|
# The active Stadt-NexVerse simulator INI now contains four fully
|
|
# configured Generation-1 city modules. Keep the compactness gate for
|
|
# the reusable Standalone example and a bounded site-specific allowance
|
|
# for the active simulator INI, without dropping the strict INI parser,
|
|
# HTTP auto-port checks or disabled-Experiences contract.
|
|
# The compact profiles now also declare the WebDAV IAR backend without
|
|
# changing existing startup/physics/auto-port semantics.
|
|
max_lines = 400 if rel == "bin/OpenSim.ini" else 340
|
|
assert len(src.splitlines()) < max_lines, rel
|
|
assert "[Startup] section below." not in src
|
|
assert not any(k in cfg.sections() for k in ("OGLPathfinding", "OGLNpcNavigation"))
|
|
assert cfg.get("Architecture", "Include-Architecture").strip('"') == arch
|
|
assert cfg.getboolean("NexVerseAutoPorts", "Enabled") is enabled
|
|
assert cfg.getint("NexVerseAutoPorts", "HttpPortMin") == 9000
|
|
assert cfg.getint("NexVerseAutoPorts", "HttpPortMax") == 9099
|
|
assert cfg.getint("Network", "http_listener_port") == http
|
|
assert cfg.getint("XMLRPC", "XmlRpcPort") == xmlrpc
|
|
assert cfg.get("Startup", "physics") == "BulletSim"
|
|
assert cfg.get("Startup", "meshing") == "Meshmerizer"
|
|
assert cfg.get("Economy", "economymodule") == "NexVerseMoneyModule"
|
|
# Hypergrid guest NV$ wallets are enabled in operator templates, but
|
|
# unauthorized Masterbank payouts remain disabled by default.
|
|
assert not cfg.getboolean("NexEconomyViewer", "MasterBankEnabled")
|
|
assert cfg.getboolean("NexEconomyViewer", "AllowHypergridGuests")
|
|
# Experiences are paused for 0.9.3.10. Keep inactive opt-in
|
|
# flag definitions for a later train; never activate them by default.
|
|
assert not cfg.getboolean("NexExperiencesViewer", "Enabled")
|
|
for key in ("FirestormReadCaps", "FirestormPermissionCaps",
|
|
"FirestormManageCaps", "ScriptPendingConsent", "NativeExperiencePrompt"):
|
|
assert cfg.getboolean("NexExperiencesViewer", key)
|
|
for key, var in (("ApiKey","NEXVERSE_EXPERIENCES_API_KEY"),
|
|
("ViewerPermissionsApiKey","NEXVERSE_EXPERIENCES_VIEWER_PERMISSIONS_API_KEY"),
|
|
("ViewerManageApiKey","NEXVERSE_EXPERIENCES_VIEWER_MANAGE_API_KEY")):
|
|
assert cfg.get("NexExperiencesViewer", key) == '"' + "$" + '{Environment|' + var + '}"'
|
|
|
|
code = (ROOT / "OpenSim/Region/Application/ConfigurationLoader.cs").read_text()
|
|
assert code.index("NexVerseHttpPortAllocator.Apply(m_config.Source);") < code.index("m_networkServersInfo.loadFromConfiguration(m_config.Source);")
|
|
for token in ('if (configuredPort != 0)', 'lease.Lock(0, 1);',
|
|
'probe.Start();', 'network.Set("http_listener_port", port);',
|
|
'Path.Combine(Util.configDir(), "data", "NexVersePorts")',
|
|
'GetBoolean("http_listener_ssl", false)',
|
|
'GetBoolean("https_listener", false)'):
|
|
assert token in code, token
|
|
xml = (ROOT / "OpenSim/Region/CoreModules/Scripting/XMLRPC/XMLRPCModule.cs").read_text()
|
|
assert "if (m_remoteDataPort == -1)" in xml
|
|
assert 'network?.GetInt("http_listener_port", 0)' in xml
|
|
print("OpenGenesisLINK INIs and HTTP automatic port selection: OK")
|