Skip to content

Commit

Permalink
add missing license headers and update copyright file headers to BUS-1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hashicorp-copywrite[bot] committed Aug 10, 2023
1 parent 6220f2b commit dd81f12
Show file tree
Hide file tree
Showing 152 changed files with 156 additions and 161 deletions.
2 changes: 1 addition & 1 deletion aead/aead.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package aead

Expand Down
2 changes: 1 addition & 1 deletion aead/aead_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package aead

Expand Down
2 changes: 1 addition & 1 deletion aead/options.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package aead

Expand Down
2 changes: 1 addition & 1 deletion aead/testing.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package aead

Expand Down
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

version: v1
plugins:
Expand Down
2 changes: 1 addition & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

version: v1
name: buf.build/hashicorp/go-kms-wrapping
Expand Down
2 changes: 1 addition & 1 deletion const.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package wrapping

Expand Down
2 changes: 1 addition & 1 deletion ed25519/options.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion ed25519/signer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion ed25519/signer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion ed25519/testing.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion ed25519/verifier.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion ed25519/verifier_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package ed25519

Expand Down
2 changes: 1 addition & 1 deletion entropy/entropy.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package entropy

Expand Down
2 changes: 1 addition & 1 deletion entropy/entropy_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package entropy

Expand Down
2 changes: 1 addition & 1 deletion entropy/testhelper.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package entropy

Expand Down
2 changes: 1 addition & 1 deletion envelope.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package wrapping

Expand Down
2 changes: 1 addition & 1 deletion envelope_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package wrapping

Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package wrapping

Expand Down
2 changes: 1 addition & 1 deletion examples/plugin-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

# This docker container will invoke a vault client which will initialize the
# require vault transit backend for the example
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin-cli/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

# these services are required to be up before running the example. after the
# vaul-server is up and running, the vault-client connects and initializes the
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin-cli/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package main

Expand Down
3 changes: 1 addition & 2 deletions examples/plugin-cli/plugins/mains/transit/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package main

Expand All @@ -8,7 +8,6 @@ import (
"os"

gkwp "github.com/hashicorp/go-kms-wrapping/plugin/v2"
"github.com/hashicorp/go-kms-wrapping/wrappers/transit/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin-cli/scripts/plugins.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

#
# This script builds the required plugins.
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin-cli/scripts/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1


VAULT_RETRIES=5
Expand Down
5 changes: 3 additions & 2 deletions extras/crypto/derived_reader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand All @@ -18,8 +18,9 @@ import (
// be nil.
//
// Example:
//
// reader, _ := crypto.NewDerivedReader(wrapper, userId, jobId)
// key := ed25519.GenerateKey(reader)
// key := ed25519.GenerateKey(reader)
func NewDerivedReader(ctx context.Context, wrapper wrapping.Wrapper, lenLimit int64, opt ...wrapping.Option) (*io.LimitedReader, error) {
const (
op = "reader.NewDerivedReader"
Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/derived_reader_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto_test

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/hmac_sha256.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/hmac_sha256_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto_test

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/isnil.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/options.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/sha256sum.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/sha256sum_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto_test

Expand Down
2 changes: 1 addition & 1 deletion extras/crypto/testing.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package crypto

Expand Down
4 changes: 1 addition & 3 deletions extras/kms/data_key.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package kms

import (
"context"
"fmt"
"time"

"github.com/hashicorp/go-dbw"
)

// dataKey represents the DEKs (keys to encrypt data) of the system and must
Expand Down
3 changes: 1 addition & 2 deletions extras/kms/data_key_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package kms

Expand All @@ -8,7 +8,6 @@ import (
"fmt"
"testing"

"github.com/hashicorp/go-dbw"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
3 changes: 1 addition & 2 deletions extras/kms/data_key_version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package kms

Expand All @@ -8,7 +8,6 @@ import (
"fmt"
"time"

"github.com/hashicorp/go-dbw"
wrapping "github.com/hashicorp/go-kms-wrapping/v2"
"github.com/hashicorp/go-kms-wrapping/v2/extras/structwrapping"
)
Expand Down
3 changes: 1 addition & 2 deletions extras/kms/data_key_version_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package kms

import (
"context"
"testing"

"github.com/hashicorp/go-dbw"
wrapping "github.com/hashicorp/go-kms-wrapping/v2"
"github.com/hashicorp/go-kms-wrapping/v2/aead"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion extras/kms/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

# this is used to bring up a postgres database for when you want to run tests
# that depend on postgres. For example, when running: `make test-postgres`
Expand Down
2 changes: 1 addition & 1 deletion extras/kms/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

// kms is a package that provides key management system features for
// go-kms-wrapping Wrappers.
Expand Down
2 changes: 1 addition & 1 deletion extras/kms/errors.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package kms

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

FROM vault:1.10.0
COPY run.sh ./
Expand Down
4 changes: 1 addition & 3 deletions extras/kms/examples/cli/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package main

Expand All @@ -10,9 +10,7 @@ import (
"fmt"
"os"

"github.com/hashicorp/go-dbw"
"github.com/hashicorp/go-kms-wrapping/extras/kms/examples/v2"
"github.com/hashicorp/go-kms-wrapping/extras/kms/v2"
"github.com/hashicorp/go-kms-wrapping/v2/extras/structwrapping"
)

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/config.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package examples

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/db.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package examples

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# SPDX-License-Identifier: BUSL-1.1

version: "3.8"

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/fs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package examples

Expand Down
2 changes: 1 addition & 1 deletion extras/kms/examples/oidc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: BUSL-1.1

package examples

Expand Down
Loading

0 comments on commit dd81f12

Please sign in to comment.