2020-04-23 10:43:39 +02:00
|
|
|
package systemdefaults
|
|
|
|
|
2020-05-14 11:48:57 +02:00
|
|
|
import (
|
2022-02-14 17:22:30 +01:00
|
|
|
"time"
|
|
|
|
|
2022-04-27 01:01:45 +02:00
|
|
|
"github.com/zitadel/zitadel/internal/crypto"
|
2020-05-14 11:48:57 +02:00
|
|
|
)
|
2020-04-23 10:43:39 +02:00
|
|
|
|
|
|
|
type SystemDefaults struct {
|
2022-03-14 07:55:09 +01:00
|
|
|
SecretGenerators SecretGenerators
|
2023-07-14 09:49:57 +03:00
|
|
|
PasswordHasher crypto.PasswordHashConfig
|
2022-03-14 07:55:09 +01:00
|
|
|
Multifactors MultifactorConfig
|
|
|
|
DomainVerification DomainVerification
|
|
|
|
Notifications Notifications
|
|
|
|
KeyConfig KeyConfig
|
2020-04-23 10:43:39 +02:00
|
|
|
}
|
|
|
|
|
2020-05-11 10:16:27 +02:00
|
|
|
type SecretGenerators struct {
|
2022-02-16 16:49:17 +01:00
|
|
|
PasswordSaltCost int
|
|
|
|
MachineKeySize uint32
|
|
|
|
ApplicationKeySize uint32
|
2020-05-11 10:16:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type MultifactorConfig struct {
|
|
|
|
OTP OTPConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
type OTPConfig struct {
|
2022-03-14 07:55:09 +01:00
|
|
|
Issuer string
|
2020-04-23 10:43:39 +02:00
|
|
|
}
|
2020-05-14 11:48:57 +02:00
|
|
|
|
2020-08-06 15:03:03 +02:00
|
|
|
type DomainVerification struct {
|
|
|
|
VerificationGenerator crypto.GeneratorConfig
|
|
|
|
}
|
|
|
|
|
2020-05-20 14:28:08 +02:00
|
|
|
type Notifications struct {
|
2022-03-07 14:22:37 +01:00
|
|
|
FileSystemPath string
|
2020-05-20 14:28:08 +02:00
|
|
|
}
|
|
|
|
|
2021-02-12 16:51:12 +01:00
|
|
|
type KeyConfig struct {
|
2022-09-12 17:18:08 +01:00
|
|
|
Size int
|
|
|
|
PrivateKeyLifetime time.Duration
|
|
|
|
PublicKeyLifetime time.Duration
|
|
|
|
CertificateSize int
|
|
|
|
CertificateLifetime time.Duration
|
2021-02-12 16:51:12 +01:00
|
|
|
}
|