Skip to content

Commit

Permalink
standard recrypt provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru committed Jan 3, 2025
1 parent a33d23b commit 8c465d9
Show file tree
Hide file tree
Showing 17 changed files with 946 additions and 928 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ toolcheck:
@which buf > /dev/null || (echo "buf not found, please install it from https://docs.buf.build/installation" && exit 1)
@which golangci-lint > /dev/null || (echo "golangci-lint not found, run 'go install github.com/golangci/golangci-lint/cmd/[email protected]'" && exit 1)
@which protoc-gen-doc > /dev/null || (echo "protoc-gen-doc not found, run 'go install github.com/pseudomuto/protoc-gen-doc/cmd/[email protected]'" && exit 1)
@golangci-lint --version | grep "version v\?1.61" > /dev/null || (echo "golangci-lint version must be v1.61 or later [$$(golangci-lint --version)]" && exit 1)
@golangci-lint --version | grep "version v\?1.6[1234]" > /dev/null || (echo "golangci-lint version must be v1.61 or later [$$(golangci-lint --version)]" && exit 1)
@which goimports >/dev/null || (echo "goimports not found, run 'go install golang.org/x/tools/cmd/goimports@latest'")

fix: tidy fmt
Expand Down
28 changes: 10 additions & 18 deletions opentdf-kas-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ services:
keyring:
- kid: e1
alg: ec:secp256r1
- kid: e1
alg: ec:secp256r1
legacy: true
- kid: r1
alg: rsa:2048
private: kas-ec-private.pem
cert: kas-ec-cert.pem
options:
- active
- legacy
- kid: r1
alg: rsa:2048
legacy: true
private: kas-private.pem
cert: kas-cert.pem
options:
- active
- legacy
server:
tls:
enabled: false
Expand Down Expand Up @@ -95,16 +99,4 @@ server:
maxage: 3600
grpc:
reflectionEnabled: true # Default is false
cryptoProvider:
type: standard
standard:
keys:
- kid: r1
alg: rsa:2048
private: kas-private.pem
cert: kas-cert.pem
- kid: e1
alg: ec:secp256r1
private: kas-ec-private.pem
cert: kas-ec-cert.pem
port: 8181
29 changes: 0 additions & 29 deletions service/internal/security/crypto_provider.go

This file was deleted.

Loading

0 comments on commit 8c465d9

Please sign in to comment.