# Add a .well-known/security.txt file in xwiki.org

**URL:** <https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253>\
**Category:** Development\
**Tags:** proposal, security\
**Created:** [April 28, 2022, 2:20pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253 "2022-04-28T14:20:15Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [April 28, 2022, 2:20pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/1 "2022-04-28T14:20:15Z")

</div>

Hello everyone,

I discovered today a new RFC ([RFC 9116: A File Format to Aid in Security Vulnerability Disclosure](https://www.rfc-editor.org/rfc/rfc9116)) whose goal is to help properly reporting security issues: basically this RFC defines a format of a security.txt file that can be automatically parsed to give information about to whom to report a vulnerability and what is the policy regarding vulnerabilities.

I think it might be a good idea to put such file on [xwiki.org](http://xwiki.org), so I propose that we add a file containing the following content:

```auto
# Our security address
Contact: mailto:security@xwiki.org

# Our security policy
Policy: https://dev.xwiki.org/xwiki/bin/view/Community/SecurityPolicy/

Expires: [1 year after publication]

```

About expiration date: the RFC strongly advise to put one, I propose that we modify the upgrade plan of [XWiki.org](http://XWiki.org) to include checking the security.txt and updating the date when we do perform an upgrade.

The RFC also advises to sign this security.txt, I’m not sure if we already a public PGP key that we could use: if we have I guess we should use it.

WDYT?

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [April 28, 2022, 2:29pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/2 "2022-04-28T14:29:31Z")

</div>

Out of curiosity, do you know what’s the current adoption of this RFC? I’m mainly thinking of external tool that are indexing/scrapping `security.txt` files and doing something with them?

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [April 28, 2022, 2:34pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/3 "2022-04-28T14:34:52Z")

</div>

> [@mleduc](#):
>
> Out of curiosity, do you know what’s the current adoption of this RFC?

I don’t know but it says `This document is not an Internet Standards Track specification; it is published for informational purposes.`.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [April 28, 2022, 2:36pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/4 "2022-04-28T14:36:06Z")

</div>

> [@surli](#):
>
> The RFC also advises to sign this security.txt, I’m not sure if we already a public PGP key that we could use: if we have I guess we should use it.

We have one we are using to sign Debian repositories.

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [April 28, 2022, 2:37pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/5 "2022-04-28T14:37:02Z")

</div>

> [@mleduc](#):
>
> Out of curiosity, do you know what’s the current adoption of this RFC? I’m mainly thinking of external tool that are indexing/scrapping `security.txt` files and doing something with them?

I haven’t looked but it’s really a young RFC so I don’t expect much adoption yet, it says:

> Published: April 2022

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [April 28, 2022, 2:38pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/6 "2022-04-28T14:38:56Z")

</div>

> [@surli](#):
>
> WDYT?

I think it cannot hurt 😉

One thing that we could improve too is to add a section in our release notes or on the hall of fame page on [dev.xwiki.org](http://dev.xwiki.org), about thanking security reporters. And then put a link to it in the security.txt file. Now we’ll need a process if we were to do that or we will forget. Also it raises the question of why recognizing security reporters vs bug reporters… I don’t have the answer, just raising the topic 😉

Note that the RFC says to put this file under `https://xwiki.org/.well-known/security.txt`.

> [@surli](#):
>
> The RFC also advises to sign this security.txt, I’m not sure if we already a public PGP key that we could use: if we have I guess we should use it.

Each committer has its own key ATM.

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [April 28, 2022, 2:40pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/7 "2022-04-28T14:40:08Z")

</div>

> [@surli](#):
>
> I haven’t looked but it’s really a young RFC so I don’t expect much adoption yet, it says:

Thanks. I’m hesitant to do more paperwork for something that will not be useful to others in the end.  
Then, if we derive this file from structured data (e.g., XObjects), then a least they can be reused for some other format later (or to continue/improve what we started during last hackathon).

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [November 3, 2026, 6:15pm UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/8 "2026-11-03T18:15:35Z")

</div>

Hi devs,

I’d like to revive this proposal: we all agreed back in 2022 but never did it, and `https://www.xwiki.org/.well-known/security.txt` still returns a 404. I asked Claude Code to check the current state and what a good file would look like. Here’s the result.

> [@mleduc](#):
>
> Out of curiosity, do you know what’s the current adoption of this RFC?

It’s become fairly common since then. Claude Code checked 49 well-known open source projects today: 27 publish one, e.g. Apache, Jenkins, Spring, Eclipse, Keycloak, Kubernetes, Mozilla, Debian, Django, Node.js, Rust, curl, OpenSSL, WordPress, Joomla, TYPO3, GitLab, MediaWiki, BookStack and OpenProject ([https://www.openproject.org/.well-known/security.txt](https://www.openproject.org/.well-known/security.txt)). Python, Go, PostgreSQL, Nextcloud, Grafana, Mastodon and DokuWiki don’t. GitHub, Atlassian and Red Hat have one too. About a third of them are signed.

One lesson from the survey: Matrix’s and Element’s files have expired (2024 and 2025), and a few have no `Expires` at all, which the RFC requires. So the yearly renewal is the part to not forget.

## Proposed content

```
Contact: mailto:security@xwiki.org
Policy: https://dev.xwiki.org/xwiki/bin/view/Community/SecurityPolicy/
Canonical: https://www.xwiki.org/.well-known/security.txt
Preferred-Languages: en
Expires: <less than 1 year ahead>

```

If we enable GitHub private vulnerability reporting (see the [GHSA brainstorming](https://forum.xwiki.org/t/18951)), we’d add a second `Contact:` with the “Report a vulnerability” URL.

## Signing and encryption key

- **Signing** the file (OpenPGP cleartext signature) is recommended by the RFC, not required. Claude Code proposes to use the key we already use for the Debian repository, which the committers hold: `XWiki Dev Team <committers@xwiki.org>`, fingerprint `E5A2 98A7 AF53 948C C6CF D633 F716 794B 93CC 9C13` (also published on [keys.openpgp.org](http://keys.openpgp.org)). The file must be re-signed each time `Expires` is bumped, which any committer can do.
- **`Encryption:`** is a different field: it names the key reporters encrypt their report _to_. Claude Code proposes to leave it out: the Debian key is for `committers@`, not `security@`, and encrypted mail to a mailing list only works if every member shares the private key. GitHub private reporting gives a confidential channel anyway.

## Keeping it valid

As suggested in the first post, we’d add a step to the [xwiki.org](http://xwiki.org) upgrade plan to bump `Expires` and re-sign the file.

## Questions

- OK to add the file with the content above?
- OK to sign it with the Debian repository key?

WDYT?

Thanks

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [November 4, 2026, 9:25am UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/9 "2026-11-04T09:25:20Z")

</div>

> [@vmassol](#):
>
> - OK to add the file with the content above?
> - OK to sign it with the Debian repository key?

+1

Thanks,  
Marius

---

<div class="post-metadata">

**Author:** ![surli](https://forum.xwiki.org/user_avatar/forum.xwiki.org/surli/32/2687_2.png) [@surli](https://forum.xwiki.org/u/surli)\
**Post date:** [November 4, 2026, 9:51am UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/10 "2026-11-04T09:51:48Z")

</div>

> [@vmassol](#):
>
> `Expires: <less than 1 year ahead>`

I’m wondering if we should keep 1 year. I don’t expect that content to change anytime soon, and it’s only a recommendation from the RFC to be less than 1 year:

> It is RECOMMENDED that the value of this field be less than a year into the future to avoid staleness.

So we could decide to use a longer expiration date? On the other hand my original proposal was to:

> [@surli](#):
>
> I propose that we modify the upgrade plan of [XWiki.org](http://XWiki.org) to include checking the security.txt and updating the date when we do perform an upgrade.

We could keep 1 year, and have the check to ensure to renew / resign if the expiration is \< 3 months.

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [November 5, 2026, 10:02am UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/11 "2026-11-05T10:02:37Z")

</div>

> [@vmassol](#):
>
> ## 
> 
> - OK to add the file with the content above?
> - OK to sign it with the Debian repository key?

+1

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 17, 2026, 8:13am UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/12 "2026-11-17T08:13:11Z")

</div>

+1, for some reason I was expecting some part of the content to be dynamic, but except for the expiry date, everything is static, that’s great.

I wonder if we want to also include the `Preferred-Languages` and `Canonical` from below.

```auto
Contact: mailto:security@xwiki.org
Expires: 2027-11-16T23:00:00.000Z
Preferred-Languages: en
Canonical: https://xwiki.org/.well-known/security.txt
Policy: https://dev.xwiki.org/xwiki/bin/view/Community/SecurityPolicy/

```

`CSAF` is interesting as well, but I’m not sure if we have somewhere to point it to yet

PS: I used [https://securitytxt.org/](https://securitytxt.org/) to generate the `security.txt` above.

---

<div class="post-metadata">

**Author:** ![peter.viskup](https://forum.xwiki.org/user_avatar/forum.xwiki.org/peter.viskup/32/9922_2.png) [@peter.viskup](https://forum.xwiki.org/u/peter.viskup)\
**Post date:** [November 17, 2026, 9:55am UTC](https://forum.xwiki.org/t/add-a-well-known-security-txt-file-in-xwiki-org/10253/13 "2026-11-17T09:55:00Z")

</div>

would appreciate Extension for publishing of it if it make sense for on-prem deployments

and just to complete the context, there is IANA registry of .well-known URIs on [Well-Known URIs](https://www.iana.org/assignments/well-known-uris).

some might be interesting for XWiki as such [RFC 9727: api-catalog: A Well-Known URI and Link Relation to Help Discovery of APIs | RFC Editor](https://www.rfc-editor.org/info/rfc9727/) or [RFC 9472: A YANG Data Model for Reporting Software Bills of Materials (SBOMs) and Vulnerability Information | RFC Editor](https://www.rfc-editor.org/info/rfc9472/).
