forked from TrueCloudLab/frostfs-s3-gw
[#163] Add cid to output of authmate issue-secret
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
739c04a274
commit
422d6d8307
2 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue