feat(security): Introduce Conseca framework (#13193)

This commit is contained in:
Rishabh Khandelwal
2026-02-23 18:44:28 -08:00
committed by GitHub
parent 05bc0399f3
commit dde844dbe1
30 changed files with 1887 additions and 51 deletions
@@ -0,0 +1,6 @@
[[safety_checker]]
toolName = "*"
priority = 100
[safety_checker.checker]
type = "in-process"
name = "conseca"
+4 -1
View File
@@ -113,7 +113,10 @@ function ruleMatches(
// Check tool name if specified
if (rule.toolName) {
if (isWildcardPattern(rule.toolName)) {
// Support wildcard patterns: "serverName__*" matches "serverName__anyTool"
if (rule.toolName === '*') {
// Match all tools
} else if (isWildcardPattern(rule.toolName)) {
if (
!toolCall.name ||
!matchesWildcard(rule.toolName, toolCall.name, serverName)
+1
View File
@@ -78,6 +78,7 @@ export interface ExternalCheckerConfig {
export enum InProcessCheckerType {
ALLOWED_PATH = 'allowed-path',
CONSECA = 'conseca',
}
/**