[New Plugin] Vigilnz AI Secure - #1767
Open
Susenthiran28 wants to merge 2 commits into
Open
Susenthiran28 wants to merge 2 commits into
Susenthiran28 wants to merge 2 commits into
Conversation
Adds a guardrail plugin that scans prompts and completions via the Vigilnz AI Secure API and enforces the tenant's server-side policy. - beforeRequestHook and afterRequestHook - block, allow and redact (modify) actions - credentials: apiKey required, baseUrl optional for self-hosted - configurable timeout (default 5000ms) and failOnError - 21 unit tests, fully mocked, no network or credentials file
Susenthiran28
force-pushed
the
feat/vigilnz-guardrail
branch
from
August 14, 2026 06:37
667a2ab to
61f9d55
Compare
…ort and content redaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Vigilnz AI Secure guardrail integration to the Portkey Gateway.
Vigilnz AI Secure scans both user prompts and LLM responses through the Vigilnz Guardrail API and applies the security policy configured for the user's Vigilnz tenant.
Key changes
Added Vigilnz AI Secure guardrail plugin with support for:
beforeRequestHookfor prompt/input scanningafterRequestHookfor LLM response/output scanningSupports Vigilnz verdicts:
Added credential configuration:
Added configurable timeout with a default of 5000ms.
Added
failOnErrorconfiguration to control guardrail behaviour when Vigilnz is unavailable.Added gateway-neutral Vigilnz API client and request/response handling.
Added documentation and unit tests with mocked Vigilnz API responses.
Tests Run / Test Cases
failOnErrorenabled and disabledTests: 21 unit tests passing, fully mocked.
Type of Change