forked from hashicorp/go-kms-wrapping
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These subpackages are unused by OpenBao. KMS is a package built on top of go-kms-wrapping which uses a database to store encryption keys: this is unnecessary in our case as we explicitly want all keys to be backed by the underlying wrapper (which, admittedly in the case of cloud KMSes, incurs some cost that extras/kms/ could avoid). Crypto adds, along other things, a HMAC-SHA-256 implementation: if we find this useful, we could add this directly to wrappers/ as an optional type (just like signing.go is). Lastly, StructWrapping adds a way to encrypt arbitrary interfaces, through a custom marshaling format built on protobuf. extras/multi remains: it is unclear if it might potentially be useful for multi-unseal in OpenBao in the future and aead/ had tests using it. Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information
Showing
87 changed files
with
31 additions
and
16,101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.