Problem/Motivation
GitHub has recently started to make use of SECURITY.md files if present in the repository root. Many open source projects have since stared to have a SECURITY.md file explaining how to report security vulnerabilities properly.
Just a moments ago, we got WordPress to commit their SECURITY.md file, and I would like to propose that we use a SECURITY.md file as well.
This file can explain the procedures we have security.drupal.org, how to report a Drupal core vulnerability, how it works for core, security coverage, and a lot of other information that will surely make it easier for security researchers and end users alike.
Thank you.
Steps to reproduce
N/A
Proposed resolution
Add SECURITY.md that points to the drupal policy
Remaining tasks
Decide if it belongs in root or core. I think it should be as easy to find as possible.
Decide on wording of the link.
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3094817
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3094817-add-securitymd
changes, plain diff MR !12177
- 9.2.x
compare
- 3094817-add-a-security.md
compare
Comments
Comment #2
cilefen commented👍
Comment #11
prudloff commentedI agree this would be useful.
We sometimes report vulnerabilities to upstream libraries used in contrib and having a SECURITY.md file helps a lot. So we should also make it easy for people outside of Drupal to share vulnerabilities with us.
Comment #13
quietone commentedKeep in mind there is existing documentation, https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett.... Should core just link to that? Just a thought.
Comment #17
nicxvan commentedExactly what I was thinking!
Comment #18
smustgrave commentedSeems straight forward enough.
Comment #19
quietone commentedThere is a suggested change on the MR.
Also the text limits this to core and contributed modules where as the linked page states "module, theme, or distribution".
Comment #20
nicxvan commentedThanks! I think those notes came after RTBC and I missed them.
I think I've addressed their comments and yours.
Comment #21
quietone commentedThis time I did more research before commenting.
Comment #22
nicxvan commentedI addressed all feedback I think.
Comment #23
bserem commented@nicxvan added some feedback as a gitlab suggestion
Comment #24
nicxvan commentedI think quietone addressed your suggestion, thank you!
Comment #25
smustgrave commentedThey may be out of date with recipes but believe they are definitely still around
Comment #26
bserem commentedThanks for the clarifications all
Comment #27
cilefen commentedSorry for the late comment here, but there already exists text of this policy:
Should we not use the same?
Comment #28
nicxvan commentedNo, that was already suggested by @bserem and addressed by @quietone:
From the MR:
We are also linking to the resource that the one you linked to links to so it's more direct.
I think it's ok to restore status since this question was addressed already.
Comment #35
quietone commentedThanks everyone.
Backported to Drupal 10 because of the expectation this file exist is growing and security issues can be critical.
Comment #36
cilefen commented@nicxvan re #28, not everything in that comment was addressed. I guess recipes don’t count? IMO this text shouldn’t cite specific project types.
Comment #37
poker10 commentedI agree that we technically cover all code on git.drupalcode.org, if the project is opted into security advisory coverage and has stable release. So also recipes (https://new.drupal.org/browse/recipes) and general projects (https://www.drupal.org/project/project-general).
We probably need to update the wording in https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett..., but in the SA policy (https://www.drupal.org/drupal-security-team/security-advisory-process-an...), the project types (modules, themes, distributions) are not explicitly mentioned and the policy is not restricted to these types.
//edit - recipes seems to be technically still general projects, so I think we are missing at least the one category - general projects for now
Comment #38
prudloff commentedIt is now displayed here: https://github.com/drupal/drupal/security