kms: rename kms to keyservice

In the light of extending our eKMS support it will be helpful
to have a tighter use of the word "KMS".
KMS should refer to the actual component that manages keys.
The keyservice, also called KMS in the constellation code,
does not manage keys itself. It talks to a KMS backend,
which in turn does the actual key management.
This commit is contained in:
Otto Bittner 2023-01-11 10:08:57 +01:00
parent 67f8336b9d
commit 90b88e1cf9
101 changed files with 313 additions and 319 deletions

View file

@ -0,0 +1,43 @@
//go:build integration
/*
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
*/
package test
import (
"flag"
"math/rand"
"os"
"testing"
"time"
)
var (
runAwsStorage = flag.Bool("awsStorage", false, "set to run AWS S3 Bucket Storage test")
runAwsKms = flag.Bool("awsKms", false, "set to run AWS KMS test")
azConnectionString = flag.String("azStorageConn", "", "connection string for Azure storage account. Required for Azure storage test.")
runAzStorage = flag.Bool("azStorage", false, "set to run Azure Storage test")
runAzKms = flag.Bool("azKms", false, "set to run Azure KMS test")
runAzHsm = flag.Bool("azHsm", false, "set to run Azure HSM test")
runGcpKms = flag.Bool("gcpKms", false, "set to run Google KMS test")
runGcpStorage = flag.Bool("gcpStorage", false, "set to run Google Storage test")
)
func TestMain(m *testing.M) {
rand.Seed(time.Now().Unix())
flag.Parse()
os.Exit(m.Run())
}
func addSuffix(s string) string {
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
b := make([]rune, 5)
for i := range b {
b[i] = letters[rand.Intn(len(letters))]
}
return s + "-" + string(b)
}