config: enable cross-region and cross-owner object messaging (#106)
* config(nodeagent): enable cross-region and cross-owner object messaging * config(nodeagent): enable cross-region and cross-owner object messaging * test(config): require explicit production opt-in and conservative fallback defaults
This commit is contained in:
1 parent
7a5587d966
commit
0d5710d1ad
3 files changed
+22
-15
No files matched your search
+5
-5
@@ -25,11 +25,11 @@
|
||||
RequestTimeoutMilliseconds = 2000
|
||||
DeduplicationWindow = 10000
|
||||
|
||||
; Optional transparent remote fallback for llRegionSayTo when the target
|
||||
; object is not present in the local region. Requires NexBus transport.
|
||||
; Same-owner delivery is the safe default.
|
||||
CrossRegionObjectMessaging = false
|
||||
AllowCrossOwnerObjectMessages = false
|
||||
; Cross-region llRegionSayTo delivery through authenticated NexBus.
|
||||
; AllowCrossOwnerObjectMessages also permits delivery to objects owned
|
||||
; by other avatars. Keep existing per-source rate and message age limits.
|
||||
CrossRegionObjectMessaging = true
|
||||
AllowCrossOwnerObjectMessages = true
|
||||
|
||||
; OpenGenesisLINK llEstateSay remote extension. Same-simulator Estate
|
||||
; regions are always reached locally. With NodeAgent/NexBus enabled this
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
RequestTimeoutMilliseconds = 2000
|
||||
DeduplicationWindow = 10000
|
||||
|
||||
; Optional transparent remote fallback for llRegionSayTo when the target
|
||||
; object is not present in the local region. Requires NexBus transport.
|
||||
; Same-owner delivery is the safe default.
|
||||
CrossRegionObjectMessaging = false
|
||||
AllowCrossOwnerObjectMessages = false
|
||||
; Cross-region llRegionSayTo delivery through authenticated NexBus.
|
||||
; AllowCrossOwnerObjectMessages also permits delivery to objects owned
|
||||
; by other avatars. Keep existing per-source rate and message age limits.
|
||||
CrossRegionObjectMessaging = true
|
||||
AllowCrossOwnerObjectMessages = true
|
||||
|
||||
; OpenGenesisLINK llEstateSay remote extension. Same-simulator Estate
|
||||
; regions are always reached locally. With NodeAgent/NexBus enabled this
|
||||
|
||||
@@ -75,12 +75,19 @@ for marker in (
|
||||
):
|
||||
assert marker in world_api, f"missing Node OpenAPI object messaging marker: {marker}"
|
||||
|
||||
for path in ("bin/OpenSim.ini", "bin/OpenSim.ini.example", "bin/OpenSimDefaults.ini"):
|
||||
# The NexVerse deployment opts in to cross-owner and cross-region delivery.
|
||||
# The shipped OpenSimDefaults.ini must retain conservative defaults for other installations.
|
||||
for path, enabled in (
|
||||
("bin/OpenSim.ini", True),
|
||||
("bin/OpenSim.ini.example", True),
|
||||
("bin/OpenSimDefaults.ini", False),
|
||||
):
|
||||
config = Path(path).read_text(encoding="utf-8")
|
||||
assert "CrossRegionObjectMessaging = false" in config
|
||||
assert "AllowCrossOwnerObjectMessages = false" in config
|
||||
assert "ObjectMessagesPerSecond = 20" in config
|
||||
assert "ObjectMessageMaxAgeSeconds = 30" in config
|
||||
state = "true" if enabled else "false"
|
||||
assert f"CrossRegionObjectMessaging = {state}" in config, path
|
||||
assert f"AllowCrossOwnerObjectMessages = {state}" in config, path
|
||||
assert "ObjectMessagesPerSecond = 20" in config, path
|
||||
assert "ObjectMessageMaxAgeSeconds = 30" in config, path
|
||||
|
||||
assert "### 9.6 Cross-region object-to-object communication" in roadmap
|
||||
print("Cross-region object messaging contract: OK")
|
||||
Reference in new issue
Block a user