proxies: add security.txt file
Per https://securitytxt.org/ and https://datatracker.ietf.org/doc/html/draft-foudil-securitytxt-12 This is a basic 2 liner, we can expand on it later. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
0ae073966a
commit
d93be536ff
4 changed files with 20 additions and 0 deletions
|
@ -59,3 +59,7 @@
|
|||
- role: pkgdb-proxy
|
||||
tags:
|
||||
- pkgdb2
|
||||
|
||||
- role: security.txt
|
||||
tags:
|
||||
- security.txt
|
||||
|
|
1
roles/security.txt/files/security-txt.conf
Normal file
1
roles/security.txt/files/security-txt.conf
Normal file
|
@ -0,0 +1 @@
|
|||
AliasMatch ^/.well-known/security.txt /srv/web/security.txt
|
2
roles/security.txt/files/security.txt
Normal file
2
roles/security.txt/files/security.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
Contact: mailto:infra-security@fedoraproject.org
|
||||
Expires: 2022-01-31T21:01:00.000Z
|
13
roles/security.txt/tasks/main.yml
Normal file
13
roles/security.txt/tasks/main.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
# Install static security.txt file on proxies.
|
||||
- name: Copy static security.txt file into place
|
||||
copy: src=security.txt dest=/srv/web/security.txt owner=root group=root mode=755
|
||||
tags:
|
||||
- security.txt
|
||||
|
||||
- name: Copy httpd config
|
||||
copy: src=security-txt.conf dest=/etc/httpd/conf.d/admin.fedoraproject.org/security-txt.conf owner=root group=root mode=755
|
||||
notify:
|
||||
- reload apache
|
||||
tags:
|
||||
- security.txt
|
Loading…
Add table
Add a link
Reference in a new issue