From a54645af4e3c39836dddbad2c735231e8ba96e05 Mon Sep 17 00:00:00 2001 From: Olivia Thet Date: Wed, 17 Apr 2024 18:08:56 -0400 Subject: [PATCH 1/2] update enclave encrypt pkg --- src/go.mod | 4 ++-- src/go.sum | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/go.mod b/src/go.mod index 1959600..7e0e5e9 100644 --- a/src/go.mod +++ b/src/go.mod @@ -10,8 +10,8 @@ require ( github.com/rotisserie/eris v0.5.4 github.com/spf13/cobra v1.7.0 github.com/stretchr/testify v1.8.4 - github.com/tkhq/go-sdk v0.0.0-20240409013829-672064f648db - github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240409013829-672064f648db + github.com/tkhq/go-sdk v0.0.0-20240417220516-6789f2ee4179 + github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240417220516-6789f2ee4179 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/src/go.sum b/src/go.sum index 75ef081..a3193cd 100644 --- a/src/go.sum +++ b/src/go.sum @@ -186,10 +186,14 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= github.com/tkhq/go-sdk v0.0.0-20240409013829-672064f648db h1:dL4YjpzkATt15Yg/w1HEJs+PYUUf/byPDneDIbJhWbU= github.com/tkhq/go-sdk v0.0.0-20240409013829-672064f648db/go.mod h1:dXWbe9UgF04/cdHHSHgiqVZQS71rFw21hbiY4RIU0ps= +github.com/tkhq/go-sdk v0.0.0-20240417220516-6789f2ee4179 h1:eljJCPVVi8PzGBO+y9Nn/xlOUV8GJM8ibvVO6YRQxkQ= +github.com/tkhq/go-sdk v0.0.0-20240417220516-6789f2ee4179/go.mod h1:dXWbe9UgF04/cdHHSHgiqVZQS71rFw21hbiY4RIU0ps= github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240309210249-e589efc314fb h1:INibZZ7BDURpkTKftXCIuOYNELjsrIUsEmrtKe4ffpc= github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240309210249-e589efc314fb/go.mod h1:BvoxNhFz61TSwjbULvHYdeV0aS68qkcHXpGkJFVkzrw= github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240409013829-672064f648db h1:QQy2N8vGZjSqevBDlmOyeWGpk9xIXcsznw4CHjrXRZs= github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240409013829-672064f648db/go.mod h1:BvoxNhFz61TSwjbULvHYdeV0aS68qkcHXpGkJFVkzrw= +github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240417220516-6789f2ee4179 h1:drsiMkowdmKsur56kMa9B2ocIqa/L+COoVJaQftePN4= +github.com/tkhq/go-sdk/pkg/enclave_encrypt v0.0.0-20240417220516-6789f2ee4179/go.mod h1:BvoxNhFz61TSwjbULvHYdeV0aS68qkcHXpGkJFVkzrw= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= From 07c9c045de343e8890fe314dbd8320860b79e172 Mon Sep 17 00:00:00 2001 From: Olivia Thet Date: Wed, 17 Apr 2024 18:09:17 -0400 Subject: [PATCH 2/2] user id required for encrypt --- src/cmd/turnkey/pkg/encrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/turnkey/pkg/encrypt.go b/src/cmd/turnkey/pkg/encrypt.go index 0585360..fd640f5 100644 --- a/src/cmd/turnkey/pkg/encrypt.go +++ b/src/cmd/turnkey/pkg/encrypt.go @@ -98,7 +98,7 @@ var encryptCmd = &cobra.Command{ } // encrypt plaintext - clientSendMsg, err := encryptClient.Encrypt(plaintextBytes, []byte(importBundle), Organization, &user) + clientSendMsg, err := encryptClient.Encrypt(plaintextBytes, []byte(importBundle), Organization, user) if err != nil { OutputError(err) }