Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extras unused by OpenBao #12

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,41 @@ proto:
find . -type f -name "*.pb.go" -delete
buf generate
buf format -w

# inject classification tags (see: https://github.com/hashicorp/go-eventlogger/tree/main/filters/encrypt)
@protoc-go-inject-tag -input=./github.com.openbao.go.kms.wrapping.v2.types.pb.go

.PHONY: tools
tools:
go install github.com/favadi/[email protected]
go install github.com/bufbuild/buf/cmd/[email protected]

.PHONY: tidy-all
tidy-all:
cd entropy && go mod tidy
cd plugin && go mod tidy
cd wrappers/aead && go mod tidy
cd wrappers/alicloudkms && go mod tidy
cd wrappers/awskms && go mod tidy
cd wrappers/azurekeyvault && go mod tidy
cd wrappers/gcpckms && go mod tidy
cd wrappers/huaweicloudkms && go mod tidy
cd wrappers/ocikms && go mod tidy
cd wrappers/tencentcloudkms && go mod tidy
cd wrappers/transit && go mod tidy
go mod tidy

.PHONY: generate-all
generate-all:
cd entropy && GOARCH= GOOS= go generate ./...
cd plugin && GOARCH= GOOS= go generate ./...
cd wrappers/aead && GOARCH= GOOS= go generate ./...
cd wrappers/alicloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/awskms && GOARCH= GOOS= go generate ./...
cd wrappers/azurekeyvault && GOARCH= GOOS= go generate ./...
cd wrappers/gcpckms && GOARCH= GOOS= go generate ./...
cd wrappers/huaweicloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/ocikms && GOARCH= GOOS= go generate ./...
cd wrappers/tencentcloudkms && GOARCH= GOOS= go generate ./...
cd wrappers/transit && GOARCH= GOOS= go generate ./...
GOARCH= GOOS= go generate ./...
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,6 @@ package is capable of encrypting to a specified wrapper and
decrypting using one of several wrappers switched on key ID. This can allow
easy key rotation for KMSes that do not natively support it.

* The
[`structwrapping`](https://github.com/hashicorp/go-kms-wrapping/tree/main/extras/structwrapping)
package allows for structs to have members encrypted and decrypted in a single
pass via a single wrapper. This can be used for workflows such as database
library callback functions to easily encrypt/decrypt data as it goes to/from
storage.

* The [`kms`](https://github.com/hashicorp/go-kms-wrapping/tree/main/extras/kms)
package provides key management system features for wrappers
including scoped [KEKs](https://en.wikipedia.org/wiki/Glossary_of_cryptographic_keys)
and [DEKs](https://en.wikipedia.org/wiki/Glossary_of_cryptographic_keys) which
are wrapped with an external KMS when stored in sqlite or postgres.

* The [`crypto`](https://github.com/hashicorp/go-kms-wrapping/tree/main/extras/crypto) package provides additional operations like HMAC-SHA256 and a
derived reader from which keys can be read.

## Installation

`go get github.com/hashicorp/go-kms-wrapping/v2`
Expand Down
54 changes: 0 additions & 54 deletions extras/crypto/derived_reader.go

This file was deleted.

201 changes: 0 additions & 201 deletions extras/crypto/derived_reader_test.go

This file was deleted.

Loading
Loading