RFC: Provide standardized security response in each repository via common SECURITY.md file

RFC: Add a Security Policy to Every Foreman Repository

Decision deadline: November 11, 2026

Context and Problem Statement

Foreman’s security reporting process is documented on the Foreman security page. However, someone browsing an individual Foreman repository may not find those instructions before opening a public issue or pull request.

A SECURITY.md in each repository would make private reporting instructions easier to discover and help contributors distinguish security reports from ordinary bug reports. It would also clarify how to report issues in plugins and other components. The inclusion of a SECURITY.md is an increasingly common paradigm in repositories.

This RFC proposes a consistent, repository-level security policy that points to Foreman’s existing process rather than creating a separate one.

Technical objectives

  • Add a SECURITY.md to theforeman/.github
  • A “security.txt” file MAY also apply to products and services provided by the organization publishing the file.
  • Make the private reporting channel and public-disclosure guidance easy to find.
  • Keep repository-specific instructions consistent with Foreman’s central security policy.

Non-goals

  • Changing Foreman’s vulnerability response or disclosure process.
  • Establishing a response-time guarantee.
  • Changing which releases receive security fixes.
  • Replacing or duplicating the central security page.
  • Requiring every repository to have identical release-support policies.

Proposal

Add a SECURITY.md to theforeman/.github and a security.txt to Foreman’s domains and sub-domains. Forks and third-party mirrors are out of scope. The proposed file:

# Security Policy

## Reporting a security vulnerability

Please report suspected security vulnerabilities in Foreman by email to [foreman-security@googlegroups.com](mailto:foreman-security@googlegroups.com).
This is a private address for the Foreman security team.
Please do not report vulnerabilities through public issues, pull requests, forums, or social media.

If the issue relates to a particular plugin, mention the plugin in the email so the report can be routed to the most authoritative source.

The Foreman project treats newly reported issues as private while they are evaluated.
Please allow the security team to assess and coordinate a fix before sharing the details publicly.

## What to include

To help the team assess and reproduce the issue, include as much of the following as you can:

- **Title:** A concise summary of the vulnerability.
- **Impacted project or component:** Include a link or identify the Foreman component or plugin involved.
- **Reporter details:** Your name or handle and affiliation, if you would like to be credited.
- **Vulnerability description:** Technical details and the potential impact.
- **Affected versions:** Known affected versions and, if known, the first fixed version.
- **Reproduction steps:** A minimal example or steps to reproduce the issue.
- **Impact assessment:** Any known prerequisites, exploit scenarios, or severity considerations.
- **Suggested fix:** A proposed remediation, if you have one.
- **Disclosure status:** Whether the issue has been shared elsewhere or published, and any plans for disclosure.

## Response and disclosure

The Foreman team will endeavour to resolve high-severity issues in the current stable release and lower-severity issues in the next major release.
The project does not publish a guaranteed response time.

