* 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>
52 lines
1.3 KiB
SQL
52 lines
1.3 KiB
SQL
INSERT INTO {{ .Ident "secret_secure_value" }} (
|
|
{{ .Ident "guid" }},
|
|
{{ .Ident "name" }},
|
|
{{ .Ident "namespace" }},
|
|
{{ .Ident "annotations" }},
|
|
{{ .Ident "labels" }},
|
|
{{ .Ident "created" }},
|
|
{{ .Ident "created_by" }},
|
|
{{ .Ident "updated" }},
|
|
{{ .Ident "updated_by" }},
|
|
{{ .Ident "status_phase" }},
|
|
{{ if .Row.Message.Valid }}
|
|
{{ .Ident "status_message" }},
|
|
{{ end }}
|
|
{{ .Ident "description" }},
|
|
{{ if .Row.Keeper.Valid }}
|
|
{{ .Ident "keeper" }},
|
|
{{ end }}
|
|
{{ if .Row.Decrypters.Valid }}
|
|
{{ .Ident "decrypters" }},
|
|
{{ end }}
|
|
{{ if .Row.Ref.Valid }}
|
|
{{ .Ident "ref" }},
|
|
{{ end }}
|
|
{{ .Ident "external_id" }}
|
|
) VALUES (
|
|
{{ .Arg .Row.GUID }},
|
|
{{ .Arg .Row.Name }},
|
|
{{ .Arg .Row.Namespace }},
|
|
{{ .Arg .Row.Annotations }},
|
|
{{ .Arg .Row.Labels }},
|
|
{{ .Arg .Row.Created }},
|
|
{{ .Arg .Row.CreatedBy }},
|
|
{{ .Arg .Row.Updated }},
|
|
{{ .Arg .Row.UpdatedBy }},
|
|
{{ .Arg .Row.Phase }},
|
|
{{ if .Row.Message.Valid }}
|
|
{{ .Arg .Row.Message.String }},
|
|
{{ end }}
|
|
{{ .Arg .Row.Description }},
|
|
{{ if .Row.Keeper.Valid }}
|
|
{{ .Arg .Row.Keeper.String }},
|
|
{{ end }}
|
|
{{ if .Row.Decrypters.Valid }}
|
|
{{ .Arg .Row.Decrypters.String }},
|
|
{{ end }}
|
|
{{ if .Row.Ref.Valid }}
|
|
{{ .Arg .Row.Ref.String }},
|
|
{{ end }}
|
|
{{ .Arg .Row.ExternalID }}
|
|
);
|