Skip to content

Commit

Permalink
chg: [core] Added security dot txt page (RFC 9116).
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Mar 11, 2024
1 parent 0295a8e commit 3812a74
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mosp/templates/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# NC3 Security Contact

Contact: opensource@nc3.lu
https://github.com/NC3-LU/MOSP/security

Last stable version this software always provides security updates.
here will be no security patches for other releases (tagged or not).


# Reporting a Vulnerability

If you think you have found a potential security issue, do not open directly a public GitHub issue.
Please email us. You can contact opensource@nc3.lu.

You can also specify how you would like to be credited for your finding (commit message or release notes for the new release).
We will respect your privacy and will only publicize your involvement if you grant us permission.
6 changes: 6 additions & 0 deletions mosp/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ def robots():
return render_template("robots.txt"), 200, {"Content-Type": "text/plain"}


@current_app.route("/.well-known/security.txt", methods=["GET"])
def security():
"""security dot txt page (RFC 9116)."""
return render_template("security.txt"), 200, {"Content-Type": "text/plain"}


@current_app.route("/objects.atom", methods=["GET"])
def objects_atom():
"""Returns an ATOM feed with the recent updated objects."""
Expand Down

0 comments on commit 3812a74

Please sign in to comment.