From ed724929e93cbfc3f0a68e8a1e1273694833c2b6 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 17 Nov 2020 05:08:03 +0100 Subject: [PATCH 1/2] Add .well-known/security.txt --- Rules | 4 ++++ content/well-known/security.txt | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 content/well-known/security.txt diff --git a/Rules b/Rules index e6fb788..afd8db1 100644 --- a/Rules +++ b/Rules @@ -235,6 +235,10 @@ route '/**/*.{erb,html,md}' do "#{item.identifier.without_ext}/index.html" end +route %r[/well-known/(.+)] do |rest| + "/.well-known/" + rest[0] +end + # Let anything else simply pass through passthrough '/**/*' diff --git a/content/well-known/security.txt b/content/well-known/security.txt new file mode 100644 index 0000000..f142768 --- /dev/null +++ b/content/well-known/security.txt @@ -0,0 +1,3 @@ +Contact: mailto:admin@zeus.ugent.be +Preferred-Languages: nl,en +Policy: https://git.zeus.gent/bestuur/drive/-/blob/master/varia/responsible_disclosure_policy_nl.md \ No newline at end of file From f8a91d45e10c2a9b65a656b94c35989ebba89f8f Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 17 Nov 2020 05:12:14 +0100 Subject: [PATCH 2/2] Add responsible disclosure policy --- layouts/partials/_footer.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/_footer.erb b/layouts/partials/_footer.erb index a64c627..137288d 100644 --- a/layouts/partials/_footer.erb +++ b/layouts/partials/_footer.erb @@ -39,7 +39,11 @@ <%= fa :'user-secret' %> - + | + + + <%= fa :'lock' %> +