Secrets: encryption encryption storage uses versioning (#108036)
* Secrets: delete unused FakeKeeper * Secrets: encrypted value storage stores versions * add version to span * trigger build * remove ineffectual assignment * lint * drop secret_encrypted_value.uid / add name and version columns
This commit is contained in:
@@ -20,7 +20,8 @@ func TestEncryptedValueQueries(t *testing.T) {
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Row: &EncryptedValue{
|
||||
Namespace: "ns",
|
||||
UID: "abc123",
|
||||
Name: "n1",
|
||||
Version: 1,
|
||||
EncryptedData: []byte("secret"),
|
||||
Created: 1234,
|
||||
Updated: 5678,
|
||||
@@ -34,7 +35,8 @@ func TestEncryptedValueQueries(t *testing.T) {
|
||||
Data: &readEncryptedValue{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Namespace: "ns",
|
||||
UID: "abc123",
|
||||
Name: "n1",
|
||||
Version: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -44,7 +46,8 @@ func TestEncryptedValueQueries(t *testing.T) {
|
||||
Data: &updateEncryptedValue{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Namespace: "ns",
|
||||
UID: "abc123",
|
||||
Name: "n1",
|
||||
Version: 1,
|
||||
EncryptedData: []byte("secret"),
|
||||
Updated: 5679,
|
||||
},
|
||||
@@ -56,7 +59,8 @@ func TestEncryptedValueQueries(t *testing.T) {
|
||||
Data: &deleteEncryptedValue{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Namespace: "ns",
|
||||
UID: "abc123",
|
||||
Name: "n1",
|
||||
Version: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user