diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..9088a01 --- /dev/null +++ b/NOTICE @@ -0,0 +1,9 @@ +This repository is a community fork of hashicorp/boundary-plugin-gcp +(https://github.com/hashicorp/boundary-plugin-gcp), maintained for Threshold. + +The original work is licensed under the Mozilla Public License 2.0 (see LICENSE). +Original copyright IBM Corp. / HashiCorp, Inc. is retained in all source file +headers and in LICENSE. Modifications are limited to the Go module path and the +import paths of the Boundary SDK/API packages. + +This fork is not affiliated with, endorsed by, or supported by HashiCorp or IBM. diff --git a/README.md b/README.md index f52673e..5da724c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +## About this fork + +This is a community fork of +[hashicorp/boundary-plugin-gcp](https://github.com/hashicorp/boundary-plugin-gcp) +for use with Threshold. It is licensed under the MPL-2.0 (see `LICENSE`), and +the original copyright notices are retained. It is not affiliated with, +endorsed by, or supported by HashiCorp or IBM. Changes from upstream are limited +to the Go module path and SDK import paths; see `NOTICE`. + # GCP Plugin for HashiCorp Boundary This repo contains the GCP plugin for [HashiCorp diff --git a/go.mod b/go.mod index 765eb88..889662b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/hashicorp/boundary-plugin-gcp +module repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp go 1.26.0 @@ -7,7 +7,7 @@ require ( cloud.google.com/go/resourcemanager v1.10.7 github.com/google/go-cmp v0.7.0 github.com/googleapis/gax-go/v2 v2.17.0 - github.com/hashicorp/boundary/sdk v0.0.47 + repo.anhonesthost.net/CyberCoveLLC/threshold/sdk v0.1.0 github.com/hashicorp/terraform-json v0.23.0 golang.org/x/oauth2 v0.36.0 google.golang.org/api v0.264.0 diff --git a/go.sum b/go.sum index af71eba..2f20931 100644 --- a/go.sum +++ b/go.sum @@ -64,8 +64,6 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.11 h1:vAe81Msw+8tKUxi2Dq github.com/googleapis/enterprise-certificate-proxy v0.3.11/go.mod h1:RFV7MUdlb7AgEq2v7FmMCfeSMCllAzWxFgRdusoGks8= github.com/googleapis/gax-go/v2 v2.17.0 h1:RksgfBpxqff0EZkDWYuz9q/uWsTVz+kf43LsZ1J6SMc= github.com/googleapis/gax-go/v2 v2.17.0/go.mod h1:mzaqghpQp4JDh3HvADwrat+6M3MOIDp5YKHhb9PAgDY= -github.com/hashicorp/boundary/sdk v0.0.47 h1:h5AXOASS2duHkCYEmNKnI9AR6YBZxD7VbFPV8BoE0z0= -github.com/hashicorp/boundary/sdk v0.0.47/go.mod h1:9iOT7kDM6mYcSkKxNuZlv8rP7U5BG1kXoevjLLL8lNQ= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= diff --git a/internal/credential/attributes.go b/internal/credential/attributes.go index e9906dd..e6649bb 100644 --- a/internal/credential/attributes.go +++ b/internal/credential/attributes.go @@ -6,8 +6,8 @@ package credential import ( "fmt" - "github.com/hashicorp/boundary-plugin-gcp/internal/errors" - "github.com/hashicorp/boundary-plugin-gcp/internal/values" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/errors" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/values" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/internal/credential/state.go b/internal/credential/state.go index 6569b3c..26f876a 100644 --- a/internal/credential/state.go +++ b/internal/credential/state.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "github.com/hashicorp/boundary-plugin-gcp/internal/values" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/values" "google.golang.org/api/option" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/plugin/plugin.go b/plugin/plugin.go index de8d04f..d815008 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -4,8 +4,8 @@ package plugin import ( - "github.com/hashicorp/boundary-plugin-gcp/plugin/service/host" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/plugin/service/host" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" ) // Ensure that HostPlugin implements the following services: diff --git a/plugin/service/host/attributes.go b/plugin/service/host/attributes.go index bf734f1..d97664c 100644 --- a/plugin/service/host/attributes.go +++ b/plugin/service/host/attributes.go @@ -8,9 +8,9 @@ import ( "strings" computepb "cloud.google.com/go/compute/apiv1/computepb" - cred "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - "github.com/hashicorp/boundary-plugin-gcp/internal/errors" - "github.com/hashicorp/boundary-plugin-gcp/internal/values" + cred "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/errors" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/values" "github.com/mitchellh/mapstructure" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/plugin/service/host/attributes_test.go b/plugin/service/host/attributes_test.go index 9436c72..4413e58 100644 --- a/plugin/service/host/attributes_test.go +++ b/plugin/service/host/attributes_test.go @@ -7,7 +7,7 @@ import ( "testing" computepb "cloud.google.com/go/compute/apiv1/computepb" - cred "github.com/hashicorp/boundary-plugin-gcp/internal/credential" + cred "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/plugin/service/host/client.go b/plugin/service/host/client.go index 863c733..3b83f23 100644 --- a/plugin/service/host/client.go +++ b/plugin/service/host/client.go @@ -9,7 +9,7 @@ import ( "strconv" computepb "cloud.google.com/go/compute/apiv1/computepb" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "google.golang.org/api/iterator" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/plugin/service/host/client_test.go b/plugin/service/host/client_test.go index 19aabb6..a800a94 100644 --- a/plugin/service/host/client_test.go +++ b/plugin/service/host/client_test.go @@ -10,8 +10,8 @@ import ( "testing" "cloud.google.com/go/compute/apiv1/computepb" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "github.com/stretchr/testify/require" ) diff --git a/plugin/service/host/plugin.go b/plugin/service/host/plugin.go index 19a754a..4722fa1 100644 --- a/plugin/service/host/plugin.go +++ b/plugin/service/host/plugin.go @@ -10,10 +10,10 @@ import ( "strings" computepb "cloud.google.com/go/compute/apiv1/computepb" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - errors "github.com/hashicorp/boundary-plugin-gcp/internal/errors" - "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostsets" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + errors "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/errors" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/hostsets" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "github.com/mitchellh/mapstructure" "google.golang.org/api/iterator" "google.golang.org/api/option" diff --git a/plugin/service/host/plugin_test.go b/plugin/service/host/plugin_test.go index c8b82bf..b5f11cf 100644 --- a/plugin/service/host/plugin_test.go +++ b/plugin/service/host/plugin_test.go @@ -16,10 +16,10 @@ import ( "cloud.google.com/go/iam/apiv1/iampb" "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" "github.com/google/go-cmp/cmp" - cred "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostcatalogs" - "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostsets" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + cred "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/hostsets" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "github.com/stretchr/testify/require" "google.golang.org/api/option" "google.golang.org/grpc" diff --git a/plugin/service/host/state.go b/plugin/service/host/state.go index 3188475..8fbb96e 100644 --- a/plugin/service/host/state.go +++ b/plugin/service/host/state.go @@ -11,8 +11,8 @@ import ( compute "cloud.google.com/go/compute/apiv1" computepb "cloud.google.com/go/compute/apiv1/computepb" "github.com/googleapis/gax-go/v2" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "google.golang.org/api/iterator" "google.golang.org/api/option" "google.golang.org/protobuf/types/known/structpb" diff --git a/plugin/service/host/state_test.go b/plugin/service/host/state_test.go index 89800d1..32fd3db 100644 --- a/plugin/service/host/state_test.go +++ b/plugin/service/host/state_test.go @@ -10,7 +10,7 @@ import ( "time" computepb "cloud.google.com/go/compute/apiv1/computepb" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "google.golang.org/api/option" diff --git a/plugin/service/host/testing.go b/plugin/service/host/testing.go index 1280e1d..ef8cd15 100644 --- a/plugin/service/host/testing.go +++ b/plugin/service/host/testing.go @@ -13,7 +13,7 @@ import ( compute "cloud.google.com/go/compute/apiv1" "cloud.google.com/go/compute/apiv1/computepb" "github.com/googleapis/gax-go/v2" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" "google.golang.org/api/option" ) diff --git a/testing/e2e_host_test.go b/testing/e2e_host_test.go index 1fcf8cf..0016e0b 100644 --- a/testing/e2e_host_test.go +++ b/testing/e2e_host_test.go @@ -11,11 +11,11 @@ import ( "testing" "time" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - "github.com/hashicorp/boundary-plugin-gcp/plugin/service/host" - "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostcatalogs" - "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostsets" - pb "github.com/hashicorp/boundary/sdk/pbs/plugin" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/plugin/service/host" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/controller/api/resources/hostsets" + pb "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/pbs/plugin" "github.com/stretchr/testify/require" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/testing/testing.go b/testing/testing.go index ed8ba93..c01be63 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/hashicorp/boundary-plugin-gcp/internal/credential" - "github.com/hashicorp/boundary-plugin-gcp/internal/values" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/credential" + "repo.anhonesthost.net/CyberCoveLLC/threshold-plugin-gcp/internal/values" tfjson "github.com/hashicorp/terraform-json" "github.com/stretchr/testify/require" "google.golang.org/api/option"