Skip to content

Commit db1099b

Browse files
authored
Merge pull request #966 from smallstep/mariano/skip-backend
Skip backend property
2 parents 118dfd4 + 187ae6d commit db1099b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

kms/platform/kms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type kmsURI struct {
3535
}
3636

3737
func isDefaultKey(k string) bool {
38-
return k == nameKey || k == hwKey
38+
return k == nameKey || k == hwKey || k == backendKey
3939
}
4040

4141
func getBackend(opts apiv1.Options) (apiv1.Type, error) {

kms/platform/kms_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,9 +1296,8 @@ func Test_parseURI(t *testing.T) {
12961296
name: "foo",
12971297
hw: true,
12981298
extraValues: url.Values{
1299-
"backend": []string{"softkms"},
1300-
"foo": []string{"bar", "qux"},
1301-
"bar": []string{"zar"},
1299+
"foo": []string{"bar", "qux"},
1300+
"bar": []string{"zar"},
13021301
},
13031302
}, assert.NoError},
13041303
{"fail parse", args{"tpmkms:name=foo"}, nil, assert.Error},

0 commit comments

Comments
 (0)