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

[github] Add check for data obfuscation #3427

Merged

Conversation

jcastill
Copy link
Member

@jcastill jcastill commented Nov 29, 2023

This patch adds a new line to the github PR
template so users can assess that they have
obfuscated any password or similar from the
code they are submitting.

Closes: #3427


Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines

  • Is the commit message split over multiple lines and hard-wrapped at 72 characters?
  • Is the subject and message clear and concise?
  • Does the subject start with [plugin_name] if submitting a plugin patch or a [section_name] if part of the core sosreport code?
  • Does the commit contain a Signed-off-by: First Lastname [email protected]?
  • Are any related Issues or existing PRs properly referenced via a Closes (Issue) or Resolved (PR) line?

@jcastill
Copy link
Member Author

I'm not too convinced by the actual text of the check, so any help rewording it will be very welcome!

Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/sosreport-sos-3427
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

- [ ] Are any related Issues or existing PRs [properly referenced](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) via a Closes (Issue) or Resolved (PR) line?
- [ ] Are all passwords or private data gathered by this PR obfuscated?
Copy link
Member

Choose a reason for hiding this comment

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

I know what obfuscate means :). maybe slight improvement for simple english. And maybe point to implementing postproc() and maybe a link to an example?

Copy link
Member Author

@jcastill jcastill Nov 30, 2023

Choose a reason for hiding this comment

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

I know what obfuscate means :). maybe slight improvement for simple english.

Thank you! I always doubt since English is not my first language.

And maybe point to implementing postproc() and maybe a link to an example?

This is a fantastic idea. I can create an internal page in https://github.com/sosreport/sos/wiki/Data-privacy-and-obfuscation.rst and point the check to that url. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

Thank you! I always doubt since English is not my first language.

It's my first language, but still had to look it up the first time 😄

This is a fantastic idea. I can create an internal page in https://github.com/sosreport/sos/wiki/Data-privacy-and-obfuscation.rst and point the check to that url. What do you think?

yeah, like the idea

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think I have access to edit the Wiki, so somebody else will have to do it.
Anyway, do you think it may be better as a section in the 'how to write a plugin' page instead of a completely new page?

Copy link
Member

Choose a reason for hiding this comment

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

I don't have access either, we're both in the same stance.

Looking a the Contribution Guidelines, I do see the 2 comments below. So, I think if we could expand on it would make more sense. Maybe others might have other ideas

  • All regex substitutions (i.e. postproc() obfuscations) must include an example in comments
    • Required as of 4.1. Older regex substitutions may not have examples, but these should be updated over time.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I pushed the change with the link to the new section in the wiki, thank you @pmoravec for creating it!

This patch adds a new line to the github PR
template so users can assess that they have
obfuscated any password or similar from the
code they are submitting.

Signed-off-by: Jose Castillo <[email protected]>
@jcastill jcastill force-pushed the jcastillo-add-check-password-PR-template branch from 83f1648 to 1cab016 Compare March 25, 2024 12:06
Copy link
Member

@arif-ali arif-ali left a comment

Choose a reason for hiding this comment

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

I've restarted the failed test, but looks good to me

@arif-ali arif-ali merged commit 385d3ff into sosreport:main Mar 25, 2024
39 checks passed
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.

3 participants