Skip to content
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

[GHSA-x9qq-236j-gj97] Canonical LXD documentation improvement to make clear restricted.devices.disk=allow without restricted.devices.disk.paths also allows shift=true #5238

Conversation

gshanbhag525
Copy link

Updates

  • Affected products

Comments
= 5.19 and = 5.20 is not a valid version.
Hence updating with respective release go commit pseudo version.

@github
Copy link
Collaborator

github commented Jan 30, 2025

Hi there @tomponline! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions github-actions bot changed the base branch from main to gshanbhag525/advisory-improvement-5238 January 30, 2025 13:08
@darakian
Copy link
Contributor

Hey @gshanbhag525, thanks for the PR. It looks like we pulled in the versions from the source repo advisory
GHSA-x9qq-236j-gj97
and looking at the pseudo versions they seem to be cycling in and out on the go proxy
https://pkg.go.dev/github.com/canonical/lxd?tab=versions
I'm not sure it's the most useful thing to have an advisory that references versions no longer available, though I'm also unclear on how users are consuming this package. Thoughts?

@tomponline
Copy link

tomponline commented Jan 30, 2025

@eslerm i understood the go proxy admins had fixed this?

We dont want to use git commits as its not helpful for those comparing lxd release versions.

@gshanbhag525
Copy link
Author

lxd has release version with prefix "lxd".
e.g lxd-5.19, lxd-5.20 link

Since its a go pkg and there are other advisories which use commit as version.
eg. GHSA-33m6-q9v5-62r7
I used release versions commits here.

@tomponline
Copy link

lxd has release version with prefix "lxd". e.g lxd-5.19, lxd-5.20 link

Since its a go pkg and there are other advisories which use commit as version. eg. GHSA-33m6-q9v5-62r7 I used release versions commits here.

Yes we could use the release tag names if that helps.

Whats the wider context here btw? The issue being linked to wasnt actually a security problem but required an improvement to the docs.

@gshanbhag525
Copy link
Author

gshanbhag525 commented Jan 30, 2025

we follow semver spec for version parsing. link
But since 5.19 doesnot follow semver i.e. x.x.x
we were not able to parse it.
Converting it to go pseudo version. ie. 0.0.0-20231019094722-ff5926c3b519 would suffice or 5.19.0.

Yes this is improvement to docs.

@tomponline
Copy link

tomponline commented Jan 30, 2025

Ok 5.19.0 would be ok i think

The pseudo version is problematic as doesnt correlate with the release version reported by the binary

@github
Copy link
Collaborator

github commented Jan 30, 2025

Hi there @tomponline! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@advisory-database advisory-database bot merged commit 96f89d2 into gshanbhag525/advisory-improvement-5238 Jan 30, 2025
1 check passed
@advisory-database
Copy link
Contributor

Hi @gshanbhag525! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the gshanbhag525-GHSA-x9qq-236j-gj97 branch January 30, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants