rebase: Bump github.com/hashicorp/vault from 1.4.2 to 1.9.9

Bumps [github.com/hashicorp/vault](https://github.com/hashicorp/vault) from 1.4.2 to 1.9.9.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/vault/compare/v1.4.2...v1.9.9)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2023-03-07 00:32:05 +00:00
committed by mergify[bot]
parent ba40da7e36
commit 42c79383e1
14 changed files with 136 additions and 134 deletions

View File

@ -176,6 +176,7 @@ dek = nil
```
Have key protect create a DEK for you:
* To Get the **keyversion** along with DEK and wrapped DEK use **WrapCreateDEKV2()**
```go
dek, wrappedDek, err := client.WrapCreateDEK(ctx, crkIDOrAlias, nil)

View File

@ -555,6 +555,11 @@ func (c *Client) wrap(ctx context.Context, idOrAlias string, plainText []byte, a
return pt, ct, nil
}
// WrapCreateDEKV2 supports KeyVersion details with DEK and WrapDEK
func (c *Client) WrapCreateDEKV2(ctx context.Context, idOrAlias string, additionalAuthData *[]string) (*KeyActionResponse, error) {
return c.WrapV2(ctx, idOrAlias, nil, additionalAuthData)
}
// WrapWithKeyVersion function supports KeyVersion Details, PlainText and Cyphertext in response
func (c *Client) WrapV2(ctx context.Context, idOrAlias string, plainText []byte, additionalAuthData *[]string) (*KeyActionResponse, error) {
keysActionReq := &KeysActionRequest{}