* Secrets: Refactor data_key_id out of the encoded secure value payload (#111852) * everything compiles * tests pass * remove file included by accident * add entry to gitignore * some scaffolding for the migration executor * remove file * implement and test the migration * use xkube.Namespace in our interfaces * add todo * update wire deps * add some logs * fix wire dependency ordering * create tests to validate error conditions during migrations * only run the migration as an MT api server * formatting issues * change detection of secrets running as MT server * add todo * use more specific initializer flags * make secrets playwright tests work * set new properties to true by default * remove developer mode flag * fix unit tests
16 lines
399 B
SQL
16 lines
399 B
SQL
SELECT
|
|
{{ .Ident "namespace" }},
|
|
{{ .Ident "name" }},
|
|
{{ .Ident "version" }},
|
|
{{ .Ident "encrypted_data" }},
|
|
{{ .Ident "data_key_id" }},
|
|
{{ .Ident "created" }},
|
|
{{ .Ident "updated" }}
|
|
FROM
|
|
{{ .Ident "secret_encrypted_value" }}
|
|
WHERE
|
|
{{ .Ident "namespace" }} = {{ .Arg .Namespace }} AND
|
|
{{ .Ident "name" }} = {{ .Arg .Name }} AND
|
|
{{ .Ident "version" }} = {{ .Arg .Version }}
|
|
;
|