6097841e67
* SecretsManager: add secure value model and sql templates Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com> Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com> Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com> * SecretsManager: secure value rest layer to use store Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com> Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com> Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com> * SecretsManager: temporary add actor prefix to decrypters * Remove list securevalue by namefor now --------- Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com> Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com> Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
31 lines
1.2 KiB
SQL
31 lines
1.2 KiB
SQL
UPDATE
|
|
{{ .Ident "secret_secure_value" }}
|
|
SET
|
|
{{ .Ident "guid" }} = {{ .Arg .Row.GUID }},
|
|
{{ .Ident "name" }} = {{ .Arg .Row.Name }},
|
|
{{ .Ident "namespace" }} = {{ .Arg .Row.Namespace }},
|
|
{{ .Ident "annotations" }} = {{ .Arg .Row.Annotations }},
|
|
{{ .Ident "labels" }} = {{ .Arg .Row.Labels }},
|
|
{{ .Ident "created" }} = {{ .Arg .Row.Created }},
|
|
{{ .Ident "created_by" }} = {{ .Arg .Row.CreatedBy }},
|
|
{{ .Ident "updated" }} = {{ .Arg .Row.Updated }},
|
|
{{ .Ident "updated_by" }} = {{ .Arg .Row.UpdatedBy }},
|
|
{{ .Ident "status_phase" }} = {{ .Arg .Row.Phase }},
|
|
{{ if .Row.Message.Valid }}
|
|
{{ .Ident "status_message" }} = {{ .Arg .Row.Message.String }},
|
|
{{ end }}
|
|
{{ .Ident "description" }} = {{ .Arg .Row.Description }},
|
|
{{ if .Row.Keeper.Valid }}
|
|
{{ .Ident "keeper" }} = {{ .Arg .Row.Keeper.String }},
|
|
{{ end }}
|
|
{{ if .Row.Decrypters.Valid }}
|
|
{{ .Ident "decrypters" }} = {{ .Arg .Row.Decrypters.String }},
|
|
{{ end }}
|
|
{{ if .Row.Ref.Valid }}
|
|
{{ .Ident "ref" }} = {{ .Arg .Row.Ref.String }},
|
|
{{ end }}
|
|
{{ .Ident "external_id" }} = {{ .Arg .Row.ExternalID }}
|
|
WHERE {{ .Ident "namespace" }} = {{ .Arg .Row.Namespace }} AND
|
|
{{ .Ident "name" }} = {{ .Arg .Row.Name }}
|
|
;
|