You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Tools defines the list of tool names this rule applies to. The name must be a fully qualified tool name including the backend name.
249
+
// For example, "mcp-backend-name__tool-name".
250
+
//
251
+
// If a request calls a tool in this list, this rule is considered a match.
252
+
// If this request has a valid JWT token that contains all the required scopes defined in this rule,
253
+
// the request will be allowed. If not, the request will be denied.
254
+
//
255
+
// +kubebuilder:validation:MinItems=1
256
+
// +kubebuilder:validation:MaxItems=16
257
+
Tools []string`json:"tools"`
258
+
259
+
// Scopes defines the list of JWT scopes required for the rule.
260
+
// If multiple scopes are specified, all scopes must be present in the JWT for the rule to match.
261
+
//
262
+
// +kubebuilder:validation:MinItems=1
263
+
// +kubebuilder:validation:MaxItems=16
264
+
Scopes []egv1a1.JWTScope`json:"scopes"`
265
+
}
266
+
225
267
// JWKS defines how to obtain JSON Web Key Sets (JWKS) either from a remote HTTP/HTTPS endpoint or from a local source.
226
268
// +kubebuilder:validation:XValidation:rule="has(self.remoteJWKS) || has(self.localJWKS)", message="either remoteJWKS or localJWKS must be specified."
227
269
// +kubebuilder:validation:XValidation:rule="!(has(self.remoteJWKS) && has(self.localJWKS))", message="remoteJWKS and localJWKS cannot both be specified."
0 commit comments