diff --git a/api/v1alpha1/docs/apiref.adoc b/api/v1alpha1/docs/apiref.adoc index 4ce4408d..d0ed20fc 100644 --- a/api/v1alpha1/docs/apiref.adoc +++ b/api/v1alpha1/docs/apiref.adoc @@ -2139,6 +2139,10 @@ considered enabled. Only listed integrations are hidden. + | | Optional: \{} + | *`accountVerifierURL`* __string__ | AccountVerifierURL is the URL used to call the account verifier service + | | Optional: \{} + +| *`enableAccountVerifier`* __boolean__ | EnableAccountVerifier controls whether the registration service acts on responses from the account-verifier service, + +which verifies disposable email domains. When set to true, the registration service will enforce the account-verifier's + +response. When set to false or not set, the account-verifier is still called but the response is only logged. + | | Optional: \{} + + |=== diff --git a/api/v1alpha1/toolchainconfig_types.go b/api/v1alpha1/toolchainconfig_types.go index afc1ebf6..5c697747 100644 --- a/api/v1alpha1/toolchainconfig_types.go +++ b/api/v1alpha1/toolchainconfig_types.go @@ -261,6 +261,12 @@ type RegistrationServiceConfig struct { // AccountVerifierURL is the URL used to call the account verifier service // +optional AccountVerifierURL *string `json:"accountVerifierURL,omitempty"` + + // EnableAccountVerifier controls whether the registration service acts on responses from the account-verifier service, + // which verifies disposable email domains. When set to true, the registration service will enforce the account-verifier's + // response. When set to false or not set, the account-verifier is still called but the response is only logged. + // +optional + EnableAccountVerifier *bool `json:"enableAccountVerifier,omitempty"` } // RegistrationServiceAnalyticsConfig contains the subset of registration service configuration parameters related to analytics diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 02470143..c5f35c79 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -1937,6 +1937,11 @@ func (in *RegistrationServiceConfig) DeepCopyInto(out *RegistrationServiceConfig *out = new(string) **out = **in } + if in.EnableAccountVerifier != nil { + in, out := &in.EnableAccountVerifier, &out.EnableAccountVerifier + *out = new(bool) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistrationServiceConfig. diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 17a90d31..38543e38 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -2658,6 +2658,13 @@ func schema_codeready_toolchain_api_api_v1alpha1_RegistrationServiceConfig(ref c Format: "", }, }, + "enableAccountVerifier": { + SchemaProps: spec.SchemaProps{ + Description: "EnableAccountVerifier controls whether the registration service acts on responses from the account-verifier service, which verifies disposable email domains. When set to true, the registration service will enforce the account-verifier's response. When set to false or not set, the account-verifier is still called but the response is only logged.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, },