mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:27:32 +00:00
feat: Config to eventstore (#3158)
* feat: add default language to eventstore * feat: add secret generator configs events * feat: tests * feat: secret generators in eventstore * feat: secret generators in eventstore * feat: smtp config in eventstore * feat: smtp config in eventstore * feat: smtp config in eventstore * feat: smtp config in eventstore * feat: smtp config in eventstore * fix: migrations * fix migration version * fix test * feat: change secret generator type to enum * feat: change smtp attribute names * feat: change smtp attribute names * feat: remove engryption algorithms from command side * feat: remove engryption algorithms from command side * feat: smtp config * feat: smtp config * format smtp from header Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -32,6 +32,102 @@ Returns the default languages
|
||||
GET: /languages
|
||||
|
||||
|
||||
### SetDefaultLanguage
|
||||
|
||||
> **rpc** SetDefaultLanguage([SetDefaultLanguageRequest](#setdefaultlanguagerequest))
|
||||
[SetDefaultLanguageResponse](#setdefaultlanguageresponse)
|
||||
|
||||
Set the default language
|
||||
|
||||
|
||||
|
||||
PUT: /languages/default/{language}
|
||||
|
||||
|
||||
### GetDefaultLanguage
|
||||
|
||||
> **rpc** GetDefaultLanguage([GetDefaultLanguageRequest](#getdefaultlanguagerequest))
|
||||
[GetDefaultLanguageResponse](#getdefaultlanguageresponse)
|
||||
|
||||
Set the default language
|
||||
|
||||
|
||||
|
||||
GET: /languages/default
|
||||
|
||||
|
||||
### ListSecretGenerators
|
||||
|
||||
> **rpc** ListSecretGenerators([ListSecretGeneratorsRequest](#listsecretgeneratorsrequest))
|
||||
[ListSecretGeneratorsResponse](#listsecretgeneratorsresponse)
|
||||
|
||||
Set the default language
|
||||
|
||||
|
||||
|
||||
POST: /secretgenerators/_search
|
||||
|
||||
|
||||
### GetSecretGenerator
|
||||
|
||||
> **rpc** GetSecretGenerator([GetSecretGeneratorRequest](#getsecretgeneratorrequest))
|
||||
[GetSecretGeneratorResponse](#getsecretgeneratorresponse)
|
||||
|
||||
Get Secret Generator by type (e.g PasswordResetCode)
|
||||
|
||||
|
||||
|
||||
GET: /secretgenerators/{generator_type}
|
||||
|
||||
|
||||
### UpdateSecretGenerator
|
||||
|
||||
> **rpc** UpdateSecretGenerator([UpdateSecretGeneratorRequest](#updatesecretgeneratorrequest))
|
||||
[UpdateSecretGeneratorResponse](#updatesecretgeneratorresponse)
|
||||
|
||||
Update secret generator configuration
|
||||
|
||||
|
||||
|
||||
PUT: /secretgenerators/{generator_type}
|
||||
|
||||
|
||||
### GetSMTPConfig
|
||||
|
||||
> **rpc** GetSMTPConfig([GetSMTPConfigRequest](#getsmtpconfigrequest))
|
||||
[GetSMTPConfigResponse](#getsmtpconfigresponse)
|
||||
|
||||
Get system smtp configuration
|
||||
|
||||
|
||||
|
||||
GET: /smtp
|
||||
|
||||
|
||||
### UpdateSMTPConfig
|
||||
|
||||
> **rpc** UpdateSMTPConfig([UpdateSMTPConfigRequest](#updatesmtpconfigrequest))
|
||||
[UpdateSMTPConfigResponse](#updatesmtpconfigresponse)
|
||||
|
||||
Update system smtp configuration
|
||||
|
||||
|
||||
|
||||
PUT: /smtp
|
||||
|
||||
|
||||
### UpdateSMTPConfigPassword
|
||||
|
||||
> **rpc** UpdateSMTPConfigPassword([UpdateSMTPConfigPasswordRequest](#updatesmtpconfigpasswordrequest))
|
||||
[UpdateSMTPConfigPasswordResponse](#updatesmtpconfigpasswordresponse)
|
||||
|
||||
Update system smtp configuration password for host
|
||||
|
||||
|
||||
|
||||
PUT: /smtp/password
|
||||
|
||||
|
||||
### GetOrgByID
|
||||
|
||||
> **rpc** GetOrgByID([GetOrgByIDRequest](#getorgbyidrequest))
|
||||
@@ -1665,6 +1761,23 @@ This is an empty response
|
||||
|
||||
|
||||
|
||||
### GetDefaultLanguageRequest
|
||||
This is an empty request
|
||||
|
||||
|
||||
|
||||
|
||||
### GetDefaultLanguageResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| language | string | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetDefaultLoginTextsRequest
|
||||
|
||||
|
||||
@@ -1977,6 +2090,45 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### GetSMTPConfigRequest
|
||||
This is an empty request
|
||||
|
||||
|
||||
|
||||
|
||||
### GetSMTPConfigResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| smtp_config | zitadel.settings.v1.SMTPConfig | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetSecretGeneratorRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| generator_type | zitadel.settings.v1.SecretGeneratorType | - | enum.defined_only: true<br /> enum.not_in: [0]<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetSecretGeneratorResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| secret_generator | zitadel.settings.v1.SecretGenerator | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetSupportedLanguagesRequest
|
||||
This is an empty request
|
||||
|
||||
@@ -2211,6 +2363,30 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### ListSecretGeneratorsRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| query | zitadel.v1.ListQuery | list limitations and ordering | |
|
||||
| queries | repeated zitadel.settings.v1.SecretGeneratorQuery | criterias the client is looking for | |
|
||||
|
||||
|
||||
|
||||
|
||||
### ListSecretGeneratorsResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ListDetails | - | |
|
||||
| result | repeated zitadel.settings.v1.SecretGenerator | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### ListViewsRequest
|
||||
This is an empty request
|
||||
|
||||
@@ -2820,6 +2996,28 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### SetDefaultLanguageRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| language | string | - | string.min_len: 1<br /> string.max_len: 10<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### SetDefaultLanguageResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### SetDefaultPasswordResetMessageTextRequest
|
||||
|
||||
|
||||
@@ -3374,6 +3572,82 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### UpdateSMTPConfigPasswordRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| password | string | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### UpdateSMTPConfigPasswordResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### UpdateSMTPConfigRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| sender_address | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
| sender_name | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
| tls | bool | - | |
|
||||
| host | string | - | string.min_len: 1<br /> string.max_len: 500<br /> |
|
||||
| user | string | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### UpdateSMTPConfigResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### UpdateSecretGeneratorRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| generator_type | zitadel.settings.v1.SecretGeneratorType | - | enum.defined_only: true<br /> enum.not_in: [0]<br /> |
|
||||
| length | uint32 | - | |
|
||||
| expiry | google.protobuf.Duration | - | |
|
||||
| include_lower_letters | bool | - | |
|
||||
| include_upper_letters | bool | - | |
|
||||
| include_digits | bool | - | |
|
||||
| include_symbols | bool | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### UpdateSecretGeneratorResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### View
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user