SecretsManager: Add encrypted value store (#106607)

* SecretsManager: add encrypted value store

Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com>
Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com>
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>

* SecretsManager: wiring of encrypted value store

---------

Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com>
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
This commit is contained in:
Dana Axinte
2025-06-12 11:52:01 +01:00
committed by GitHub
co-authored by Leandro Deveikis Matheus Macabu PoorlyDefinedBehaviour
parent 0879479c15
commit c22b4845bb
23 changed files with 583 additions and 1 deletions
@@ -0,0 +1,13 @@
INSERT INTO `secret_encrypted_value` (
`uid`,
`namespace`,
`encrypted_data`,
`created`,
`updated`
) VALUES (
'abc123',
'ns',
'[115 101 99 114 101 116]',
1234,
5678
);
@@ -0,0 +1,4 @@
DELETE FROM `secret_encrypted_value`
WHERE `namespace` = 'ns' AND
`uid` = 'abc123'
;
@@ -0,0 +1,11 @@
SELECT
`uid`,
`namespace`,
`encrypted_data`,
`created`,
`updated`
FROM
`secret_encrypted_value`
WHERE `namespace` = 'ns' AND
`uid` = 'abc123'
;
@@ -0,0 +1,8 @@
UPDATE
`secret_encrypted_value`
SET
`encrypted_data` = '[115 101 99 114 101 116]',
`updated` = 5679
WHERE `namespace` = 'ns' AND
`uid` = 'abc123'
;
@@ -0,0 +1,13 @@
INSERT INTO "secret_encrypted_value" (
"uid",
"namespace",
"encrypted_data",
"created",
"updated"
) VALUES (
'abc123',
'ns',
'[115 101 99 114 101 116]',
1234,
5678
);
@@ -0,0 +1,4 @@
DELETE FROM "secret_encrypted_value"
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;
@@ -0,0 +1,11 @@
SELECT
"uid",
"namespace",
"encrypted_data",
"created",
"updated"
FROM
"secret_encrypted_value"
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;
@@ -0,0 +1,8 @@
UPDATE
"secret_encrypted_value"
SET
"encrypted_data" = '[115 101 99 114 101 116]',
"updated" = 5679
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;
@@ -0,0 +1,13 @@
INSERT INTO "secret_encrypted_value" (
"uid",
"namespace",
"encrypted_data",
"created",
"updated"
) VALUES (
'abc123',
'ns',
'[115 101 99 114 101 116]',
1234,
5678
);
@@ -0,0 +1,4 @@
DELETE FROM "secret_encrypted_value"
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;
@@ -0,0 +1,11 @@
SELECT
"uid",
"namespace",
"encrypted_data",
"created",
"updated"
FROM
"secret_encrypted_value"
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;
@@ -0,0 +1,8 @@
UPDATE
"secret_encrypted_value"
SET
"encrypted_data" = '[115 101 99 114 101 116]',
"updated" = 5679
WHERE "namespace" = 'ns' AND
"uid" = 'abc123'
;