Skip to content

Easy go-jose updates (the codeless[ish] ones)#28140

Merged
kpcraig merged 5 commits into
mainfrom
VAULT-28868/codeless-changes
Aug 21, 2024
Merged

Easy go-jose updates (the codeless[ish] ones)#28140
kpcraig merged 5 commits into
mainfrom
VAULT-28868/codeless-changes

Conversation

@kpcraig
Copy link
Copy Markdown
Contributor

@kpcraig kpcraig commented Aug 21, 2024

These are the (mostly) codeless changes required to remove our dependency on vulnerable versions of go-jose (before v2.6.3, v3.0.3, or v4.0.1)

There is one transitive hashicorp-controlled dependency on an old go-jose, at hashicorp/vault-testing-stepwise. A PR for this has been merged, but updating here is waiting on a docker issue, since vault-testing-stepwise updated docker in v.0.2.0.

The most invasive change included here is on google/tink-go, which went through a few 'organizational' changes since we updated it. To get to a non-vulnerable version, I had to move us to the new import path tink-crypto/tink-go. This isn't the latest path, but rather the nearest equivalent to what we were using that didn't depend on a "bad" go-jose.

@kpcraig kpcraig requested a review from a team as a code owner August 21, 2024 16:30
@github-actions github-actions Bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Aug 21, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 21, 2024

CI Results:
All Go tests succeeded! ✅

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 21, 2024

Build Results:
All builds succeeded! ✅

@kpcraig kpcraig merged commit dc81de7 into main Aug 21, 2024
@kpcraig kpcraig deleted the VAULT-28868/codeless-changes branch August 21, 2024 18:25
mdgreenfield added a commit to mdgreenfield/vault-plugin-secrets-kv that referenced this pull request Jan 24, 2025
Also upgrades the go version to 1.23.3 due to:

```
$ go mod tidy -go=1.21
go: github.com/hashicorp/vault/sdk@v0.14.1 requires go@1.23.3, but 1.21 is requested
```

This change addresses switching `google/tink-go` to
`tink-crypto/tink-go` to address the `square/go-jose` switch to
`go-jose/go-jose`.

See hashicorp/vault#28140
VioletHynes pushed a commit to hashicorp/vault-plugin-secrets-kv that referenced this pull request Jan 24, 2025
Also upgrades the go version to 1.23.3 due to:

```
$ go mod tidy -go=1.21
go: github.com/hashicorp/vault/sdk@v0.14.1 requires go@1.23.3, but 1.21 is requested
```

This change addresses switching `google/tink-go` to
`tink-crypto/tink-go` to address the `square/go-jose` switch to
`go-jose/go-jose`.

See hashicorp/vault#28140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog pr/no-milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants