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

docs: add docs for vulnerability related commands #3362

Draft
wants to merge 7 commits into
base: docs
Choose a base branch
from

Conversation

lucasmoura
Copy link
Contributor

Why is this needed?

Add documentation for:

  • pro api u.pro.security.vulnerabilities.cve.v1
  • pro api u.pro.security.vulnerabilities.usn.v1
  • pro vulnerability list
  • pro vulnerability show
  • pro vulnerability update

  • (un)check this to re-run the checklist action

Add documentation for the three vulnerability related
APIs:

*  u.pro.security.vulnerabilities.cve.v1
*  u.pro.security.vulnerabilities.usn.v1
*  u.pro.packages.updates_with_cves.v1
@github-actions github-actions bot added the docs label Oct 25, 2024
@s-makin s-makin self-requested a review November 6, 2024 15:13
@@ -0,0 +1,29 @@
# How caching works for vulnerability commands
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this page linked from anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just development documentation, that's why I have not linked it anywhere. But please let me know if there is a common place to link the devel documentation. On a quick glance, I couldn't find a place for it, but I can be wrong here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only just realised this was in the dev-docs - I've still got a PR in flight that will move the dev-docs folder back to main, so this page will need to be moved alongside.

There is a dev docs index page, that's the one that should have a link to this new page.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking, the index page will be introduced in the new PR right ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The index page already exists, it's this one but it's all being moved.

Copy link
Contributor

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall great changes, but I think that we will want to consider combining some of these pages, and updating some of the existing ones related to CVEs/USNs to point to the new ones (for general discoverability). This is an excellent feature, and we want users to be aware of it.

In particular, please take a look at the security tutorial and update the content there that used the old pro fix commands for listing CVEs to use this new/better command - this is something that we can really show off as a great convenience feature for users, and that tutorial is the perfect place to get eyes on it. It's ok to reuse some of the content you've created already, but wherever possible/where it makes sense, in our existing content we should update to point to this new command. In some places it might just need a link to the new content.

docs/explanations.rst Outdated Show resolved Hide resolved
docs/howtoguides/how_to_update_vulnerability_data.rst Outdated Show resolved Hide resolved
docs/howtoguides.rst Outdated Show resolved Hide resolved
@orndorffgrant orndorffgrant marked this pull request as draft November 7, 2024 14:53
@orndorffgrant
Copy link
Collaborator

Converted to draft because we can't merge until 35 is released

Copy link
Contributor

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small nits :)

@@ -0,0 +1,29 @@
# How caching works for vulnerability commands
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only just realised this was in the dev-docs - I've still got a PR in flight that will move the dev-docs folder back to main, so this page will need to be moved alongside.

There is a dev docs index page, that's the one that should have a link to this new page.

Comment on lines 45 to 47
explanations/how_to_interpret_output_of_pro_vulnerability_list.md
explanations/how_to_interpret_output_of_pro_vulnerability_show.md
explanations/what_is_a_fixable_vulnerability.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes to both :)

Comment on lines 66 to 67
Finally, we also display the related USNs to the CVE, in case you want to take a look on them as
well.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you're right, I was having a moment lol

docs/explanations/pro_vulnerability_list.rst Outdated Show resolved Hide resolved
docs/explanations/pro_vulnerability_list.rst Outdated Show resolved Hide resolved
docs/explanations/pro_vulnerability_show.rst Outdated Show resolved Hide resolved
docs/explanations/pro_vulnerability_show.rst Outdated Show resolved Hide resolved
@lucasmoura
Copy link
Contributor Author

@s-makin updated

Copy link
Contributor

@s-makin s-makin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final review: Generally LGTM, we discussed future changes side-channel and agreed to open an issue to remind ourselves what was agreed to do (once the fix issue is fixed).

The link checker is complaining about the discourse links - we can ignore those. There was another outage, but they worked when I checked them just now.

There is a list of spelling errors though. Some of them are genuine (and need to be fixed), and others are new terms that need to be added to the exception list so they get ignored (e.g. CVSS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants