You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by bd...@apache.org on 2021/10/15 22:06:13 UTC
[shiro-site] branch security-txt created (now 067a100)
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a change to branch security-txt
in repository https://gitbox.apache.org/repos/asf/shiro-site.git.
at 067a100 Add a .well-known/security.txt
This branch includes the following new commits:
new 067a100 Add a .well-known/security.txt
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[shiro-site] 01/01: Add a .well-known/security.txt
Posted by bd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a commit to branch security-txt
in repository https://gitbox.apache.org/repos/asf/shiro-site.git
commit 067a100c289097e5c4d0876912c7a75c6c687f44
Author: Brian Demers <bd...@apache.org>
AuthorDate: Fri Oct 15 18:06:09 2021 -0400
Add a .well-known/security.txt
Generated from: https://securitytxt.org/ and added an expiration of 1 year after publish
---
jbake/content/.well-known/security.md | 6 ++++++
jbake/jbake.properties | 2 ++
jbake/templates/securitytxt.ftl | 6 ++++++
3 files changed, 14 insertions(+)
diff --git a/jbake/content/.well-known/security.md b/jbake/content/.well-known/security.md
new file mode 100644
index 0000000..39004e4
--- /dev/null
+++ b/jbake/content/.well-known/security.md
@@ -0,0 +1,6 @@
+type=securitytxt
+contact=mailto:security@shiro.apache.org
+languages=en
+canonical=https://shiro.apache.org/.well-known/security.txt
+policy=https://shiro.apache.org/security-reports.html
+~~~~~~
diff --git a/jbake/jbake.properties b/jbake/jbake.properties
index a39e0d6..09510ee 100644
--- a/jbake/jbake.properties
+++ b/jbake/jbake.properties
@@ -13,6 +13,8 @@ index.posts_per_page=5
template.redirect.file=redirect.ftl
template.download.file=download.ftl
template.lend_a_hand.file=lend_a_hand.ftl
+template.securitytxt.file=securitytxt.ftl
+template.securitytxt.extension=.txt
db.store=plocal
db.path=cache
diff --git a/jbake/templates/securitytxt.ftl b/jbake/templates/securitytxt.ftl
new file mode 100644
index 0000000..47e46ec
--- /dev/null
+++ b/jbake/templates/securitytxt.ftl
@@ -0,0 +1,6 @@
+<#assign expires = ((.now?long + 365 * 86400000)?number_to_datetime?iso("UTC"))>
+Contact: ${content.contact}
+Expires: ${expires}
+Preferred-Languages: ${content.languages}
+Canonical: ${content.canonical}
+Policy: ${content.policy}
\ No newline at end of file