After evaluation, low- and medium-severity issues may be made public.
High-severity issues are handled under an embargo while a fix is prepared.
When a release containing a fix is available to users, the issue will be announced on the [Foreman security page](https://theforeman.org/security.html) and in the **Release Announcements** category of the Foreman community forums.
Researchers will be credited if they wish.

## Supported releases and backports

The Foreman project typically supports one major (`x.y`) release at a time.
High-severity issues may also be fixed in the previous release if it was only recently superseded. Security fixes for other older releases are not guaranteed.

## Security advisories

Published Foreman advisories and additional details about the project's security process are available on the [Foreman security page](https://theforeman.org/security.html).

The proposed rollout is:

  1. The SECURITY.md will be opened against theforeman/.github
  2. Through the RFC and the pull request changes can be made

Decision Outcome

Pending. No decision has been made yet.

Impacts

  • For users and reporters: Private reporting instructions will be easier to find from the affected repository, and component-specific routing will be clearer.
  • For the Foreman security team: The shared template and central security page will need to stay aligned. A single authoritative central page should reduce the risk of process details drifting across repositories.
  • Limitations: A SECURITY.md does not guarantee that a report will receive a response within a particular time, that a release is supported, or that older releases will receive fixes. These limitations should remain clear in the policy.

If we want to include it in every repository, will it also be included in the release artifacts (gem, Python package, tarballs, etc)?

Have you considered the alternative that is to create a SECURITY.md in the .github repository?

Vox Pupuli has this:

Now every repository gets a Security tab (also note the Security policy link on the right side):

This has the benefit that it’s only in a single place. That makes it easier for downstreams to diverge.

How about we start with a PR against theforeman/.github and see from there if additional action is still needed?

No.

That’s a great idea. I would do this in addition to having it in the repositories. As this method assumes that a user is looking at Github and sees that tab. I want and think this should be discoverable if all you have is the code locally that is being worked with.

This is a great idea, thanks for opening the RFC!

Should we add this to the list above so we don’t always need to ask after the evaluation?

How can we make sure this is not forgotten in newly created repositories?

locally as a git checkout from github? as above you said it would not go into release artifacts?

I like documenting the policy, but very much dislike having copies around. They tend to get outdated.

Have you considered RFC 9116: A File Format to Aid in Security Vulnerability Disclosure | RFC Editor on the theforeman.org domain, governing all plugins? It then can link to the .md file in a central repository.

I should have been clearer that I meant developing rather than the more ambiguous wording. That is, I am not thinking about this in terms of when the code is being ran in production, but rather when someone is developing the code, stumbles upon something, and has a reference present, just as they would a README or a contributing document.

I get that. I don’t expect this to change much, and I am planning to have some tooling that helps detect where SECURITY.md is missing from repositories and if it matches the canonical source.

Not sure I follow exactly. Are you saying make security.txt the canonical file, and then each SECURITY.md links to that?

No, the other way round. You have SECURITY.md in some central repo (theforeman/foreman or theforeman/.github) and security.txt on theforeman.org has a Policy: https://github.com/theforeman/…/SECURITY.md entry, indicating that any project that belongs to our domain (= every plugin, etc) is governed by that one policy file.

If you have that tooling, can it also keep plugins updated in regards to the changes in foreman_plugin_template? :slight_smile: (Yes, off topic, but it’s not the first time we have the “need to keep stuff updated” discussion)

So SECURITY.md would exist still only in one place? And then we rely on looking at either Github or tools following our security.txt from the website? I don’t know why this is so hard for me to follow.

Let me look into that…

Corect

From the options I see here, I am leaning towards the .github/SECURITY.md option. It’s the most clear way to let our users know, since it is already integrated into our source control framework (GH).
We should also add an explicit reference to that file from our local readme/security files (the ones that reside in plugin repos) to increase visibility. I don’t think that more than that is needed.

As for the security.txt file from the RFC - IMHO it makes a lot of sense for web applications, but in our case, the sentence

A “security.txt” file MUST only apply to the domain or IP address in the URI used to retrieve it, not to any of its subdomains or parent domains.

does not apply clearly to our GH/production installations.

I still like the idea of machine readable file though. Maybe we should put such a file on our deployed system, and derive its contents from the SECURITY.md of the repo to make sure we’re not duplicating the information.

Note the line after that one:

A “security.txt” file MAY also apply to products and services provided by the organization publishing the file.

Based on the responses so far, I am going to update the proposal to:

  1. Add a SECURITY.md to theforeman/.github
  2. Add a security.txt to our domains and subdomains following the standard and pointing to our theforeman/.github repository for application level security reporting

I am adding a decision deadline of November 11 to the proposal.

This is a good idea, I support this with some comments.

I agree with @ekohl with just providing a link, not a full copy which we will have to maintain going forward. LLMs can easily make an extra request, that should not be a problem.

I had the very same idea, today, we need to explicitly ask for permission. Let’s reformulate it so confirmation is not needed: “Unless specified otherwise, researchers will be credited”. Most of the researchers already put credit information anyways but it would be nice to have it.

Oh, does this replace adding the file in all repos? This is nice.