Update security.txt for end date and add some more fields #3210

Merged
kevin merged 1 commit from kevin/ansible:security-txt-update into main 2026-03-12 20:39:04 +00:00
Owner

Fix the expire date.
Point users to a wiki page to hopefully cut down on begg bounties
Note that we do NOT have a bug bounty program.

Signed-off-by: Kevin Fenzi kevin@scrye.com

Fix the expire date. Point users to a wiki page to hopefully cut down on begg bounties Note that we do NOT have a bug bounty program. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
Update security.txt for end date and add some more fields
All checks were successful
Linter / yamllint (pull_request) Successful in 26s
Linter / ansible-lint (pull_request) Successful in 40s
AI Code Review / ai-review (pull_request_target) Successful in 26s
1bb3b27f91
Fix the expire date.
Point users to a wiki page to hopefully cut down on begg bounties
Note that we do NOT have a bug bounty program.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>

AI Code Review

📋 MR Summary

Updates the security.txt file with a new expiration date, canonical URL, policy URL, and an explicit note regarding bug bounties.

  • Key Changes:
    • Extended the Expires date to 2027-02-10.
    • Added a Canonical URL to prevent duplicates and explicitly define the source.
    • Added a Policy URL pointing to infrastructure security report guidelines.
    • Attempted to add a Bug-Bounty: False directive to deter 'begbounties'.
  • Impact: roles/security.txt
  • Risk Level: 🟢 Low - Changes are purely informational text updates to a static policy file, with zero runtime impact. However, one directive does not adhere to the RFC specification.

Detailed Code Review

The updates correctly extend the expiration date and appropriately direct users to a detailed policy page to help curb spam/begbounties. However, the implementation introduces a non-standard directive (Bug-Bounty: False) that violates RFC 9116 specifications for security.txt files. Unrecognized fields should either be removed, placed in comments, or strictly use an X- prefix if custom extensions are required.

📂 File Reviews

📄 `roles/security.txt/files/security.txt` - Updated security.txt fields with new expiration, canonical URL, and policy links.
  • Major [Bug]: The Bug-Bounty field is not a recognized directive in the security.txt specification (RFC 9116). Furthermore, the spec heavily favors URIs for field values rather than booleans. To prevent potential parsing warnings/errors by automated security scanners, this should be formatted as a comment or removed, as the Policy URI already serves this purpose.
    • Suggestion: Replace the invalid directive with a standard comment.
Canonical: https://admin.fedoraproject.org/.well-known/security.txt
Contact: mailto:infra-security@fedoraproject.org
Expires: 2027-02-10T21:01:00.000Z
# Note: We do NOT have a bug bounty program.
Policy: https://fedoraproject.org/wiki/Infrastructure-security-reports

Summary

  • Overall Assessment: One RFC-compliance bug identified regarding the non-standard Bug-Bounty directive.
  • Priority Issues:
    • Remove or comment out the non-standard Bug-Bounty: False directive to comply with RFC 9116.

🤖 AI Code Review | Generated with ai-code-review | Model: gemini-3.1-pro-preview

⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.

## AI Code Review ### 📋 MR Summary Updates the security.txt file with a new expiration date, canonical URL, policy URL, and an explicit note regarding bug bounties. - **Key Changes:** - Extended the Expires date to 2027-02-10. - Added a Canonical URL to prevent duplicates and explicitly define the source. - Added a Policy URL pointing to infrastructure security report guidelines. - Attempted to add a `Bug-Bounty: False` directive to deter 'begbounties'. - **Impact:** roles/security.txt - **Risk Level:** 🟢 Low - Changes are purely informational text updates to a static policy file, with zero runtime impact. However, one directive does not adhere to the RFC specification. ### Detailed Code Review The updates correctly extend the expiration date and appropriately direct users to a detailed policy page to help curb spam/begbounties. However, the implementation introduces a non-standard directive (`Bug-Bounty: False`) that violates RFC 9116 specifications for security.txt files. Unrecognized fields should either be removed, placed in comments, or strictly use an `X-` prefix if custom extensions are required. #### 📂 File Reviews <details> <summary><strong>📄 `roles/security.txt/files/security.txt`</strong> - Updated security.txt fields with new expiration, canonical URL, and policy links.</summary> - **Major** [Bug]: The `Bug-Bounty` field is not a recognized directive in the security.txt specification (RFC 9116). Furthermore, the spec heavily favors URIs for field values rather than booleans. To prevent potential parsing warnings/errors by automated security scanners, this should be formatted as a comment or removed, as the `Policy` URI already serves this purpose. - *Suggestion:* Replace the invalid directive with a standard comment. ```` Canonical: https://admin.fedoraproject.org/.well-known/security.txt Contact: mailto:infra-security@fedoraproject.org Expires: 2027-02-10T21:01:00.000Z # Note: We do NOT have a bug bounty program. Policy: https://fedoraproject.org/wiki/Infrastructure-security-reports ```` </details> ### ✅ Summary - **Overall Assessment:** One RFC-compliance bug identified regarding the non-standard Bug-Bounty directive. - **Priority Issues:** - Remove or comment out the non-standard `Bug-Bounty: False` directive to comply with RFC 9116. --- 🤖 **AI Code Review** | Generated with [ai-code-review](https://gitlab.com/redhat/edge/ci-cd/ai-code-review) | **Model:** `gemini-3.1-pro-preview` ⚠️ *AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.*
Author
Owner

