Files
grafana/pkg/storage/secret/metadata/testdata/postgres--secure_value_create-create-null.sql
Bruno 8283d35e56 Secrets: make operations sync (#107732)
* 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>
2025-07-09 10:43:34 -03:00

30 lines
395 B
SQL
Executable File

INSERT INTO "secret_secure_value" (
"guid",
"name",
"namespace",
"annotations",
"labels",
"created",
"created_by",
"updated",
"updated_by",
"active",
"version",
"description",
"external_id"
) VALUES (
'abc',
'name',
'ns',
'{"x":"XXXX"}',
'{"a":"AAA", "b", "BBBB"}',
1234,
'user:ryan',
5678,
'user:cameron',
FALSE,
1,
'description',
'extId'
);