-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An updated Asset SHA can fail to display #1467
Comments
Some kind of input validation is going to be required to make sure that we're not storing invalid checksums / checksums aren't getting set to nil. |
The asset sha is only failing to display because the updated sha sensu-go/cli/commands/asset/list.go Lines 83 to 86 in 8271404
A quick fix would be something like this:
But Greg (AFK so not @-ing him here) mentioned that we shouldn't be storing invalid checksums (we already validate it cannot be empty). @portertech do you think this proposed solution is sufficient or would you rather we have a more strict checksum validation at the creation of an asset? |
IMO we should ensure the SHA512 is 128 characters, otherwise there's no way it's valid. |
|
The text was updated successfully, but these errors were encountered: