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.
249
+
//
250
+
// If a request calls a tool in this list, this rule is considered a match.
251
+
// If this request has a valid JWT token that contains all the required scopes defined in this rule,
252
+
// the request will be allowed. If not, the request will be denied.
253
+
//
254
+
// +kubebuilder:validation:MinItems=1
255
+
// +kubebuilder:validation:MaxItems=16
256
+
Tools []string`json:"tools"`
257
+
258
+
// Scopes defines the list of JWT scopes required for the rule.
259
+
// If multiple scopes are specified, all scopes must be present in the JWT for the rule to match.
260
+
//
261
+
// +kubebuilder:validation:MinItems=1
262
+
// +kubebuilder:validation:MaxItems=16
263
+
Scopes []egv1a1.JWTScope`json:"scopes"`
264
+
}
265
+
225
266
// JWKS defines how to obtain JSON Web Key Sets (JWKS) either from a remote HTTP/HTTPS endpoint or from a local source.
226
267
// +kubebuilder:validation:XValidation:rule="has(self.remoteJWKS) || has(self.localJWKS)", message="either remoteJWKS or localJWKS must be specified."
227
268
// +kubebuilder:validation:XValidation:rule="!(has(self.remoteJWKS) && has(self.localJWKS))", message="remoteJWKS and localJWKS cannot both be specified."
0 commit comments