integration: add Singulr guardrail support - #1735
Conversation
8ba8184 to
74f97a6
Compare
|
Thanks for the contribution — overall shape looks good and closely follows the CrowdStrike AIDR partner pattern (full guard_input + metadata + fail-open). Requesting a few changes before we can approve:
Nits: prefer camelCase credential keys (apiKey, baseUrl) for consistency with other partners; make empty-content checks target-aware for the active hook. Also please confirm CI is green on this branch — no checks are currently reported on the PR. Confirm Prettier is green on the PR; we’ll comment run tests for the gateway suite after the review changes land. |
|
Hi @akhilmmenon, thanks for the thorough review! Here's a summary of the changes:
|
|
Thanks for the follow-up — the updated commit addresses the review points well: I’m good to approve. Two soft nits (non-blocking):
We’ll kick off the gateway test suite from our side next once you confirm the above points. |
… with other providers
|
Thanks for the review! Updates on both points:
Ready for the test suite whenever you want to kick it off. |
|
Thanks again for the updates — the latest changes look good (apiKey/baseUrl naming and confirming both guardrailId + applicationId are required). Quick update on merge path: we’re consolidating partner guardrail enablement on our enterprise gateway (the open-source gateway path is effectively deprecated for new partner plugins). We’ve taken your contribution as the basis and are adding Singulr internally there. We’ll keep you posted once it’s available for you to configure/test. Appreciate the collaboration and the clean plugin shape — it made the port straightforward. |
|
Thanks for the update! Glad to hear the contribution helped make the port straightforward. We appreciate you moving the Singulr integration forward on the enterprise gateway. Please keep us posted once it’s available for configuration and testing — we’ll be happy to validate the integration from our side. |
|
@aniket-kardile We are currently testing the integration of Singulr AI plugin on our enterprise platform, but before the final integration, I would need to run a manual test with Singulr's actual API key, can you please help me with the procurement for the same? |
|
@akhilmmenon I have shared the required credentials on Pylon support ticket. Thanks ! |
Description: (required)
plugins/singulr/scan.ts) that scans LLM request/response content via the Singulr API and can block traffic based on server-side configured policiesbeforeRequestHook(input) andafterRequestHook(output) scanning, with credentials for API key, guardrail ID, application/enforcement ID, and an optional custom base URLplugins/index.tsand defines its schema inplugins/singulr/manifest.jsonTests Run/Test cases added: (required)
data.explanationguard_input, metadata, headers, custom base URL, configurable timeout)npx jest plugins/singulrType of Change: