From 373484aaef28cdc5f27ff6c502d9433695b1d387 Mon Sep 17 00:00:00 2001 From: MoeMahhouk Date: Wed, 2 Oct 2024 16:22:41 +0000 Subject: [PATCH] chore: Refactor the module paths to improve build --- cmd/proxy-client/main.go | 6 ++--- cmd/proxy-server/main.go | 6 ++--- go.mod | 2 +- .../attestationconfigapi/cli/client/client.go | 10 +++---- .../cli/client/client_test.go | 2 +- .../cli/client/reporter.go | 6 ++--- .../cli/client/reporter_test.go | 2 +- .../api/attestationconfigapi/cli/compare.go | 8 +++--- .../api/attestationconfigapi/cli/delete.go | 10 +++---- internal/api/attestationconfigapi/cli/main.go | 2 +- .../api/attestationconfigapi/cli/upload.go | 16 ++++++------ .../api/attestationconfigapi/cli/validargs.go | 2 +- internal/api/attestationconfigapi/fetcher.go | 8 +++--- .../api/attestationconfigapi/fetcher_test.go | 4 +-- internal/api/attestationconfigapi/version.go | 2 +- .../api/attestationconfigapi/version_test.go | 2 +- internal/api/client/client.go | 4 +-- internal/api/fetcher/fetcher.go | 2 +- internal/api/versionsapi/cli/add.go | 6 ++--- internal/api/versionsapi/cli/latest.go | 4 +-- internal/api/versionsapi/cli/list.go | 6 ++--- internal/api/versionsapi/cli/main.go | 2 +- internal/api/versionsapi/cli/rm.go | 6 ++--- internal/api/versionsapi/client.go | 4 +-- internal/api/versionsapi/cliinfo.go | 2 +- internal/api/versionsapi/cliinfo_test.go | 2 +- internal/api/versionsapi/fetcher.go | 4 +-- internal/api/versionsapi/fetcher_test.go | 2 +- internal/api/versionsapi/imageinfo.go | 2 +- internal/api/versionsapi/imageinfo_test.go | 2 +- internal/api/versionsapi/latest.go | 2 +- internal/api/versionsapi/latest_test.go | 2 +- internal/api/versionsapi/list.go | 2 +- internal/api/versionsapi/list_test.go | 2 +- internal/api/versionsapi/version.go | 2 +- internal/api/versionsapi/version_test.go | 4 +-- internal/atls/atls.go | 4 +-- internal/atls/atls_test.go | 2 +- internal/attestation/attestation.go | 2 +- internal/attestation/attestation_test.go | 2 +- internal/attestation/aws/nitrotpm/issuer.go | 6 ++--- .../attestation/aws/nitrotpm/issuer_test.go | 2 +- .../attestation/aws/nitrotpm/validator.go | 8 +++--- .../aws/nitrotpm/validator_test.go | 2 +- internal/attestation/aws/snp/issuer.go | 8 +++--- internal/attestation/aws/snp/issuer_test.go | 2 +- internal/attestation/aws/snp/validator.go | 10 +++---- .../attestation/aws/snp/validator_test.go | 12 ++++----- internal/attestation/azure/azure_test.go | 4 +-- internal/attestation/azure/snp/imds.go | 2 +- internal/attestation/azure/snp/issuer.go | 10 +++---- internal/attestation/azure/snp/issuer_test.go | 2 +- internal/attestation/azure/snp/validator.go | 14 +++++----- .../attestation/azure/snp/validator_test.go | 14 +++++----- internal/attestation/azure/tdx/issuer.go | 8 +++--- internal/attestation/azure/tdx/issuer_test.go | 2 +- internal/attestation/azure/tdx/validator.go | 10 +++---- .../attestation/azure/trustedlaunch/issuer.go | 6 ++--- .../azure/trustedlaunch/trustedlaunch_test.go | 12 ++++----- .../azure/trustedlaunch/validator.go | 10 +++---- internal/attestation/choose/choose.go | 26 +++++++++---------- internal/attestation/choose/choose_test.go | 6 ++--- internal/attestation/gcp/es/issuer.go | 8 +++--- internal/attestation/gcp/es/issuer_test.go | 2 +- internal/attestation/gcp/es/validator.go | 10 +++---- internal/attestation/gcp/es/validator_test.go | 6 ++--- internal/attestation/gcp/restclient.go | 6 ++--- internal/attestation/gcp/snp/issuer.go | 10 +++---- internal/attestation/gcp/snp/validator.go | 12 ++++----- internal/attestation/initialize/initialize.go | 4 +-- .../attestation/initialize/initialize_test.go | 4 +-- .../measurements/fetchmeasurements.go | 10 +++---- .../measurements/fetchmeasurements_test.go | 6 ++--- .../measurement-generator/generate.go | 14 +++++----- .../attestation/measurements/measurements.go | 6 ++--- .../measurements/measurements_test.go | 8 +++--- .../attestation/measurements/overrides.go | 4 +-- internal/attestation/qemu/issuer.go | 6 ++--- internal/attestation/qemu/validator.go | 8 +++--- internal/attestation/snp/snp.go | 2 +- internal/attestation/snp/snp_test.go | 6 ++--- internal/attestation/tdx/issuer.go | 4 +-- internal/attestation/tdx/tdx.go | 2 +- internal/attestation/tdx/validator.go | 8 +++--- internal/attestation/variant/variant.go | 2 +- internal/attestation/vtpm/attestation.go | 4 +-- internal/attestation/vtpm/attestation_test.go | 10 +++---- internal/cloud/aws/aws.go | 8 +++--- internal/cloud/aws/aws_test.go | 6 ++--- internal/cloud/azure/azure.go | 10 +++---- internal/cloud/azure/azure_test.go | 6 ++--- internal/cloud/azure/imds.go | 4 +-- internal/cloud/azure/imds_test.go | 4 +-- internal/cloud/azure/iptables_linux.go | 2 +- internal/cloud/gcp/gcp.go | 8 +++--- internal/cloud/gcp/gcp_test.go | 6 ++--- internal/cloud/metadata/metadata.go | 2 +- internal/cloud/openstack/api.go | 2 +- internal/cloud/openstack/api_test.go | 2 +- internal/cloud/openstack/clouds/read.go | 2 +- internal/cloud/openstack/imds.go | 4 +-- internal/cloud/openstack/imds_test.go | 2 +- internal/cloud/openstack/openstack.go | 6 ++--- internal/cloud/openstack/openstack_test.go | 4 +-- internal/cloud/qemu/qemu.go | 4 +-- internal/config/attestation.go | 4 +-- internal/config/attestation_test.go | 6 ++--- internal/config/attestationversion.go | 2 +- internal/config/attestationversion_test.go | 2 +- internal/config/aws.go | 8 +++--- internal/config/azure.go | 12 ++++----- internal/config/config.go | 24 ++++++++--------- internal/config/config_test.go | 18 ++++++------- internal/config/gcp.go | 8 +++--- internal/config/imageversion/imageversion.go | 2 +- internal/config/migration/migration.go | 14 +++++----- internal/config/validation.go | 22 ++++++++-------- internal/config/validation_test.go | 2 +- internal/constants/constants.go | 2 +- internal/crypto/crypto_test.go | 2 +- internal/file/file_test.go | 2 +- .../grpc/atlscredentials/atlscredentials.go | 2 +- .../atlscredentials/atlscredentials_test.go | 2 +- internal/grpc/dialer/dialer.go | 4 +-- internal/grpc/dialer/dialer_test.go | 8 +++--- internal/imagefetcher/imagefetcher.go | 12 ++++----- internal/imagefetcher/imagefetcher_test.go | 8 +++--- internal/installer/installer.go | 4 +-- internal/installer/installer_test.go | 2 +- internal/kms/kms/aws/aws.go | 6 ++--- internal/kms/kms/azure/azure.go | 6 ++--- internal/kms/kms/cluster/cluster.go | 2 +- internal/kms/kms/cluster/cluster_test.go | 2 +- internal/kms/kms/gcp/gcp.go | 6 ++--- internal/kms/kms/internal/internal.go | 6 ++--- internal/kms/kms/internal/internal_test.go | 2 +- internal/kms/setup/setup.go | 18 ++++++------- internal/kms/setup/setup_test.go | 2 +- internal/kms/storage/awss3/awss3.go | 6 ++--- internal/kms/storage/awss3/awss3_test.go | 2 +- internal/kms/storage/azureblob/azureblob.go | 6 ++--- .../kms/storage/azureblob/azureblob_test.go | 2 +- internal/kms/storage/gcs/gcs.go | 4 +-- internal/kms/storage/gcs/gcs_test.go | 2 +- internal/kms/storage/memfs/memfs.go | 2 +- internal/kms/storage/memfs/memfs_test.go | 2 +- internal/kms/test/aws_test.go | 8 +++--- internal/kms/test/azure_test.go | 8 +++--- internal/kms/test/gcp_test.go | 8 +++--- internal/kms/test/integration_test.go | 6 ++--- internal/kubernetes/configmaps.go | 4 +-- internal/license/checker_enterprise.go | 2 +- internal/license/checker_enterprise_test.go | 2 +- internal/license/checker_oss.go | 2 +- .../integration/license_integration_test.go | 4 +-- internal/mpimage/uri.go | 6 ++--- internal/nodestate/nodestate.go | 4 +-- internal/nodestate/nodestate_test.go | 4 +-- internal/osimage/archive/archive.go | 6 ++--- internal/osimage/imageinfo/imageinfo.go | 6 ++--- .../measurementsuploader.go | 8 +++--- internal/osimage/nop/nop.go | 4 +-- internal/osimage/osimage.go | 4 +-- internal/osimage/uplosi/uplosiupload.go | 6 ++--- internal/semver/semver.go | 2 +- internal/sigstore/keyselect/keyselect.go | 4 +-- internal/staticupload/staticupload.go | 2 +- internal/staticupload/staticupload_test.go | 2 +- internal/verify/verify.go | 4 +-- internal/verify/verify_test.go | 4 +-- internal/versions/versions.go | 6 ++--- proxy/atls_config.go | 10 +++---- proxy/mutli_validator.go | 2 +- proxy/proxy.go | 4 +-- 174 files changed, 480 insertions(+), 480 deletions(-) diff --git a/cmd/proxy-client/main.go b/cmd/proxy-client/main.go index b01eb4b..df6ae10 100644 --- a/cmd/proxy-client/main.go +++ b/cmd/proxy-client/main.go @@ -5,9 +5,9 @@ import ( "net/http" "os" - "cvm-reverse-proxy/common" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/proxy" + "github.com/flashbots/cvm-reverse-proxy/common" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/proxy" "github.com/urfave/cli/v2" // imports as package "cli" ) diff --git a/cmd/proxy-server/main.go b/cmd/proxy-server/main.go index 380bec1..09af710 100644 --- a/cmd/proxy-server/main.go +++ b/cmd/proxy-server/main.go @@ -10,9 +10,9 @@ import ( "syscall" "time" - "cvm-reverse-proxy/common" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/proxy" + "github.com/flashbots/cvm-reverse-proxy/common" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/proxy" "github.com/urfave/cli/v2" // imports as package "cli" ) diff --git a/go.mod b/go.mod index 34c8136..206f36a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module cvm-reverse-proxy +module github.com/flashbots/cvm-reverse-proxy go 1.22.4 diff --git a/internal/api/attestationconfigapi/cli/client/client.go b/internal/api/attestationconfigapi/cli/client/client.go index 27b1d7a..9542eab 100644 --- a/internal/api/attestationconfigapi/cli/client/client.go +++ b/internal/api/attestationconfigapi/cli/client/client.go @@ -18,15 +18,15 @@ import ( "path" "strings" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - apiclient "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + apiclient "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go/aws" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" ) // VersionFormat is the format of the version name in the S3 bucket. diff --git a/internal/api/attestationconfigapi/cli/client/client_test.go b/internal/api/attestationconfigapi/cli/client/client_test.go index 6009308..79116e0 100644 --- a/internal/api/attestationconfigapi/cli/client/client_test.go +++ b/internal/api/attestationconfigapi/cli/client/client_test.go @@ -8,7 +8,7 @@ package client import ( "testing" - "cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/attestationconfigapi/cli/client/reporter.go b/internal/api/attestationconfigapi/cli/client/reporter.go index 34a16e2..5c273f0 100644 --- a/internal/api/attestationconfigapi/cli/client/reporter.go +++ b/internal/api/attestationconfigapi/cli/client/reporter.go @@ -16,9 +16,9 @@ import ( "strings" "time" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" ) // cachedVersionsSubDir is the subdirectory in the bucket where the cached versions are stored. diff --git a/internal/api/attestationconfigapi/cli/client/reporter_test.go b/internal/api/attestationconfigapi/cli/client/reporter_test.go index 87fb23e..a7dcd73 100644 --- a/internal/api/attestationconfigapi/cli/client/reporter_test.go +++ b/internal/api/attestationconfigapi/cli/client/reporter_test.go @@ -7,7 +7,7 @@ package client import ( "testing" - "cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/attestationconfigapi/cli/compare.go b/internal/api/attestationconfigapi/cli/compare.go index e82edc0..8c72201 100644 --- a/internal/api/attestationconfigapi/cli/compare.go +++ b/internal/api/attestationconfigapi/cli/compare.go @@ -10,10 +10,10 @@ import ( "os" "slices" - "cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/verify" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/verify" "github.com/google/go-tdx-guest/proto/tdx" "github.com/spf13/afero" diff --git a/internal/api/attestationconfigapi/cli/delete.go b/internal/api/attestationconfigapi/cli/delete.go index 66762fb..b6886a9 100644 --- a/internal/api/attestationconfigapi/cli/delete.go +++ b/internal/api/attestationconfigapi/cli/delete.go @@ -12,11 +12,11 @@ import ( "log/slog" "path" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/logger" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/api/attestationconfigapi/cli/main.go b/internal/api/attestationconfigapi/cli/main.go index 80703c3..cda377a 100644 --- a/internal/api/attestationconfigapi/cli/main.go +++ b/internal/api/attestationconfigapi/cli/main.go @@ -17,7 +17,7 @@ package main import ( "os" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/spf13/cobra" ) diff --git a/internal/api/attestationconfigapi/cli/upload.go b/internal/api/attestationconfigapi/cli/upload.go index 2b852be..23625d9 100644 --- a/internal/api/attestationconfigapi/cli/upload.go +++ b/internal/api/attestationconfigapi/cli/upload.go @@ -14,14 +14,14 @@ import ( "os" "time" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" - "cvm-reverse-proxy/internal/api/fetcher" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/logger" - "cvm-reverse-proxy/internal/staticupload" - "cvm-reverse-proxy/internal/verify" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi/cli/client" + "github.com/flashbots/cvm-reverse-proxy/internal/api/fetcher" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/verify" "github.com/google/go-tdx-guest/proto/tdx" "github.com/spf13/afero" diff --git a/internal/api/attestationconfigapi/cli/validargs.go b/internal/api/attestationconfigapi/cli/validargs.go index c6f9c61..c42c0dc 100644 --- a/internal/api/attestationconfigapi/cli/validargs.go +++ b/internal/api/attestationconfigapi/cli/validargs.go @@ -11,7 +11,7 @@ import ( "fmt" "strings" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" "github.com/spf13/cobra" ) diff --git a/internal/api/attestationconfigapi/fetcher.go b/internal/api/attestationconfigapi/fetcher.go index a891580..8f7bbde 100644 --- a/internal/api/attestationconfigapi/fetcher.go +++ b/internal/api/attestationconfigapi/fetcher.go @@ -10,10 +10,10 @@ import ( "context" "fmt" - apifetcher "cvm-reverse-proxy/internal/api/fetcher" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/sigstore" + apifetcher "github.com/flashbots/cvm-reverse-proxy/internal/api/fetcher" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" ) const cosignPublicKey = constants.CosignPublicKeyReleases diff --git a/internal/api/attestationconfigapi/fetcher_test.go b/internal/api/attestationconfigapi/fetcher_test.go index b8e29a7..bc89f31 100644 --- a/internal/api/attestationconfigapi/fetcher_test.go +++ b/internal/api/attestationconfigapi/fetcher_test.go @@ -16,8 +16,8 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/attestationconfigapi/version.go b/internal/api/attestationconfigapi/version.go index ed3cbe5..dd72be9 100644 --- a/internal/api/attestationconfigapi/version.go +++ b/internal/api/attestationconfigapi/version.go @@ -13,7 +13,7 @@ import ( "sort" "strings" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" ) // AttestationURLPath is the URL path to the attestation versions. diff --git a/internal/api/attestationconfigapi/version_test.go b/internal/api/attestationconfigapi/version_test.go index 7285984..7cc2c43 100644 --- a/internal/api/attestationconfigapi/version_test.go +++ b/internal/api/attestationconfigapi/version_test.go @@ -9,7 +9,7 @@ package attestationconfigapi import ( "testing" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/api/client/client.go b/internal/api/client/client.go index 38e5a8c..67a8f54 100644 --- a/internal/api/client/client.go +++ b/internal/api/client/client.go @@ -37,8 +37,8 @@ import ( "strings" "time" - "cvm-reverse-proxy/internal/sigstore" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/api/fetcher/fetcher.go b/internal/api/fetcher/fetcher.go index 5a63ff1..f670ba1 100644 --- a/internal/api/fetcher/fetcher.go +++ b/internal/api/fetcher/fetcher.go @@ -25,7 +25,7 @@ import ( "net/http" "net/url" - "cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" ) // NewHTTPClient returns a new http client. diff --git a/internal/api/versionsapi/cli/add.go b/internal/api/versionsapi/cli/add.go index 56396df..2c737ad 100644 --- a/internal/api/versionsapi/cli/add.go +++ b/internal/api/versionsapi/cli/add.go @@ -12,9 +12,9 @@ import ( "fmt" "log/slog" - apiclient "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/logger" + apiclient "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/spf13/cobra" "golang.org/x/mod/semver" diff --git a/internal/api/versionsapi/cli/latest.go b/internal/api/versionsapi/cli/latest.go index 92a1943..403f97a 100644 --- a/internal/api/versionsapi/cli/latest.go +++ b/internal/api/versionsapi/cli/latest.go @@ -12,8 +12,8 @@ import ( "fmt" "log/slog" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/spf13/cobra" ) diff --git a/internal/api/versionsapi/cli/list.go b/internal/api/versionsapi/cli/list.go index 97512a7..ed963b8 100644 --- a/internal/api/versionsapi/cli/list.go +++ b/internal/api/versionsapi/cli/list.go @@ -16,9 +16,9 @@ import ( "github.com/spf13/cobra" "golang.org/x/mod/semver" - apiclient "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/logger" + apiclient "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" ) func newListCmd() *cobra.Command { diff --git a/internal/api/versionsapi/cli/main.go b/internal/api/versionsapi/cli/main.go index d021018..acb7286 100644 --- a/internal/api/versionsapi/cli/main.go +++ b/internal/api/versionsapi/cli/main.go @@ -23,7 +23,7 @@ import ( "os" "os/signal" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/spf13/cobra" ) diff --git a/internal/api/versionsapi/cli/rm.go b/internal/api/versionsapi/cli/rm.go index 116c2fb..c62884a 100644 --- a/internal/api/versionsapi/cli/rm.go +++ b/internal/api/versionsapi/cli/rm.go @@ -17,9 +17,9 @@ import ( "strings" "time" - apiclient "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/logger" + apiclient "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" compute "cloud.google.com/go/compute/apiv1" "cloud.google.com/go/compute/apiv1/computepb" diff --git a/internal/api/versionsapi/client.go b/internal/api/versionsapi/client.go index 100960a..e12c8b6 100644 --- a/internal/api/versionsapi/client.go +++ b/internal/api/versionsapi/client.go @@ -15,8 +15,8 @@ import ( "golang.org/x/mod/semver" - apiclient "cvm-reverse-proxy/internal/api/client" - "cvm-reverse-proxy/internal/constants" + apiclient "github.com/flashbots/cvm-reverse-proxy/internal/api/client" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) // Client is a client for the versions API. diff --git a/internal/api/versionsapi/cliinfo.go b/internal/api/versionsapi/cliinfo.go index 9c2f364..05ffefd 100644 --- a/internal/api/versionsapi/cliinfo.go +++ b/internal/api/versionsapi/cliinfo.go @@ -12,7 +12,7 @@ import ( "net/url" "path" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "golang.org/x/mod/semver" ) diff --git a/internal/api/versionsapi/cliinfo_test.go b/internal/api/versionsapi/cliinfo_test.go index d810943..fc6213d 100644 --- a/internal/api/versionsapi/cliinfo_test.go +++ b/internal/api/versionsapi/cliinfo_test.go @@ -9,7 +9,7 @@ package versionsapi import ( "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/versionsapi/fetcher.go b/internal/api/versionsapi/fetcher.go index c516abf..f7db950 100644 --- a/internal/api/versionsapi/fetcher.go +++ b/internal/api/versionsapi/fetcher.go @@ -9,8 +9,8 @@ package versionsapi import ( "context" - "cvm-reverse-proxy/internal/api/fetcher" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/api/fetcher" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) // Fetcher fetches version API resources without authentication. diff --git a/internal/api/versionsapi/fetcher_test.go b/internal/api/versionsapi/fetcher_test.go index ff8cbd3..3a3625a 100644 --- a/internal/api/versionsapi/fetcher_test.go +++ b/internal/api/versionsapi/fetcher_test.go @@ -14,7 +14,7 @@ import ( "net/http" "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/api/versionsapi/imageinfo.go b/internal/api/versionsapi/imageinfo.go index 9e801a4..a036e44 100644 --- a/internal/api/versionsapi/imageinfo.go +++ b/internal/api/versionsapi/imageinfo.go @@ -13,7 +13,7 @@ import ( "path" "sort" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "golang.org/x/mod/semver" ) diff --git a/internal/api/versionsapi/imageinfo_test.go b/internal/api/versionsapi/imageinfo_test.go index 93aef39..6bfbae5 100644 --- a/internal/api/versionsapi/imageinfo_test.go +++ b/internal/api/versionsapi/imageinfo_test.go @@ -9,7 +9,7 @@ package versionsapi import ( "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/versionsapi/latest.go b/internal/api/versionsapi/latest.go index ba8bb5d..d1eec99 100644 --- a/internal/api/versionsapi/latest.go +++ b/internal/api/versionsapi/latest.go @@ -12,7 +12,7 @@ import ( "net/url" "path" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "golang.org/x/mod/semver" ) diff --git a/internal/api/versionsapi/latest_test.go b/internal/api/versionsapi/latest_test.go index 698eae9..3f8e30b 100644 --- a/internal/api/versionsapi/latest_test.go +++ b/internal/api/versionsapi/latest_test.go @@ -9,7 +9,7 @@ package versionsapi import ( "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" ) diff --git a/internal/api/versionsapi/list.go b/internal/api/versionsapi/list.go index 9875003..abc03d7 100644 --- a/internal/api/versionsapi/list.go +++ b/internal/api/versionsapi/list.go @@ -12,7 +12,7 @@ import ( "net/url" "path" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "golang.org/x/mod/semver" ) diff --git a/internal/api/versionsapi/list_test.go b/internal/api/versionsapi/list_test.go index 40c8b54..e6d321d 100644 --- a/internal/api/versionsapi/list_test.go +++ b/internal/api/versionsapi/list_test.go @@ -9,7 +9,7 @@ package versionsapi import ( "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/api/versionsapi/version.go b/internal/api/versionsapi/version.go index 6c23371..3613198 100644 --- a/internal/api/versionsapi/version.go +++ b/internal/api/versionsapi/version.go @@ -17,7 +17,7 @@ import ( "golang.org/x/mod/semver" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) // ReleaseRef is the ref used for release versions. diff --git a/internal/api/versionsapi/version_test.go b/internal/api/versionsapi/version_test.go index f71b32d..3fddec1 100644 --- a/internal/api/versionsapi/version_test.go +++ b/internal/api/versionsapi/version_test.go @@ -12,8 +12,8 @@ import ( "github.com/stretchr/testify/assert" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) func TestNewVersionFromShortPath(t *testing.T) { diff --git a/internal/atls/atls.go b/internal/atls/atls.go index 9158b2a..572f1b9 100644 --- a/internal/atls/atls.go +++ b/internal/atls/atls.go @@ -25,8 +25,8 @@ import ( "math/big" "time" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/crypto" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto" ) const attestationTimeout = 30 * time.Second diff --git a/internal/atls/atls_test.go b/internal/atls/atls_test.go index 2a8e894..6f412d6 100644 --- a/internal/atls/atls_test.go +++ b/internal/atls/atls_test.go @@ -15,7 +15,7 @@ import ( "net/http/httptest" "testing" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/attestation/attestation.go b/internal/attestation/attestation.go index ef83c71..3b409d9 100644 --- a/internal/attestation/attestation.go +++ b/internal/attestation/attestation.go @@ -32,7 +32,7 @@ import ( "bytes" "crypto/sha256" - "cvm-reverse-proxy/internal/crypto" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto" ) const ( diff --git a/internal/attestation/attestation_test.go b/internal/attestation/attestation_test.go index 2d3c9a0..6a63e02 100644 --- a/internal/attestation/attestation_test.go +++ b/internal/attestation/attestation_test.go @@ -10,7 +10,7 @@ import ( "bytes" "testing" - "cvm-reverse-proxy/internal/crypto/testvector" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto/testvector" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/attestation/aws/nitrotpm/issuer.go b/internal/attestation/aws/nitrotpm/issuer.go index ca0c05d..d3d3ff7 100644 --- a/internal/attestation/aws/nitrotpm/issuer.go +++ b/internal/attestation/aws/nitrotpm/issuer.go @@ -12,9 +12,9 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" diff --git a/internal/attestation/aws/nitrotpm/issuer_test.go b/internal/attestation/aws/nitrotpm/issuer_test.go index 6a1e042..d7e160e 100644 --- a/internal/attestation/aws/nitrotpm/issuer_test.go +++ b/internal/attestation/aws/nitrotpm/issuer_test.go @@ -12,7 +12,7 @@ import ( "os" "testing" - "cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" "github.com/aws/smithy-go/middleware" diff --git a/internal/attestation/aws/nitrotpm/validator.go b/internal/attestation/aws/nitrotpm/validator.go index edb544d..b50f4a2 100644 --- a/internal/attestation/aws/nitrotpm/validator.go +++ b/internal/attestation/aws/nitrotpm/validator.go @@ -12,10 +12,10 @@ import ( "encoding/json" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" awsConfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" diff --git a/internal/attestation/aws/nitrotpm/validator_test.go b/internal/attestation/aws/nitrotpm/validator_test.go index 7f7b13d..6803951 100644 --- a/internal/attestation/aws/nitrotpm/validator_test.go +++ b/internal/attestation/aws/nitrotpm/validator_test.go @@ -12,7 +12,7 @@ import ( "errors" "testing" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/aws/aws-sdk-go-v2/feature/ec2/imds" "github.com/aws/aws-sdk-go-v2/service/ec2" diff --git a/internal/attestation/aws/snp/issuer.go b/internal/attestation/aws/snp/issuer.go index 756a003..8ee56f3 100644 --- a/internal/attestation/aws/snp/issuer.go +++ b/internal/attestation/aws/snp/issuer.go @@ -15,10 +15,10 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/google/go-sev-guest/abi" "github.com/google/go-tpm-tools/client" diff --git a/internal/attestation/aws/snp/issuer_test.go b/internal/attestation/aws/snp/issuer_test.go index e912566..1f4be4b 100644 --- a/internal/attestation/aws/snp/issuer_test.go +++ b/internal/attestation/aws/snp/issuer_test.go @@ -10,7 +10,7 @@ import ( "os" "testing" - "cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" tpmclient "github.com/google/go-tpm-tools/client" "github.com/stretchr/testify/assert" diff --git a/internal/attestation/aws/snp/validator.go b/internal/attestation/aws/snp/validator.go index 8b189ab..1e079df 100644 --- a/internal/attestation/aws/snp/validator.go +++ b/internal/attestation/aws/snp/validator.go @@ -14,11 +14,11 @@ import ( "encoding/json" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/kds" diff --git a/internal/attestation/aws/snp/validator_test.go b/internal/attestation/aws/snp/validator_test.go index 477f006..55b69e9 100644 --- a/internal/attestation/aws/snp/validator_test.go +++ b/internal/attestation/aws/snp/validator_test.go @@ -20,12 +20,12 @@ import ( "regexp" "testing" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/aws/snp/testdata" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/aws/snp/testdata" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/proto/sevsnp" diff --git a/internal/attestation/azure/azure_test.go b/internal/attestation/azure/azure_test.go index 1762636..92d48e1 100644 --- a/internal/attestation/azure/azure_test.go +++ b/internal/attestation/azure/azure_test.go @@ -15,8 +15,8 @@ import ( "os" "testing" - "cvm-reverse-proxy/internal/attestation/simulator" - "cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" "github.com/google/go-tpm-tools/client" tpmclient "github.com/google/go-tpm-tools/client" diff --git a/internal/attestation/azure/snp/imds.go b/internal/attestation/azure/snp/imds.go index 76d756f..4121e83 100644 --- a/internal/attestation/azure/snp/imds.go +++ b/internal/attestation/azure/snp/imds.go @@ -10,7 +10,7 @@ import ( "context" "fmt" - "cvm-reverse-proxy/internal/cloud/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/azure" ) const tagMAAURL = "constellation-maa-url" diff --git a/internal/attestation/azure/snp/issuer.go b/internal/attestation/azure/snp/issuer.go index a589aac..5f9545c 100644 --- a/internal/attestation/azure/snp/issuer.go +++ b/internal/attestation/azure/snp/issuer.go @@ -12,11 +12,11 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/azure" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/edgelesssys/go-azguestattestation/maa" ) diff --git a/internal/attestation/azure/snp/issuer_test.go b/internal/attestation/azure/snp/issuer_test.go index 02c16e5..22df4ec 100644 --- a/internal/attestation/azure/snp/issuer_test.go +++ b/internal/attestation/azure/snp/issuer_test.go @@ -13,7 +13,7 @@ import ( "io" "testing" - "cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" "github.com/edgelesssys/go-azguestattestation/maa" "github.com/stretchr/testify/assert" diff --git a/internal/attestation/azure/snp/validator.go b/internal/attestation/azure/snp/validator.go index 79c9811..4bdc23e 100644 --- a/internal/attestation/azure/snp/validator.go +++ b/internal/attestation/azure/snp/validator.go @@ -15,13 +15,13 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/azure" - "cvm-reverse-proxy/internal/attestation/idkeydigest" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/idkeydigest" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/kds" diff --git a/internal/attestation/azure/snp/validator_test.go b/internal/attestation/azure/snp/validator_test.go index 2c1caf9..0493dcb 100644 --- a/internal/attestation/azure/snp/validator_test.go +++ b/internal/attestation/azure/snp/validator_test.go @@ -18,13 +18,13 @@ import ( "regexp" "testing" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/idkeydigest" - "cvm-reverse-proxy/internal/attestation/simulator" - "cvm-reverse-proxy/internal/attestation/snp/testdata" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/idkeydigest" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp/testdata" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/kds" diff --git a/internal/attestation/azure/tdx/issuer.go b/internal/attestation/azure/tdx/issuer.go index fb1fe12..7265e42 100644 --- a/internal/attestation/azure/tdx/issuer.go +++ b/internal/attestation/azure/tdx/issuer.go @@ -16,10 +16,10 @@ import ( "io" "net/http" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/azure" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/google/go-tpm/legacy/tpm2" ) diff --git a/internal/attestation/azure/tdx/issuer_test.go b/internal/attestation/azure/tdx/issuer_test.go index f003050..dd835cf 100644 --- a/internal/attestation/azure/tdx/issuer_test.go +++ b/internal/attestation/azure/tdx/issuer_test.go @@ -15,7 +15,7 @@ import ( "net/http" "testing" - "cvm-reverse-proxy/internal/attestation/azure/tdx/testdata" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure/tdx/testdata" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/attestation/azure/tdx/validator.go b/internal/attestation/azure/tdx/validator.go index ab0e562..9f13c3d 100644 --- a/internal/attestation/azure/tdx/validator.go +++ b/internal/attestation/azure/tdx/validator.go @@ -13,11 +13,11 @@ import ( "encoding/json" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/azure" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-tdx-guest/abi" "github.com/google/go-tdx-guest/proto/tdx" diff --git a/internal/attestation/azure/trustedlaunch/issuer.go b/internal/attestation/azure/trustedlaunch/issuer.go index 1afe197..9cd0029 100644 --- a/internal/attestation/azure/trustedlaunch/issuer.go +++ b/internal/attestation/azure/trustedlaunch/issuer.go @@ -15,9 +15,9 @@ import ( "io" "net/http" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" tpmclient "github.com/google/go-tpm-tools/client" "github.com/google/go-tpm/legacy/tpm2" diff --git a/internal/attestation/azure/trustedlaunch/trustedlaunch_test.go b/internal/attestation/azure/trustedlaunch/trustedlaunch_test.go index 8048f04..6a0f3d2 100644 --- a/internal/attestation/azure/trustedlaunch/trustedlaunch_test.go +++ b/internal/attestation/azure/trustedlaunch/trustedlaunch_test.go @@ -19,12 +19,12 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/simulator" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" - "cvm-reverse-proxy/internal/crypto" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" tpmclient "github.com/google/go-tpm-tools/client" "github.com/google/go-tpm-tools/proto/attest" diff --git a/internal/attestation/azure/trustedlaunch/validator.go b/internal/attestation/azure/trustedlaunch/validator.go index b31a0d3..481e32b 100644 --- a/internal/attestation/azure/trustedlaunch/validator.go +++ b/internal/attestation/azure/trustedlaunch/validator.go @@ -15,11 +15,11 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" - certutil "cvm-reverse-proxy/internal/crypto" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + certutil "github.com/flashbots/cvm-reverse-proxy/internal/crypto" "github.com/google/go-tpm-tools/proto/attest" "github.com/google/go-tpm/legacy/tpm2" diff --git a/internal/attestation/choose/choose.go b/internal/attestation/choose/choose.go index 0655755..63bfd0e 100644 --- a/internal/attestation/choose/choose.go +++ b/internal/attestation/choose/choose.go @@ -9,19 +9,19 @@ package choose import ( "fmt" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/aws/nitrotpm" - awssnp "cvm-reverse-proxy/internal/attestation/aws/snp" - azuresnp "cvm-reverse-proxy/internal/attestation/azure/snp" - azuretdx "cvm-reverse-proxy/internal/attestation/azure/tdx" - "cvm-reverse-proxy/internal/attestation/azure/trustedlaunch" - "cvm-reverse-proxy/internal/attestation/gcp/es" - gcpsnp "cvm-reverse-proxy/internal/attestation/gcp/snp" - "cvm-reverse-proxy/internal/attestation/qemu" - "cvm-reverse-proxy/internal/attestation/tdx" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/aws/nitrotpm" + awssnp "github.com/flashbots/cvm-reverse-proxy/internal/attestation/aws/snp" + azuresnp "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure/snp" + azuretdx "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure/tdx" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure/trustedlaunch" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp/es" + gcpsnp "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/qemu" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/tdx" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/config" ) // Issuer returns the issuer for the given variant. diff --git a/internal/attestation/choose/choose_test.go b/internal/attestation/choose/choose_test.go index 2a7e73a..a2be3fc 100644 --- a/internal/attestation/choose/choose_test.go +++ b/internal/attestation/choose/choose_test.go @@ -10,9 +10,9 @@ import ( "encoding/asn1" "testing" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/attestation/gcp/es/issuer.go b/internal/attestation/gcp/es/issuer.go index 040910a..a16ffc8 100644 --- a/internal/attestation/gcp/es/issuer.go +++ b/internal/attestation/gcp/es/issuer.go @@ -7,10 +7,10 @@ SPDX-License-Identifier: AGPL-3.0-only package es import ( - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/gcp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" tpmclient "github.com/google/go-tpm-tools/client" ) diff --git a/internal/attestation/gcp/es/issuer_test.go b/internal/attestation/gcp/es/issuer_test.go index 1152553..6549f77 100644 --- a/internal/attestation/gcp/es/issuer_test.go +++ b/internal/attestation/gcp/es/issuer_test.go @@ -13,7 +13,7 @@ import ( "io" "testing" - "cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" "github.com/google/go-tpm-tools/proto/attest" "github.com/stretchr/testify/assert" diff --git a/internal/attestation/gcp/es/validator.go b/internal/attestation/gcp/es/validator.go index 7dc85b4..c65a4ee 100644 --- a/internal/attestation/gcp/es/validator.go +++ b/internal/attestation/gcp/es/validator.go @@ -9,11 +9,11 @@ package es import ( "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/gcp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-tpm-tools/proto/attest" ) diff --git a/internal/attestation/gcp/es/validator_test.go b/internal/attestation/gcp/es/validator_test.go index 20e84cf..d001f1f 100644 --- a/internal/attestation/gcp/es/validator_test.go +++ b/internal/attestation/gcp/es/validator_test.go @@ -13,9 +13,9 @@ import ( "errors" "testing" - "cvm-reverse-proxy/internal/attestation/gcp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "cloud.google.com/go/compute/apiv1/computepb" "github.com/google/go-tpm-tools/proto/attest" diff --git a/internal/attestation/gcp/restclient.go b/internal/attestation/gcp/restclient.go index b364ebc..758d1a5 100644 --- a/internal/attestation/gcp/restclient.go +++ b/internal/attestation/gcp/restclient.go @@ -14,9 +14,9 @@ import ( "encoding/pem" "fmt" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" compute "cloud.google.com/go/compute/apiv1" "cloud.google.com/go/compute/apiv1/computepb" diff --git a/internal/attestation/gcp/snp/issuer.go b/internal/attestation/gcp/snp/issuer.go index 347b65b..2a96626 100644 --- a/internal/attestation/gcp/snp/issuer.go +++ b/internal/attestation/gcp/snp/issuer.go @@ -14,11 +14,11 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/gcp" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" "github.com/google/go-sev-guest/abi" "github.com/google/go-tpm-tools/client" diff --git a/internal/attestation/gcp/snp/validator.go b/internal/attestation/gcp/snp/validator.go index cf21fef..9cb84d7 100644 --- a/internal/attestation/gcp/snp/validator.go +++ b/internal/attestation/gcp/snp/validator.go @@ -13,12 +13,12 @@ import ( "encoding/json" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/gcp" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/kds" diff --git a/internal/attestation/initialize/initialize.go b/internal/attestation/initialize/initialize.go index 7560314..167bad2 100644 --- a/internal/attestation/initialize/initialize.go +++ b/internal/attestation/initialize/initialize.go @@ -13,8 +13,8 @@ import ( "errors" "io" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/tdx" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/tdx" tdxapi "github.com/edgelesssys/go-tdx-qpl/tdx" "github.com/google/go-tpm/legacy/tpm2" diff --git a/internal/attestation/initialize/initialize_test.go b/internal/attestation/initialize/initialize_test.go index 874f35c..2820788 100644 --- a/internal/attestation/initialize/initialize_test.go +++ b/internal/attestation/initialize/initialize_test.go @@ -12,8 +12,8 @@ import ( "os" "testing" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" "github.com/google/go-tpm-tools/client" "github.com/google/go-tpm/legacy/tpm2" diff --git a/internal/attestation/measurements/fetchmeasurements.go b/internal/attestation/measurements/fetchmeasurements.go index e6f2986..3c8c09f 100644 --- a/internal/attestation/measurements/fetchmeasurements.go +++ b/internal/attestation/measurements/fetchmeasurements.go @@ -11,11 +11,11 @@ import ( "fmt" "net/http" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/sigstore" - "cvm-reverse-proxy/internal/sigstore/keyselect" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore/keyselect" ) // RekorError is returned when verifying measurements with Rekor fails. diff --git a/internal/attestation/measurements/fetchmeasurements_test.go b/internal/attestation/measurements/fetchmeasurements_test.go index 30a287d..ad1fd8f 100644 --- a/internal/attestation/measurements/fetchmeasurements_test.go +++ b/internal/attestation/measurements/fetchmeasurements_test.go @@ -14,9 +14,9 @@ import ( "net/http" "testing" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" "github.com/stretchr/testify/assert" ) diff --git a/internal/attestation/measurements/measurement-generator/generate.go b/internal/attestation/measurements/measurement-generator/generate.go index 74f68fd..8328abe 100644 --- a/internal/attestation/measurements/measurement-generator/generate.go +++ b/internal/attestation/measurements/measurement-generator/generate.go @@ -23,13 +23,13 @@ import ( "strconv" "strings" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/sigstore" - "cvm-reverse-proxy/internal/sigstore/keyselect" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore/keyselect" "golang.org/x/tools/go/ast/astutil" ) diff --git a/internal/attestation/measurements/measurements.go b/internal/attestation/measurements/measurements.go index 3d30642..6262c16 100644 --- a/internal/attestation/measurements/measurements.go +++ b/internal/attestation/measurements/measurements.go @@ -28,14 +28,14 @@ import ( "strconv" "strings" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" "github.com/google/go-tpm/tpmutil" "github.com/siderolabs/talos/pkg/machinery/config/encoder" "gopkg.in/yaml.v3" - "cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" ) //go:generate measurement-generator diff --git a/internal/attestation/measurements/measurements_test.go b/internal/attestation/measurements/measurements_test.go index 6aebf4b..7bb03c2 100644 --- a/internal/attestation/measurements/measurements_test.go +++ b/internal/attestation/measurements/measurements_test.go @@ -21,10 +21,10 @@ import ( "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/sigstore" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/sigstore" ) func TestMarshal(t *testing.T) { diff --git a/internal/attestation/measurements/overrides.go b/internal/attestation/measurements/overrides.go index 7abe554..f176e2e 100644 --- a/internal/attestation/measurements/overrides.go +++ b/internal/attestation/measurements/overrides.go @@ -9,8 +9,8 @@ package measurements import ( "fmt" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) var measurementOverridesForCSP = map[string]measurementOverride{ diff --git a/internal/attestation/qemu/issuer.go b/internal/attestation/qemu/issuer.go index f9123d5..d3a5c48 100644 --- a/internal/attestation/qemu/issuer.go +++ b/internal/attestation/qemu/issuer.go @@ -10,9 +10,9 @@ import ( "context" "io" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" tpmclient "github.com/google/go-tpm-tools/client" ) diff --git a/internal/attestation/qemu/validator.go b/internal/attestation/qemu/validator.go index 9f06074..369ea80 100644 --- a/internal/attestation/qemu/validator.go +++ b/internal/attestation/qemu/validator.go @@ -10,10 +10,10 @@ import ( "context" "crypto" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/attestation/vtpm" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/vtpm" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/google/go-tpm-tools/proto/attest" "github.com/google/go-tpm/legacy/tpm2" diff --git a/internal/attestation/snp/snp.go b/internal/attestation/snp/snp.go index 50fa54b..80747c7 100644 --- a/internal/attestation/snp/snp.go +++ b/internal/attestation/snp/snp.go @@ -15,7 +15,7 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" "github.com/google/go-sev-guest/abi" "github.com/google/go-sev-guest/client" diff --git a/internal/attestation/snp/snp_test.go b/internal/attestation/snp/snp_test.go index 163e378..8bb08af 100644 --- a/internal/attestation/snp/snp_test.go +++ b/internal/attestation/snp/snp_test.go @@ -15,9 +15,9 @@ import ( "strings" "testing" - "cvm-reverse-proxy/internal/attestation/snp/testdata" - "cvm-reverse-proxy/internal/config" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp/testdata" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/google/go-sev-guest/kds" "github.com/google/go-sev-guest/verify/trust" diff --git a/internal/attestation/tdx/issuer.go b/internal/attestation/tdx/issuer.go index 094c1fa..adc3bd4 100644 --- a/internal/attestation/tdx/issuer.go +++ b/internal/attestation/tdx/issuer.go @@ -11,8 +11,8 @@ import ( "encoding/json" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" "github.com/edgelesssys/go-tdx-qpl/tdx" ) diff --git a/internal/attestation/tdx/tdx.go b/internal/attestation/tdx/tdx.go index b46b160..2700489 100644 --- a/internal/attestation/tdx/tdx.go +++ b/internal/attestation/tdx/tdx.go @@ -12,7 +12,7 @@ import ( "io" "os" - "cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" "github.com/edgelesssys/go-tdx-qpl/tdx" ) diff --git a/internal/attestation/tdx/validator.go b/internal/attestation/tdx/validator.go index e8008b5..ed0566a 100644 --- a/internal/attestation/tdx/validator.go +++ b/internal/attestation/tdx/validator.go @@ -12,10 +12,10 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/edgelesssys/go-tdx-qpl/verification" "github.com/edgelesssys/go-tdx-qpl/verification/types" diff --git a/internal/attestation/variant/variant.go b/internal/attestation/variant/variant.go index 19a287d..3692751 100644 --- a/internal/attestation/variant/variant.go +++ b/internal/attestation/variant/variant.go @@ -36,7 +36,7 @@ import ( "fmt" "sort" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) const ( diff --git a/internal/attestation/vtpm/attestation.go b/internal/attestation/vtpm/attestation.go index 848dc7a..23f39a0 100644 --- a/internal/attestation/vtpm/attestation.go +++ b/internal/attestation/vtpm/attestation.go @@ -24,8 +24,8 @@ import ( tpmServer "github.com/google/go-tpm-tools/server" "github.com/google/go-tpm/legacy/tpm2" - "cvm-reverse-proxy/internal/attestation" - "cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" ) var ( diff --git a/internal/attestation/vtpm/attestation_test.go b/internal/attestation/vtpm/attestation_test.go index 410f9dd..e48876f 100644 --- a/internal/attestation/vtpm/attestation_test.go +++ b/internal/attestation/vtpm/attestation_test.go @@ -23,11 +23,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "cvm-reverse-proxy/internal/attestation/initialize" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/simulator" - tpmsim "cvm-reverse-proxy/internal/attestation/simulator" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/initialize" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" + tpmsim "github.com/flashbots/cvm-reverse-proxy/internal/attestation/simulator" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" ) type simTPMWithEventLog struct { diff --git a/internal/cloud/aws/aws.go b/internal/cloud/aws/aws.go index 4445d4f..b166923 100644 --- a/internal/cloud/aws/aws.go +++ b/internal/cloud/aws/aws.go @@ -21,10 +21,10 @@ import ( "fmt" "strconv" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" diff --git a/internal/cloud/aws/aws_test.go b/internal/cloud/aws/aws_test.go index 6733183..6d3be00 100644 --- a/internal/cloud/aws/aws_test.go +++ b/internal/cloud/aws/aws_test.go @@ -19,9 +19,9 @@ import ( elbTypes "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" rgtTypes "github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi/types" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi" "github.com/stretchr/testify/assert" diff --git a/internal/cloud/azure/azure.go b/internal/cloud/azure/azure.go index 028d64e..015b7fd 100644 --- a/internal/cloud/azure/azure.go +++ b/internal/cloud/azure/azure.go @@ -22,11 +22,11 @@ import ( "path" "strconv" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/azureshared" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/azureshared" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" diff --git a/internal/cloud/azure/azure_test.go b/internal/cloud/azure/azure_test.go index d0c37c2..98ae781 100644 --- a/internal/cloud/azure/azure_test.go +++ b/internal/cloud/azure/azure_test.go @@ -11,9 +11,9 @@ import ( "errors" "testing" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" diff --git a/internal/cloud/azure/imds.go b/internal/cloud/azure/imds.go index 6016da2..0780e59 100644 --- a/internal/cloud/azure/imds.go +++ b/internal/cloud/azure/imds.go @@ -15,8 +15,8 @@ import ( "net/http" "time" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/role" ) // subset of azure imds API: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=linux diff --git a/internal/cloud/azure/imds_test.go b/internal/cloud/azure/imds_test.go index bb0249c..a8f50cd 100644 --- a/internal/cloud/azure/imds_test.go +++ b/internal/cloud/azure/imds_test.go @@ -15,8 +15,8 @@ import ( "net/http/httptest" "testing" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/stretchr/testify/assert" "google.golang.org/grpc/test/bufconn" diff --git a/internal/cloud/azure/iptables_linux.go b/internal/cloud/azure/iptables_linux.go index 9763ba4..29112bd 100644 --- a/internal/cloud/azure/iptables_linux.go +++ b/internal/cloud/azure/iptables_linux.go @@ -13,7 +13,7 @@ import ( "fmt" "log/slog" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "k8s.io/kubernetes/pkg/util/iptables" "k8s.io/utils/exec" diff --git a/internal/cloud/gcp/gcp.go b/internal/cloud/gcp/gcp.go index f191749..a4b8038 100644 --- a/internal/cloud/gcp/gcp.go +++ b/internal/cloud/gcp/gcp.go @@ -25,10 +25,10 @@ import ( "sync" "time" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/gcpshared" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/gcpshared" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/role" compute "cloud.google.com/go/compute/apiv1" "cloud.google.com/go/compute/apiv1/computepb" diff --git a/internal/cloud/gcp/gcp_test.go b/internal/cloud/gcp/gcp_test.go index 1965b1b..26e63b6 100644 --- a/internal/cloud/gcp/gcp_test.go +++ b/internal/cloud/gcp/gcp_test.go @@ -11,9 +11,9 @@ import ( "errors" "testing" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "cloud.google.com/go/compute/apiv1/computepb" gax "github.com/googleapis/gax-go/v2" diff --git a/internal/cloud/metadata/metadata.go b/internal/cloud/metadata/metadata.go index eca47e8..a45c766 100644 --- a/internal/cloud/metadata/metadata.go +++ b/internal/cloud/metadata/metadata.go @@ -9,7 +9,7 @@ package metadata import ( "context" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/role" ) // InstanceMetadata describes metadata of a peer. diff --git a/internal/cloud/openstack/api.go b/internal/cloud/openstack/api.go index b68f7f4..c57275e 100644 --- a/internal/cloud/openstack/api.go +++ b/internal/cloud/openstack/api.go @@ -9,7 +9,7 @@ package openstack import ( "context" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/gophercloud/gophercloud/v2/openstack/compute/v2/servers" "github.com/gophercloud/gophercloud/v2/openstack/networking/v2/networks" diff --git a/internal/cloud/openstack/api_test.go b/internal/cloud/openstack/api_test.go index 2cdb304..5e03ba4 100644 --- a/internal/cloud/openstack/api_test.go +++ b/internal/cloud/openstack/api_test.go @@ -9,7 +9,7 @@ package openstack import ( "context" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/gophercloud/gophercloud/v2/openstack/compute/v2/servers" "github.com/gophercloud/gophercloud/v2/openstack/networking/v2/networks" diff --git a/internal/cloud/openstack/clouds/read.go b/internal/cloud/openstack/clouds/read.go index fd5485d..b21447d 100644 --- a/internal/cloud/openstack/clouds/read.go +++ b/internal/cloud/openstack/clouds/read.go @@ -12,7 +12,7 @@ import ( "github.com/mitchellh/go-homedir" - "cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/file" ) // ReadCloudsYAML reads a clouds.yaml file and returns its contents. diff --git a/internal/cloud/openstack/imds.go b/internal/cloud/openstack/imds.go index ad394a1..9d1ca36 100644 --- a/internal/cloud/openstack/imds.go +++ b/internal/cloud/openstack/imds.go @@ -15,8 +15,8 @@ import ( "net/http" "time" - "cvm-reverse-proxy/internal/cloud" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud" + "github.com/flashbots/cvm-reverse-proxy/internal/role" ) // documentation of OpenStack Metadata Service: https://docs.openstack.org/nova/rocky/user/metadata-service.html diff --git a/internal/cloud/openstack/imds_test.go b/internal/cloud/openstack/imds_test.go index c10942a..3fe2d67 100644 --- a/internal/cloud/openstack/imds_test.go +++ b/internal/cloud/openstack/imds_test.go @@ -17,7 +17,7 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/cloud/openstack/openstack.go b/internal/cloud/openstack/openstack.go index a73f5bf..e9d435f 100644 --- a/internal/cloud/openstack/openstack.go +++ b/internal/cloud/openstack/openstack.go @@ -14,9 +14,9 @@ import ( "strconv" "strings" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/gophercloud/gophercloud/v2/openstack/compute/v2/servers" "github.com/gophercloud/gophercloud/v2/openstack/networking/v2/networks" diff --git a/internal/cloud/openstack/openstack_test.go b/internal/cloud/openstack/openstack_test.go index 24fd5c4..ade71f8 100644 --- a/internal/cloud/openstack/openstack_test.go +++ b/internal/cloud/openstack/openstack_test.go @@ -12,8 +12,8 @@ import ( "fmt" "testing" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/gophercloud/gophercloud/v2" "github.com/gophercloud/gophercloud/v2/openstack/compute/v2/servers" diff --git a/internal/cloud/qemu/qemu.go b/internal/cloud/qemu/qemu.go index 11b5377..5568aaa 100644 --- a/internal/cloud/qemu/qemu.go +++ b/internal/cloud/qemu/qemu.go @@ -18,8 +18,8 @@ import ( "net/url" "strconv" - "cvm-reverse-proxy/internal/cloud/metadata" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/metadata" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) const qemuMetadataEndpoint = "10.42.0.1:8080" diff --git a/internal/config/attestation.go b/internal/config/attestation.go index 94ae180..1f1472d 100644 --- a/internal/config/attestation.go +++ b/internal/config/attestation.go @@ -13,8 +13,8 @@ import ( "encoding/pem" "fmt" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" ) const ( diff --git a/internal/config/attestation_test.go b/internal/config/attestation_test.go index 214df55..fa9746a 100644 --- a/internal/config/attestation_test.go +++ b/internal/config/attestation_test.go @@ -11,9 +11,9 @@ import ( "fmt" "testing" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/config/attestationversion.go b/internal/config/attestationversion.go index c0f95ad..9f19208 100644 --- a/internal/config/attestationversion.go +++ b/internal/config/attestationversion.go @@ -11,7 +11,7 @@ import ( "fmt" "strings" - "cvm-reverse-proxy/internal/encoding" + "github.com/flashbots/cvm-reverse-proxy/internal/encoding" ) type versionValue interface { diff --git a/internal/config/attestationversion_test.go b/internal/config/attestationversion_test.go index 8c3f0c0..c258831 100644 --- a/internal/config/attestationversion_test.go +++ b/internal/config/attestationversion_test.go @@ -11,7 +11,7 @@ import ( "encoding/json" "testing" - "cvm-reverse-proxy/internal/encoding" + "github.com/flashbots/cvm-reverse-proxy/internal/encoding" "github.com/stretchr/testify/assert" "gopkg.in/yaml.v3" diff --git a/internal/config/aws.go b/internal/config/aws.go index ad32657..6acc376 100644 --- a/internal/config/aws.go +++ b/internal/config/aws.go @@ -10,10 +10,10 @@ import ( "context" "fmt" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) var _ svnResolveMarshaller = &AWSSEVSNP{} diff --git a/internal/config/azure.go b/internal/config/azure.go index ea4a93f..71f9a28 100644 --- a/internal/config/azure.go +++ b/internal/config/azure.go @@ -10,12 +10,12 @@ import ( "context" "fmt" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/attestation/idkeydigest" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/encoding" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/idkeydigest" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/encoding" ) var ( diff --git a/internal/config/config.go b/internal/config/config.go index d6eea58..61c4217 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -33,18 +33,18 @@ import ( en_translations "github.com/go-playground/validator/v10/translations/en" "gopkg.in/yaml.v3" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/idkeydigest" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/config/imageversion" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/encoding" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/semver" - "cvm-reverse-proxy/internal/versions" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/idkeydigest" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/config/imageversion" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/encoding" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/versions" ) const ( diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 826d9e2..edd411b 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -21,15 +21,15 @@ import ( "go.uber.org/goleak" "gopkg.in/yaml.v3" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/config/instancetypes" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/semver" - "cvm-reverse-proxy/internal/versions" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/config/instancetypes" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/versions" gosemver "golang.org/x/mod/semver" ) diff --git a/internal/config/gcp.go b/internal/config/gcp.go index 2f20737..1967e62 100644 --- a/internal/config/gcp.go +++ b/internal/config/gcp.go @@ -10,10 +10,10 @@ import ( "context" "fmt" - "cvm-reverse-proxy/internal/api/attestationconfigapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/api/attestationconfigapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) var _ svnResolveMarshaller = &GCPSEVSNP{} diff --git a/internal/config/imageversion/imageversion.go b/internal/config/imageversion/imageversion.go index ce1f905..8237f9a 100644 --- a/internal/config/imageversion/imageversion.go +++ b/internal/config/imageversion/imageversion.go @@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only // Package imageversion contains the pinned container images for the config. package imageversion -import "cvm-reverse-proxy/internal/containerimage" +import "github.com/flashbots/cvm-reverse-proxy/internal/containerimage" // QEMUMetadata is the image of the QEMU metadata api service. func QEMUMetadata() string { diff --git a/internal/config/migration/migration.go b/internal/config/migration/migration.go index 761c682..7aa9f1e 100644 --- a/internal/config/migration/migration.go +++ b/internal/config/migration/migration.go @@ -15,13 +15,13 @@ import ( "os" "strings" - "cvm-reverse-proxy/internal/attestation/idkeydigest" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/config" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/role" - "cvm-reverse-proxy/internal/semver" - "cvm-reverse-proxy/internal/versions" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/idkeydigest" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/versions" ) const ( diff --git a/internal/config/validation.go b/internal/config/validation.go index 5ff5726..da37984 100644 --- a/internal/config/validation.go +++ b/internal/config/validation.go @@ -20,17 +20,17 @@ import ( "github.com/go-playground/validator/v10" "golang.org/x/mod/semver" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/compatibility" - "cvm-reverse-proxy/internal/config/disktypes" - "cvm-reverse-proxy/internal/config/instancetypes" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/role" - consemver "cvm-reverse-proxy/internal/semver" - "cvm-reverse-proxy/internal/versions" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/compatibility" + "github.com/flashbots/cvm-reverse-proxy/internal/config/disktypes" + "github.com/flashbots/cvm-reverse-proxy/internal/config/instancetypes" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/role" + consemver "github.com/flashbots/cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/versions" ) // ValidationError occurs when the validation of a config fails. diff --git a/internal/config/validation_test.go b/internal/config/validation_test.go index 1545762..acb5ee5 100644 --- a/internal/config/validation_test.go +++ b/internal/config/validation_test.go @@ -9,7 +9,7 @@ package config import ( "testing" - "cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" "github.com/stretchr/testify/assert" ) diff --git a/internal/constants/constants.go b/internal/constants/constants.go index a76a09a..c95c54e 100644 --- a/internal/constants/constants.go +++ b/internal/constants/constants.go @@ -14,7 +14,7 @@ import ( "fmt" "time" - "cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" ) const ( diff --git a/internal/crypto/crypto_test.go b/internal/crypto/crypto_test.go index 5f55bf4..8c4a6bf 100644 --- a/internal/crypto/crypto_test.go +++ b/internal/crypto/crypto_test.go @@ -10,7 +10,7 @@ import ( "crypto/x509" "testing" - "cvm-reverse-proxy/internal/crypto/testvector" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto/testvector" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/file/file_test.go b/internal/file/file_test.go index 421b25c..f14918e 100644 --- a/internal/file/file_test.go +++ b/internal/file/file_test.go @@ -12,7 +12,7 @@ import ( "path/filepath" "testing" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" "github.com/spf13/afero" "github.com/stretchr/testify/assert" diff --git a/internal/grpc/atlscredentials/atlscredentials.go b/internal/grpc/atlscredentials/atlscredentials.go index b528629..ac997fc 100644 --- a/internal/grpc/atlscredentials/atlscredentials.go +++ b/internal/grpc/atlscredentials/atlscredentials.go @@ -12,7 +12,7 @@ import ( "errors" "net" - "cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" "google.golang.org/grpc/credentials" ) diff --git a/internal/grpc/atlscredentials/atlscredentials_test.go b/internal/grpc/atlscredentials/atlscredentials_test.go index a043485..85bfa67 100644 --- a/internal/grpc/atlscredentials/atlscredentials_test.go +++ b/internal/grpc/atlscredentials/atlscredentials_test.go @@ -15,7 +15,7 @@ import ( "net" "testing" - "cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" "github.com/edgelesssys/constellation/v2/bootstrapper/initproto" "github.com/stretchr/testify/assert" diff --git a/internal/grpc/dialer/dialer.go b/internal/grpc/dialer/dialer.go index 43b25d1..60a6851 100644 --- a/internal/grpc/dialer/dialer.go +++ b/internal/grpc/dialer/dialer.go @@ -11,8 +11,8 @@ import ( "context" "net" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/internal/grpc/atlscredentials" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/grpc/atlscredentials" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" diff --git a/internal/grpc/dialer/dialer_test.go b/internal/grpc/dialer/dialer_test.go index a99429a..d5fada6 100644 --- a/internal/grpc/dialer/dialer_test.go +++ b/internal/grpc/dialer/dialer_test.go @@ -10,10 +10,10 @@ import ( "context" "testing" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/grpc/atlscredentials" - "cvm-reverse-proxy/internal/grpc/testdialer" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/grpc/atlscredentials" + "github.com/flashbots/cvm-reverse-proxy/internal/grpc/testdialer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/imagefetcher/imagefetcher.go b/internal/imagefetcher/imagefetcher.go index 4c5f780..ccd3b78 100644 --- a/internal/imagefetcher/imagefetcher.go +++ b/internal/imagefetcher/imagefetcher.go @@ -20,12 +20,12 @@ import ( "regexp" "strings" - "cvm-reverse-proxy/internal/api/fetcher" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/mpimage" - "cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/api/fetcher" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/mpimage" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" "github.com/spf13/afero" ) diff --git a/internal/imagefetcher/imagefetcher_test.go b/internal/imagefetcher/imagefetcher_test.go index 22057ac..83b2fec 100644 --- a/internal/imagefetcher/imagefetcher_test.go +++ b/internal/imagefetcher/imagefetcher_test.go @@ -13,10 +13,10 @@ import ( "net/http" "testing" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/file" "github.com/spf13/afero" "github.com/stretchr/testify/assert" diff --git a/internal/installer/installer.go b/internal/installer/installer.go index f8869c1..3db5cd3 100644 --- a/internal/installer/installer.go +++ b/internal/installer/installer.go @@ -24,8 +24,8 @@ import ( "slices" "time" - "cvm-reverse-proxy/internal/retry" - "cvm-reverse-proxy/internal/versions/components" + "github.com/flashbots/cvm-reverse-proxy/internal/retry" + "github.com/flashbots/cvm-reverse-proxy/internal/versions/components" "github.com/spf13/afero" "github.com/vincent-petithory/dataurl" diff --git a/internal/installer/installer_test.go b/internal/installer/installer_test.go index 4006a44..787dd7b 100644 --- a/internal/installer/installer_test.go +++ b/internal/installer/installer_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/versions/components" + "github.com/flashbots/cvm-reverse-proxy/internal/versions/components" "github.com/spf13/afero" "github.com/stretchr/testify/assert" diff --git a/internal/kms/kms/aws/aws.go b/internal/kms/kms/aws/aws.go index d506337..85ebe5a 100644 --- a/internal/kms/kms/aws/aws.go +++ b/internal/kms/kms/aws/aws.go @@ -12,9 +12,9 @@ import ( "errors" "fmt" - kmsInterface "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/kms/internal" - "cvm-reverse-proxy/internal/kms/uri" + kmsInterface "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/internal" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" wrapping "github.com/hashicorp/go-kms-wrapping/v2" awskms "github.com/hashicorp/go-kms-wrapping/wrappers/awskms/v2" diff --git a/internal/kms/kms/azure/azure.go b/internal/kms/kms/azure/azure.go index 2709100..201b0ba 100644 --- a/internal/kms/kms/azure/azure.go +++ b/internal/kms/kms/azure/azure.go @@ -12,9 +12,9 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/kms/internal" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/internal" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" azurekeyvault "github.com/hashicorp/go-kms-wrapping/wrappers/azurekeyvault/v2" ) diff --git a/internal/kms/kms/cluster/cluster.go b/internal/kms/kms/cluster/cluster.go index ebd15ce..a32a51d 100644 --- a/internal/kms/kms/cluster/cluster.go +++ b/internal/kms/kms/cluster/cluster.go @@ -19,7 +19,7 @@ import ( "context" "errors" - "cvm-reverse-proxy/internal/crypto" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto" ) // KMS implements the kms.CloudKMS interface for in cluster key management. diff --git a/internal/kms/kms/cluster/cluster_test.go b/internal/kms/kms/cluster/cluster_test.go index 8f2a8d8..d441591 100644 --- a/internal/kms/kms/cluster/cluster_test.go +++ b/internal/kms/kms/cluster/cluster_test.go @@ -11,7 +11,7 @@ import ( "strings" "testing" - "cvm-reverse-proxy/internal/crypto/testvector" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto/testvector" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/kms/kms/gcp/gcp.go b/internal/kms/kms/gcp/gcp.go index 08d5e85..bda22a5 100644 --- a/internal/kms/kms/gcp/gcp.go +++ b/internal/kms/kms/gcp/gcp.go @@ -20,9 +20,9 @@ import ( "fmt" "io" - kmsInterface "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/kms/internal" - "cvm-reverse-proxy/internal/kms/uri" + kmsInterface "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/internal" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" gcpckms "github.com/hashicorp/go-kms-wrapping/wrappers/gcpckms/v2" ) diff --git a/internal/kms/kms/internal/internal.go b/internal/kms/kms/internal/internal.go index d075f17..171ad61 100644 --- a/internal/kms/kms/internal/internal.go +++ b/internal/kms/kms/internal/internal.go @@ -18,9 +18,9 @@ import ( "errors" "fmt" - "cvm-reverse-proxy/internal/crypto" - kmsInterface "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/crypto" + kmsInterface "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" wrapping "github.com/hashicorp/go-kms-wrapping/v2" ) diff --git a/internal/kms/kms/internal/internal_test.go b/internal/kms/kms/internal/internal_test.go index 3f26cc4..e599943 100644 --- a/internal/kms/kms/internal/internal_test.go +++ b/internal/kms/kms/internal/internal_test.go @@ -12,7 +12,7 @@ import ( "errors" "testing" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" cloudkms "cloud.google.com/go/kms/apiv1" wrapping "github.com/hashicorp/go-kms-wrapping/v2" diff --git a/internal/kms/setup/setup.go b/internal/kms/setup/setup.go index 1641393..3313dd3 100644 --- a/internal/kms/setup/setup.go +++ b/internal/kms/setup/setup.go @@ -20,15 +20,15 @@ import ( "fmt" "net/url" - "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/kms/aws" - "cvm-reverse-proxy/internal/kms/kms/azure" - "cvm-reverse-proxy/internal/kms/kms/cluster" - "cvm-reverse-proxy/internal/kms/kms/gcp" - "cvm-reverse-proxy/internal/kms/storage/awss3" - "cvm-reverse-proxy/internal/kms/storage/azureblob" - "cvm-reverse-proxy/internal/kms/storage/gcs" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/aws" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/cluster" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/awss3" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/azureblob" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/gcs" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" ) // KMSInformation about an existing KMS. diff --git a/internal/kms/setup/setup_test.go b/internal/kms/setup/setup_test.go index 4b062ca..9a4169e 100644 --- a/internal/kms/setup/setup_test.go +++ b/internal/kms/setup/setup_test.go @@ -10,7 +10,7 @@ import ( "context" "testing" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" "github.com/stretchr/testify/assert" "go.uber.org/goleak" diff --git a/internal/kms/storage/awss3/awss3.go b/internal/kms/storage/awss3/awss3.go index 4a2b2a1..1e14e1f 100644 --- a/internal/kms/storage/awss3/awss3.go +++ b/internal/kms/storage/awss3/awss3.go @@ -14,9 +14,9 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/kms/config" - "cvm-reverse-proxy/internal/kms/storage" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/config" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" awsconfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" diff --git a/internal/kms/storage/awss3/awss3_test.go b/internal/kms/storage/awss3/awss3_test.go index 5461fb8..522544e 100644 --- a/internal/kms/storage/awss3/awss3_test.go +++ b/internal/kms/storage/awss3/awss3_test.go @@ -13,7 +13,7 @@ import ( "io" "testing" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" diff --git a/internal/kms/storage/azureblob/azureblob.go b/internal/kms/storage/azureblob/azureblob.go index 10b209a..58f454f 100644 --- a/internal/kms/storage/azureblob/azureblob.go +++ b/internal/kms/storage/azureblob/azureblob.go @@ -13,9 +13,9 @@ import ( "fmt" "io" - "cvm-reverse-proxy/internal/kms/config" - "cvm-reverse-proxy/internal/kms/storage" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/config" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" diff --git a/internal/kms/storage/azureblob/azureblob_test.go b/internal/kms/storage/azureblob/azureblob_test.go index 6db104c..84e17c7 100644 --- a/internal/kms/storage/azureblob/azureblob_test.go +++ b/internal/kms/storage/azureblob/azureblob_test.go @@ -13,7 +13,7 @@ import ( "io" "testing" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" diff --git a/internal/kms/storage/gcs/gcs.go b/internal/kms/storage/gcs/gcs.go index 0fc0b98..dc7b5c3 100644 --- a/internal/kms/storage/gcs/gcs.go +++ b/internal/kms/storage/gcs/gcs.go @@ -12,8 +12,8 @@ import ( "errors" "io" - "cvm-reverse-proxy/internal/kms/storage" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" gcstorage "cloud.google.com/go/storage" "google.golang.org/api/option" diff --git a/internal/kms/storage/gcs/gcs_test.go b/internal/kms/storage/gcs/gcs_test.go index 3d9047a..796ff2e 100644 --- a/internal/kms/storage/gcs/gcs_test.go +++ b/internal/kms/storage/gcs/gcs_test.go @@ -13,7 +13,7 @@ import ( "io" "testing" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" gcstorage "cloud.google.com/go/storage" "github.com/stretchr/testify/assert" diff --git a/internal/kms/storage/memfs/memfs.go b/internal/kms/storage/memfs/memfs.go index c257bea..6c44b79 100644 --- a/internal/kms/storage/memfs/memfs.go +++ b/internal/kms/storage/memfs/memfs.go @@ -11,7 +11,7 @@ package memfs import ( "context" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" ) // Storage is the standard implementation of the Storage interface, storing keys in memory only. diff --git a/internal/kms/storage/memfs/memfs_test.go b/internal/kms/storage/memfs/memfs_test.go index d8efe8e..46a3d74 100644 --- a/internal/kms/storage/memfs/memfs_test.go +++ b/internal/kms/storage/memfs/memfs_test.go @@ -10,7 +10,7 @@ import ( "context" "testing" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" "github.com/stretchr/testify/assert" "go.uber.org/goleak" diff --git a/internal/kms/test/aws_test.go b/internal/kms/test/aws_test.go index d17d02f..b5442b6 100644 --- a/internal/kms/test/aws_test.go +++ b/internal/kms/test/aws_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/kms/kms/aws" - "cvm-reverse-proxy/internal/kms/storage/awss3" - "cvm-reverse-proxy/internal/kms/storage/memfs" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/aws" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/awss3" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/memfs" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/kms/test/azure_test.go b/internal/kms/test/azure_test.go index 4e48c26..f8e840c 100644 --- a/internal/kms/test/azure_test.go +++ b/internal/kms/test/azure_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/kms/kms/azure" - "cvm-reverse-proxy/internal/kms/storage/azureblob" - "cvm-reverse-proxy/internal/kms/storage/memfs" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/azure" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/azureblob" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/memfs" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" "github.com/stretchr/testify/require" ) diff --git a/internal/kms/test/gcp_test.go b/internal/kms/test/gcp_test.go index 62cbd42..e91a740 100644 --- a/internal/kms/test/gcp_test.go +++ b/internal/kms/test/gcp_test.go @@ -14,10 +14,10 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/kms/kms/gcp" - "cvm-reverse-proxy/internal/kms/storage/gcs" - "cvm-reverse-proxy/internal/kms/storage/memfs" - "cvm-reverse-proxy/internal/kms/uri" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms/gcp" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/gcs" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage/memfs" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/uri" "github.com/stretchr/testify/require" ) diff --git a/internal/kms/test/integration_test.go b/internal/kms/test/integration_test.go index 43f4465..2079fd3 100644 --- a/internal/kms/test/integration_test.go +++ b/internal/kms/test/integration_test.go @@ -17,9 +17,9 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/kms/config" - "cvm-reverse-proxy/internal/kms/kms" - "cvm-reverse-proxy/internal/kms/storage" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/config" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/kms" + "github.com/flashbots/cvm-reverse-proxy/internal/kms/storage" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/kubernetes/configmaps.go b/internal/kubernetes/configmaps.go index 470db03..fc75097 100644 --- a/internal/kubernetes/configmaps.go +++ b/internal/kubernetes/configmaps.go @@ -11,8 +11,8 @@ import ( "fmt" "strings" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/versions/components" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/versions/components" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/license/checker_enterprise.go b/internal/license/checker_enterprise.go index 0fe6c50..15b4127 100644 --- a/internal/license/checker_enterprise.go +++ b/internal/license/checker_enterprise.go @@ -16,7 +16,7 @@ import ( "net/http" "net/url" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) const ( diff --git a/internal/license/checker_enterprise_test.go b/internal/license/checker_enterprise_test.go index e07de3b..bd23cd4 100644 --- a/internal/license/checker_enterprise_test.go +++ b/internal/license/checker_enterprise_test.go @@ -15,7 +15,7 @@ import ( "net/http" "testing" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" "github.com/stretchr/testify/assert" ) diff --git a/internal/license/checker_oss.go b/internal/license/checker_oss.go index 664f2af..9487edf 100644 --- a/internal/license/checker_oss.go +++ b/internal/license/checker_oss.go @@ -11,7 +11,7 @@ package license import ( "context" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) // Checker checks the Constellation license. diff --git a/internal/license/integration/license_integration_test.go b/internal/license/integration/license_integration_test.go index 1a9a132..484386d 100644 --- a/internal/license/integration/license_integration_test.go +++ b/internal/license/integration/license_integration_test.go @@ -12,8 +12,8 @@ import ( "context" "testing" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/license" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/license" "github.com/stretchr/testify/assert" ) diff --git a/internal/mpimage/uri.go b/internal/mpimage/uri.go index 7af4e3d..62a17a3 100644 --- a/internal/mpimage/uri.go +++ b/internal/mpimage/uri.go @@ -11,9 +11,9 @@ import ( "net/url" "strings" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/semver" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/semver" ) // MarketplaceImage represents a CSP-agnostic marketplace image. diff --git a/internal/nodestate/nodestate.go b/internal/nodestate/nodestate.go index 4a59cfb..21120d0 100644 --- a/internal/nodestate/nodestate.go +++ b/internal/nodestate/nodestate.go @@ -10,8 +10,8 @@ package nodestate import ( "fmt" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/role" ) const nodeStatePath = "/run/state/constellation/node_state.json" diff --git a/internal/nodestate/nodestate_test.go b/internal/nodestate/nodestate_test.go index abed306..505361f 100644 --- a/internal/nodestate/nodestate_test.go +++ b/internal/nodestate/nodestate_test.go @@ -10,8 +10,8 @@ import ( "path/filepath" "testing" - "cvm-reverse-proxy/internal/file" - "cvm-reverse-proxy/internal/role" + "github.com/flashbots/cvm-reverse-proxy/internal/file" + "github.com/flashbots/cvm-reverse-proxy/internal/role" "github.com/spf13/afero" "github.com/stretchr/testify/assert" diff --git a/internal/osimage/archive/archive.go b/internal/osimage/archive/archive.go index 2513a1b..d162c47 100644 --- a/internal/osimage/archive/archive.go +++ b/internal/osimage/archive/archive.go @@ -15,9 +15,9 @@ import ( "net/url" "time" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/osimage/imageinfo/imageinfo.go b/internal/osimage/imageinfo/imageinfo.go index 2b8d260..3f2d531 100644 --- a/internal/osimage/imageinfo/imageinfo.go +++ b/internal/osimage/imageinfo/imageinfo.go @@ -16,9 +16,9 @@ import ( "net/url" "time" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/osimage/measurementsuploader/measurementsuploader.go b/internal/osimage/measurementsuploader/measurementsuploader.go index 1976932..d607d7b 100644 --- a/internal/osimage/measurementsuploader/measurementsuploader.go +++ b/internal/osimage/measurementsuploader/measurementsuploader.go @@ -16,10 +16,10 @@ import ( "net/url" "time" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/staticupload" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/staticupload" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/s3" diff --git a/internal/osimage/nop/nop.go b/internal/osimage/nop/nop.go index ee0b6a5..f325c96 100644 --- a/internal/osimage/nop/nop.go +++ b/internal/osimage/nop/nop.go @@ -12,8 +12,8 @@ import ( "fmt" "log/slog" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/osimage" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/osimage" ) // Uploader is a no-op uploader. diff --git a/internal/osimage/osimage.go b/internal/osimage/osimage.go index f91f59f..0408f45 100644 --- a/internal/osimage/osimage.go +++ b/internal/osimage/osimage.go @@ -11,8 +11,8 @@ import ( "io" "time" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" ) // UploadRequest is a request to upload an os image. diff --git a/internal/osimage/uplosi/uplosiupload.go b/internal/osimage/uplosi/uplosiupload.go index fcd39dc..012459a 100644 --- a/internal/osimage/uplosi/uplosiupload.go +++ b/internal/osimage/uplosi/uplosiupload.go @@ -21,9 +21,9 @@ import ( "strings" "time" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/cloud/cloudprovider" - "cvm-reverse-proxy/internal/osimage" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/cloud/cloudprovider" + "github.com/flashbots/cvm-reverse-proxy/internal/osimage" "github.com/BurntSushi/toml" ) diff --git a/internal/semver/semver.go b/internal/semver/semver.go index 2ed7db4..dc3424c 100644 --- a/internal/semver/semver.go +++ b/internal/semver/semver.go @@ -22,7 +22,7 @@ import ( "sort" "strings" - "cvm-reverse-proxy/internal/compatibility" + "github.com/flashbots/cvm-reverse-proxy/internal/compatibility" "golang.org/x/mod/semver" ) diff --git a/internal/sigstore/keyselect/keyselect.go b/internal/sigstore/keyselect/keyselect.go index 00a8497..22da2a1 100644 --- a/internal/sigstore/keyselect/keyselect.go +++ b/internal/sigstore/keyselect/keyselect.go @@ -12,8 +12,8 @@ package keyselect import ( "fmt" - "cvm-reverse-proxy/internal/api/versionsapi" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/api/versionsapi" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" ) // CosignPublicKeyForVersion returns the public key for the given version. diff --git a/internal/staticupload/staticupload.go b/internal/staticupload/staticupload.go index c26623c..788cd39 100644 --- a/internal/staticupload/staticupload.go +++ b/internal/staticupload/staticupload.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" awsconfig "github.com/aws/aws-sdk-go-v2/config" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" diff --git a/internal/staticupload/staticupload_test.go b/internal/staticupload/staticupload_test.go index d979268..fe6cb5b 100644 --- a/internal/staticupload/staticupload_test.go +++ b/internal/staticupload/staticupload_test.go @@ -16,7 +16,7 @@ import ( "testing" "time" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" s3manager "github.com/aws/aws-sdk-go-v2/feature/s3/manager" "github.com/aws/aws-sdk-go-v2/service/cloudfront" diff --git a/internal/verify/verify.go b/internal/verify/verify.go index 8580439..35e03d8 100644 --- a/internal/verify/verify.go +++ b/internal/verify/verify.go @@ -25,8 +25,8 @@ import ( "net/url" "strings" - "cvm-reverse-proxy/internal/attestation/snp" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp" + "github.com/flashbots/cvm-reverse-proxy/internal/config" "github.com/golang-jwt/jwt/v5" "github.com/google/go-sev-guest/abi" diff --git a/internal/verify/verify_test.go b/internal/verify/verify_test.go index 8079106..54e6d5c 100644 --- a/internal/verify/verify_test.go +++ b/internal/verify/verify_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "cvm-reverse-proxy/internal/attestation/snp/testdata" - "cvm-reverse-proxy/internal/logger" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/snp/testdata" + "github.com/flashbots/cvm-reverse-proxy/internal/logger" "github.com/stretchr/testify/assert" ) diff --git a/internal/versions/versions.go b/internal/versions/versions.go index 01185e8..1b9294c 100644 --- a/internal/versions/versions.go +++ b/internal/versions/versions.go @@ -17,9 +17,9 @@ import ( "sort" "strings" - "cvm-reverse-proxy/internal/compatibility" - "cvm-reverse-proxy/internal/constants" - "cvm-reverse-proxy/internal/versions/components" + "github.com/flashbots/cvm-reverse-proxy/internal/compatibility" + "github.com/flashbots/cvm-reverse-proxy/internal/constants" + "github.com/flashbots/cvm-reverse-proxy/internal/versions/components" "golang.org/x/mod/semver" ) diff --git a/proxy/atls_config.go b/proxy/atls_config.go index c1948f6..6136c17 100644 --- a/proxy/atls_config.go +++ b/proxy/atls_config.go @@ -10,11 +10,11 @@ import ( "log/slog" "os" - "cvm-reverse-proxy/internal/atls" - azure_tdx "cvm-reverse-proxy/internal/attestation/azure/tdx" - "cvm-reverse-proxy/internal/attestation/measurements" - "cvm-reverse-proxy/internal/attestation/variant" - "cvm-reverse-proxy/internal/config" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + azure_tdx "github.com/flashbots/cvm-reverse-proxy/internal/attestation/azure/tdx" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/measurements" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/config" ) type AttestationType string diff --git a/proxy/mutli_validator.go b/proxy/mutli_validator.go index 42716ee..c508dd6 100644 --- a/proxy/mutli_validator.go +++ b/proxy/mutli_validator.go @@ -4,7 +4,7 @@ import ( "context" "encoding/asn1" - "cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" ) // MultiValidator is a validator for Azure confidential VM attestation using TDX which accepts multiple measurements diff --git a/proxy/proxy.go b/proxy/proxy.go index 256b7ad..8e3688c 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -11,8 +11,8 @@ import ( "net/url" "strings" - "cvm-reverse-proxy/internal/atls" - "cvm-reverse-proxy/internal/attestation/variant" + "github.com/flashbots/cvm-reverse-proxy/internal/atls" + "github.com/flashbots/cvm-reverse-proxy/internal/attestation/variant" ) type Proxy struct {