8283d35e56
* Secrets: make operations sync * k8s gen / update query to list secure values to include the version * always store new version of a secret * make update-workspace * go mod tidy * update queries * update queries * improve and use testutils in decrypt_store_test * fix broken test * make update-workspace * ./hack/update-codegen.sh secret * update Test_SecureValueMetadataStorage_CreateAndRead * undo dependency changes * linter: fix remaining errors --------- Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com> Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
47 lines
1.2 KiB
SQL
47 lines
1.2 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 "active" }},
|
|
{{ .Ident "version" }},
|
|
{{ .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.Active }},
|
|
{{ .Arg .Row.Version }},
|
|
{{ .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 }}
|
|
); |