Skip to content

Commit

Permalink
Remove max number of auth rules constraint (#1019)
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato authored Nov 14, 2024
1 parent 87be3fb commit 5e9176b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 41 deletions.
4 changes: 0 additions & 4 deletions api/v1/authpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,19 +355,16 @@ type AuthSchemeSpec struct {
// Authentication configs.
// At least one config MUST evaluate to a valid identity object for the auth request to be successful.
// +optional
// +kubebuilder:validation:MaxProperties=10
Authentication map[string]MergeableAuthenticationSpec `json:"authentication,omitempty"`

// Metadata sources.
// Authorino fetches auth metadata as JSON from sources specified in this config.
// +optional
// +kubebuilder:validation:MaxProperties=10
Metadata map[string]MergeableMetadataSpec `json:"metadata,omitempty"`

// Authorization policies.
// All policies MUST evaluate to "allowed = true" for the auth request be successful.
// +optional
// +kubebuilder:validation:MaxProperties=10
Authorization map[string]MergeableAuthorizationSpec `json:"authorization,omitempty"`

// Response items.
Expand All @@ -378,7 +375,6 @@ type AuthSchemeSpec struct {
// Callback functions.
// Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
// +optional
// +kubebuilder:validation:MaxProperties=10
Callbacks map[string]MergeableCallbackSpec `json:"callbacks,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/kuadrant-operator:latest
createdAt: "2024-11-12T11:38:26Z"
createdAt: "2024-11-13T16:31:14Z"
description: A Kubernetes Operator to manage the lifecycle of the Kuadrant system
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down
12 changes: 0 additions & 12 deletions bundle/manifests/kuadrant.io_authpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -1117,7 +1116,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -1415,7 +1413,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -1753,7 +1750,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -2760,7 +2756,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -3384,7 +3379,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -3682,7 +3676,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -4020,7 +4013,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -5018,7 +5010,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -5638,7 +5629,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -5933,7 +5923,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -6267,7 +6256,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down
12 changes: 0 additions & 12 deletions charts/kuadrant-operator/templates/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -1117,7 +1116,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -1415,7 +1413,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -1753,7 +1750,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -2760,7 +2756,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -3384,7 +3379,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -3682,7 +3676,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -4020,7 +4013,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -5018,7 +5010,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -5638,7 +5629,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -5933,7 +5923,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -6267,7 +6256,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down
12 changes: 0 additions & 12 deletions config/crd/bases/kuadrant.io_authpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -1116,7 +1115,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -1414,7 +1412,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -1752,7 +1749,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -2759,7 +2755,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -3383,7 +3378,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -3681,7 +3675,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -4019,7 +4012,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down Expand Up @@ -5017,7 +5009,6 @@ spec:
description: |-
Authentication configs.
At least one config MUST evaluate to a valid identity object for the auth request to be successful.
maxProperties: 10
type: object
authorization:
additionalProperties:
Expand Down Expand Up @@ -5637,7 +5628,6 @@ spec:
description: |-
Authorization policies.
All policies MUST evaluate to "allowed = true" for the auth request be successful.
maxProperties: 10
type: object
callbacks:
additionalProperties:
Expand Down Expand Up @@ -5932,7 +5922,6 @@ spec:
description: |-
Callback functions.
Authorino sends callbacks at the end of the auth pipeline to the endpoints specified in this config.
maxProperties: 10
type: object
metadata:
additionalProperties:
Expand Down Expand Up @@ -6266,7 +6255,6 @@ spec:
description: |-
Metadata sources.
Authorino fetches auth metadata as JSON from sources specified in this config.
maxProperties: 10
type: object
response:
description: |-
Expand Down

0 comments on commit 5e9176b

Please sign in to comment.