-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I have this configuration on the URL Filter Guardrail:
{ "version": 1, "input": { "version": 1, "guardrails": [] }, "output": { "version": 1, "guardrails": [ { "name": "URL Filter", "config": { "url_allow_list": [ "https://suntropy.es" ], "allowed_schemes": [ "https://" ], "require_tld": true, "allow_subdomains": true, "block_userinfo": true } } ] } }
This is the error raised by the guardrail (the message should pass)
{"guardrail_name":"URL Filter","config":{"allowed_schemes":["https://"],"block_userinfo":true,"allow_subdomains":true,"url_allow_list":["https://suntropy.es"]},"detected":["https://suntropy.es"],"allowed":[],"blocked":["https://suntropy.es"],"blocked_reasons":["https://suntropy.es: Blocked scheme: https"],"checked_text":"{\"message\":\"La url de la herramienta de estudios solares es: https://suntropy.es\"}","stage_name":"output","media_type":"text/plain","detected_content_type":"text/plain"}
As you can see, the blocked url is inside the url_allow_list, and the block_reason blocks the https scheme that is included in the allowed_schemes