Added FakeSetting for keys generation for support package (#35859)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c654f0502f
Коммит
075d975ca7
@@ -4848,6 +4848,10 @@ func (o *Config) Sanitize(pluginManifests []*Manifest, opts *SanitizeOptions) {
|
||||
*o.FileSettings.AmazonS3SecretAccessKey = FakeSetting
|
||||
}
|
||||
|
||||
if o.FileSettings.ExportAmazonS3SecretAccessKey != nil && *o.FileSettings.ExportAmazonS3SecretAccessKey != "" {
|
||||
*o.FileSettings.ExportAmazonS3SecretAccessKey = FakeSetting
|
||||
}
|
||||
|
||||
if o.EmailSettings.SMTPPassword != nil && *o.EmailSettings.SMTPPassword != "" {
|
||||
*o.EmailSettings.SMTPPassword = FakeSetting
|
||||
}
|
||||
@@ -4880,6 +4884,10 @@ func (o *Config) Sanitize(pluginManifests []*Manifest, opts *SanitizeOptions) {
|
||||
*o.ElasticsearchSettings.Password = FakeSetting
|
||||
}
|
||||
|
||||
if o.ElasticsearchSettings.ClientKey != nil && *o.ElasticsearchSettings.ClientKey != "" {
|
||||
*o.ElasticsearchSettings.ClientKey = FakeSetting
|
||||
}
|
||||
|
||||
for i := range o.SqlSettings.DataSourceReplicas {
|
||||
o.SqlSettings.DataSourceReplicas[i] = sanitizeDataSourceField(o.SqlSettings.DataSourceReplicas[i], "SqlSettings.DataSourceReplicas")
|
||||
}
|
||||
@@ -4905,6 +4913,14 @@ func (o *Config) Sanitize(pluginManifests []*Manifest, opts *SanitizeOptions) {
|
||||
*o.ServiceSettings.SplitKey = FakeSetting
|
||||
}
|
||||
|
||||
if o.ServiceSettings.GoogleDeveloperKey != nil && *o.ServiceSettings.GoogleDeveloperKey != "" {
|
||||
*o.ServiceSettings.GoogleDeveloperKey = FakeSetting
|
||||
}
|
||||
|
||||
if o.ServiceSettings.GiphySdkKey != nil && *o.ServiceSettings.GiphySdkKey != "" {
|
||||
*o.ServiceSettings.GiphySdkKey = FakeSetting
|
||||
}
|
||||
|
||||
if o.CacheSettings.RedisPassword != nil {
|
||||
*o.CacheSettings.RedisPassword = FakeSetting
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user