-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
doc: prefer to sign commits under nodejs repository #57311
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
IIRC |
|
Co-authored-by: Tobias Nießen <tniessen@tnie.de>
FWIW, there have been multiple discussions about this in the past, and the benefit was generally considered marginal (see, for example, #15457, which would have made signing mandatory). That being said, I am not strictly opposed to this idea (and for a while I did sign my commits in this repository). |
I think this is only relevant for those who push directly to branches in the repository? For people who will probably never push directly to the repository (I guess most collaborators don't these days) it's not as relevant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there isn't one already in this document, including a link to documentation on how to use commit.gpgsign
would be helpful to newcomers.
This comment was marked as off-topic.
This comment was marked as off-topic.
Recommending signatures is certainly fine, but I don't think it would be relevant to most contributors. Signatures are only really useful for things that require trust (e.g. unreviewed backports, release promotion), and are nice-to-have everywhere else on nodejs/node, and IMO barely relevant for PRs (which is what most contributors will ever do). |
Yes, this is non-relevant for most of the contributors but Node.js releasers or anyone that attempts to backport a commit manually. Still, it's an optional recommendation, I'm fine either way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* It is recommended to sign all commits under the Node.js repository. | ||
Run: `git config commit.gpgsign true` inside the `node` folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider making this recommendation on the ONBOARDING.md
of nodejs/Release, and maybe reword it to ensure we're not setting a bar too high for newcomers:
* It is recommended to sign all commits under the Node.js repository. | |
Run: `git config commit.gpgsign true` inside the `node` folder. | |
* Consider configuring git to sign all commits when working on the Node.js repository. | |
Run: `git config commit.gpgsign true` inside the `node` folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fear that whatever the wording, people are going to run the command, and later they will be confused as their git commit
fail because of the missing signing key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it start with "if you have a GPG key set up locally that matches the email you use to contribute to Node.js" so that people who do not know what it is will skip it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW there are multiple methods of signing commits with git. GitHub supports (i.e. can displayed "Verified") GPG, SSH, or S/MIME signatures.
For the release team we've recommend GPG keys, but this documentation is aimed at a broader audience (collaborators).
Although not required, I think adding this as a "recommended" is a good thing.
cc: @aduh95