mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
Rework kms folder structure
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
1f856878e8
commit
f8e9c70337
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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 (
|
@ -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"
|
||||
)
|
||||
|
@ -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 (
|
@ -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.
|
@ -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"
|
@ -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{
|
@ -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.
|
@ -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.
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user