Rework kms folder structure

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-03-24 15:16:20 +01:00 committed by Daniel Weiße
parent 1f856878e8
commit f8e9c70337
23 changed files with 40 additions and 41 deletions

View File

@ -14,7 +14,7 @@ import (
"github.com/edgelesssys/constellation/coordinator/store"
"github.com/edgelesssys/constellation/coordinator/storewrapper"
"github.com/edgelesssys/constellation/coordinator/util"
"github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/kms"
"go.uber.org/zap"
)

View File

@ -6,11 +6,11 @@ import (
"net/url"
"strconv"
"github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/aws"
"github.com/edgelesssys/constellation/kms/pkg/kms/azure"
"github.com/edgelesssys/constellation/kms/pkg/kms/gcp"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/aws"
"github.com/edgelesssys/constellation/kms/kms/azure"
"github.com/edgelesssys/constellation/kms/kms/gcp"
"github.com/edgelesssys/constellation/kms/storage"
kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"
)

View File

@ -11,10 +11,10 @@ import (
awsconfig "github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/kms"
"github.com/aws/aws-sdk-go-v2/service/kms/types"
"github.com/edgelesssys/constellation/kms/pkg/config"
kmsInterface "github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/util"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
kmsInterface "github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/util"
"github.com/edgelesssys/constellation/kms/storage"
)
const (

View File

@ -15,9 +15,9 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/kms"
"github.com/aws/aws-sdk-go-v2/service/kms/types"
"github.com/edgelesssys/constellation/kms/pkg/config"
kmsInterface "github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
kmsInterface "github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/stretchr/testify/assert"
)

View File

@ -10,10 +10,10 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/util"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
"github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/util"
"github.com/edgelesssys/constellation/kms/storage"
)
const (

View File

@ -12,10 +12,10 @@ import (
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys"
"github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys/crypto"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/util"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
"github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/util"
"github.com/edgelesssys/constellation/kms/storage"
)
// Suffix for HSM Vaults.

View File

@ -11,10 +11,10 @@ import (
"time"
kms "cloud.google.com/go/kms/apiv1"
"github.com/edgelesssys/constellation/kms/pkg/config"
kmsInterface "github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/util"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
kmsInterface "github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/util"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/googleapis/gax-go/v2"
"google.golang.org/api/option"
kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"

View File

@ -8,10 +8,10 @@ import (
"strings"
"testing"
"github.com/edgelesssys/constellation/kms/pkg/config"
kmsInterface "github.com/edgelesssys/constellation/kms/pkg/kms"
"github.com/edgelesssys/constellation/kms/pkg/kms/util"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
kmsInterface "github.com/edgelesssys/constellation/kms/kms"
"github.com/edgelesssys/constellation/kms/kms/util"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/api/option"
@ -191,7 +191,6 @@ func TestGoogleKMS(t *testing.T) {
// load responses
mockKeyManagement.resps = []proto.Message{
&kmspb.CryptoKey{
Name: fmt.Sprintf("projects/%s/locations/%s/keyRings/%s/cryptoKeys/%s", project, location, keyRing, kekName),
},
&kmspb.EncryptResponse{

View File

@ -10,7 +10,7 @@ import (
awsconfig "github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/aws/aws-sdk-go-v2/service/s3/types"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/config"
)
// AWSS3Storage is an implementation of the Storage interface, storing keys in AWS S3 buckets.

View File

@ -9,7 +9,7 @@ import (
"strings"
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/config"
)
// AzureStorage is an implementation of the Storage interface, storing keys in the Azure Blob Store.

View File

@ -14,9 +14,9 @@ import (
"github.com/aws/aws-sdk-go-v2/service/kms"
"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/aws/aws-sdk-go-v2/service/s3/types"
kmsconfig "github.com/edgelesssys/constellation/kms/pkg/config"
awsInterface "github.com/edgelesssys/constellation/kms/pkg/kms/aws"
"github.com/edgelesssys/constellation/kms/pkg/storage"
kmsconfig "github.com/edgelesssys/constellation/kms/config"
awsInterface "github.com/edgelesssys/constellation/kms/kms/aws"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/pkg/kms/azure"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
"github.com/edgelesssys/constellation/kms/kms/azure"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/edgelesssys/constellation/kms/pkg/config"
"github.com/edgelesssys/constellation/kms/pkg/kms/gcp"
"github.com/edgelesssys/constellation/kms/pkg/storage"
"github.com/edgelesssys/constellation/kms/config"
"github.com/edgelesssys/constellation/kms/kms/gcp"
"github.com/edgelesssys/constellation/kms/storage"
"github.com/stretchr/testify/assert"
kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"
)