Skip to content

Commit

Permalink
⬆️github.com/akeylesslabs/akeyless-go/v2 from 2.16.8 to 2.17.0 (exter…
Browse files Browse the repository at this point in the history
…nal-secrets#1438)

* Bump github.com/akeylesslabs/akeyless-go/v2 from 2.16.8 to 2.17.0

Bumps [github.com/akeylesslabs/akeyless-go/v2](https://github.com/akeylesslabs/akeyless-go) from 2.16.8 to 2.17.0.
- [Release notes](https://github.com/akeylesslabs/akeyless-go/releases)
- [Changelog](https://github.com/akeylesslabs/akeyless-go/blob/master/docs/KmipRenewServerCertificate.md)
- [Commits](akeylesslabs/akeyless-go@v2.16.8...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/akeylesslabs/akeyless-go/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing linting issues

Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gustavo Carvalho <gusfcarvalho@gmail.com>
  • Loading branch information
dependabot[bot] and gusfcarvalho authored Aug 11, 2022
1 parent a005510 commit bf21843
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
github.com/PaesslerAG/jsonpath v0.1.1
github.com/ahmetb/gen-crd-api-reference-docs v0.3.0
github.com/akeylesslabs/akeyless-go-cloud-id v0.3.4
github.com/akeylesslabs/akeyless-go/v2 v2.16.8
github.com/akeylesslabs/akeyless-go/v2 v2.17.0
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1673
github.com/aws/aws-sdk-go v1.44.52
github.com/crossplane/crossplane-runtime v0.17.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ github.com/ahmetb/gen-crd-api-reference-docs v0.3.0/go.mod h1:TdjdkYhlOifCQWPs1U
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/akeylesslabs/akeyless-go-cloud-id v0.3.4 h1:vTckjyBhHOBiOWSC/oaEU2Oo4OH5eAlQiwKu2RMxsFg=
github.com/akeylesslabs/akeyless-go-cloud-id v0.3.4/go.mod h1:As/RomC2w/fa3y+yHRlVHPmkbP+zrKBFRow41y5dk+E=
github.com/akeylesslabs/akeyless-go/v2 v2.16.8 h1:tjcaT3BHDsSmypDVNCQXDUj/lK0JB9DJKsf8AASYBXU=
github.com/akeylesslabs/akeyless-go/v2 v2.16.8/go.mod h1:uOdXD49NCCe4rexeSc2aBU5Qv4KZgJE6YlbtYalvb+I=
github.com/akeylesslabs/akeyless-go/v2 v2.17.0 h1:dC257qIL63tuqKCqDLCKblwudwh7gimm4/GrkXUHchc=
github.com/akeylesslabs/akeyless-go/v2 v2.17.0/go.mod h1:uOdXD49NCCe4rexeSc2aBU5Qv4KZgJE6YlbtYalvb+I=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
Expand Down
6 changes: 5 additions & 1 deletion pkg/provider/akeyless/akeyless_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ func (a *akeylessBase) GetRotatedSecrets(secretName, token string, version int32
return "", fmt.Errorf("can't get rotated secret value: %w", err)
}

val, ok := gsvOut["value"]
valI, ok := gsvOut["value"]
if ok {
val, convert := valI.(map[string]interface{})
if !convert {
return "", fmt.Errorf("failure converting key from gsvOut")
}
if _, ok := val["payload"]; ok {
return fmt.Sprintf("%v", val["payload"]), nil
} else if _, ok := val["target_value"]; ok {
Expand Down

0 comments on commit bf21843

Please # to comment.