last priority key alias

This commit is contained in:
Ido Lavi 2025-11-19 18:07:15 +02:00
parent 52cdc5f04e
commit 10dfe0b32e

View file

@ -799,7 +799,8 @@ class NomaGuardrail(CustomGuardrail):
or request_data.get("metadata", {})
.get("headers", {})
.get("x-noma-application-id")
or (user_auth.key_alias if user_auth.key_alias else self.application_id),
or self.application_id
or user_auth.key_alias,
"ipAddress": request_data.get("metadata", {}).get(
"requester_ip_address", None
),