Skip to content

Commit 4e0d755

Browse files
authored
Add issuerURI validation rules to description. (#166)
# Summary Added this explanation to issuerURI description to make sure that the necessary validations are clear. ` For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations. For other MongoDB versions, the issuerURI itself must be unique.`
1 parent 10b0e1a commit 4e0d755

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed

api/v1/mdb/mongodb_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,9 @@ type OIDCProviderConfig struct {
10671067

10681068
// Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
10691069
// Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
1070+
// For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
1071+
// For other MongoDB versions, the issuerURI itself must be unique.
1072+
10701073
// +kubebuilder:validation:Required
10711074
IssuerURI string `json:"issuerURI"`
10721075

config/crd/bases/mongodb.com_mongodb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,8 @@ spec:
15761576
description: |-
15771577
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
15781578
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
1579+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
1580+
For other MongoDB versions, the issuerURI itself must be unique.
15791581
type: string
15801582
requestedScopes:
15811583
description: |-

config/crd/bases/mongodb.com_mongodbmulticluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ spec:
836836
description: |-
837837
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
838838
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
839+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
840+
For other MongoDB versions, the issuerURI itself must be unique.
839841
type: string
840842
requestedScopes:
841843
description: |-

helm_chart/crds/mongodb.com_mongodb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,8 @@ spec:
15761576
description: |-
15771577
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
15781578
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
1579+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
1580+
For other MongoDB versions, the issuerURI itself must be unique.
15791581
type: string
15801582
requestedScopes:
15811583
description: |-

helm_chart/crds/mongodb.com_mongodbmulticluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ spec:
836836
description: |-
837837
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
838838
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
839+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
840+
For other MongoDB versions, the issuerURI itself must be unique.
839841
type: string
840842
requestedScopes:
841843
description: |-

public/crds.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,8 @@ spec:
15761576
description: |-
15771577
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
15781578
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
1579+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
1580+
For other MongoDB versions, the issuerURI itself must be unique.
15791581
type: string
15801582
requestedScopes:
15811583
description: |-
@@ -4212,6 +4214,8 @@ spec:
42124214
description: |-
42134215
Issuer value provided by your registered IdP application. Using this URI, MongoDB finds an OpenID Provider
42144216
Configuration Document, which should be available in the /.wellknown/open-id-configuration endpoint.
4217+
For MongoDB 7.0, 7.3, and 8.0+, the combination of issuerURI and audience must be unique across OIDC provider configurations.
4218+
For other MongoDB versions, the issuerURI itself must be unique.
42154219
type: string
42164220
requestedScopes:
42174221
description: |-

0 commit comments

Comments
 (0)