Enable gossip encryption (#14640)
* Enable gossip encryption * Fix order * Auto-generate key * Update gorp fork to include BeginTx * Add a test for InsertIfExists And point gorp to a custom branch for now Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fc028e703a
Коммит
e3255879ba
@@ -740,20 +740,21 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
}
|
||||
|
||||
type ClusterSettings struct {
|
||||
Enable *bool `restricted:"true"`
|
||||
ClusterName *string `restricted:"true"`
|
||||
OverrideHostname *string `restricted:"true"`
|
||||
NetworkInterface *string `restricted:"true"`
|
||||
BindAddress *string `restricted:"true"`
|
||||
AdvertiseAddress *string `restricted:"true"`
|
||||
UseIpAddress *bool `restricted:"true"`
|
||||
UseExperimentalGossip *bool `restricted:"true"`
|
||||
ReadOnlyConfig *bool `restricted:"true"`
|
||||
GossipPort *int `restricted:"true"`
|
||||
StreamingPort *int `restricted:"true"`
|
||||
MaxIdleConns *int `restricted:"true"`
|
||||
MaxIdleConnsPerHost *int `restricted:"true"`
|
||||
IdleConnTimeoutMilliseconds *int `restricted:"true"`
|
||||
Enable *bool `restricted:"true"`
|
||||
ClusterName *string `restricted:"true"`
|
||||
OverrideHostname *string `restricted:"true"`
|
||||
NetworkInterface *string `restricted:"true"`
|
||||
BindAddress *string `restricted:"true"`
|
||||
AdvertiseAddress *string `restricted:"true"`
|
||||
UseIpAddress *bool `restricted:"true"`
|
||||
UseExperimentalGossip *bool `restricted:"true"`
|
||||
EnableExperimentalGossipEncryption *bool `restricted:"true"`
|
||||
ReadOnlyConfig *bool `restricted:"true"`
|
||||
GossipPort *int `restricted:"true"`
|
||||
StreamingPort *int `restricted:"true"`
|
||||
MaxIdleConns *int `restricted:"true"`
|
||||
MaxIdleConnsPerHost *int `restricted:"true"`
|
||||
IdleConnTimeoutMilliseconds *int `restricted:"true"`
|
||||
}
|
||||
|
||||
func (s *ClusterSettings) SetDefaults() {
|
||||
@@ -789,6 +790,10 @@ func (s *ClusterSettings) SetDefaults() {
|
||||
s.UseExperimentalGossip = NewBool(false)
|
||||
}
|
||||
|
||||
if s.EnableExperimentalGossipEncryption == nil {
|
||||
s.EnableExperimentalGossipEncryption = NewBool(false)
|
||||
}
|
||||
|
||||
if s.ReadOnlyConfig == nil {
|
||||
s.ReadOnlyConfig = NewBool(true)
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ const (
|
||||
SYSTEM_POST_ACTION_COOKIE_SECRET = "PostActionCookieSecret"
|
||||
SYSTEM_INSTALLATION_DATE_KEY = "InstallationDate"
|
||||
SYSTEM_FIRST_SERVER_RUN_TIMESTAMP_KEY = "FirstServerRunTimestamp"
|
||||
SYSTEM_CLUSTER_ENCRYPTION_KEY = "ClusterEncryptionKey"
|
||||
)
|
||||
|
||||
type System struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user