diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 00000000..74dae88b --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,48 @@ +name: ci + +on: + push: + branches: [main] + tags-ignore: ['**'] + workflow_dispatch: + schedule: + - cron: '17 6 * * *' + +env: + GOPRIVATE: repo.anhonesthost.net + GOFLAGS: -buildvcs=false + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + cache: false + + - name: Build + run: go build ./... + + - name: Vet + run: go vet ./... + + - name: Unit tests (no controller required) + run: make test + + - name: Build release binary (linux/amd64) + run: | + CGO_ENABLED=0 go build -trimpath -o "$RUNNER_TEMP/terraform-provider-threshold" . + test -x "$RUNNER_TEMP/terraform-provider-threshold" + + - name: govulncheck + run: | + go install golang.org/x/vuln/cmd/govulncheck@v1.9.0 + "$(go env GOPATH)/bin/govulncheck" ./... + + - name: osv-scanner + run: | + go install github.com/google/osv-scanner/v2/cmd/osv-scanner@v2.7.0 + "$(go env GOPATH)/bin/osv-scanner" scan source -r . diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index eb4d157a..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -# See GitHub's docs for more information on this file: -# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates -version: 2 -updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - # Check for updates to GitHub Actions every Sunday - interval: "weekly" - day: "sunday" - groups: - # Group all GitHub Actions updates into a single PR - actions: - patterns: - - "*" - - - package-ecosystem: "gomod" - directories: - - "/" - - "/plugins/kms/mains/alicloudkms" - - "/plugins/kms/mains/awskms" - - "/plugins/kms/mains/azurekeyvault" - - "/plugins/kms/mains/gcpckms" - - "/plugins/kms/mains/ocikms" - - "/plugins/kms/mains/transit" - schedule: - # Check for updates to Go modules every Sunday - interval: "weekly" - day: "sunday" - groups: - # Group all Go module updates into one PR for version updates - # and one for security updates. - go: - patterns: - - "*" - applies-to: "version-updates" - go-security: - patterns: - - "*" - applies-to: "security-updates" diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml deleted file mode 100644 index 5a781c52..00000000 --- a/.github/workflows/actionlint.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Lint GitHub Actions workflows -on: push - -permissions: - contents: read - -jobs: - actionlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Check workflow files - uses: docker://docker.mirror.hashicorp.services/rhysd/actionlint@sha256:02ccb6d91e4cb4a7b21eb99d5274d257e81ae667688d730e89d7ea0d6d35db91 - with: - args: -color diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index a359fe99..00000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,200 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 -# -# This workflow builds the product for all supported platforms and uploads the resulting -# binaries as Actions artifacts. The workflow also uploads a build metadata file -# (metadata.json) -- and a Terraform Registry manifest file (terraform-registry-manifest.json). -# -# Reference: https://github.com/hashicorp/terraform-provider-crt-example/blob/main/.github/workflows/README.md -# - -name: build - -# We default to running this workflow on every push to every branch. -# This provides fast feedback when build issues occur, so they can be -# fixed prior to being merged to the main branch. -# -# If you want to opt out of this, and only run the build on certain branches -# please refer to the documentation on branch filtering here: -# -# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore -# -on: [workflow_dispatch, push] - -env: - PKG_NAME: "terraform-provider-boundary" - -permissions: - contents: read - -jobs: - # Detects the Go version to use for builds. - get-go-version: - name: "Detect Go toolchain version" - runs-on: ubuntu-latest - outputs: - go-version: ${{ steps.get-go-version.outputs.go-version }} - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Detect Go version - id: get-go-version - # We use .go-version as our source of truth for current Go version, - # because "goenv" can react to it automatically. - run: | - echo "Building with Go $(cat .go-version)" - echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT" - - name: Set up Go - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 - with: - go-version: "${{ steps.get-go-version.outputs.go-version }}" - cache: false - - # Parses the version/VERSION file. Reference: https://github.com/hashicorp/actions-set-product-version/blob/main/README.md - # - # > This action should be implemented in product repo `build.yml` files. The action is intended to grab the version - # > from the version file at the beginning of the build, then passes those versions (along with metadata, where - # > necessary) to any workflow jobs that need version information. - set-product-version: - name: "Parse version file" - runs-on: ubuntu-latest - outputs: - product-version: ${{ steps.set-product-version.outputs.product-version }} - product-base-version: ${{ steps.set-product-version.outputs.base-product-version }} - product-prerelease-version: ${{ steps.set-product-version.outputs.prerelease-product-version }} - product-minor-version: ${{ steps.set-product-version.outputs.minor-product-version }} - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Set variables - id: set-product-version - uses: hashicorp/actions-set-product-version@v2 - with: - checkout: false - - # Creates metadata.json file containing build metadata for consumption by CRT workflows. - # - # Reference: https://github.com/hashicorp/actions-generate-metadata/blob/main/README.md - generate-metadata-file: - needs: set-product-version - runs-on: ubuntu-latest - outputs: - filepath: ${{ steps.generate-metadata-file.outputs.filepath }} - steps: - - name: "Checkout directory" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Generate metadata file - id: generate-metadata-file - uses: hashicorp/actions-generate-metadata@v1 - with: - version: ${{ needs.set-product-version.outputs.product-version }} - product: ${{ env.PKG_NAME }} - repositoryOwner: "hashicorp" - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: metadata.json - path: ${{ steps.generate-metadata-file.outputs.filepath }} - - # Uploads an Actions artifact named terraform-registry-manifest.json.zip. - # - # The artifact contains a single file with a filename that Terraform Registry expects - # (example: terraform-provider-crt-example_2.3.6-alpha1_manifest.json). The file contents - # are identical to the terraform-registry-manifest.json file in the source repository. - upload-terraform-registry-manifest-artifact: - needs: set-product-version - runs-on: ubuntu-latest - steps: - - name: "Checkout directory" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - path: ${{ env.PKG_NAME }} - - name: "Copy manifest from checkout directory to a file with the desired name" - id: terraform-registry-manifest - run: | - name="${{ env.PKG_NAME }}" - version="${{ needs.set-product-version.outputs.product-version }}" - - source="${name}/terraform-registry-manifest.json" - destination="${name}_${version}_manifest.json" - - cp "$source" "$destination" - echo "filename=$destination" >> "$GITHUB_OUTPUT" - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 - with: - name: terraform-registry-manifest.json - path: ${{ steps.terraform-registry-manifest.outputs.filename }} - if-no-files-found: error - - # Builds the product for supported platforms. - # - # With `reproducible: report`, this job also reports whether the build is reproducible, - # but does not enforce it. - # - # Reference: https://github.com/hashicorp/actions-go-build/blob/main/README.md - build: - needs: - - get-go-version - - set-product-version - runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - goos: [freebsd, windows, linux, darwin] - goarch: ["386", "amd64", "arm", "arm64"] - exclude: - - goos: freebsd - goarch: arm64 - - goos: windows - goarch: arm64 - - goos: windows - goarch: arm - - goos: darwin - goarch: 386 - - goos: darwin - goarch: arm - - name: Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: hashicorp/actions-go-build@v1 - env: - CGO_ENABLED: 0 - BASE_VERSION: ${{ needs.set-product-version.outputs.product-base-version }} - PRERELEASE_VERSION: ${{ needs.set-product-version.outputs.product-prerelease-version}} - METADATA_VERSION: ${{ env.METADATA }} - with: - bin_name: "${{ env.PKG_NAME }}_v${{ needs.set-product-version.outputs.product-version }}_x5" - product_name: ${{ env.PKG_NAME }} - product_version: ${{ needs.set-product-version.outputs.product-version }} - go_version: ${{ needs.get-go-version.outputs.go-version }} - os: ${{ matrix.goos }} - arch: ${{ matrix.goarch }} - reproducible: report - instructions: | - go mod download && ./scripts/plugins-all.sh - go build \ - -o "$BIN_PATH" \ - -trimpath \ - -buildvcs=false \ - -ldflags "-s -w -X 'main.version=${{ needs.set-product-version.outputs.product-version }}'" - cp LICENSE "$TARGET_DIR/LICENSE.txt" - - whats-next: - needs: - - build - - generate-metadata-file - - upload-terraform-registry-manifest-artifact - runs-on: ubuntu-latest - name: "What's next?" - steps: - - name: "Write a helpful summary" - run: | - github_dot_com="${{ github.server_url }}" - owner_with_name="${{ github.repository }}" - ref="${{ github.ref }}" - - { - echo "### What's next?" - echo "#### For a release branch (see \`.release/ci.hcl\`)" - echo "After this \`build\` workflow run completes succesfully, you can expect the CRT \`prepare\` workflow to begin momentarily." - echo "To find the \`prepare\` workflow run, [view the checks for this commit]($github_dot_com/$owner_with_name/commits/$ref)" - } >> "$GITHUB_STEP_SUMMARY" - diff --git a/.github/workflows/make-gen-delta.yml b/.github/workflows/make-gen-delta.yml deleted file mode 100644 index 7a8dfc78..00000000 --- a/.github/workflows/make-gen-delta.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: "make-gen-delta" -on: - - workflow_dispatch - - push - - pull_request - - workflow_call - -permissions: - contents: read - -jobs: - make-gen-delta: - name: "Check for uncommitted changes from make gen" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: '0' - - name: Determine Go version - id: get-go-version - # We use .go-version as our source of truth for current Go - # version, because "goenv" can react to it automatically. - run: | - echo "Building with Go $(cat .go-version)" - echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT" - - name: Set up Go - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 - with: - go-version: "${{ steps.get-go-version.outputs.go-version }}" - - name: Running go mod tidy - run: | - go mod tidy - - name: Install Dependencies - run: | - make tools - - name: Running make gen - run: | - make gen - - name: Check for changes - run: | - git diff --exit-code - git status --porcelain - test -z "$(git status --porcelain)" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 3514d6d8..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: test - -on: - - push - - pull_request - - workflow_dispatch - - workflow_call - -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-latest - if: github.event.pull_request.head.repo.fork != 'true' - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Determine go version - id: get-go-version - # We use .go-version as our source of truth for current Go - # version, because "goenv" can react to it automatically. - run: | - echo "Building with Go $(cat .go-version)" - echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT" - - name: Set up Go - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 - with: - go-version: "${{ steps.get-go-version.outputs.go-version }}" - cache: false - - name: Determine Go cache paths - id: go-cache-paths - run: | - echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" - echo "go-mod=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT" - - name: Set up Go modules cache - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - with: - path: | - ${{ steps.go-cache-paths.outputs.go-build }} - ${{ steps.go-cache-paths.outputs.go-mod }} - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go - - name: Determine boundary version - id: get-boundary-version - run: | - echo "Testing with boundary-enterprise $(cat .boundary-version)" - echo "boundary-version=$(cat .boundary-version)" >> "$GITHUB_OUTPUT" - - name: Download boundary-enterprise - run: | - VERSION="${{ steps.get-boundary-version.outputs.boundary-version }}" - - release=$(curl -s "https://api.releases.hashicorp.com/v1/releases/boundary/${VERSION}?license_class=enterprise") - binary_url=$(echo "$release" | jq -r '.builds[] | select(.os == "linux" and .arch == "amd64") | .url') - shasums_url=$(echo "$release" | jq -r '.url_shasums') - shasums_sig_url=$(echo "$release" | jq -r '.url_shasums_signatures[0]') - - # Download boundary, checksums, and checksum signature - echo "::group::Download files" - wget -q --server-response "$binary_url" - wget -q --server-response -O boundary_SHA256SUMS "$shasums_url" - wget -q --server-response -O boundary_SHA256SUMS.sig "$shasums_sig_url" - echo "::endgroup::" - - # Verify signature against HashiCorp's public key - echo "::group::Verify signature" - export GNUPGHOME=./.gnupg - mkdir -p "$GNUPGHOME" && chmod 700 "$GNUPGHOME" - curl -s https://www.hashicorp.com/.well-known/pgp-key.txt | gpg --import - gpg --verify boundary_SHA256SUMS.sig boundary_SHA256SUMS - grep "boundary_${VERSION}_linux_amd64.zip" boundary_SHA256SUMS | shasum --algorithm 256 --check - echo "::endgroup::" - - echo "::group::Extract boundary executable" - mkdir -p "$HOME/bin" - unzip "boundary_${VERSION}_linux_amd64.zip" -d "$HOME/bin" - echo "$HOME/bin" >> "${GITHUB_PATH}" - echo "::endgroup::" - - name: Verify boundary version - run: | - boundary version - - name: Acceptance Tests - env: - BOUNDARY_ADDR: http://localhost:9200 - BOUNDARY_LICENSE: ${{ secrets.BOUNDARY_LICENSE }} - run: | - make testacc diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..e2f0aa3f --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: MPL-2.0 +# Local/unsigned release config. No GPG signing, Vault, Artifactory or +# Terraform Registry publishing: this fork has no registry. +# Try it with: goreleaser build --snapshot --clean +version: 2 +project_name: terraform-provider-threshold +before: + hooks: + - go mod tidy +builds: + - id: provider + main: . + binary: "{{ .ProjectName }}_v{{ .Version }}" + env: + - CGO_ENABLED=0 + flags: + - -trimpath + ldflags: + - -s -w + goos: [linux, darwin, windows] + goarch: [amd64, arm64] +archives: + - formats: [zip] + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" +checksum: + name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS" + algorithm: sha256 +release: + disable: true +changelog: + disable: true diff --git a/.release/ci.hcl b/.release/ci.hcl deleted file mode 100644 index 0eb99e56..00000000 --- a/.release/ci.hcl +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright IBM Corp. 2020, 2026 -# SPDX-License-Identifier: MPL-2.0 -# -# Reference: https://github.com/hashicorp/crt-core-helloworld/blob/main/.release/ci.hcl (private repository) -# -# One way to validate this file, with a local build of the orchestrator (an internal repo): -# -# $ GITHUB_TOKEN="not-used" orchestrator parse config -use-v2 -local-config=.release/ci.hcl - -schema = "2" - -project "terraform-provider-boundary" { - // team is currently unused and has no meaning - // but is required to be non-empty by CRT orchestator - team = "_UNUSED_" - - slack { - notification_channel = "C01BWLSMJ03" // #proj-boundary-release-engineering - } - - github { - organization = "hashicorp" - repository = "terraform-provider-boundary" - release_branches = ["main", "release/**"] - } -} - -event "merge" { -} - -event "build" { - action "build" { - depends = ["merge"] - - organization = "hashicorp" - repository = "terraform-provider-boundary" - workflow = "build" - } -} - -event "prepare" { - # `prepare` is the Common Release Tooling (CRT) artifact processing workflow. - # It prepares artifacts for potential promotion to staging and production. - # For example, it scans and signs artifacts. - - depends = ["build"] - - action "prepare" { - organization = "hashicorp" - repository = "crt-workflows-common" - workflow = "prepare" - depends = ["build"] - } - - notification { - on = "fail" - } -} - -event "trigger-staging" { -} - -event "promote-staging" { - action "promote-staging" { - organization = "hashicorp" - repository = "crt-workflows-common" - workflow = "promote-staging" - depends = null - config = "release-metadata.hcl" - } - - depends = ["trigger-staging"] - - notification { - on = "always" - } -} - -event "trigger-production" { -} - -event "promote-production" { - action "promote-production" { - organization = "hashicorp" - repository = "crt-workflows-common" - workflow = "promote-production" - depends = null - config = "" - } - - depends = ["trigger-production"] - - notification { - on = "always" - } -} diff --git a/.release/release-metadata.hcl b/.release/release-metadata.hcl deleted file mode 100644 index a6005f3c..00000000 --- a/.release/release-metadata.hcl +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright IBM Corp. 2020, 2026 -# SPDX-License-Identifier: MPL-2.0 - -url_source_repository = "https://github.com/hashicorp/terraform-provider-boundary" -url_project_website = "https://registry.terraform.io/providers/hashicorp/boundary" -url_license = "https://github.com/hashicorp/terraform-provider-boundary/blob/main/LICENSE" -url_release_notes = "https://github.com/hashicorp/terraform-provider-boundary/blob/main/CHANGELOG.md" diff --git a/.release/security-scan.hcl b/.release/security-scan.hcl deleted file mode 100644 index c6d28da2..00000000 --- a/.release/security-scan.hcl +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright IBM Corp. 2020, 2026 -# SPDX-License-Identifier: MPL-2.0 -# -# Reference: https://github.com/hashicorp/security-scanner/blob/main/CONFIG.md#binary (private repository) - -binary { - secrets { - all = true - } - go_modules = true - osv = true - oss_index = false - nvd = false -} diff --git a/.release/terraform-provider-boundary-artifacts.hcl b/.release/terraform-provider-boundary-artifacts.hcl deleted file mode 100644 index 924b0df3..00000000 --- a/.release/terraform-provider-boundary-artifacts.hcl +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright IBM Corp. 2020, 2026 -# SPDX-License-Identifier: MPL-2.0 - -schema = 1 -artifacts { - # This should match the `matrix` in .github/workflows/build.yml - zip = [ - "terraform-provider-boundary_${version}_darwin_amd64.zip", - "terraform-provider-boundary_${version}_darwin_arm64.zip", - "terraform-provider-boundary_${version}_freebsd_386.zip", - "terraform-provider-boundary_${version}_freebsd_amd64.zip", - "terraform-provider-boundary_${version}_freebsd_arm.zip", - "terraform-provider-boundary_${version}_linux_386.zip", - "terraform-provider-boundary_${version}_linux_amd64.zip", - "terraform-provider-boundary_${version}_linux_arm.zip", - "terraform-provider-boundary_${version}_linux_arm64.zip", - "terraform-provider-boundary_${version}_windows_386.zip", - "terraform-provider-boundary_${version}_windows_amd64.zip", - ] -} diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index a75df121..00000000 --- a/CODEOWNERS +++ /dev/null @@ -1,4 +0,0 @@ -# These owners will be the default owners for everything in -# the repo, unless a later match takes precedence. - -* @hashicorp/boundary diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f2c6dae8..00000000 --- a/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright IBM Corp. 2020, 2026 -# SPDX-License-Identifier: MPL-2.0 - -FROM golang:1.20 - -WORKDIR /go/src/terraform-provider-boundary -COPY . . - -RUN go get -d -v ./... -RUN go install -v ./... diff --git a/Makefile b/Makefile index 229c62de..986d41c5 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ default: testacc GOOS=$(shell go env GOOS) GOARCH=$(shell go env GOARCH) -INSTALL_PATH=~/.local/share/terraform/plugins/localhost/providers/boundary/0.0.1/linux_$(GOARCH) +INSTALL_PATH=~/.local/share/terraform/plugins/repo.anhonesthost.net/cybercovellc/threshold/0.0.1/linux_$(GOARCH) BUILD_ALL_PATH=${PWD}/bin ifeq ($(GOOS), darwin) - INSTALL_PATH=~/Library/Application\ Support/io.terraform/plugins/localhost/providers/boundary/0.0.1/darwin_$(GOARCH) + INSTALL_PATH=~/Library/Application\ Support/io.terraform/plugins/repo.anhonesthost.net/cybercovellc/threshold/0.0.1/darwin_$(GOARCH) endif ifeq ($(GOOS), "windows") - INSTALL_PATH=%APPDATA%/HashiCorp/Terraform/plugins/localhost/providers/boundary/0.0.1/windows_$(GOARCH) + INSTALL_PATH=%APPDATA%/HashiCorp/Terraform/plugins/repo.anhonesthost.net/cybercovellc/threshold/0.0.1/windows_$(GOARCH) endif REGISTRY_NAME?=docker.io/hashicorpboundary @@ -25,8 +25,19 @@ tools: go generate -tags tools tools/tools.go go install github.com/hashicorp/copywrite@v0.15.0 +# Unit tests: only the tests that do not need a running Threshold/Boundary +# controller. Everything else is an acceptance test, run via `make testacc`. +UNIT_TESTS = ^(TestProvider|TestSetFromVaultCredentialStoreResponseMapReadsWorkerFilterFromAttributes|TestAccTargetWithAddress_HostSourceAndAddressConflict|TestValidateTargetAliasScope|TestAliasSuffixFromScopeResponseMap|TestValidateAliasSuffixScope)$$ + test: - echo "Placeholder" + go test ./... -count=1 -run '$(UNIT_TESTS)' + +VERSION ?= $(shell cat version/VERSION) + +# Cross-compile release binaries for linux/darwin/windows x amd64/arm64 into dist/ +.PHONY: build-all +build-all: + ./scripts/build-release.sh $(VERSION) # Run acceptance tests testacc: @@ -35,17 +46,17 @@ testacc: dev: GOOS=${GOOS} GOARCH=${GOARCH} ./scripts/plugins.sh mkdir -p $(INSTALL_PATH) - go build -o $(INSTALL_PATH)/terraform-provider-boundary main.go + go build -o $(INSTALL_PATH)/terraform-provider-threshold main.go dev-no-plugins: mkdir -p $(INSTALL_PATH) - go build -o $(INSTALL_PATH)/terraform-provider-boundary main.go + go build -o $(INSTALL_PATH)/terraform-provider-threshold main.go all: mkdir -p $(BUILD_ALL_PATH) - GOOS=darwin go build -o $(BUILD_ALL_PATH)/terraform-provider-boundary_darwin-amd64 main.go - GOOS=windows go build -o $(BUILD_ALL_PATH)/terraform-provider-boundary_windows-amd64 main.go - GOOS=linux go build -o $(BUILD_ALL_PATH)/terraform-provider-boundary_linux-amd64 main.go + GOOS=darwin go build -o $(BUILD_ALL_PATH)/terraform-provider-threshold_darwin-amd64 main.go + GOOS=windows go build -o $(BUILD_ALL_PATH)/terraform-provider-threshold_windows-amd64 main.go + GOOS=linux go build -o $(BUILD_ALL_PATH)/terraform-provider-threshold_linux-amd64 main.go docs: go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..26545380 --- /dev/null +++ b/NOTICE @@ -0,0 +1,15 @@ +terraform-provider-threshold + +This project is a community fork of terraform-provider-boundary +(https://github.com/hashicorp/terraform-provider-boundary), +Copyright (c) HashiCorp, Inc. / IBM Corp., licensed under the Mozilla Public +License, version 2.0. The original copyright and license notices are retained in +LICENSE and in the source file headers. + +Modifications in this fork (Go module path, imports of the Threshold api/sdk +modules, product wording, removal of HashiCorp release tooling, CI) are made by +CyberCove LLC and its contributors and are likewise made available under MPL-2.0. + +This fork is a community project for Threshold, a community fork of Boundary CE. +It is not affiliated with, endorsed by, or supported by HashiCorp or IBM. +"Boundary", "Terraform" and "HashiCorp" are trademarks of their respective owners. diff --git a/README.md b/README.md index 99570f59..ec045610 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,112 @@ -![](boundary.png) +# Terraform Provider for Threshold -# Terraform Provider Boundary +A community fork of [hashicorp/terraform-provider-boundary](https://github.com/hashicorp/terraform-provider-boundary) +for [Threshold](https://repo.anhonesthost.net/CyberCoveLLC/threshold), itself a community fork of Boundary CE. -Available in the [Terraform Registry](https://registry.terraform.io/providers/hashicorp/boundary/latest). +## About this fork + +- **Upstream:** `hashicorp/terraform-provider-boundary`, licensed MPL-2.0 (see [LICENSE](LICENSE) and [NOTICE](NOTICE)). + This fork is not affiliated with, endorsed by, or supported by HashiCorp or IBM. +- **What changed:** the Go module is `repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold`, + it builds against the Threshold `api` and `sdk` Go modules + (`repo.anhonesthost.net/CyberCoveLLC/threshold/api` and `.../sdk`), and product wording in docs and + schema descriptions says "Threshold". Release plumbing for HashiCorp's CRT/registry pipeline was removed. +- **Compatibility:** resource and data source type names (`boundary_*`), provider arguments (`addr`, + `auth_method_id`, ...) and the `BOUNDARY_*` environment variables are unchanged, so existing Terraform + configurations keep working. Because the resource types start with `boundary_`, Terraform infers the + provider local name `boundary`; keep `boundary = { source = ... }` in `required_providers`. +- **Distribution:** there is no public registry for this provider. Install it from a release zip or a local build + as described below. Its address is `repo.anhonesthost.net/cybercovellc/threshold`. ## Requirements -- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x -- [Go](https://golang.org/doc/install) >= 1.21 +- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x (or OpenTofu) +- [Go](https://golang.org/doc/install) >= 1.26 (see `go.mod`), with `GOPRIVATE=repo.anhonesthost.net` if the Threshold modules are not publicly fetchable -## Building The Provider +## Installing -1. Clone the repository -1. Enter the repository directory -1. Build the provider using `make dev`. This will place the provider onto your system in a [Terraform 0.13-compliant](https://www.terraform.io/upgrade-guides/0-13.html#in-house-providers) manner. +Provider address: `repo.anhonesthost.net/cybercovellc/threshold`. Version `0.1.0` is used in the examples. -You'll need to ensure that your Terraform file contains the information necessary to find the plugin when running `terraform init`. `make dev` will use a version number of 0.0.1, so the following block will work: +### 1. Build locally + +```sh +export GOPRIVATE=repo.anhonesthost.net +make build-all VERSION=0.1.0 # or: scripts/build-release.sh 0.1.0 dist +# single platform, no zip: +go build -o terraform-provider-threshold . +# with goreleaser installed: +goreleaser build --snapshot --clean --single-target +``` + +`make build-all` writes `dist/terraform-provider-threshold___.zip` for linux, darwin and +windows on amd64 and arm64 (needs `zip`). Never commit `dist/`. + +### 2. Filesystem mirror (recommended for shared hosts) + +Terraform's `provider_installation` can serve providers from a local directory. Layout (unpacked form): + +``` +/usr/share/terraform/providers/ + repo.anhonesthost.net/cybercovellc/threshold/0.1.0/linux_amd64/terraform-provider-threshold_v0.1.0 +``` + +or the packed form: `.../repo.anhonesthost.net/cybercovellc/threshold/terraform-provider-threshold_0.1.0_linux_amd64.zip`. +Then in `~/.terraformrc` (`%APPDATA%\terraform.rc` on Windows): + +```hcl +provider_installation { + filesystem_mirror { + path = "/usr/share/terraform/providers" + include = ["repo.anhonesthost.net/cybercovellc/threshold"] + } + direct { + exclude = ["repo.anhonesthost.net/cybercovellc/threshold"] + } +} +``` + +and in your configuration: ```hcl terraform { required_providers { boundary = { - source = "localhost/providers/boundary" - version = "0.0.1" + source = "repo.anhonesthost.net/cybercovellc/threshold" + version = "0.1.0" } } } + +provider "boundary" { + addr = "https://threshold.example.com:9200" + # auth_method_id / auth_method_login_name / auth_method_password, token, or recovery_kms_hcl +} ``` +### 3. dev_overrides (development) + +Build the binary into a directory and point Terraform at it (`terraform init` is not needed, and `terraform plan` +prints a warning): + +```hcl +# ~/.terraformrc +provider_installation { + dev_overrides { + "repo.anhonesthost.net/cybercovellc/threshold" = "/home/you/go/bin" # directory holding terraform-provider-threshold + } + direct {} +} +``` + +`go install .` places `terraform-provider-threshold` in `$GOPATH/bin`. `make dev` installs a `0.0.1` build +into Terraform's implied local mirror under the same address. + +## Building The Provider + +1. Clone the repository +1. Enter the repository directory +1. Build with `go build -o terraform-provider-threshold .` (or `make dev`, which also builds the optional built-in KMS plugins from `plugins/kms/mains`) + ## Adding Dependencies This provider uses [Go modules](https://github.com/golang/go/wiki/Modules). @@ -48,7 +127,9 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or To compile the provider, run `go install`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory. -In order to run the full suite of Acceptance tests, +Unit tests (no controller needed) run with `make test`. All other tests are acceptance tests and require a running +Threshold/Boundary-compatible controller (`BOUNDARY_ADDR`, `BOUNDARY_AUTH_TOKEN`, `BOUNDARY_DEV_RECOVERY_KEY`) and, for the +Vault tests, Docker. In order to run the full suite of Acceptance tests, a postgres docker container must be started first: ```sh @@ -65,23 +146,23 @@ $ make testacc ``` For more details on the docker image and troubleshooting see the -[boundary testing doc](https://github.com/hashicorp/boundary/blob/main/CONTRIBUTING.md#testing). +[Threshold contributing guide](https://repo.anhonesthost.net/CyberCoveLLC/threshold). ## Debugging the provider -If you're using vscode, this provider has delve debugging baked into the [.vscode](https://github.com/hashicorp/terraform-provider-boundary/tree/main/.vscode) directory. To debug you can find instructions [here.](https://dev.to/drewmullen/vscode-terraform-provider-development-setup-debugging-6bn#usage) +If you're using vscode, this provider has delve debugging baked into the [.vscode](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/.vscode) directory. To debug you can find instructions [here.](https://dev.to/drewmullen/vscode-terraform-provider-development-setup-debugging-6bn#usage) ## Generating Docs -This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. Each resource and data source requires a set of examples [examples](https://github.com/hashicorp/terraform-provider-boundary/tree/main/examples) then you execute a binary to generate the docs which are placed in [./docs](https://github.com/hashicorp/terraform-provider-boundary/tree/main/docs). Optionally, you can specify your own [templates](https://github.com/hashicorp/terraform-provider-boundary/tree/main/templates) for a resource or data source if you want to add custom information (example: [data "boundary_scope"](https://github.com/hashicorp/terraform-provider-boundary/blob/main/templates/data-sources/scope.md.tmpl#L11)) +This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. Each resource and data source requires a set of examples [examples](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/examples) then you execute a binary to generate the docs which are placed in [./docs](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/docs). Optionally, you can specify your own [templates](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/templates) for a resource or data source if you want to add custom information (example: [data "boundary_scope"](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/blob/main/templates/data-sources/scope.md.tmpl#L11)) ### New Resources & Data Sources (documentation templates) -If you're adding a new resource or a data source, you must include a documentation template for your new R/DS in [./templates](https://github.com/hashicorp/terraform-provider-boundary/tree/main/templates) directory. This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. For full details see the link. +If you're adding a new resource or a data source, you must include a documentation template for your new R/DS in [./templates](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/templates) directory. This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. For full details see the link. ### Documentation Examples for Resources & Data Sources -Examples are required for all resources and data sources. This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. To add examples, add a new file to the [./examples](https://github.com/hashicorp/terraform-provider-boundary/tree/main/examples) directory or update the existing files. Next make sure the corresponding template in [./templates](https://github.com/hashicorp/terraform-provider-boundary/tree/main/templates) directory references this example. +Examples are required for all resources and data sources. This provider uses the [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) tool to generate documentation. To add examples, add a new file to the [./examples](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/examples) directory or update the existing files. Next make sure the corresponding template in [./templates](https://repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/tree/main/templates) directory references this example. ### Generating @@ -93,7 +174,7 @@ go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs ## Using the provider -Please see our detailed docs for individual resource usage. Below is a complex example using the Boundary provider to configure all resource types available: +Please see our detailed docs for individual resource usage. Below is a complex example using the provider to configure all resource types available: ```hcl provider "boundary" { diff --git a/boundary.png b/boundary.png deleted file mode 100644 index 422535b7..00000000 Binary files a/boundary.png and /dev/null differ diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md index 7a16621a..aeda7dd8 100644 --- a/docs/data-sources/account.md +++ b/docs/data-sources/account.md @@ -3,17 +3,17 @@ page_title: "boundary_account Data Source - terraform-provider-boundary" subcategory: "" description: |- - The boundary_account data source allows you to find a Boundary account. + The boundary_account data source allows you to find a Threshold account. --- # boundary_account (Data Source) -The boundary_account data source allows you to find a Boundary account. +The boundary_account data source allows you to find a Threshold account. ## Example Usage ```terraform -# Retrieve the ID of a Boundary account +# Retrieve the ID of a Threshold account data "boundary_account" "admin" { name = "admin" auth_method_id = "ampw_1234567890" diff --git a/docs/data-sources/auth_method.md b/docs/data-sources/auth_method.md index 9dc4026f..1e76b102 100644 --- a/docs/data-sources/auth_method.md +++ b/docs/data-sources/auth_method.md @@ -3,12 +3,12 @@ page_title: "boundary_auth_method Data Source - terraform-provider-boundary" subcategory: "" description: |- - The boundary_auth_method data source allows you to find a Boundary auth method. + The boundary_auth_method data source allows you to find a Threshold auth method. --- # boundary_auth_method (Data Source) -The boundary_auth_method data source allows you to find a Boundary auth method. +The boundary_auth_method data source allows you to find a Threshold auth method. ## Example Usage diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 41957e52..7bd1ec1c 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -3,12 +3,12 @@ page_title: "boundary_group Data Source - terraform-provider-boundary" subcategory: "" description: |- - The boundary_group data source allows you to find a Boundary group. + The boundary_group data source allows you to find a Threshold group. --- # boundary_group (Data Source) -The boundary_group data source allows you to find a Boundary group. +The boundary_group data source allows you to find a Threshold group. ## Example Usage diff --git a/docs/data-sources/role.md b/docs/data-sources/role.md index 23d66ae2..3397cc47 100644 --- a/docs/data-sources/role.md +++ b/docs/data-sources/role.md @@ -3,12 +3,12 @@ page_title: "boundary_role Data Source - terraform-provider-boundary" subcategory: "" description: |- - The boundary_role data source allows you to find a Boundary role. + The boundary_role data source allows you to find a Threshold role. --- # boundary_role (Data Source) -The boundary_role data source allows you to find a Boundary role. +The boundary_role data source allows you to find a Threshold role. ## Example Usage diff --git a/docs/data-sources/scope.md b/docs/data-sources/scope.md index 13728b91..a5112798 100644 --- a/docs/data-sources/scope.md +++ b/docs/data-sources/scope.md @@ -2,18 +2,18 @@ page_title: "boundary_scope Data Source - terraform-provider-boundary" subcategory: "" description: |- - The scope data source allows you to discover an existing Boundary scope by name. + The scope data source allows you to discover an existing Threshold scope by name. --- # boundary_scope (Data Source) -The scope data source allows you to discover an existing Boundary scope by name. +The scope data source allows you to discover an existing Threshold scope by name. Please note that the Global scope will always have an id of "global", and does not need to be discovered with this data source. ## Example Usage ```terraform -# Retrieve the ID of a Boundary project +# Retrieve the ID of a Threshold project data "boundary_scope" "org" { name = "SecOps" scope_id = "global" diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index 5f365e5d..b637b4d7 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -3,12 +3,12 @@ page_title: "boundary_user Data Source - terraform-provider-boundary" subcategory: "" description: |- - The user data source allows you to find a Boundary user. + The user data source allows you to find a Threshold user. --- # boundary_user (Data Source) -The user data source allows you to find a Boundary user. +The user data source allows you to find a Threshold user. ## Example Usage diff --git a/docs/index.md b/docs/index.md index 87e1dd18..4a3db12d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,13 +1,13 @@ --- -page_title: "Provider: Boundary" +page_title: "Provider: Threshold" subcategory: "" description: |- - Terraform provider for configuring Boundary. + Terraform provider for configuring Threshold. --- -# Boundary Provider +# Threshold Provider -Terraform provider for configuring Boundary. +Terraform provider for configuring Threshold. ## Example Usage @@ -40,7 +40,7 @@ provider "boundary" { ### Required -- `addr` (String) The base url of the Boundary API, e.g. "http://127.0.0.1:9200". If not set, it will be read from the "BOUNDARY_ADDR" env var. +- `addr` (String) The base url of the Threshold API, e.g. "http://127.0.0.1:9200". If not set, it will be read from the "BOUNDARY_ADDR" env var. ### Optional @@ -49,8 +49,8 @@ provider "boundary" { - `auth_method_password` (String) The auth method password for password-style or ldap-style auth methods - `password_auth_method_login_name` (String, Deprecated) The auth method login name for password-style auth methods - `password_auth_method_password` (String, Deprecated) The auth method password for password-style auth methods -- `plugin_execution_dir` (String) Specifies a directory that the Boundary provider can use to write and execute its built-in plugins. +- `plugin_execution_dir` (String) Specifies a directory that the Threshold provider can use to write and execute its built-in plugins. - `recovery_kms_hcl` (String) Can be a heredoc string or a path on disk. If set, the string/file will be parsed as HCL and used with the recovery KMS mechanism. While this is set, it will override any other authentication information; the KMS mechanism will always be used. See Boundary's KMS docs for examples: https://boundaryproject.io/docs/configuration/kms - `scope_id` (String) The scope ID for the default auth method. -- `tls_insecure` (Boolean) When set to true, does not validate the Boundary API endpoint certificate -- `token` (String) The Boundary token to use, as a string or path on disk containing just the string. If set, the token read here will be used in place of authenticating with the auth method specified in "auth_method_id", although the recovery KMS mechanism will still override this. Can also be set with the BOUNDARY_TOKEN environment variable. \ No newline at end of file +- `tls_insecure` (Boolean) When set to true, does not validate the Threshold API endpoint certificate +- `token` (String) The Threshold token to use, as a string or path on disk containing just the string. If set, the token read here will be used in place of authenticating with the auth method specified in "auth_method_id", although the recovery KMS mechanism will still override this. Can also be set with the BOUNDARY_TOKEN environment variable. \ No newline at end of file diff --git a/docs/resources/account_ldap.md b/docs/resources/account_ldap.md index cca6f542..0a6a6321 100644 --- a/docs/resources/account_ldap.md +++ b/docs/resources/account_ldap.md @@ -3,12 +3,12 @@ page_title: "boundary_account_ldap Resource - terraform-provider-boundary" subcategory: "" description: |- - The account resource allows you to configure a Boundary account. + The account resource allows you to configure a Threshold account. --- # boundary_account_ldap (Resource) -The account resource allows you to configure a Boundary account. +The account resource allows you to configure a Threshold account. ## Example Usage diff --git a/docs/resources/account_oidc.md b/docs/resources/account_oidc.md index 13fefd64..4179ce41 100644 --- a/docs/resources/account_oidc.md +++ b/docs/resources/account_oidc.md @@ -3,12 +3,12 @@ page_title: "boundary_account_oidc Resource - terraform-provider-boundary" subcategory: "" description: |- - The account resource allows you to configure a Boundary account. + The account resource allows you to configure a Threshold account. --- # boundary_account_oidc (Resource) -The account resource allows you to configure a Boundary account. +The account resource allows you to configure a Threshold account. diff --git a/docs/resources/account_password.md b/docs/resources/account_password.md index f1f18b58..048d6c85 100644 --- a/docs/resources/account_password.md +++ b/docs/resources/account_password.md @@ -3,12 +3,12 @@ page_title: "boundary_account_password Resource - terraform-provider-boundary" subcategory: "" description: |- - The account resource allows you to configure a Boundary account. + The account resource allows you to configure a Threshold account. --- # boundary_account_password (Resource) -The account resource allows you to configure a Boundary account. +The account resource allows you to configure a Threshold account. ## Example Usage diff --git a/docs/resources/alias_target.md b/docs/resources/alias_target.md index e4af37ad..3f62ecdb 100644 --- a/docs/resources/alias_target.md +++ b/docs/resources/alias_target.md @@ -3,12 +3,12 @@ page_title: "boundary_alias_target Resource - terraform-provider-boundary" subcategory: "" description: |- - The target alias resource allows you to configure a Boundary target alias at project and global scopes. + The target alias resource allows you to configure a Threshold target alias at project and global scopes. --- # boundary_alias_target (Resource) -The target alias resource allows you to configure a Boundary target alias at project and global scopes. +The target alias resource allows you to configure a Threshold target alias at project and global scopes. ## Example Usage @@ -110,7 +110,7 @@ resource "boundary_alias_target" "example_alias_target_project" { ### Optional -- `authorize_session_host_id` (String) The host id to pass to Boundary when performing an authorize session action. +- `authorize_session_host_id` (String) The host id to pass to Threshold when performing an authorize session action. - `description` (String) The alias description. - `destination_id` (String) The destination of the alias. - `name` (String) The alias name. Defaults to the resource name. diff --git a/docs/resources/auth_method.md b/docs/resources/auth_method.md index 62668dde..cecde2f0 100644 --- a/docs/resources/auth_method.md +++ b/docs/resources/auth_method.md @@ -3,12 +3,12 @@ page_title: "boundary_auth_method Resource - terraform-provider-boundary" subcategory: "" description: |- - The auth method resource allows you to configure a Boundary auth_method. + The auth method resource allows you to configure a Threshold auth_method. --- # boundary_auth_method (Resource) -The auth method resource allows you to configure a Boundary auth_method. +The auth method resource allows you to configure a Threshold auth_method. ## Example Usage diff --git a/docs/resources/auth_method_ldap.md b/docs/resources/auth_method_ldap.md index 969a0e76..f40525cb 100644 --- a/docs/resources/auth_method_ldap.md +++ b/docs/resources/auth_method_ldap.md @@ -3,12 +3,12 @@ page_title: "boundary_auth_method_ldap Resource - terraform-provider-boundary" subcategory: "" description: |- - The LDAP auth method resource allows you to configure a Boundary auth_method_ldap. + The LDAP auth method resource allows you to configure a Threshold auth_method_ldap. --- # boundary_auth_method_ldap (Resource) -The LDAP auth method resource allows you to configure a Boundary auth_method_ldap. +The LDAP auth method resource allows you to configure a Threshold auth_method_ldap. ## Example Usage @@ -49,11 +49,11 @@ resource "boundary_auth_method_ldap" "forumsys_ldap" { - `anon_group_search` (Boolean) Use anon bind when performing LDAP group searches (optional). - `bind_dn` (String) The distinguished name of entry to bind when performing user and group searches (optional). - `bind_password` (String) The password to use along with bind-dn performing user and group searches (optional). -- `bind_password_hmac` (String) The HMAC of the bind password returned by the Boundary controller, which is used for comparison after initial setting of the value. +- `bind_password_hmac` (String) The HMAC of the bind password returned by the Threshold controller, which is used for comparison after initial setting of the value. - `certificates` (List of String) PEM-encoded X.509 CA certificate in ASN.1 DER form that can be used as a trust anchor when connecting to an LDAP server(optional). This may be specified multiple times - `client_certificate` (String) PEM-encoded X.509 client certificate in ASN.1 DER form that can be used to authenticate against an LDAP server(optional). - `client_certificate_key` (String) PEM-encoded X.509 client certificate key in PKCS #8, ASN.1 DER form used with the client certificate (optional). -- `client_certificate_key_hmac` (String) The HMAC of the client certificate key returned by the Boundary controller, which is used for comparison after initial setting of the value. +- `client_certificate_key_hmac` (String) The HMAC of the client certificate key returned by the Threshold controller, which is used for comparison after initial setting of the value. - `dereference_aliases` (String) Control how aliases are dereferenced when performing the search. Can be one of: NeverDerefAliases, DerefInSearching, DerefFindingBaseObj, and DerefAlways (optional). - `description` (String) The auth method description. - `discover_dn` (Boolean) Use anon bind to discover the bind DN of a user (optional). diff --git a/docs/resources/auth_method_oidc.md b/docs/resources/auth_method_oidc.md index ced08e0d..08147a72 100644 --- a/docs/resources/auth_method_oidc.md +++ b/docs/resources/auth_method_oidc.md @@ -3,12 +3,12 @@ page_title: "boundary_auth_method_oidc Resource - terraform-provider-boundary" subcategory: "" description: |- - The OIDC auth method resource allows you to configure a Boundary auth_method_oidc. + The OIDC auth method resource allows you to configure a Threshold auth_method_oidc. --- # boundary_auth_method_oidc (Resource) -The OIDC auth method resource allows you to configure a Boundary auth_method_oidc. +The OIDC auth method resource allows you to configure a Threshold auth_method_oidc. ## Example Usage @@ -25,7 +25,7 @@ resource "boundary_auth_method_oidc" "vault" { api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" client_id = "eieio" client_secret = "hvo_secret_XO" - description = "My Boundary OIDC Auth Method for Vault" + description = "My Threshold OIDC Auth Method for Vault" issuer = "https://XO-XO-XO-XO-XOXOXO.vault.hashicorp.cloud:8200/v1/identity/oidc/provider/my-provider" scope_id = "global" signing_algorithms = ["RS256"] @@ -36,7 +36,7 @@ resource "boundary_auth_method_oidc" "oidc_with_one_prompt" { api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" client_id = "eieio" client_secret = "hvo_secret_XO" - description = "My Boundary OIDC Auth Method With Prompt" + description = "My Threshold OIDC Auth Method With Prompt" issuer = "https://sts.windows.net/TENANT_ID/" scope_id = "global" signing_algorithms = ["RS256"] @@ -48,7 +48,7 @@ resource "boundary_auth_method_oidc" "oidc_with_multiple_prompts" { api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" client_id = "eieio" client_secret = "hvo_secret_XO" - description = "My Boundary OIDC Auth Method With Multiple Prompts" + description = "My Threshold OIDC Auth Method With Multiple Prompts" issuer = "https://sts.windows.net/TENANT_ID/" scope_id = "global" signing_algorithms = ["RS256"] @@ -60,7 +60,7 @@ resource "boundary_auth_method_oidc" "oidc_with_azure_provider_type" { api_url_prefix = "https://XO-XO-XO-XO-XOXOXO.boundary.hashicorp.cloud:9200" client_id = "eieio" client_secret = "hvo_secret_XO" - description = "My Boundary OIDC Auth Method For Azure Entra ID" + description = "My Threshold OIDC Auth Method For Azure Entra ID" issuer = "https://sts.windows.net/TENANT_ID/" scope_id = "global" signing_algorithms = ["RS256"] @@ -85,7 +85,7 @@ resource "boundary_auth_method_oidc" "oidc_with_azure_provider_type" { - `claims_scopes` (List of String) Claims scopes. - `client_id` (String) The client ID assigned to this auth method from the provider. - `client_secret` (String, Sensitive) The secret key assigned to this auth method from the provider. Once set, only the hash will be kept and the original value can be removed from configuration. -- `client_secret_hmac` (String) The HMAC of the client secret returned by the Boundary controller, which is used for comparison after initial setting of the value. +- `client_secret_hmac` (String) The HMAC of the client secret returned by the Threshold controller, which is used for comparison after initial setting of the value. - `description` (String) The auth method description. - `disable_discovered_config_validation` (Boolean) Disables validation logic ensuring that the OIDC provider's information from its discovery endpoint matches the information here. The validation is only performed at create or update time. - `idp_ca_certs` (List of String) A list of CA certificates to trust when validating the IdP's token signatures. diff --git a/docs/resources/auth_method_password.md b/docs/resources/auth_method_password.md index 3588d7a1..e0a9032e 100644 --- a/docs/resources/auth_method_password.md +++ b/docs/resources/auth_method_password.md @@ -3,12 +3,12 @@ page_title: "boundary_auth_method_password Resource - terraform-provider-boundary" subcategory: "" description: |- - The auth method resource allows you to configure a Boundary auth_method_password. + The auth method resource allows you to configure a Threshold auth_method_password. --- # boundary_auth_method_password (Resource) -The auth method resource allows you to configure a Boundary auth_method_password. +The auth method resource allows you to configure a Threshold auth_method_password. ## Example Usage diff --git a/docs/resources/credential_library_vault.md b/docs/resources/credential_library_vault.md index d0cfe4a4..97b7f831 100644 --- a/docs/resources/credential_library_vault.md +++ b/docs/resources/credential_library_vault.md @@ -3,12 +3,12 @@ page_title: "boundary_credential_library_vault Resource - terraform-provider-boundary" subcategory: "" description: |- - The credential library for Vault resource allows you to configure a Boundary credential library for Vault. + The credential library for Vault resource allows you to configure a Threshold credential library for Vault. --- # boundary_credential_library_vault (Resource) -The credential library for Vault resource allows you to configure a Boundary credential library for Vault. +The credential library for Vault resource allows you to configure a Threshold credential library for Vault. ## Example Usage diff --git a/docs/resources/credential_library_vault_ldap.md b/docs/resources/credential_library_vault_ldap.md index b420f58c..12a0508b 100644 --- a/docs/resources/credential_library_vault_ldap.md +++ b/docs/resources/credential_library_vault_ldap.md @@ -3,12 +3,12 @@ page_title: "boundary_credential_library_vault_ldap Resource - terraform-provider-boundary" subcategory: "" description: |- - The credential library for Vault LDAP resource allows you to configure a Boundary credential library for Vault LDAP. + The credential library for Vault LDAP resource allows you to configure a Threshold credential library for Vault LDAP. --- # boundary_credential_library_vault_ldap (Resource) -The credential library for Vault LDAP resource allows you to configure a Boundary credential library for Vault LDAP. +The credential library for Vault LDAP resource allows you to configure a Threshold credential library for Vault LDAP. ## Example Usage diff --git a/docs/resources/credential_library_vault_ssh_certificate.md b/docs/resources/credential_library_vault_ssh_certificate.md index ceb3227a..6bc8b6c6 100644 --- a/docs/resources/credential_library_vault_ssh_certificate.md +++ b/docs/resources/credential_library_vault_ssh_certificate.md @@ -3,12 +3,12 @@ page_title: "boundary_credential_library_vault_ssh_certificate Resource - terraform-provider-boundary" subcategory: "" description: |- - The credential library for Vault resource allows you to configure a Boundary credential library for Vault. + The credential library for Vault resource allows you to configure a Threshold credential library for Vault. --- # boundary_credential_library_vault_ssh_certificate (Resource) -The credential library for Vault resource allows you to configure a Boundary credential library for Vault. +The credential library for Vault resource allows you to configure a Threshold credential library for Vault. ## Example Usage diff --git a/docs/resources/credential_store_static.md b/docs/resources/credential_store_static.md index 9ac1e63d..55391c02 100644 --- a/docs/resources/credential_store_static.md +++ b/docs/resources/credential_store_static.md @@ -3,12 +3,12 @@ page_title: "boundary_credential_store_static Resource - terraform-provider-boundary" subcategory: "" description: |- - The static credential store resource allows you to configure a Boundary static credential store. + The static credential store resource allows you to configure a Threshold static credential store. --- # boundary_credential_store_static (Resource) -The static credential store resource allows you to configure a Boundary static credential store. +The static credential store resource allows you to configure a Threshold static credential store. ## Example Usage diff --git a/docs/resources/credential_store_vault.md b/docs/resources/credential_store_vault.md index ee9b1957..b188761a 100644 --- a/docs/resources/credential_store_vault.md +++ b/docs/resources/credential_store_vault.md @@ -3,12 +3,12 @@ page_title: "boundary_credential_store_vault Resource - terraform-provider-boundary" subcategory: "" description: |- - The credential store for Vault resource allows you to configure a Boundary credential store for Vault. + The credential store for Vault resource allows you to configure a Threshold credential store for Vault. --- # boundary_credential_store_vault (Resource) -The credential store for Vault resource allows you to configure a Boundary credential store for Vault. +The credential store for Vault resource allows you to configure a Threshold credential store for Vault. ## Example Usage @@ -56,7 +56,7 @@ resource "boundary_credential_store_vault" "example" { - `namespace` (String) The namespace within Vault to use. - `tls_server_name` (String) Name to use as the SNI host when connecting to Vault via TLS. - `tls_skip_verify` (Boolean) Whether or not to skip TLS verification. -- `worker_filter` (String) HCP Only. A filter used to control which PKI workers can handle Vault requests. This allows the use of private Vault instances with Boundary. +- `worker_filter` (String) HCP Only. A filter used to control which PKI workers can handle Vault requests. This allows the use of private Vault instances with Threshold. ### Read-Only diff --git a/docs/resources/group.md b/docs/resources/group.md index 14ea4ffc..56aed0e5 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -2,12 +2,12 @@ page_title: "boundary_group Resource - terraform-provider-boundary" subcategory: "" description: |- - The group resource allows you to configure a Boundary group. + The group resource allows you to configure a Threshold group. --- # Resource `boundary_group` -The group resource allows you to configure a Boundary group. +The group resource allows you to configure a Threshold group. ## Example Usage diff --git a/docs/resources/host_catalog_plugin.md b/docs/resources/host_catalog_plugin.md index f6125f6c..910aa4d6 100644 --- a/docs/resources/host_catalog_plugin.md +++ b/docs/resources/host_catalog_plugin.md @@ -3,12 +3,12 @@ page_title: "boundary_host_catalog_plugin Resource - terraform-provider-boundary" subcategory: "" description: |- - The host catalog resource allows you to configure a Boundary plugin-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. + The host catalog resource allows you to configure a Threshold plugin-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. --- # boundary_host_catalog_plugin (Resource) -The host catalog resource allows you to configure a Boundary plugin-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. +The host catalog resource allows you to configure a Threshold plugin-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. ## Example Usage @@ -87,7 +87,7 @@ resource "boundary_host_catalog_plugin" "azure_example" { - `attributes_json` (String) The attributes for the host catalog. Either values encoded with the "jsonencode" function, pre-escaped JSON string, or a file:// or env:// path. Set to a string "null" or remove the block to clear all attributes in the host catalog. - `description` (String) The host catalog description. - `internal_force_update` (String) Internal only. Used to force update so that we can always check the value of secrets. -- `internal_hmac_used_for_secrets_config_hmac` (String) Internal only. The Boundary-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection. +- `internal_hmac_used_for_secrets_config_hmac` (String) Internal only. The Threshold-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection. - `internal_secrets_config_hmac` (String) Internal only. HMAC of (serverSecretsHmac + config secrets). Used for proper secrets handling. - `name` (String) The host catalog name. Defaults to the resource name. - `plugin_id` (String) The ID of the plugin that should back the resource. This or plugin_name must be defined. diff --git a/docs/resources/host_catalog_static.md b/docs/resources/host_catalog_static.md index 05710c43..2978cc70 100644 --- a/docs/resources/host_catalog_static.md +++ b/docs/resources/host_catalog_static.md @@ -3,12 +3,12 @@ page_title: "boundary_host_catalog_static Resource - terraform-provider-boundary" subcategory: "" description: |- - The static host catalog resource allows you to configure a Boundary static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. + The static host catalog resource allows you to configure a Threshold static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. --- # boundary_host_catalog_static (Resource) -The static host catalog resource allows you to configure a Boundary static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. +The static host catalog resource allows you to configure a Threshold static-type host catalog. Host catalogs are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host catalog. ## Example Usage diff --git a/docs/resources/host_set_plugin.md b/docs/resources/host_set_plugin.md index 4c07ca90..5c3478fb 100644 --- a/docs/resources/host_set_plugin.md +++ b/docs/resources/host_set_plugin.md @@ -3,12 +3,12 @@ page_title: "boundary_host_set_plugin Resource - terraform-provider-boundary" subcategory: "" description: |- - The host_set_plugin resource allows you to configure a Boundary host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. + The host_set_plugin resource allows you to configure a Threshold host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. --- # boundary_host_set_plugin (Resource) -The host_set_plugin resource allows you to configure a Boundary host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. +The host_set_plugin resource allows you to configure a Threshold host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. ## Example Usage diff --git a/docs/resources/host_set_static.md b/docs/resources/host_set_static.md index b5ab082b..7bcfbea2 100644 --- a/docs/resources/host_set_static.md +++ b/docs/resources/host_set_static.md @@ -3,12 +3,12 @@ page_title: "boundary_host_set_static Resource - terraform-provider-boundary" subcategory: "" description: |- - The host_set_static resource allows you to configure a Boundary host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. + The host_set_static resource allows you to configure a Threshold host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. --- # boundary_host_set_static (Resource) -The host_set_static resource allows you to configure a Boundary host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. +The host_set_static resource allows you to configure a Threshold host set. Host sets are always part of a host catalog, so a host catalog resource should be used inline or you should have the host catalog ID in hand to successfully configure a host set. ## Example Usage diff --git a/docs/resources/host_static.md b/docs/resources/host_static.md index 6d7e5122..c510cd51 100644 --- a/docs/resources/host_static.md +++ b/docs/resources/host_static.md @@ -3,12 +3,12 @@ page_title: "boundary_host_static Resource - terraform-provider-boundary" subcategory: "" description: |- - The static host resource allows you to configure a Boundary static host. Hosts are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host. + The static host resource allows you to configure a Threshold static host. Hosts are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host. --- # boundary_host_static (Resource) -The static host resource allows you to configure a Boundary static host. Hosts are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host. +The static host resource allows you to configure a Threshold static host. Hosts are always part of a project, so a project resource should be used inline or you should have the project ID in hand to successfully configure a host. ## Example Usage diff --git a/docs/resources/managed_group.md b/docs/resources/managed_group.md index ba58e1cd..119464b8 100644 --- a/docs/resources/managed_group.md +++ b/docs/resources/managed_group.md @@ -3,12 +3,12 @@ page_title: "boundary_managed_group Resource - terraform-provider-boundary" subcategory: "" description: |- - The managed group resource allows you to configure a Boundary group. + The managed group resource allows you to configure a Threshold group. --- # boundary_managed_group (Resource) -The managed group resource allows you to configure a Boundary group. +The managed group resource allows you to configure a Threshold group. diff --git a/docs/resources/managed_group_ldap.md b/docs/resources/managed_group_ldap.md index 8ced6a53..01fe54a7 100644 --- a/docs/resources/managed_group_ldap.md +++ b/docs/resources/managed_group_ldap.md @@ -3,12 +3,12 @@ page_title: "boundary_managed_group_ldap Resource - terraform-provider-boundary" subcategory: "" description: |- - The managed group resource allows you to configure a Boundary group. + The managed group resource allows you to configure a Threshold group. --- # boundary_managed_group_ldap (Resource) -The managed group resource allows you to configure a Boundary group. +The managed group resource allows you to configure a Threshold group. ## Example Usage diff --git a/docs/resources/policy_storage.md b/docs/resources/policy_storage.md index 275df600..2546975c 100644 --- a/docs/resources/policy_storage.md +++ b/docs/resources/policy_storage.md @@ -3,12 +3,12 @@ page_title: "boundary_policy_storage Resource - terraform-provider-boundary" subcategory: "" description: |- - The storage policy resource allows you to configure a Boundary storage policy. Storage policies allow an admin to configure how long session recordings must be stored and when to delete them. Storage policies must be applied to the global scope or an org scope in order to take effect. + The storage policy resource allows you to configure a Threshold storage policy. Storage policies allow an admin to configure how long session recordings must be stored and when to delete them. Storage policies must be applied to the global scope or an org scope in order to take effect. --- # boundary_policy_storage (Resource) -The storage policy resource allows you to configure a Boundary storage policy. Storage policies allow an admin to configure how long session recordings must be stored and when to delete them. Storage policies must be applied to the global scope or an org scope in order to take effect. +The storage policy resource allows you to configure a Threshold storage policy. Storage policies allow an admin to configure how long session recordings must be stored and when to delete them. Storage policies must be applied to the global scope or an org scope in order to take effect. diff --git a/docs/resources/role.md b/docs/resources/role.md index 836399c9..e54d5df7 100644 --- a/docs/resources/role.md +++ b/docs/resources/role.md @@ -2,12 +2,12 @@ page_title: "boundary_role Resource - terraform-provider-boundary" subcategory: "" description: |- - The role resource allows you to configure a Boundary role. + The role resource allows you to configure a Threshold role. --- # Resource `boundary_role` -The role resource allows you to configure a Boundary role. +The role resource allows you to configure a Threshold role. ## Example Usage diff --git a/docs/resources/scope.md b/docs/resources/scope.md index 7688c770..386402e0 100644 --- a/docs/resources/scope.md +++ b/docs/resources/scope.md @@ -2,12 +2,12 @@ page_title: "boundary_scope Resource - terraform-provider-boundary" subcategory: "" description: |- - The scope resource allows you to configure a Boundary scope. + The scope resource allows you to configure a Threshold scope. --- # Resource `boundary_scope` -The scope resource allows you to configure a Boundary scope. +The scope resource allows you to configure a Threshold scope. ## Example Usage diff --git a/docs/resources/storage_bucket.md b/docs/resources/storage_bucket.md index b3073c91..67e5b58c 100644 --- a/docs/resources/storage_bucket.md +++ b/docs/resources/storage_bucket.md @@ -3,12 +3,12 @@ page_title: "boundary_storage_bucket Resource - terraform-provider-boundary" subcategory: "" description: |- - The storage bucket resource allows you to configure a Boundary storage bucket. A storage bucket can only belong to the Global scope or an Org scope. At this time, the only supported storage for storage buckets is AWS S3. This feature requires Boundary Enterprise or Boundary HCP. + The storage bucket resource allows you to configure a Threshold storage bucket. A storage bucket can only belong to the Global scope or an Org scope. At this time, the only supported storage for storage buckets is AWS S3. This feature requires Boundary Enterprise or Boundary HCP. --- # boundary_storage_bucket (Resource) -The storage bucket resource allows you to configure a Boundary storage bucket. A storage bucket can only belong to the Global scope or an Org scope. At this time, the only supported storage for storage buckets is AWS S3. This feature requires Boundary Enterprise or Boundary HCP. +The storage bucket resource allows you to configure a Threshold storage bucket. A storage bucket can only belong to the Global scope or an Org scope. At this time, the only supported storage for storage buckets is AWS S3. This feature requires Boundary Enterprise or Boundary HCP. ## Example Usage @@ -79,7 +79,7 @@ resource "boundary_storage_bucket" "aws_dynamic_credentials_example" { - `id` (String) The ID of the storage bucket. - `internal_force_update` (String) Internal only. Used to force update so that we can always check the value of secrets. -- `internal_hmac_used_for_secrets_config_hmac` (String) Internal only. The Boundary-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection. +- `internal_hmac_used_for_secrets_config_hmac` (String) Internal only. The Threshold-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection. - `internal_secrets_config_hmac` (String) Internal only. HMAC of (serverSecretsHmac + config secrets). Used for proper secrets handling. - `secrets_hmac` (String) The HMAC'd secrets value returned from the server. diff --git a/docs/resources/target.md b/docs/resources/target.md index 6ec01163..744fc731 100644 --- a/docs/resources/target.md +++ b/docs/resources/target.md @@ -3,12 +3,12 @@ page_title: "boundary_target Resource - terraform-provider-boundary" subcategory: "" description: |- - The target resource allows you to configure a Boundary target. + The target resource allows you to configure a Threshold target. --- # boundary_target (Resource) -The target resource allows you to configure a Boundary target. +The target resource allows you to configure a Threshold target. ## Example Usage diff --git a/docs/resources/target_host_source.md b/docs/resources/target_host_source.md index 2d043138..a036ddc8 100644 --- a/docs/resources/target_host_source.md +++ b/docs/resources/target_host_source.md @@ -3,12 +3,12 @@ page_title: "boundary_target_host_source Resource - terraform-provider-boundary" subcategory: "" description: |- - Attaches a host source to an existing Boundary target. Use this resource instead of the host_source_ids field on boundary_target when the target and its host sources are managed in separate Terraform configurations. Do not set host_source_ids on boundary_target when using this resource for the same target. + Attaches a host source to an existing Threshold target. Use this resource instead of the host_source_ids field on boundary_target when the target and its host sources are managed in separate Terraform configurations. Do not set host_source_ids on boundary_target when using this resource for the same target. --- # boundary_target_host_source (Resource) -Attaches a host source to an existing Boundary target. Use this resource instead of the `host_source_ids` field on `boundary_target` when the target and its host sources are managed in separate Terraform configurations. Do not set `host_source_ids` on `boundary_target` when using this resource for the same target. +Attaches a host source to an existing Threshold target. Use this resource instead of the `host_source_ids` field on `boundary_target` when the target and its host sources are managed in separate Terraform configurations. Do not set `host_source_ids` on `boundary_target` when using this resource for the same target. diff --git a/docs/resources/user.md b/docs/resources/user.md index 51696aeb..79dbbedb 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -3,12 +3,12 @@ page_title: "boundary_user Resource - terraform-provider-boundary" subcategory: "" description: |- - The user resource allows you to configure a Boundary user. + The user resource allows you to configure a Threshold user. --- # boundary_user (Resource) -The user resource allows you to configure a Boundary user. +The user resource allows you to configure a Threshold user. ## Example Usage diff --git a/docs/resources/worker.md b/docs/resources/worker.md index 968d4c94..06461790 100644 --- a/docs/resources/worker.md +++ b/docs/resources/worker.md @@ -79,7 +79,7 @@ documentation to learn about worker registration. - `authorized_actions` (List of String) A list of actions that the worker is entitled to perform. - `controller_generated_activation_token` (String) A single use token generated by the controller to be passed to the self-managed worker. - `id` (String) The ID of the worker. -- `release_version` (Number) The version of the Boundary binary running on the self managed worker. +- `release_version` (Number) The version of the Threshold binary running on the self managed worker. ## Import diff --git a/go.mod b/go.mod index d11eee52..eaf6d2c5 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,9 @@ -module github.com/hashicorp/terraform-provider-boundary +module repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold -go 1.26.6 +go 1.26.9 require ( github.com/YakDriver/regexache v0.25.0 - github.com/hashicorp/boundary/api v0.0.63-0.20260922135637-edfad8971a54 - github.com/hashicorp/boundary/sdk v0.0.61-0.20260922135637-edfad8971a54 github.com/hashicorp/cap v0.14.0 github.com/hashicorp/cap/ldap v0.0.0-20240206183135-ed8f24513744 github.com/hashicorp/go-cty v1.5.0 @@ -24,6 +22,8 @@ require ( github.com/stretchr/testify v1.12.1 golang.org/x/crypto v0.57.0 mvdan.cc/gofumpt v0.12.0 + repo.anhonesthost.net/CyberCoveLLC/threshold/api v0.1.0 + repo.anhonesthost.net/CyberCoveLLC/threshold/sdk v0.1.0 ) require ( @@ -56,12 +56,12 @@ require ( github.com/docker/go-connections v0.6.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/fatih/color v1.18.0 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/felixge/httpsnoop v1.1.0 // indirect github.com/go-asn1-ber/asn1-ber v1.5.8-0.20250403174932-29230038a667 // indirect github.com/go-jose/go-jose/v3 v3.0.5 // indirect github.com/go-jose/go-jose/v4 v4.1.4 // indirect github.com/go-ldap/ldap/v3 v3.4.12 // indirect - github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect github.com/golang/protobuf v1.5.4 // indirect @@ -116,7 +116,7 @@ require ( github.com/moby/docker-image-spec v1.3.1 // indirect github.com/moby/moby/api v1.53.0 // indirect github.com/moby/moby/client v0.2.2 // indirect - github.com/moby/sys/user v0.4.0 // indirect + github.com/moby/sys/user v0.4.1 // indirect github.com/moby/term v0.5.2 // indirect github.com/mr-tron/base58 v1.2.0 // indirect github.com/oklog/run v1.1.0 // indirect @@ -140,14 +140,14 @@ require ( github.com/zclconf/go-cty v1.18.1 // indirect go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect - go.opentelemetry.io/otel v1.44.0 // indirect - go.opentelemetry.io/otel/metric v1.44.0 // indirect - go.opentelemetry.io/otel/trace v1.44.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 // indirect + go.opentelemetry.io/otel v1.45.0 // indirect + go.opentelemetry.io/otel/metric v1.45.0 // indirect + go.opentelemetry.io/otel/trace v1.45.0 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect golang.org/x/mod v0.41.0 // indirect - golang.org/x/net v0.58.0 // indirect + golang.org/x/net v0.60.0 // indirect golang.org/x/oauth2 v0.36.0 // indirect golang.org/x/sync v0.23.0 // indirect golang.org/x/sys v0.48.0 // indirect @@ -155,10 +155,10 @@ require ( golang.org/x/time v0.14.0 // indirect golang.org/x/tools v0.49.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect - google.golang.org/grpc v1.83.2 // indirect - google.golang.org/protobuf v1.36.11 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1 // indirect + google.golang.org/grpc v1.85.0-dev.0.20260825072537-93e31b48545e // indirect + google.golang.org/protobuf v1.36.12 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 2493d810..97142f83 100644 --- a/go.sum +++ b/go.sum @@ -78,8 +78,8 @@ github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FM github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= -github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= -github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc= +github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/go-asn1-ber/asn1-ber v1.5.8-0.20250403174932-29230038a667 h1:BP4M0CvQ4S3TGls2FvczZtj5Re/2ZzkV9VwqPHH/3Bo= @@ -97,8 +97,8 @@ github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9 github.com/go-ldap/ldap/v3 v3.4.12 h1:1b81mv7MagXZ7+1r7cLTWmyuTqVqdwbtJSjC0DAp9s4= github.com/go-ldap/ldap/v3 v3.4.12/go.mod h1:+SPAGcTtOfmGsCb3h1RFiq4xpp4N636G75OEace8lNo= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= -github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8= +github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-quicktest/qt v1.102.0 h1:HSQxCeh5YZH3EL3W39ixjtyaEhcWSXQHtHnMBzSs474= @@ -126,10 +126,6 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3 github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/hashicorp/boundary/api v0.0.63-0.20260922135637-edfad8971a54 h1:FvrPXYRo+Spbph5W7j2quLI1c0l/1IiaZJEfvnqQY/I= -github.com/hashicorp/boundary/api v0.0.63-0.20260922135637-edfad8971a54/go.mod h1:8a4R5RZ0qDfNQGRdtz0oJfIMeEVwjt4ksZDDX+UfM2c= -github.com/hashicorp/boundary/sdk v0.0.61-0.20260922135637-edfad8971a54 h1:HyWTzuokbS+GM+xvL2qPLmbvg5w8+8SBpn1/2Lj6SWc= -github.com/hashicorp/boundary/sdk v0.0.61-0.20260922135637-edfad8971a54/go.mod h1:SLV16Bt353ef/YLvZqPkeZXurffr3WS2y6B5TKiu6HY= github.com/hashicorp/cap v0.14.0 h1:IPWX/ewgw8tQPl0qpnCuNf6BFXOCz7ijSM5ikX27cNg= github.com/hashicorp/cap v0.14.0/go.mod h1:Kbu5owAOJzQ/HH4Ba/76wsIXN2tRiJgToJKBO2MAEFE= github.com/hashicorp/cap/ldap v0.0.0-20240206183135-ed8f24513744 h1:6cU01ORaCUxRXRS0YYnmm4tMfAvFRjamhjgMrgmoWZs= @@ -289,8 +285,8 @@ github.com/moby/moby/api v1.53.0 h1:PihqG1ncw4W+8mZs69jlwGXdaYBeb5brF6BL7mPIS/w= github.com/moby/moby/api v1.53.0/go.mod h1:8mb+ReTlisw4pS6BRzCMts5M49W5M7bKt1cJy/YbAqc= github.com/moby/moby/client v0.2.2 h1:Pt4hRMCAIlyjL3cr8M5TrXCwKzguebPAc2do2ur7dEM= github.com/moby/moby/client v0.2.2/go.mod h1:2EkIPVNCqR05CMIzL1mfA07t0HvVUUOl85pasRz/GmQ= -github.com/moby/sys/user v0.4.0 h1:jhcMKit7SA80hivmFJcbB1vqmw//wU61Zdui2eQXuMs= -github.com/moby/sys/user v0.4.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs= +github.com/moby/sys/user v0.4.1 h1:RgjRlaDKi/Xmyrz4t8lyzXT6v2ooFeO/7xtchmhVWE0= +github.com/moby/sys/user v0.4.1/go.mod h1:E9QsW5WRe1kUAf7kW8hXKwu1uhsZEAdPLYHYSDudF4Y= github.com/moby/term v0.5.2 h1:6qk3FJAFDs6i/q3W/pQ97SX192qKfZgGjCQqfCJkgzQ= github.com/moby/term v0.5.2/go.mod h1:d3djjFCrjnB+fl8NJux+EJzu0msscUP+f8it8hPkFLc= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= @@ -366,18 +362,18 @@ go.abhg.dev/goldmark/frontmatter v0.2.0 h1:P8kPG0YkL12+aYk2yU3xHv4tcXzeVnN+gU0tJ go.abhg.dev/goldmark/frontmatter v0.2.0/go.mod h1:XqrEkZuM57djk7zrlRUB02x8I5J0px76YjkOzhB4YlU= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q= -go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU= -go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc= -go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc= -go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo= -go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58= -go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0= -go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI= -go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA= -go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk= -go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0 h1:LMuyCAyfalSjDyjdC65nK6N0zoTT63+E/u95X0JovZI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.70.0/go.mod h1:085m8qbm4hgc8rZWGDEa4vmyyo2c3nPxUslYUKUIU04= +go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU= +go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ= +go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M= +go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s= +go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw= +go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA= +go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o= +go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA= +go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag= +go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc= go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= @@ -401,8 +397,8 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -461,16 +457,16 @@ gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa h1:Kjn0N0tCrDgiAFW+lGO4JZ3ck44CehvJQMAwj9QF0G8= -google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:q4lMZS6kskjT5HvCPrnnypcDPVJqT/f4nfxmkE7gryY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk= -google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= -google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU= -google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8= +google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1 h1:lrupDmKL3p5kEX1M92oan027eCKcouzjuPbH6YBK+Rs= +google.golang.org/genproto/googleapis/api v0.0.0-20260817212433-ac3dfec99bb1/go.mod h1:q/3oV3jAi5vwelxsVAprMBC8BcM2zmNe+IjRGd+9/ks= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1 h1:utmqiUzZAEINbLmRyAt1QjVkMyLQ+lvIwCpLaB1rZfw= +google.golang.org/genproto/googleapis/rpc v0.0.0-20260817212433-ac3dfec99bb1/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8= +google.golang.org/grpc v1.85.0-dev.0.20260825072537-93e31b48545e h1:ar+feAPij1Znzug45m6AoShUCc5AaR8FLA3I6LZd94k= +google.golang.org/grpc v1.85.0-dev.0.20260825072537-93e31b48545e/go.mod h1:7aY/KlAHanMAVIWHnk8wloQsdlfwzDz/PP9vCbJG6CU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= -google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= @@ -490,3 +486,7 @@ mvdan.cc/gofumpt v0.12.0 h1:1Lbudkz2kpM9Cjz2pL4M19u7q+GaEhCTNf7N9mfpcho= mvdan.cc/gofumpt v0.12.0/go.mod h1:SmBHHrljiZu/uoypeKup3rFzP6eoC9UwCp2iH5E3jZA= pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +repo.anhonesthost.net/CyberCoveLLC/threshold/api v0.1.0 h1:koidiBvmCK/ySuBPSlYZTTT0xD57Y7n+wmDwE2cdGe8= +repo.anhonesthost.net/CyberCoveLLC/threshold/api v0.1.0/go.mod h1:zbM8drZPFYzaHCkso4i5iyl+3wwznWEildTGsnKhoGk= +repo.anhonesthost.net/CyberCoveLLC/threshold/sdk v0.1.0 h1:ExuSGqE1pA/1DnS5xrSK7kEhD+4g5hIJC5TgmwH5LAU= +repo.anhonesthost.net/CyberCoveLLC/threshold/sdk v0.1.0/go.mod h1:cWxYF3tEkYEKTY76ub8kL+vdGmopO0YfJqJGGQJov7k= diff --git a/internal/provider/data_source_account.go b/internal/provider/data_source_account.go index faa9073d..df1d8045 100644 --- a/internal/provider/data_source_account.go +++ b/internal/provider/data_source_account.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -16,7 +16,7 @@ import ( func dataSourceAccount() *schema.Resource { return &schema.Resource{ - Description: "The boundary_account data source allows you to find a Boundary account.", + Description: "The boundary_account data source allows you to find a Threshold account.", ReadContext: dataSourceAccountRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/data_source_auth_method.go b/internal/provider/data_source_auth_method.go index c808fcfc..9f0dbcd4 100644 --- a/internal/provider/data_source_auth_method.go +++ b/internal/provider/data_source_auth_method.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -16,7 +16,7 @@ import ( func dataSourceAuthMethod() *schema.Resource { return &schema.Resource{ - Description: "The boundary_auth_method data source allows you to find a Boundary auth method.", + Description: "The boundary_auth_method data source allows you to find a Threshold auth method.", ReadContext: dataSourceAuthMethodRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/data_source_group.go b/internal/provider/data_source_group.go index d1c0c21e..f0badc08 100644 --- a/internal/provider/data_source_group.go +++ b/internal/provider/data_source_group.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/groups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/groups" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -16,7 +16,7 @@ import ( func dataSourceGroup() *schema.Resource { return &schema.Resource{ - Description: "The boundary_group data source allows you to find a Boundary group.", + Description: "The boundary_group data source allows you to find a Threshold group.", ReadContext: dataSourceGroupRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/data_source_role.go b/internal/provider/data_source_role.go index f58e36bb..f6375273 100644 --- a/internal/provider/data_source_role.go +++ b/internal/provider/data_source_role.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/roles" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/roles" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -16,7 +16,7 @@ import ( func dataSourceRole() *schema.Resource { return &schema.Resource{ - Description: "The boundary_role data source allows you to find a Boundary role.", + Description: "The boundary_role data source allows you to find a Threshold role.", ReadContext: dataSourceRoleRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/data_source_scope.go b/internal/provider/data_source_scope.go index b04c387d..ccd464c9 100644 --- a/internal/provider/data_source_scope.go +++ b/internal/provider/data_source_scope.go @@ -7,15 +7,15 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) func dataSourceScope() *schema.Resource { return &schema.Resource{ - Description: "The scope data source allows you to discover an existing Boundary scope by name.", + Description: "The scope data source allows you to discover an existing Threshold scope by name.", ReadContext: dataSourceScopeRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/data_source_user.go b/internal/provider/data_source_user.go index cd650e01..b318f030 100644 --- a/internal/provider/data_source_user.go +++ b/internal/provider/data_source_user.go @@ -6,7 +6,7 @@ package provider import ( "context" - "github.com/hashicorp/boundary/api/users" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/users" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -14,7 +14,7 @@ import ( func dataSourceUser() *schema.Resource { return &schema.Resource{ - Description: "The user data source allows you to find a Boundary user.", + Description: "The user data source allows you to find a Threshold user.", ReadContext: dataSourceUserRead, Schema: map[string]*schema.Schema{ diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 98b0e766..d7a5e6b4 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -10,15 +10,15 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" - "github.com/hashicorp/boundary/sdk/wrapper" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/sdk/wrapper" wrapping "github.com/hashicorp/go-kms-wrapping/v2" "github.com/hashicorp/go-secure-stdlib/configutil/v2" "github.com/hashicorp/go-secure-stdlib/pluginutil/v2" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - kms_plugin_assets "github.com/hashicorp/terraform-provider-boundary/plugins/kms" + kms_plugin_assets "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/plugins/kms" ) const ( @@ -38,12 +38,12 @@ func New() *schema.Provider { "addr": { Type: schema.TypeString, Required: true, - Description: `The base url of the Boundary API, e.g. "http://127.0.0.1:9200". If not set, it will be read from the "BOUNDARY_ADDR" env var.`, + Description: `The base url of the Threshold API, e.g. "http://127.0.0.1:9200". If not set, it will be read from the "BOUNDARY_ADDR" env var.`, }, "token": { Type: schema.TypeString, Optional: true, - Description: `The Boundary token to use, as a string or path on disk containing just the string. If set, the token read here will be used in place of authenticating with the auth method specified in "auth_method_id", although the recovery KMS mechanism will still override this. Can also be set with the BOUNDARY_TOKEN environment variable.`, + Description: `The Threshold token to use, as a string or path on disk containing just the string. If set, the token read here will be used in place of authenticating with the auth method specified in "auth_method_id", although the recovery KMS mechanism will still override this. Can also be set with the BOUNDARY_TOKEN environment variable.`, }, "recovery_kms_hcl": { Type: schema.TypeString, @@ -80,12 +80,12 @@ func New() *schema.Provider { "tls_insecure": { Type: schema.TypeBool, Optional: true, - Description: "When set to true, does not validate the Boundary API endpoint certificate", + Description: "When set to true, does not validate the Threshold API endpoint certificate", }, "plugin_execution_dir": { Type: schema.TypeString, Optional: true, - Description: `Specifies a directory that the Boundary provider can use to write and execute its built-in plugins.`, + Description: `Specifies a directory that the Threshold provider can use to write and execute its built-in plugins.`, }, "scope_id": { Type: schema.TypeString, diff --git a/internal/provider/resource_account.go b/internal/provider/resource_account.go index 5b90e2c8..0acdbded 100644 --- a/internal/provider/resource_account.go +++ b/internal/provider/resource_account.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_account_ldap.go b/internal/provider/resource_account_ldap.go index d5b7750c..2f10892d 100644 --- a/internal/provider/resource_account_ldap.go +++ b/internal/provider/resource_account_ldap.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -19,7 +19,7 @@ const ( func resourceAccountLdap() *schema.Resource { return &schema.Resource{ - Description: "The account resource allows you to configure a Boundary account.", + Description: "The account resource allows you to configure a Threshold account.", CreateContext: resourceAccountLdapCreate, ReadContext: resourceAccountLdapRead, diff --git a/internal/provider/resource_account_oidc.go b/internal/provider/resource_account_oidc.go index 42ad65a4..68741037 100644 --- a/internal/provider/resource_account_oidc.go +++ b/internal/provider/resource_account_oidc.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -21,7 +21,7 @@ const ( func resourceAccountOidc() *schema.Resource { return &schema.Resource{ - Description: "The account resource allows you to configure a Boundary account.", + Description: "The account resource allows you to configure a Threshold account.", CreateContext: resourceAccountOidcCreate, ReadContext: resourceAccountOidcRead, diff --git a/internal/provider/resource_account_password.go b/internal/provider/resource_account_password.go index 6a97e805..dba275b6 100644 --- a/internal/provider/resource_account_password.go +++ b/internal/provider/resource_account_password.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -21,7 +21,7 @@ const ( func resourceAccountPassword() *schema.Resource { return &schema.Resource{ - Description: "The account resource allows you to configure a Boundary account.", + Description: "The account resource allows you to configure a Threshold account.", CreateContext: resourceAccountPasswordCreate, ReadContext: resourceAccountPasswordRead, diff --git a/internal/provider/resource_account_test.go b/internal/provider/resource_account_test.go index df98db85..8da99642 100644 --- a/internal/provider/resource_account_test.go +++ b/internal/provider/resource_account_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/accounts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/accounts" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_alias_target.go b/internal/provider/resource_alias_target.go index 87e9ba8c..54b50ff2 100644 --- a/internal/provider/resource_alias_target.go +++ b/internal/provider/resource_alias_target.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/aliases" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/aliases" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -27,7 +27,7 @@ const ( func resourceAliasTarget() *schema.Resource { return &schema.Resource{ - Description: "The target alias resource allows you to configure a Boundary target alias at project and global scopes.", + Description: "The target alias resource allows you to configure a Threshold target alias at project and global scopes.", CreateContext: resourceTargetAliasCreate, ReadContext: resourceTargetAliasRead, @@ -72,7 +72,7 @@ func resourceAliasTarget() *schema.Resource { // Target specific configurable parameters aliasTargetAuthorizeSessionHostIdKey: { - Description: "The host id to pass to Boundary when performing an authorize session action.", + Description: "The host id to pass to Threshold when performing an authorize session action.", Type: schema.TypeString, Optional: true, }, diff --git a/internal/provider/resource_alias_target_test.go b/internal/provider/resource_alias_target_test.go index aa549c7a..7a722ca4 100644 --- a/internal/provider/resource_alias_target_test.go +++ b/internal/provider/resource_alias_target_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/aliases" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/aliases" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_auth_method.go b/internal/provider/resource_auth_method.go index 9cb41166..28efc003 100644 --- a/internal/provider/resource_auth_method.go +++ b/internal/provider/resource_auth_method.go @@ -8,8 +8,8 @@ import ( "encoding/json" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" @@ -17,7 +17,7 @@ import ( func resourceAuthMethod() *schema.Resource { return &schema.Resource{ - Description: "The auth method resource allows you to configure a Boundary auth_method.", + Description: "The auth method resource allows you to configure a Threshold auth_method.", CreateContext: resourceAuthMethodCreate, ReadContext: resourceAuthMethodRead, diff --git a/internal/provider/resource_auth_method_ldap.go b/internal/provider/resource_auth_method_ldap.go index 70ef1293..6049ef02 100644 --- a/internal/provider/resource_auth_method_ldap.go +++ b/internal/provider/resource_auth_method_ldap.go @@ -8,8 +8,8 @@ import ( "encoding/json" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -49,7 +49,7 @@ const ( func resourceAuthMethodLdap() *schema.Resource { return &schema.Resource{ - Description: "The LDAP auth method resource allows you to configure a Boundary auth_method_ldap.", + Description: "The LDAP auth method resource allows you to configure a Threshold auth_method_ldap.", CreateContext: resourceAuthMethodLdapCreate, ReadContext: resourceAuthMethodLdapRead, @@ -212,13 +212,13 @@ func resourceAuthMethodLdap() *schema.Resource { // LDAP specific immutable and computed parameters authMethodLdapClientCertKeyHmacKey: { - Description: "The HMAC of the client certificate key returned by the Boundary controller, which is used for comparison after initial setting of the value.", + Description: "The HMAC of the client certificate key returned by the Threshold controller, which is used for comparison after initial setting of the value.", Type: schema.TypeString, Optional: true, Computed: true, }, authMethodLdapBindPasswordHmacKey: { - Description: "The HMAC of the bind password returned by the Boundary controller, which is used for comparison after initial setting of the value.", + Description: "The HMAC of the bind password returned by the Threshold controller, which is used for comparison after initial setting of the value.", Type: schema.TypeString, Optional: true, Computed: true, diff --git a/internal/provider/resource_auth_method_oidc.go b/internal/provider/resource_auth_method_oidc.go index 3f8b0a8c..01d00de1 100644 --- a/internal/provider/resource_auth_method_oidc.go +++ b/internal/provider/resource_auth_method_oidc.go @@ -8,9 +8,9 @@ import ( "encoding/json" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -40,7 +40,7 @@ const ( func resourceAuthMethodOidc() *schema.Resource { return &schema.Resource{ - Description: "The OIDC auth method resource allows you to configure a Boundary auth_method_oidc.", + Description: "The OIDC auth method resource allows you to configure a Threshold auth_method_oidc.", CreateContext: resourceAuthMethodOidcCreate, ReadContext: resourceAuthMethodOidcRead, @@ -167,7 +167,7 @@ func resourceAuthMethodOidc() *schema.Resource { // OIDC specific immutable and computed parameters authmethodOidcClientSecretHmacKey: { - Description: "The HMAC of the client secret returned by the Boundary controller, which is used for comparison after initial setting of the value.", + Description: "The HMAC of the client secret returned by the Threshold controller, which is used for comparison after initial setting of the value.", Type: schema.TypeString, Optional: true, Computed: true, diff --git a/internal/provider/resource_auth_method_oidc_test.go b/internal/provider/resource_auth_method_oidc_test.go index af112a03..542c309e 100644 --- a/internal/provider/resource_auth_method_oidc_test.go +++ b/internal/provider/resource_auth_method_oidc_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api/authmethods" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/cap/oidc" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" diff --git a/internal/provider/resource_auth_method_password.go b/internal/provider/resource_auth_method_password.go index 3c58ed0a..59cf11e3 100644 --- a/internal/provider/resource_auth_method_password.go +++ b/internal/provider/resource_auth_method_password.go @@ -8,8 +8,8 @@ import ( "encoding/json" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -23,7 +23,7 @@ const ( func resourceAuthMethodPassword() *schema.Resource { return &schema.Resource{ - Description: "The auth method resource allows you to configure a Boundary auth_method_password.", + Description: "The auth method resource allows you to configure a Threshold auth_method_password.", CreateContext: resourceAuthMethodPasswordCreate, ReadContext: resourceAuthMethodPasswordRead, diff --git a/internal/provider/resource_auth_method_test.go b/internal/provider/resource_auth_method_test.go index 4d31711e..2e8e4cc4 100644 --- a/internal/provider/resource_auth_method_test.go +++ b/internal/provider/resource_auth_method_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/authmethods" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/authmethods" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_credential_json.go b/internal/provider/resource_credential_json.go index 49ec7549..9f7e011f 100644 --- a/internal/provider/resource_credential_json.go +++ b/internal/provider/resource_credential_json.go @@ -8,8 +8,8 @@ import ( "encoding/json" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_credential_json_test.go b/internal/provider/resource_credential_json_test.go index a67dc2e7..b02baed6 100644 --- a/internal/provider/resource_credential_json_test.go +++ b/internal/provider/resource_credential_json_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_credential_library_vault.go b/internal/provider/resource_credential_library_vault.go index 88e85a64..53502096 100644 --- a/internal/provider/resource_credential_library_vault.go +++ b/internal/provider/resource_credential_library_vault.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentiallibraries" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentiallibraries" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -31,7 +31,7 @@ var libraryVaultAttrs = []string{ func resourceCredentialLibraryVault() *schema.Resource { return &schema.Resource{ - Description: "The credential library for Vault resource allows you to configure a Boundary credential library for Vault.", + Description: "The credential library for Vault resource allows you to configure a Threshold credential library for Vault.", CreateContext: resourceCredentialLibraryCreateVault, ReadContext: resourceCredentialLibraryReadVault, diff --git a/internal/provider/resource_credential_library_vault_ldap.go b/internal/provider/resource_credential_library_vault_ldap.go index 60cdfd40..4fe774bc 100644 --- a/internal/provider/resource_credential_library_vault_ldap.go +++ b/internal/provider/resource_credential_library_vault_ldap.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentiallibraries" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentiallibraries" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -24,7 +24,7 @@ var libraryVaultLdapAttrs = []string{ func resourceCredentialLibraryVaultLdap() *schema.Resource { return &schema.Resource{ - Description: "The credential library for Vault LDAP resource allows you to configure a Boundary credential library for Vault LDAP.", + Description: "The credential library for Vault LDAP resource allows you to configure a Threshold credential library for Vault LDAP.", CreateContext: resourceCredentialLibraryCreateVaultLdap, ReadContext: resourceCredentialLibraryReadVaultLdap, diff --git a/internal/provider/resource_credential_library_vault_ldap_test.go b/internal/provider/resource_credential_library_vault_ldap_test.go index 2591d78f..759d2a95 100644 --- a/internal/provider/resource_credential_library_vault_ldap_test.go +++ b/internal/provider/resource_credential_library_vault_ldap_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-provider-boundary/internal/testing/vault" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/testing/vault" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/resource_credential_library_vault_ssh_certificate.go b/internal/provider/resource_credential_library_vault_ssh_certificate.go index eb69af8e..488c4712 100644 --- a/internal/provider/resource_credential_library_vault_ssh_certificate.go +++ b/internal/provider/resource_credential_library_vault_ssh_certificate.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentiallibraries" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentiallibraries" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -40,7 +40,7 @@ var libraryVaultSshCertificateAttrs = []string{ func resourceCredentialLibraryVaultSshCertificate() *schema.Resource { return &schema.Resource{ - Description: "The credential library for Vault resource allows you to configure a Boundary credential library for Vault.", + Description: "The credential library for Vault resource allows you to configure a Threshold credential library for Vault.", CreateContext: resourceCredentialLibraryCreateVaultSshCertificate, ReadContext: resourceCredentialLibraryReadVaultSshCertificate, diff --git a/internal/provider/resource_credential_library_vault_ssh_certificate_test.go b/internal/provider/resource_credential_library_vault_ssh_certificate_test.go index 4c5ccad4..634d36e4 100644 --- a/internal/provider/resource_credential_library_vault_ssh_certificate_test.go +++ b/internal/provider/resource_credential_library_vault_ssh_certificate_test.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - "github.com/hashicorp/terraform-provider-boundary/internal/testing/vault" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/testing/vault" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/resource_credential_library_vault_test.go b/internal/provider/resource_credential_library_vault_test.go index 2ccc2951..7bb75497 100644 --- a/internal/provider/resource_credential_library_vault_test.go +++ b/internal/provider/resource_credential_library_vault_test.go @@ -9,13 +9,13 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentiallibraries" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentiallibraries" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/hashicorp/terraform-provider-boundary/internal/testing/vault" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/testing/vault" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/resource_credential_password.go b/internal/provider/resource_credential_password.go index 0397bdfa..59273dbc 100644 --- a/internal/provider/resource_credential_password.go +++ b/internal/provider/resource_credential_password.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_credential_password_test.go b/internal/provider/resource_credential_password_test.go index 7e7c1f2c..be0a64a2 100644 --- a/internal/provider/resource_credential_password_test.go +++ b/internal/provider/resource_credential_password_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_credential_ssh_private_key.go b/internal/provider/resource_credential_ssh_private_key.go index 4af2d475..1527d9e5 100644 --- a/internal/provider/resource_credential_ssh_private_key.go +++ b/internal/provider/resource_credential_ssh_private_key.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_credential_store_static.go b/internal/provider/resource_credential_store_static.go index ee706580..aee3294c 100644 --- a/internal/provider/resource_credential_store_static.go +++ b/internal/provider/resource_credential_store_static.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentialstores" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentialstores" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -17,7 +17,7 @@ const staticCredentialStoreType = "static" func resourceCredentialStoreStatic() *schema.Resource { return &schema.Resource{ - Description: "The static credential store resource allows you to configure a Boundary static credential store.", + Description: "The static credential store resource allows you to configure a Threshold static credential store.", CreateContext: resourceStaticCredentialStoreCreate, ReadContext: resourceStaticCredentialStoreRead, diff --git a/internal/provider/resource_credential_store_static_test.go b/internal/provider/resource_credential_store_static_test.go index 87d1e65b..1c5065ed 100644 --- a/internal/provider/resource_credential_store_static_test.go +++ b/internal/provider/resource_credential_store_static_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/credentialstores" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentialstores" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_credential_store_vault.go b/internal/provider/resource_credential_store_vault.go index 892eadca..6b347d2d 100644 --- a/internal/provider/resource_credential_store_vault.go +++ b/internal/provider/resource_credential_store_vault.go @@ -8,8 +8,8 @@ import ( "fmt" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentialstores" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentialstores" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -41,7 +41,7 @@ var storeVaultAttrs = []string{ func resourceCredentialStoreVault() *schema.Resource { return &schema.Resource{ - Description: "The credential store for Vault resource allows you to configure a Boundary credential store for Vault.", + Description: "The credential store for Vault resource allows you to configure a Threshold credential store for Vault.", CreateContext: resourceCredentialStoreVaultCreate, ReadContext: resourceCredentialStoreVaultRead, @@ -126,7 +126,7 @@ func resourceCredentialStoreVault() *schema.Resource { Computed: true, }, credentialStoreVaultWorkerFilterKey: { - Description: "HCP Only. A filter used to control which PKI workers can handle Vault requests. This allows the use of private Vault instances with Boundary.", + Description: "HCP Only. A filter used to control which PKI workers can handle Vault requests. This allows the use of private Vault instances with Threshold.", Type: schema.TypeString, Optional: true, }, diff --git a/internal/provider/resource_credential_store_vault_test.go b/internal/provider/resource_credential_store_vault_test.go index e22e0372..7d1ef7bc 100644 --- a/internal/provider/resource_credential_store_vault_test.go +++ b/internal/provider/resource_credential_store_vault_test.go @@ -13,13 +13,13 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentialstores" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentialstores" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/hashicorp/terraform-provider-boundary/internal/testing/vault" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/testing/vault" "github.com/stretchr/testify/require" "golang.org/x/crypto/blake2b" ) diff --git a/internal/provider/resource_credential_username_password.go b/internal/provider/resource_credential_username_password.go index 2d7df85f..4c938711 100644 --- a/internal/provider/resource_credential_username_password.go +++ b/internal/provider/resource_credential_username_password.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_credential_username_password_domain.go b/internal/provider/resource_credential_username_password_domain.go index e3d45a9b..6f40e9f5 100644 --- a/internal/provider/resource_credential_username_password_domain.go +++ b/internal/provider/resource_credential_username_password_domain.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_credential_username_password_domain_test.go b/internal/provider/resource_credential_username_password_domain_test.go index 188f1288..137efe86 100644 --- a/internal/provider/resource_credential_username_password_domain_test.go +++ b/internal/provider/resource_credential_username_password_domain_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_credential_username_password_test.go b/internal/provider/resource_credential_username_password_test.go index 83e78845..59e72304 100644 --- a/internal/provider/resource_credential_username_password_test.go +++ b/internal/provider/resource_credential_username_password_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/credentials" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/credentials" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_group.go b/internal/provider/resource_group.go index 0a78c001..558590c6 100644 --- a/internal/provider/resource_group.go +++ b/internal/provider/resource_group.go @@ -7,15 +7,15 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/groups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/groups" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) func resourceGroup() *schema.Resource { return &schema.Resource{ - Description: "The group resource allows you to configure a Boundary group.", + Description: "The group resource allows you to configure a Threshold group.", CreateContext: resourceGroupCreate, ReadContext: resourceGroupRead, diff --git a/internal/provider/resource_group_test.go b/internal/provider/resource_group_test.go index a481bd5c..ba2b47b3 100644 --- a/internal/provider/resource_group_test.go +++ b/internal/provider/resource_group_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/groups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/groups" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_host_catalog_plugin.go b/internal/provider/resource_host_catalog_plugin.go index 24a0895f..73551b31 100644 --- a/internal/provider/resource_host_catalog_plugin.go +++ b/internal/provider/resource_host_catalog_plugin.go @@ -15,8 +15,8 @@ import ( "net/http" "strconv" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostcatalogs" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -29,7 +29,7 @@ const ( func resourceHostCatalogPlugin() *schema.Resource { return &schema.Resource{ - Description: "The host catalog resource allows you to configure a Boundary plugin-type host catalog. Host " + + Description: "The host catalog resource allows you to configure a Threshold plugin-type host catalog. Host " + "catalogs are always part of a project, so a project resource should be used inline or you " + "should have the project ID in hand to successfully configure a host catalog.", @@ -130,7 +130,7 @@ func resourceHostCatalogPlugin() *schema.Resource { Computed: true, }, internalHmacUsedForSecretsConfigHmacKey: { - Description: "Internal only. The Boundary-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection.", + Description: "Internal only. The Threshold-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection.", Type: schema.TypeString, Optional: true, Computed: true, @@ -269,11 +269,11 @@ func calculateConfigHmacPlan(serverHmac, secretsJson string, d *schema.ResourceD // State 6a: mismatch. Warn the user. return false, false, &diag.Diagnostic{ Severity: diag.Warning, - Summary: "Mismatch in secrets state between Boundary and Terraform.", - Detail: `Boundary's secret state is out of sync with Terraform. Usually this is the result of secrets being provided ` + - `directly via Boundary's API. To suppress this warning, either remove the secrets via Boundary's API and allow Terraform to ` + + Summary: "Mismatch in secrets state between Threshold and Terraform.", + Detail: `Threshold's secret state is out of sync with Terraform. Usually this is the result of secrets being provided ` + + `directly via Threshold's API. To suppress this warning, either remove the secrets via Threshold's API and allow Terraform to ` + `repopulate them, or remove the secrets_json block from Terraform's configuration file (the next time you add secrets_json ` + - `back to the file, those values will be used to overwrite the current Boundary values.)`, + `back to the file, those values will be used to overwrite the current Threshold values.)`, }, nil default: diff --git a/internal/provider/resource_host_catalog_plugin_test.go b/internal/provider/resource_host_catalog_plugin_test.go index 53f40eda..f61b6518 100644 --- a/internal/provider/resource_host_catalog_plugin_test.go +++ b/internal/provider/resource_host_catalog_plugin_test.go @@ -10,7 +10,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostcatalogs" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_host_catalog_static.go b/internal/provider/resource_host_catalog_static.go index 2242d29b..a66afb76 100644 --- a/internal/provider/resource_host_catalog_static.go +++ b/internal/provider/resource_host_catalog_static.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostcatalogs" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -64,7 +64,7 @@ func resourceHostCatalog() *schema.Resource { func resourceHostCatalogStatic() *schema.Resource { return &schema.Resource{ - Description: "The static host catalog resource allows you to configure a Boundary static-type host catalog. Host " + + Description: "The static host catalog resource allows you to configure a Threshold static-type host catalog. Host " + "catalogs are always part of a project, so a project resource should be used inline or you " + "should have the project ID in hand to successfully configure a host catalog.", diff --git a/internal/provider/resource_host_catalog_static_test.go b/internal/provider/resource_host_catalog_static_test.go index 83eed2d4..44eb2b72 100644 --- a/internal/provider/resource_host_catalog_static_test.go +++ b/internal/provider/resource_host_catalog_static_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostcatalogs" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostcatalogs" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_host_set_plugin.go b/internal/provider/resource_host_set_plugin.go index 8914f527..a57b8e65 100644 --- a/internal/provider/resource_host_set_plugin.go +++ b/internal/provider/resource_host_set_plugin.go @@ -9,8 +9,8 @@ import ( "errors" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostsets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostsets" "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -23,7 +23,7 @@ const ( func resourceHostSetPlugin() *schema.Resource { return &schema.Resource{ - Description: "The host_set_plugin resource allows you to configure a Boundary host set. Host sets are " + + Description: "The host_set_plugin resource allows you to configure a Threshold host set. Host sets are " + "always part of a host catalog, so a host catalog resource should be used inline or you " + "should have the host catalog ID in hand to successfully configure a host set.", diff --git a/internal/provider/resource_host_set_plugin_test.go b/internal/provider/resource_host_set_plugin_test.go index 0ec49c8e..81d933ca 100644 --- a/internal/provider/resource_host_set_plugin_test.go +++ b/internal/provider/resource_host_set_plugin_test.go @@ -10,7 +10,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/boundary/api/hostsets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostsets" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_host_set_static.go b/internal/provider/resource_host_set_static.go index 363b2747..e47ee816 100644 --- a/internal/provider/resource_host_set_static.go +++ b/internal/provider/resource_host_set_static.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostsets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostsets" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -71,7 +71,7 @@ func resourceHostSet() *schema.Resource { func resourceHostSetStatic() *schema.Resource { return &schema.Resource{ - Description: "The host_set_static resource allows you to configure a Boundary host set. Host sets are " + + Description: "The host_set_static resource allows you to configure a Threshold host set. Host sets are " + "always part of a host catalog, so a host catalog resource should be used inline or you " + "should have the host catalog ID in hand to successfully configure a host set.", diff --git a/internal/provider/resource_host_set_static_test.go b/internal/provider/resource_host_set_static_test.go index ab90a5d8..0e6370c2 100644 --- a/internal/provider/resource_host_set_static_test.go +++ b/internal/provider/resource_host_set_static_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hostsets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hostsets" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_host_static.go b/internal/provider/resource_host_static.go index 4182490c..8d057568 100644 --- a/internal/provider/resource_host_static.go +++ b/internal/provider/resource_host_static.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hosts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hosts" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -68,7 +68,7 @@ func resourceHost() *schema.Resource { func resourceHostStatic() *schema.Resource { return &schema.Resource{ - Description: "The static host resource allows you to configure a Boundary static host. Hosts are " + + Description: "The static host resource allows you to configure a Threshold static host. Hosts are " + "always part of a project, so a project resource should be used inline or you should have " + "the project ID in hand to successfully configure a host.", diff --git a/internal/provider/resource_host_static_test.go b/internal/provider/resource_host_static_test.go index 4615ed8e..24bd00bf 100644 --- a/internal/provider/resource_host_static_test.go +++ b/internal/provider/resource_host_static_test.go @@ -10,8 +10,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/hosts" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/hosts" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_managed_group.go b/internal/provider/resource_managed_group.go index 7db43383..903fec23 100644 --- a/internal/provider/resource_managed_group.go +++ b/internal/provider/resource_managed_group.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/managedgroups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/managedgroups" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -19,7 +19,7 @@ const ( func resourceManagedGroup() *schema.Resource { return &schema.Resource{ - Description: "The managed group resource allows you to configure a Boundary group.", + Description: "The managed group resource allows you to configure a Threshold group.", CreateContext: resourceManagedGroupCreate, ReadContext: resourceManagedGroupRead, diff --git a/internal/provider/resource_managed_group_ldap.go b/internal/provider/resource_managed_group_ldap.go index c5ea1a17..3924183f 100644 --- a/internal/provider/resource_managed_group_ldap.go +++ b/internal/provider/resource_managed_group_ldap.go @@ -8,8 +8,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/managedgroups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/managedgroups" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -18,7 +18,7 @@ const managedGroupLdapGroupNamesKey = "group_names" func resourceManagedGroupLdap() *schema.Resource { return &schema.Resource{ - Description: "The managed group resource allows you to configure a Boundary group.", + Description: "The managed group resource allows you to configure a Threshold group.", CreateContext: resourceManagedGroupLdapCreate, ReadContext: resourceManagedGroupLdapRead, diff --git a/internal/provider/resource_managed_group_ldap_test.go b/internal/provider/resource_managed_group_ldap_test.go index dffcf4fe..976e02b4 100644 --- a/internal/provider/resource_managed_group_ldap_test.go +++ b/internal/provider/resource_managed_group_ldap_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api/managedgroups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/managedgroups" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_managed_group_test.go b/internal/provider/resource_managed_group_test.go index 7919c51c..ed26b8f9 100644 --- a/internal/provider/resource_managed_group_test.go +++ b/internal/provider/resource_managed_group_test.go @@ -10,8 +10,8 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/managedgroups" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/managedgroups" "github.com/hashicorp/cap/oidc" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" diff --git a/internal/provider/resource_policy_storage.go b/internal/provider/resource_policy_storage.go index 763b57e6..841ee03e 100644 --- a/internal/provider/resource_policy_storage.go +++ b/internal/provider/resource_policy_storage.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/policies" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/policies" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -25,7 +25,7 @@ const ( func resourcePolicyStorage() *schema.Resource { return &schema.Resource{ - Description: "The storage policy resource allows you to configure a Boundary storage policy. " + + Description: "The storage policy resource allows you to configure a Threshold storage policy. " + "Storage policies allow an admin to configure how long session recordings must be stored and when " + "to delete them. Storage policies must be applied to the global scope or an org scope in order to take effect.", CreateContext: resourcePolicyStorageCreate, diff --git a/internal/provider/resource_role.go b/internal/provider/resource_role.go index a3abc5b8..e46a55bc 100644 --- a/internal/provider/resource_role.go +++ b/internal/provider/resource_role.go @@ -12,8 +12,8 @@ import ( "strings" "unicode" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/roles" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/roles" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -26,7 +26,7 @@ const ( func resourceRole() *schema.Resource { return &schema.Resource{ - Description: "The role resource allows you to configure a Boundary role.", + Description: "The role resource allows you to configure a Threshold role.", CreateContext: resourceRoleCreate, ReadContext: resourceRoleRead, diff --git a/internal/provider/resource_role_grant_scope_ids_upgrade_test.go b/internal/provider/resource_role_grant_scope_ids_upgrade_test.go index 2e50d140..22f62ad5 100644 --- a/internal/provider/resource_role_grant_scope_ids_upgrade_test.go +++ b/internal/provider/resource_role_grant_scope_ids_upgrade_test.go @@ -9,7 +9,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/boundary/api/roles" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/roles" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_role_test.go b/internal/provider/resource_role_test.go index 2ef2002f..6908f27e 100644 --- a/internal/provider/resource_role_test.go +++ b/internal/provider/resource_role_test.go @@ -12,8 +12,8 @@ import ( "strings" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/roles" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/roles" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_scope.go b/internal/provider/resource_scope.go index 2a0f28ff..651074d6 100644 --- a/internal/provider/resource_scope.go +++ b/internal/provider/resource_scope.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -21,7 +21,7 @@ const ( func resourceScope() *schema.Resource { return &schema.Resource{ - Description: "The scope resource allows you to configure a Boundary scope.", + Description: "The scope resource allows you to configure a Threshold scope.", CreateContext: resourceScopeCreate, ReadContext: resourceScopeRead, diff --git a/internal/provider/resource_scope_alias_suffix.go b/internal/provider/resource_scope_alias_suffix.go index 476e3dff..83918f29 100644 --- a/internal/provider/resource_scope_alias_suffix.go +++ b/internal/provider/resource_scope_alias_suffix.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_scope_policy_attachment.go b/internal/provider/resource_scope_policy_attachment.go index 70958044..11eacfca 100644 --- a/internal/provider/resource_scope_policy_attachment.go +++ b/internal/provider/resource_scope_policy_attachment.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_scope_test.go b/internal/provider/resource_scope_test.go index a20cdd58..f1df09ab 100644 --- a/internal/provider/resource_scope_test.go +++ b/internal/provider/resource_scope_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/scopes" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_storage_bucket.go b/internal/provider/resource_storage_bucket.go index 78dbf1c1..4cd5554b 100644 --- a/internal/provider/resource_storage_bucket.go +++ b/internal/provider/resource_storage_bucket.go @@ -12,8 +12,8 @@ import ( "net/http" "strconv" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/storagebuckets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/storagebuckets" "github.com/hashicorp/go-secure-stdlib/parseutil" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -26,7 +26,7 @@ const ( func resourceStorageBucket() *schema.Resource { return &schema.Resource{ - Description: `The storage bucket resource allows you to configure a Boundary storage bucket. ` + + Description: `The storage bucket resource allows you to configure a Threshold storage bucket. ` + `A storage bucket can only belong to the Global scope or an Org scope. ` + `At this time, the only supported storage for storage buckets is AWS S3. ` + `This feature requires Boundary Enterprise or Boundary HCP.`, @@ -106,7 +106,7 @@ func resourceStorageBucket() *schema.Resource { Computed: true, }, internalHmacUsedForSecretsConfigHmacKey: { - Description: "Internal only. The Boundary-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection.", + Description: "Internal only. The Threshold-provided HMAC used to calculate the current value of the HMAC'd config. Used for drift detection.", Type: schema.TypeString, Computed: true, }, diff --git a/internal/provider/resource_storage_bucket_test.go b/internal/provider/resource_storage_bucket_test.go index d57cc841..fd7527d4 100644 --- a/internal/provider/resource_storage_bucket_test.go +++ b/internal/provider/resource_storage_bucket_test.go @@ -11,8 +11,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/storagebuckets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/storagebuckets" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_target.go b/internal/provider/resource_target.go index 9af0f8c0..4fa208fd 100644 --- a/internal/provider/resource_target.go +++ b/internal/provider/resource_target.go @@ -9,8 +9,8 @@ import ( "math" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/targets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/targets" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -37,7 +37,7 @@ const ( func resourceTarget() *schema.Resource { return &schema.Resource{ - Description: "The target resource allows you to configure a Boundary target.", + Description: "The target resource allows you to configure a Threshold target.", CreateContext: resourceTargetCreate, ReadContext: resourceTargetRead, diff --git a/internal/provider/resource_target_host_source.go b/internal/provider/resource_target_host_source.go index e365d290..bc825b95 100644 --- a/internal/provider/resource_target_host_source.go +++ b/internal/provider/resource_target_host_source.go @@ -9,8 +9,8 @@ import ( "net/http" "strings" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/targets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/targets" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) diff --git a/internal/provider/resource_target_host_source_test.go b/internal/provider/resource_target_host_source_test.go index 195ff586..f09e1069 100644 --- a/internal/provider/resource_target_host_source_test.go +++ b/internal/provider/resource_target_host_source_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/targets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/targets" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/resource_target_test.go b/internal/provider/resource_target_test.go index e1260c92..8301437b 100644 --- a/internal/provider/resource_target_test.go +++ b/internal/provider/resource_target_test.go @@ -10,13 +10,13 @@ import ( "regexp" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/targets" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/targets" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" - "github.com/hashicorp/terraform-provider-boundary/internal/testing/vault" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/testing/vault" "github.com/stretchr/testify/require" ) diff --git a/internal/provider/resource_user.go b/internal/provider/resource_user.go index 5cfe68de..c4351075 100644 --- a/internal/provider/resource_user.go +++ b/internal/provider/resource_user.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/users" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/users" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -17,7 +17,7 @@ const userAccountIDsKey = "account_ids" func resourceUser() *schema.Resource { return &schema.Resource{ - Description: "The user resource allows you to configure a Boundary user.", + Description: "The user resource allows you to configure a Threshold user.", CreateContext: resourceUserCreate, ReadContext: resourceUserRead, diff --git a/internal/provider/resource_user_test.go b/internal/provider/resource_user_test.go index f25d9443..144ce45f 100644 --- a/internal/provider/resource_user_test.go +++ b/internal/provider/resource_user_test.go @@ -9,8 +9,8 @@ import ( "net/http" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/users" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/users" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/id" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/provider/scope.go b/internal/provider/scope.go index fb7ecca5..0d78ec85 100644 --- a/internal/provider/scope.go +++ b/internal/provider/scope.go @@ -3,7 +3,7 @@ package provider -import "github.com/hashicorp/boundary/api/scopes" +import "repo.anhonesthost.net/CyberCoveLLC/threshold/api/scopes" func flattenScopeInfo(scope *scopes.ScopeInfo) []interface{} { if scope == nil { diff --git a/internal/provider/worker.go b/internal/provider/worker.go index d32d841f..99c53f6f 100644 --- a/internal/provider/worker.go +++ b/internal/provider/worker.go @@ -7,8 +7,8 @@ import ( "context" "net/http" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/workers" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/workers" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" ) @@ -77,7 +77,7 @@ func resourceWorker() *schema.Resource { Computed: true, }, releaseVersion: { - Description: "The version of the Boundary binary running on the self managed worker.", + Description: "The version of the Threshold binary running on the self managed worker.", Type: schema.TypeInt, Computed: true, }, diff --git a/internal/provider/worker_test.go b/internal/provider/worker_test.go index b6fa7cef..2a692729 100644 --- a/internal/provider/worker_test.go +++ b/internal/provider/worker_test.go @@ -10,8 +10,8 @@ import ( "os" "testing" - "github.com/hashicorp/boundary/api" - "github.com/hashicorp/boundary/api/workers" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api" + "repo.anhonesthost.net/CyberCoveLLC/threshold/api/workers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" diff --git a/main.go b/main.go index e57b5e95..3894bbf2 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ package main import ( "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" - "github.com/hashicorp/terraform-provider-boundary/internal/provider" + "repo.anhonesthost.net/CyberCoveLLC/terraform-provider-threshold/internal/provider" ) // Run "go generate" to format example terraform files and generate the docs for the registry/website diff --git a/plugins/kms/mains/alicloudkms/go.mod b/plugins/kms/mains/alicloudkms/go.mod index 248fa61c..342b5e87 100644 --- a/plugins/kms/mains/alicloudkms/go.mod +++ b/plugins/kms/mains/alicloudkms/go.mod @@ -32,9 +32,9 @@ require ( github.com/ryanuber/go-glob v1.0.0 // indirect github.com/stretchr/testify v1.12.1 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect + golang.org/x/net v0.60.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.11 // indirect diff --git a/plugins/kms/mains/alicloudkms/go.sum b/plugins/kms/mains/alicloudkms/go.sum index beb8cec2..fbf419ea 100644 --- a/plugins/kms/mains/alicloudkms/go.sum +++ b/plugins/kms/mains/alicloudkms/go.sum @@ -103,8 +103,8 @@ go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/ go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -112,10 +112,10 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk= diff --git a/plugins/kms/mains/awskms/go.mod b/plugins/kms/mains/awskms/go.mod index 3f5b358e..fb01b2e8 100644 --- a/plugins/kms/mains/awskms/go.mod +++ b/plugins/kms/mains/awskms/go.mod @@ -34,9 +34,9 @@ require ( github.com/ryanuber/go-glob v1.0.0 // indirect github.com/stretchr/testify v1.12.1 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect + golang.org/x/net v0.60.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.11 // indirect diff --git a/plugins/kms/mains/awskms/go.sum b/plugins/kms/mains/awskms/go.sum index cd5913aa..223ff2c2 100644 --- a/plugins/kms/mains/awskms/go.sum +++ b/plugins/kms/mains/awskms/go.sum @@ -117,8 +117,8 @@ go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -130,11 +130,11 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk= diff --git a/plugins/kms/mains/azurekeyvault/go.mod b/plugins/kms/mains/azurekeyvault/go.mod index 291cde27..06c90d3a 100644 --- a/plugins/kms/mains/azurekeyvault/go.mod +++ b/plugins/kms/mains/azurekeyvault/go.mod @@ -46,7 +46,7 @@ require ( github.com/stretchr/testify v1.12.1 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/crypto v0.57.0 // indirect - golang.org/x/net v0.58.0 // indirect + golang.org/x/net v0.60.0 // indirect golang.org/x/sys v0.48.0 // indirect golang.org/x/text v0.42.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect diff --git a/plugins/kms/mains/azurekeyvault/go.sum b/plugins/kms/mains/azurekeyvault/go.sum index bacaffe1..5de9a3e7 100644 --- a/plugins/kms/mains/azurekeyvault/go.sum +++ b/plugins/kms/mains/azurekeyvault/go.sum @@ -140,8 +140,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= diff --git a/plugins/kms/mains/gcpckms/go.mod b/plugins/kms/mains/gcpckms/go.mod index 45de986e..359697a8 100644 --- a/plugins/kms/mains/gcpckms/go.mod +++ b/plugins/kms/mains/gcpckms/go.mod @@ -48,7 +48,7 @@ require ( go.opentelemetry.io/otel/trace v1.44.0 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/crypto v0.57.0 // indirect - golang.org/x/net v0.58.0 // indirect + golang.org/x/net v0.60.0 // indirect golang.org/x/oauth2 v0.36.0 // indirect golang.org/x/sync v0.23.0 // indirect golang.org/x/sys v0.48.0 // indirect diff --git a/plugins/kms/mains/gcpckms/go.sum b/plugins/kms/mains/gcpckms/go.sum index e827d416..7f07917c 100644 --- a/plugins/kms/mains/gcpckms/go.sum +++ b/plugins/kms/mains/gcpckms/go.sum @@ -116,8 +116,8 @@ go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M= golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs= golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q= golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk= diff --git a/plugins/kms/mains/ibmkp/go.mod b/plugins/kms/mains/ibmkp/go.mod index 4d599192..f0805249 100644 --- a/plugins/kms/mains/ibmkp/go.mod +++ b/plugins/kms/mains/ibmkp/go.mod @@ -32,9 +32,9 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect github.com/stretchr/testify v1.11.1 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect + golang.org/x/net v0.60.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.11 // indirect diff --git a/plugins/kms/mains/ibmkp/go.sum b/plugins/kms/mains/ibmkp/go.sum index ad8457b0..2037b0d8 100644 --- a/plugins/kms/mains/ibmkp/go.sum +++ b/plugins/kms/mains/ibmkp/go.sum @@ -100,8 +100,8 @@ go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRk go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA= go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk= go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -111,10 +111,10 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk= diff --git a/plugins/kms/mains/ocikms/go.mod b/plugins/kms/mains/ocikms/go.mod index b6a03cbd..26a1caf6 100644 --- a/plugins/kms/mains/ocikms/go.mod +++ b/plugins/kms/mains/ocikms/go.mod @@ -31,10 +31,10 @@ require ( github.com/stretchr/testify v1.12.1 // indirect github.com/youmark/pkcs8 v0.0.0-20240726163527-a2c0da244d78 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect - golang.org/x/crypto v0.55.0 // indirect - golang.org/x/net v0.58.0 // indirect - golang.org/x/sys v0.47.0 // indirect - golang.org/x/text v0.41.0 // indirect + golang.org/x/crypto v0.57.0 // indirect + golang.org/x/net v0.60.0 // indirect + golang.org/x/sys v0.48.0 // indirect + golang.org/x/text v0.42.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect google.golang.org/grpc v1.83.2 // indirect google.golang.org/protobuf v1.36.11 // indirect diff --git a/plugins/kms/mains/ocikms/go.sum b/plugins/kms/mains/ocikms/go.sum index 08215a09..81103dc0 100644 --- a/plugins/kms/mains/ocikms/go.sum +++ b/plugins/kms/mains/ocikms/go.sum @@ -88,10 +88,10 @@ go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/ go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE= go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= -golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M= -golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/crypto v0.57.0 h1:3ZVCjf8Ggz7zneR/EHRVx68Ctf+2pmIMP2UFhh9cC6M= +golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -99,10 +99,10 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs= -golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8= -golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M= +golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo= +golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI= +golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E= gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4= gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E= google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk= diff --git a/plugins/kms/mains/transit/go.mod b/plugins/kms/mains/transit/go.mod index b5254c5e..2f279a02 100644 --- a/plugins/kms/mains/transit/go.mod +++ b/plugins/kms/mains/transit/go.mod @@ -38,7 +38,7 @@ require ( github.com/stretchr/testify v1.12.1 // indirect go.yaml.in/yaml/v3 v3.0.5 // indirect golang.org/x/crypto v0.57.0 // indirect - golang.org/x/net v0.58.0 // indirect + golang.org/x/net v0.60.0 // indirect golang.org/x/sys v0.48.0 // indirect golang.org/x/text v0.42.0 // indirect golang.org/x/time v0.3.0 // indirect diff --git a/plugins/kms/mains/transit/go.sum b/plugins/kms/mains/transit/go.sum index 395edab6..de27763a 100644 --- a/plugins/kms/mains/transit/go.sum +++ b/plugins/kms/mains/transit/go.sum @@ -117,8 +117,8 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.58.0 h1:ynWG7rqYi4ccpTEuPZ2QGWHktVEM9DMCj9yzDE0Q7To= -golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU= +golang.org/x/net v0.60.0 h1:79p50tfZlm0J9YfoDsSi639qSXNGVwEzOPLCxM2FsYU= +golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/scripts/build-release.sh b/scripts/build-release.sh new file mode 100755 index 00000000..1da387b2 --- /dev/null +++ b/scripts/build-release.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: MPL-2.0 +# +# Cross-compile terraform-provider-threshold for linux/darwin/windows on +# amd64/arm64 and zip each binary in the layout Terraform expects: +# dist/terraform-provider-threshold___.zip +# containing the single file terraform-provider-threshold_v[.exe]. +# +# Usage: scripts/build-release.sh [version] [outdir] +set -euo pipefail + +root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +version="${1:-$(cat "$root/version/VERSION")}" +out="${2:-$root/dist}" +mkdir -p "$out" + +for os in linux darwin windows; do + for arch in amd64 arm64; do + ext=""; [ "$os" = windows ] && ext=".exe" + bin="terraform-provider-threshold_v${version}${ext}" + tmp="$(mktemp -d)" + echo "==> ${os}/${arch}" + (cd "$root" && CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" \ + go build -trimpath -ldflags "-s -w" -o "$tmp/$bin" .) + (cd "$tmp" && zip -q -j "$out/terraform-provider-threshold_${version}_${os}_${arch}.zip" "$bin") + rm -rf "$tmp" + done +done +(cd "$out" && sha256sum ./*.zip > "terraform-provider-threshold_${version}_SHA256SUMS") +echo "Artifacts in $out" diff --git a/templates/index.md.tmpl b/templates/index.md.tmpl index ae968c90..5941fe72 100644 --- a/templates/index.md.tmpl +++ b/templates/index.md.tmpl @@ -1,13 +1,13 @@ --- -page_title: "Provider: Boundary" +page_title: "Provider: Threshold" subcategory: "" description: |- - Terraform provider for configuring Boundary. + Terraform provider for configuring Threshold. --- -# Boundary Provider +# Threshold Provider -Terraform provider for configuring Boundary. +Terraform provider for configuring Threshold. ## Example Usage diff --git a/version/VERSION b/version/VERSION index 9c6d6293..6e8bf73a 100644 --- a/version/VERSION +++ b/version/VERSION @@ -1 +1 @@ -1.6.1 +0.1.0