* feat(oglvoice): issue narrowly scoped LiveKit JWTs with HG-safe identity and short TTL * feat(oglvoice): HMAC-bind simulator join assertions to exact request payloads * feat(oglvoice): add locked-down Robust LiveKit session token endpoint with node ACL and replay protection * feat(oglvoice): wire optional server-only LiveKit JWT session authority into Robust * test(oglvoice): validate LiveKit JWT, room scope, tenant binding, HG identity and signed assertions * test(oglvoice): validate LiveKit JWT, room scope, tenant binding, HG identity and signed assertions * test(oglvoice): ensure only Robust hosts token signing keys and enforces node ACL * docs(config): add disabled-by-default OGLVoice LiveKit session authority and secure key sourcing * docs(config): add disabled-by-default OGLVoice LiveKit session authority and secure key sourcing * feat(oglvoice): gate avatar admission by live Scene circuit, Estate and Parcel voice policy * feat(oglvoice): add trusted simulator-only admission lookup interface * feat(oglvoice): expose verified root-avatar Estate/Parcel admission through region module * ci(oglvoice): validate LiveKit JWT scope and admission transport in the release workflow * docs(oglvoice): detail opt-in LiveKit JWT authority, session admission security and remaining Firestorm gate * docs(release): record LiveKit token authority as foundation without claiming voice readiness * test(oglvoice): verify Scene root presence and Estate/Parcel admission wiring * fix(oglvoice): accept legitimate HTTP Hypergrid identity origins without weakening voice-provider TLS policy * test(oglvoice): cover legacy HTTP Hypergrid home origins with HTTPS-only provider separation
43 lines
2.5 KiB
Python
43 lines
2.5 KiB
Python
#!/usr/bin/env python3
|
|
"""OGLVoice server-only credential and session-authority integration guard."""
|
|
from pathlib import Path
|
|
base = Path(__file__).resolve().parents[2]
|
|
issuer = (base/"NexVerse/Core/Voice/OglVoiceLiveKitTokenIssuer.cs").read_text()
|
|
proof = (base/"NexVerse/Core/Voice/OglVoiceSessionProof.cs").read_text()
|
|
endpoint = (base/"NexVerse/Server/Api/OglVoiceSessionAuthorityEndpoint.cs").read_text()
|
|
connector = (base/"NexVerse/Server/Api/NexVerseWorldApiConnector.cs").read_text()
|
|
for value in ("HMACSHA256.HashData", "roomJoin = true",
|
|
"canPublish = true", "canSubscribe = true",
|
|
"TenantId != m_TenantId", "lifetimeSeconds > 300",
|
|
"OglVoiceHypergridIdentity.DeriveGuestId", "jti = Guid.NewGuid()"):
|
|
assert value in issuer, value
|
|
for value in ("bodyHash", "SHA256.HashData", "CryptographicOperations.FixedTimeEquals",
|
|
"OglVoiceDiscoveryProof.ValidateKey"):
|
|
assert value in proof, value
|
|
for value in ("AllowedNodes", "m_AllowedNodes", "m_Seen",
|
|
"replayed_challenge", "Cache-Control", "no-store",
|
|
"OglVoiceSessionProof.Verify", "m_Issuer.Issue",
|
|
"MaxChallenges", "payload_too_large"):
|
|
assert value in endpoint, value
|
|
for value in ('EnableSessionAuthority', "OGLVOICE_LIVEKIT_API_KEY",
|
|
"OGLVOICE_LIVEKIT_API_SECRET",
|
|
"OglVoiceSessionAuthorityEndpoint.Route"):
|
|
assert value in connector, value
|
|
assert "EnableSessionAuthority" in (base/"bin/Robust.HG.ini.example").read_text()
|
|
assert "EnableSessionAuthority" in (base/"bin/Robust.ini.example").read_text()
|
|
assert "Environment.GetEnvironmentVariable" in connector
|
|
assert "OGLVOICE_LIVEKIT_API_SECRET" not in (base/"bin/OpenSim.ini.example").read_text()
|
|
admission = (base/"NexVerse/RegionModules/Voice/OglVoiceRegionAdmission.cs").read_text()
|
|
module = (base/"NexVerse/RegionModules/Voice/OglVoiceRegionDiscoveryModule.cs").read_text()
|
|
for value in ("ScenePresence", "IsChildAgent", "IsNPC",
|
|
"IsInTransit", "circuit.SessionID", "AllowVoice",
|
|
"ParcelFlags.AllowVoiceChat", "ViaHGLogin",
|
|
"OglVoiceHypergridIdentity", "TryCreate"):
|
|
# HG identity gets verified by token issuer after admission
|
|
if value == "OglVoiceHypergridIdentity":
|
|
continue
|
|
assert value in admission, value
|
|
assert "IOglVoiceSessionAdmission" in module
|
|
assert "OglVoiceRegionAdmission.TryCreate" in module
|
|
print("OGLVoice server-only LiveKit credential and session-authority integration: OK")
|