MSP-8299 add new handling for SECRET type variables and sensitive fields in config

This commit is contained in:
ziminis committed 2026-11-27 18:31:34 +07:00
1 parent f7a141d25e
commit cdf700b062
16 files changed
+1449 -67

No files matched your search

+13 -6
View File
@@ -5,13 +5,20 @@ import (
"isp-config-service/entity/xtypes"
)
type VariableType = string
var (
SecretType VariableType = "SECRET"
TextType VariableType = "TEXT"
)
type Variable struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Value string `json:"value"`
CreatedAt xtypes.Time `json:"created_at"`
UpdatedAt xtypes.Time `json:"updated_at"`
Name string `json:"name"`
Description string `json:"description"`
Type VariableType `json:"type"`
Value string `json:"value"`
CreatedAt xtypes.Time `json:"created_at"`
UpdatedAt xtypes.Time `json:"updated_at"`
}
type ConfigHasVariable struct {