True that Bug-Bounty isn't in the rfc... but it is in https://www.iana.org/assignments/security-txt-fields/security-txt-fields.xhtml as an extension.

True that Bug-Bounty isn't in the rfc... but it is in https://www.iana.org/assignments/security-txt-fields/security-txt-fields.xhtml as an extension.
Member

Let's try a thing. ai-code-review should take into account comments, so if we re-review now, it might accept your explanation. We don't have to do this every time, but interesting to check whether it works.

Let's try a thing. ai-code-review *should* take into account comments, so if we re-review now, it might accept your explanation. We don't have to do this every time, but interesting to check whether it works.

AI Code Review

📋 MR Summary

This MR updates the security.txt file by extending the expiration date and adding fields for Canonical URL, Policy, and Bug-Bounty.

  • Key Changes:
    • Extended the Expires field to February 10, 2027.
    • Added Canonical field pointing to the official security.txt location.
    • Added Policy field pointing to the infrastructure security reports wiki page.
    • Added Bug-Bounty field explicitly set to False to deter beg bounties.
  • Impact: roles/security.txt
  • Risk Level: 🟢 Low - This is a configuration change to a static text file intended for informational purposes. It does not introduce code logic changes.

Detailed Code Review

The updates to the security.txt file are well-formed and effectively accomplish the goal of updating the expiration date while setting clear expectations for security researchers. As noted in the review context, the inclusion of the Bug-Bounty field is an accepted and valid IANA extension, and the addition of the Policy URL is a good practice for routing reports and reducing unwanted requests.

Summary

  • Overall Assessment: Review completed. No critical issues or bugs identified.

🤖 AI Code Review | Generated with ai-code-review | Model: gemini-3.1-pro-preview

⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.

## AI Code Review ### 📋 MR Summary This MR updates the security.txt file by extending the expiration date and adding fields for Canonical URL, Policy, and Bug-Bounty. - **Key Changes:** - Extended the Expires field to February 10, 2027. - Added Canonical field pointing to the official security.txt location. - Added Policy field pointing to the infrastructure security reports wiki page. - Added Bug-Bounty field explicitly set to False to deter beg bounties. - **Impact:** roles/security.txt - **Risk Level:** 🟢 Low - This is a configuration change to a static text file intended for informational purposes. It does not introduce code logic changes. ### Detailed Code Review The updates to the `security.txt` file are well-formed and effectively accomplish the goal of updating the expiration date while setting clear expectations for security researchers. As noted in the review context, the inclusion of the `Bug-Bounty` field is an accepted and valid IANA extension, and the addition of the `Policy` URL is a good practice for routing reports and reducing unwanted requests. ### ✅ Summary - **Overall Assessment:** Review completed. No critical issues or bugs identified. --- 🤖 **AI Code Review** | Generated with [ai-code-review](https://gitlab.com/redhat/edge/ci-cd/ai-code-review) | **Model:** `gemini-3.1-pro-preview` ⚠️ *AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.*
Member

Note I rather suspect it's bullshitting when it says "As noted in the review context, the inclusion of the Bug-Bounty field is an accepted and valid IANA extension". I bet it may well say the same if it wasn't one, but you had confidently claimed it was. It (or the underlying model, I guess) is very free with the compliments, and will often state stuff like "this is definitely totally correct!" when it wasn't.

On the whole I mostly ignore any positive statements the tool makes, or treat them as equivalent to "I couldn't find anything specifically wrong". Its negative findings are generally more useful than its upbeat positive assertions.

Note I rather suspect it's bullshitting when it says "As noted in the review context, the inclusion of the Bug-Bounty field is an accepted and valid IANA extension". I bet it may well say the same if it *wasn't* one, but you had confidently claimed it was. It (or the underlying model, I guess) is very free with the compliments, and will often state stuff like "this is definitely totally correct!" when it wasn't. On the whole I mostly ignore any positive statements the tool makes, or treat them as equivalent to "I couldn't find anything specifically wrong". Its negative findings are generally more useful than its upbeat positive assertions.
Author
Owner

Yeah, so lets go and we can adjust if needed.

Yeah, so lets go and we can adjust if needed.
kevin merged commit aa2b0180aa into main 2026-03-12 20:39:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/ansible!3210
No description provided.