From 22c912a56de66603c4256993292ff22b97d77a7e Mon Sep 17 00:00:00 2001 From: Fabian Kammel Date: Fri, 26 Aug 2022 09:42:40 +0000 Subject: [PATCH] move nodestate and role Signed-off-by: Fabian Kammel --- bootstrapper/cmd/bootstrapper/main.go | 2 +- bootstrapper/cmd/bootstrapper/test.go | 2 +- bootstrapper/internal/initserver/initserver.go | 4 ++-- bootstrapper/internal/joinclient/client.go | 4 ++-- bootstrapper/internal/joinclient/client_test.go | 2 +- bootstrapper/internal/kubernetes/kubernetes.go | 2 +- bootstrapper/internal/kubernetes/kubernetes_test.go | 2 +- cli/internal/gcp/client/instances.go | 2 +- debugd/cmd/debugd/debugd.go | 2 +- .../internal/debugd/metadata/cloudprovider/cloudprovider.go | 2 +- .../debugd/metadata/cloudprovider/cloudprovider_test.go | 2 +- debugd/internal/debugd/metadata/fallback/fallback.go | 2 +- debugd/internal/debugd/metadata/scheduler.go | 2 +- debugd/internal/debugd/metadata/scheduler_test.go | 2 +- hack/qemu-metadata-api/server/server.go | 2 +- internal/cloud/azure/scaleset.go | 2 +- internal/cloud/azure/scaleset_test.go | 2 +- internal/cloud/gcp/client_test.go | 2 +- internal/cloud/gcp/role.go | 2 +- internal/cloud/gcp/role_test.go | 2 +- internal/cloud/metadata/metadata.go | 2 +- {bootstrapper => internal}/nodestate/nodestate.go | 2 +- {bootstrapper => internal}/nodestate/nodestate_test.go | 2 +- {bootstrapper => internal}/role/role.go | 0 {bootstrapper => internal}/role/role_string.go | 0 {bootstrapper => internal}/role/role_test.go | 0 state/internal/keyservice/keyservice_test.go | 2 +- state/internal/setup/setup.go | 2 +- state/internal/setup/setup_test.go | 2 +- state/internal/test/integration_test.go | 2 +- 30 files changed, 29 insertions(+), 29 deletions(-) rename {bootstrapper => internal}/nodestate/nodestate.go (93%) rename {bootstrapper => internal}/nodestate/nodestate_test.go (97%) rename {bootstrapper => internal}/role/role.go (100%) rename {bootstrapper => internal}/role/role_string.go (100%) rename {bootstrapper => internal}/role/role_test.go (100%) diff --git a/bootstrapper/cmd/bootstrapper/main.go b/bootstrapper/cmd/bootstrapper/main.go index 98cb49f26..9c6df56e9 100644 --- a/bootstrapper/cmd/bootstrapper/main.go +++ b/bootstrapper/cmd/bootstrapper/main.go @@ -14,7 +14,6 @@ import ( "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi" "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi/kubectl" "github.com/edgelesssys/constellation/bootstrapper/internal/logging" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/atls" "github.com/edgelesssys/constellation/internal/attestation/azure" "github.com/edgelesssys/constellation/internal/attestation/gcp" @@ -29,6 +28,7 @@ import ( "github.com/edgelesssys/constellation/internal/iproute" "github.com/edgelesssys/constellation/internal/logger" "github.com/edgelesssys/constellation/internal/oid" + "github.com/edgelesssys/constellation/internal/role" "github.com/spf13/afero" "go.uber.org/zap" ) diff --git a/bootstrapper/cmd/bootstrapper/test.go b/bootstrapper/cmd/bootstrapper/test.go index f336b299f..cce46f849 100644 --- a/bootstrapper/cmd/bootstrapper/test.go +++ b/bootstrapper/cmd/bootstrapper/test.go @@ -4,9 +4,9 @@ import ( "context" "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi/resources" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" kubeadm "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3" ) diff --git a/bootstrapper/internal/initserver/initserver.go b/bootstrapper/internal/initserver/initserver.go index 73acdbcd7..5de43df32 100644 --- a/bootstrapper/internal/initserver/initserver.go +++ b/bootstrapper/internal/initserver/initserver.go @@ -10,8 +10,6 @@ import ( "github.com/edgelesssys/constellation/bootstrapper/initproto" "github.com/edgelesssys/constellation/bootstrapper/internal/diskencryption" "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi/resources" - "github.com/edgelesssys/constellation/bootstrapper/nodestate" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/atls" "github.com/edgelesssys/constellation/internal/attestation" "github.com/edgelesssys/constellation/internal/crypto" @@ -19,6 +17,8 @@ import ( "github.com/edgelesssys/constellation/internal/grpc/atlscredentials" "github.com/edgelesssys/constellation/internal/grpc/grpclog" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/nodestate" + "github.com/edgelesssys/constellation/internal/role" "go.uber.org/zap" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/bootstrapper/internal/joinclient/client.go b/bootstrapper/internal/joinclient/client.go index ef5232a6e..5403dcc26 100644 --- a/bootstrapper/internal/joinclient/client.go +++ b/bootstrapper/internal/joinclient/client.go @@ -12,13 +12,13 @@ import ( "github.com/edgelesssys/constellation/bootstrapper/internal/diskencryption" "github.com/edgelesssys/constellation/bootstrapper/internal/kubelet" - "github.com/edgelesssys/constellation/bootstrapper/nodestate" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/attestation" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/constants" "github.com/edgelesssys/constellation/internal/file" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/nodestate" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/joinservice/joinproto" "github.com/spf13/afero" "go.uber.org/zap" diff --git a/bootstrapper/internal/joinclient/client_test.go b/bootstrapper/internal/joinclient/client_test.go index 3a9fe2dd0..7a5b1dd33 100644 --- a/bootstrapper/internal/joinclient/client_test.go +++ b/bootstrapper/internal/joinclient/client_test.go @@ -9,7 +9,6 @@ import ( "testing" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/constants" "github.com/edgelesssys/constellation/internal/file" @@ -17,6 +16,7 @@ import ( "github.com/edgelesssys/constellation/internal/grpc/dialer" "github.com/edgelesssys/constellation/internal/grpc/testdialer" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/joinservice/joinproto" "github.com/spf13/afero" "github.com/stretchr/testify/assert" diff --git a/bootstrapper/internal/kubernetes/kubernetes.go b/bootstrapper/internal/kubernetes/kubernetes.go index 8c1e6770a..319a99887 100644 --- a/bootstrapper/internal/kubernetes/kubernetes.go +++ b/bootstrapper/internal/kubernetes/kubernetes.go @@ -9,12 +9,12 @@ import ( "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi" "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi/resources" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/bootstrapper/util" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/constants" "github.com/edgelesssys/constellation/internal/iproute" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/internal/versions" "github.com/spf13/afero" "go.uber.org/zap" diff --git a/bootstrapper/internal/kubernetes/kubernetes_test.go b/bootstrapper/internal/kubernetes/kubernetes_test.go index e9cb1f328..8d3641a85 100644 --- a/bootstrapper/internal/kubernetes/kubernetes_test.go +++ b/bootstrapper/internal/kubernetes/kubernetes_test.go @@ -10,11 +10,11 @@ import ( "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi" "github.com/edgelesssys/constellation/bootstrapper/internal/kubernetes/k8sapi/resources" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/constants" "github.com/edgelesssys/constellation/internal/kubernetes" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/internal/versions" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/cli/internal/gcp/client/instances.go b/cli/internal/gcp/client/instances.go index 3646c1a17..c57082f03 100644 --- a/cli/internal/gcp/client/instances.go +++ b/cli/internal/gcp/client/instances.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/cloudtypes" "github.com/edgelesssys/constellation/internal/constants" + "github.com/edgelesssys/constellation/internal/role" "google.golang.org/api/iterator" computepb "google.golang.org/genproto/googleapis/cloud/compute/v1" "google.golang.org/protobuf/proto" diff --git a/debugd/cmd/debugd/debugd.go b/debugd/cmd/debugd/debugd.go index 6d469777f..4bb7ef149 100644 --- a/debugd/cmd/debugd/debugd.go +++ b/debugd/cmd/debugd/debugd.go @@ -8,7 +8,6 @@ import ( "os" "sync" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/debugd/internal/bootstrapper" "github.com/edgelesssys/constellation/debugd/internal/debugd/deploy" "github.com/edgelesssys/constellation/debugd/internal/debugd/metadata" @@ -20,6 +19,7 @@ import ( "github.com/edgelesssys/constellation/internal/deploy/user" "github.com/edgelesssys/constellation/internal/iproute" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "github.com/spf13/afero" ) diff --git a/debugd/internal/debugd/metadata/cloudprovider/cloudprovider.go b/debugd/internal/debugd/metadata/cloudprovider/cloudprovider.go index 7542fd00c..d96388f6d 100644 --- a/debugd/internal/debugd/metadata/cloudprovider/cloudprovider.go +++ b/debugd/internal/debugd/metadata/cloudprovider/cloudprovider.go @@ -5,12 +5,12 @@ import ( "fmt" "net" - "github.com/edgelesssys/constellation/bootstrapper/role" azurecloud "github.com/edgelesssys/constellation/internal/cloud/azure" gcpcloud "github.com/edgelesssys/constellation/internal/cloud/gcp" "github.com/edgelesssys/constellation/internal/cloud/metadata" qemucloud "github.com/edgelesssys/constellation/internal/cloud/qemu" "github.com/edgelesssys/constellation/internal/deploy/ssh" + "github.com/edgelesssys/constellation/internal/role" ) type providerMetadata interface { diff --git a/debugd/internal/debugd/metadata/cloudprovider/cloudprovider_test.go b/debugd/internal/debugd/metadata/cloudprovider/cloudprovider_test.go index b4173a290..9a31c5492 100644 --- a/debugd/internal/debugd/metadata/cloudprovider/cloudprovider_test.go +++ b/debugd/internal/debugd/metadata/cloudprovider/cloudprovider_test.go @@ -5,9 +5,9 @@ import ( "errors" "testing" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/deploy/ssh" + "github.com/edgelesssys/constellation/internal/role" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/goleak" diff --git a/debugd/internal/debugd/metadata/fallback/fallback.go b/debugd/internal/debugd/metadata/fallback/fallback.go index 4ed253e63..5bad2ae98 100644 --- a/debugd/internal/debugd/metadata/fallback/fallback.go +++ b/debugd/internal/debugd/metadata/fallback/fallback.go @@ -3,8 +3,8 @@ package fallback import ( "context" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/deploy/ssh" + "github.com/edgelesssys/constellation/internal/role" ) // Fetcher implements metadata.Fetcher interface but does not actually fetch cloud provider metadata. diff --git a/debugd/internal/debugd/metadata/scheduler.go b/debugd/internal/debugd/metadata/scheduler.go index a9ba65445..00f8748e1 100644 --- a/debugd/internal/debugd/metadata/scheduler.go +++ b/debugd/internal/debugd/metadata/scheduler.go @@ -7,10 +7,10 @@ import ( "sync" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/debugd/internal/debugd" "github.com/edgelesssys/constellation/internal/deploy/ssh" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "go.uber.org/zap" ) diff --git a/debugd/internal/debugd/metadata/scheduler_test.go b/debugd/internal/debugd/metadata/scheduler_test.go index 6c777dd26..98fcdc8a4 100644 --- a/debugd/internal/debugd/metadata/scheduler_test.go +++ b/debugd/internal/debugd/metadata/scheduler_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/deploy/ssh" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "github.com/stretchr/testify/assert" "go.uber.org/goleak" ) diff --git a/hack/qemu-metadata-api/server/server.go b/hack/qemu-metadata-api/server/server.go index 0de4b3bc4..c5b208c63 100644 --- a/hack/qemu-metadata-api/server/server.go +++ b/hack/qemu-metadata-api/server/server.go @@ -9,11 +9,11 @@ import ( "net/http" "strings" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/hack/qemu-metadata-api/virtwrapper" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/file" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/role" "go.uber.org/zap" ) diff --git a/internal/cloud/azure/scaleset.go b/internal/cloud/azure/scaleset.go index 1c2cc67df..a7b03093c 100644 --- a/internal/cloud/azure/scaleset.go +++ b/internal/cloud/azure/scaleset.go @@ -8,9 +8,9 @@ import ( armcomputev2 "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v2" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/azureshared" "github.com/edgelesssys/constellation/internal/cloud/metadata" + "github.com/edgelesssys/constellation/internal/role" ) var ( diff --git a/internal/cloud/azure/scaleset_test.go b/internal/cloud/azure/scaleset_test.go index 245304d38..3c2fb93cc 100644 --- a/internal/cloud/azure/scaleset_test.go +++ b/internal/cloud/azure/scaleset_test.go @@ -8,8 +8,8 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" armcomputev2 "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v2" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" + "github.com/edgelesssys/constellation/internal/role" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/cloud/gcp/client_test.go b/internal/cloud/gcp/client_test.go index d7ca5012c..60da5df3b 100644 --- a/internal/cloud/gcp/client_test.go +++ b/internal/cloud/gcp/client_test.go @@ -6,8 +6,8 @@ import ( "testing" compute "cloud.google.com/go/compute/apiv1" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/cloud/metadata" + "github.com/edgelesssys/constellation/internal/role" gax "github.com/googleapis/gax-go/v2" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/cloud/gcp/role.go b/internal/cloud/gcp/role.go index 1c020c38f..e43ffa11f 100644 --- a/internal/cloud/gcp/role.go +++ b/internal/cloud/gcp/role.go @@ -1,7 +1,7 @@ package gcp import ( - "github.com/edgelesssys/constellation/bootstrapper/role" + "github.com/edgelesssys/constellation/internal/role" ) const roleMetadataKey = "constellation-role" diff --git a/internal/cloud/gcp/role_test.go b/internal/cloud/gcp/role_test.go index 4c42ccd4d..7aece5442 100644 --- a/internal/cloud/gcp/role_test.go +++ b/internal/cloud/gcp/role_test.go @@ -3,7 +3,7 @@ package gcp import ( "testing" - "github.com/edgelesssys/constellation/bootstrapper/role" + "github.com/edgelesssys/constellation/internal/role" "github.com/stretchr/testify/assert" ) diff --git a/internal/cloud/metadata/metadata.go b/internal/cloud/metadata/metadata.go index f19229b8f..dfdcdffd1 100644 --- a/internal/cloud/metadata/metadata.go +++ b/internal/cloud/metadata/metadata.go @@ -6,8 +6,8 @@ import ( "net" "strconv" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/constants" + "github.com/edgelesssys/constellation/internal/role" ) // InstanceMetadata describes metadata of a peer. diff --git a/bootstrapper/nodestate/nodestate.go b/internal/nodestate/nodestate.go similarity index 93% rename from bootstrapper/nodestate/nodestate.go rename to internal/nodestate/nodestate.go index 1cde08b9d..965b7ef57 100644 --- a/bootstrapper/nodestate/nodestate.go +++ b/internal/nodestate/nodestate.go @@ -3,8 +3,8 @@ package nodestate import ( "fmt" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/file" + "github.com/edgelesssys/constellation/internal/role" ) const nodeStatePath = "/run/state/constellation/node_state.json" diff --git a/bootstrapper/nodestate/nodestate_test.go b/internal/nodestate/nodestate_test.go similarity index 97% rename from bootstrapper/nodestate/nodestate_test.go rename to internal/nodestate/nodestate_test.go index 6703e69ad..a7b90ac94 100644 --- a/bootstrapper/nodestate/nodestate_test.go +++ b/internal/nodestate/nodestate_test.go @@ -4,8 +4,8 @@ import ( "path/filepath" "testing" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/file" + "github.com/edgelesssys/constellation/internal/role" "github.com/spf13/afero" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/bootstrapper/role/role.go b/internal/role/role.go similarity index 100% rename from bootstrapper/role/role.go rename to internal/role/role.go diff --git a/bootstrapper/role/role_string.go b/internal/role/role_string.go similarity index 100% rename from bootstrapper/role/role_string.go rename to internal/role/role_string.go diff --git a/bootstrapper/role/role_test.go b/internal/role/role_test.go similarity index 100% rename from bootstrapper/role/role_test.go rename to internal/role/role_test.go diff --git a/state/internal/keyservice/keyservice_test.go b/state/internal/keyservice/keyservice_test.go index 50de66a3e..9b28b0df7 100644 --- a/state/internal/keyservice/keyservice_test.go +++ b/state/internal/keyservice/keyservice_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/atls" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/grpc/atlscredentials" "github.com/edgelesssys/constellation/internal/logger" "github.com/edgelesssys/constellation/internal/oid" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/joinservice/joinproto" "github.com/edgelesssys/constellation/state/keyproto" "github.com/stretchr/testify/assert" diff --git a/state/internal/setup/setup.go b/state/internal/setup/setup.go index 7ca56cab4..5cb60a505 100644 --- a/state/internal/setup/setup.go +++ b/state/internal/setup/setup.go @@ -9,13 +9,13 @@ import ( "strconv" "syscall" - "github.com/edgelesssys/constellation/bootstrapper/nodestate" "github.com/edgelesssys/constellation/internal/attestation" "github.com/edgelesssys/constellation/internal/attestation/vtpm" "github.com/edgelesssys/constellation/internal/constants" "github.com/edgelesssys/constellation/internal/crypto" "github.com/edgelesssys/constellation/internal/file" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/nodestate" "github.com/edgelesssys/constellation/state/internal/systemd" "github.com/spf13/afero" "go.uber.org/zap" diff --git a/state/internal/setup/setup_test.go b/state/internal/setup/setup_test.go index 51aa0b723..f3b0bacfd 100644 --- a/state/internal/setup/setup_test.go +++ b/state/internal/setup/setup_test.go @@ -7,11 +7,11 @@ import ( "path/filepath" "testing" - "github.com/edgelesssys/constellation/bootstrapper/nodestate" "github.com/edgelesssys/constellation/internal/attestation/vtpm" "github.com/edgelesssys/constellation/internal/crypto" "github.com/edgelesssys/constellation/internal/file" "github.com/edgelesssys/constellation/internal/logger" + "github.com/edgelesssys/constellation/internal/nodestate" "github.com/spf13/afero" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/state/internal/test/integration_test.go b/state/internal/test/integration_test.go index 2b2987f4b..e49ec1560 100644 --- a/state/internal/test/integration_test.go +++ b/state/internal/test/integration_test.go @@ -12,12 +12,12 @@ import ( "testing" "time" - "github.com/edgelesssys/constellation/bootstrapper/role" "github.com/edgelesssys/constellation/internal/atls" "github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/grpc/atlscredentials" "github.com/edgelesssys/constellation/internal/logger" "github.com/edgelesssys/constellation/internal/oid" + "github.com/edgelesssys/constellation/internal/role" "github.com/edgelesssys/constellation/state/internal/keyservice" "github.com/edgelesssys/constellation/state/internal/mapper" "github.com/edgelesssys/constellation/state/keyproto"