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