From 93ad932a7541a1eb9b14391221b17217c60415f9 Mon Sep 17 00:00:00 2001 From: Corvo <60719165+brothercorvo@users.noreply.github.com> Date: Thu, 8 Jan 2026 10:37:26 -0400 Subject: [PATCH 1/2] Normalize shared instance RPC key casing --- reticulum_openapi/integrations/fastapi/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reticulum_openapi/integrations/fastapi/settings.py b/reticulum_openapi/integrations/fastapi/settings.py index 6b08685..b733426 100644 --- a/reticulum_openapi/integrations/fastapi/settings.py +++ b/reticulum_openapi/integrations/fastapi/settings.py @@ -150,6 +150,8 @@ def load_lxmf_client_settings( config_data = {} settings = LXMFClientSettings(**config_data) + if settings.shared_instance_rpc_key: + settings.shared_instance_rpc_key = settings.shared_instance_rpc_key.lower() if require_server_identity and not settings.server_identity_hash: raise ValueError("server_identity_hash must be configured") return settings From 329b43cd979b01eb1fe4f0c1929c97398a79cabd Mon Sep 17 00:00:00 2001 From: Corvo <60719165+brothercorvo@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:19:42 -0400 Subject: [PATCH 2/2] Normalize gateway RPC key casing --- examples/EmergencyManagement/web_gateway/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/EmergencyManagement/web_gateway/app.py b/examples/EmergencyManagement/web_gateway/app.py index d44f037..7897dd6 100644 --- a/examples/EmergencyManagement/web_gateway/app.py +++ b/examples/EmergencyManagement/web_gateway/app.py @@ -354,7 +354,9 @@ def _normalise_optional_hex(value: Optional[str]) -> Optional[str]: if isinstance(value, str): cleaned = value.strip() - return cleaned or None + if not cleaned: + return None + return cleaned.lower() return None