MSP-8299 add new handling for SECRET type variables and sensitive fields in config
This commit is contained in:
1 parent
780c2232fb
commit
9e7af0df5a
16 files changed
+1449
-67
No files matched your search
@@ -29,7 +29,7 @@ type ConfigRepo interface {
|
||||
}
|
||||
|
||||
type VariableService interface {
|
||||
RenderConfig(ctx context.Context, input []byte) ([]byte, error)
|
||||
RenderConfig(ctx context.Context, moduleId string, input []byte) ([]byte, error)
|
||||
}
|
||||
|
||||
type Emitter interface {
|
||||
@@ -81,7 +81,7 @@ func (s Service) NotifyConfigChanged(ctx context.Context, moduleId string) error
|
||||
if err != nil {
|
||||
return errors.WithMessage(err, "get active config")
|
||||
}
|
||||
configData, err := s.variableService.RenderConfig(ctx, config.Data)
|
||||
configData, err := s.variableService.RenderConfig(ctx, moduleId, config.Data)
|
||||
if err != nil {
|
||||
return errors.WithMessage(err, "render config")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user