0d67442f1a
* Secrets manager: create secure value using the active keeper * SecureValueService.Update: fetch secure value from db to get the keeper * fix keeper_store_test.go * SecureValueService: fix bug in update where the current version keeper wasn't being passed to the createNewVersion method * make gofmt * remove outdated test * update TestModel * undo enterprise_imports changes * use xkube.Namespace * migrator: set secret_secure_value.keeper to 'system' when the column is null * indent cue * fix tests * fix enterprise imports * properly fix enterprise imports * make update-workspace * go mod tidy --------- Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
21 lines
463 B
SQL
21 lines
463 B
SQL
SELECT
|
|
{{ .Ident "guid" }},
|
|
{{ .Ident "name" }},
|
|
{{ .Ident "namespace" }},
|
|
{{ .Ident "annotations" }},
|
|
{{ .Ident "labels" }},
|
|
{{ .Ident "created" }},
|
|
{{ .Ident "created_by" }},
|
|
{{ .Ident "updated" }},
|
|
{{ .Ident "updated_by" }},
|
|
{{ .Ident "description" }},
|
|
{{ .Ident "type" }},
|
|
{{ .Ident "payload" }}
|
|
FROM
|
|
{{ .Ident "secret_keeper" }}
|
|
WHERE
|
|
{{ .Ident "namespace" }} = {{ .Arg .Namespace }} AND
|
|
{{ .Ident "active" }} = true
|
|
LIMIT 1
|
|
;
|