From 422d6d830711964fbdff86145ac7797102bbd1ad Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Fri, 16 Jul 2021 15:08:05 +0300 Subject: [PATCH] [#163] Add cid to output of authmate issue-secret Signed-off-by: Angira Kekteeva --- README.md | 3 ++- authmate/authmate.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c110e31..49fb47c 100644 --- a/README.md +++ b/README.md @@ -294,7 +294,8 @@ Enter password for wallet.json > { "access_key_id": "5g933dyLEkXbbAspouhPPTiyLZRg4axBW1axSPD87eVT0AiXsH4AjYy1iTJ4C1WExzjBrSobJsQFWEyKLREe5sQYM", "secret_access_key": "438bbd8243060e1e1c9dd4821756914a6e872ce29bf203b68f81b140ac91231c", - "owner_private_key": "274fdd6e71fc6a6b8fe77bec500254115d66d6d17347d7db0880d2eb80afc72a" + "owner_private_key": "274fdd6e71fc6a6b8fe77bec500254115d66d6d17347d7db0880d2eb80afc72a", + "container_id":"5g933dyLEkXbbAspouhPPTiyLZRg4axBW1axSPD87eVT" } ``` diff --git a/authmate/authmate.go b/authmate/authmate.go index 510caac..e0ad048 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -74,6 +74,7 @@ type ( AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` OwnerPrivateKey string `json:"owner_private_key"` + ContainerID string `json:"container_id"` } obtainingResult struct { @@ -185,6 +186,7 @@ func (a *Agent) IssueSecret(ctx context.Context, w io.Writer, options *IssueSecr AccessKeyID: accessKeyID, SecretAccessKey: secrets.AccessKey, OwnerPrivateKey: hex.EncodeToString(secrets.EphemeralKey.Bytes()), + ContainerID: cid.String(), } enc := json.NewEncoder(w)