mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
investigate security.txt
This commit is contained in:
2
app/.well-known/security.txt
Normal file
2
app/.well-known/security.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
Contact: mailto:security@notify.gov
|
||||||
|
Expires: 2025-10-15T23:59:59Z
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
from flask import redirect
|
from flask import send_from_directory
|
||||||
|
|
||||||
from app.main import main
|
from app.main import main
|
||||||
|
|
||||||
@@ -6,6 +6,4 @@ from app.main import main
|
|||||||
@main.route("/.well-known/security.txt", methods=["GET"])
|
@main.route("/.well-known/security.txt", methods=["GET"])
|
||||||
@main.route("/security.txt", methods=["GET"])
|
@main.route("/security.txt", methods=["GET"])
|
||||||
def security_policy():
|
def security_policy():
|
||||||
# See GDS Way security policy which this implements
|
return send_from_directory(".well-known", "security.txt")
|
||||||
# https://gds-way.cloudapps.digital/standards/vulnerability-disclosure.html#vulnerability-disclosure-and-security-txt
|
|
||||||
return redirect("https://vdp.cabinetoffice.gov.uk/.well-known/security.txt")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user