Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Magnum provider: switch UUID dependency from satori to gofrs
Addresses issue kubernetes#5218, that the satori UUID package is unmaintained and has security vulnerabilities affecting generating random UUIDs. In the magnum cloud provider, this package was only used to check whether a string matches a UUIDv4 or not, so the vulnerability with generating UUIDs could not have been exploited. (Generating UUIDs is only done in the unit tests). The gofrs/uuid package is currenly at version 4.0.0 in go.mod, well past point at which it was forked and the vulnerability was fixed. It is a drop in replacement for verifying a UUID, and only a small change was needed in the testing code to handle a new returned error when generating a random UUID.
- Loading branch information