Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: fix ai setting cache modify (#18511)
rebelice2629617598bf
diff --git a/backend/api/v1/setting_service_converter.go b/backend/api/v1/setting_service_converter.goindex 7c36a3120f..dce00c298a 100644--- a/backend/api/v1/setting_service_converter.go+++ b/backend/api/v1/setting_service_converter.go@@ -98,8 +98,6 @@ func convertToSettingMessage(setting *store.SettingMessage, profile *config.Profif !ok {return nil, connect.NewError(connect.CodeInternal, errors.Errorf("invalid setting value type for %s", setting.Name))}- // DO NOT expose the api key.- storeValue.ApiKey = ""return &v1pb.Setting{Name: settingName,Value: &v1pb.SettingValue{@@ -763,8 +761,9 @@ func convertToAISetting(storeSetting *storepb.AISetting) *v1pb.AISetting {Enabled: storeSetting.Enabled,Provider: v1pb.AISetting_Provider(storeSetting.Provider),Endpoint: storeSetting.Endpoint,- ApiKey: storeSetting.ApiKey,- Model: storeSetting.Model,- Version: storeSetting.Version,+ // Do not return the API key for security reasons.+ ApiKey: "",+ Model: storeSetting.Model,+ Version: storeSetting.Version,}}