Skip to content
Snippets Groups Projects
Verified Commit d9377b5e authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Add bugbot role to phrik.archlinux.org

Apply more security hardening, add pgp key fetching and verification for
the git repository.
parent aaa7ace5
No related branches found
No related tags found
No related merge requests found
Pipeline #433 passed
......@@ -7,6 +7,7 @@
- { role: common }
- { role: tools }
- { role: archusers }
- { role: bugbot }
- { role: phrik }
- { role: sshd }
- { role: unbound }
......
......@@ -2,7 +2,9 @@
irc_host: 'chat.freenode.net'
irc_port: '6697'
irc_channel: '#archlinux-bugs'
bugbot_version: 20200630
bugbot_version: '20200630'
bugbot_pgp_keys: ['92D9C6CDE99A2024D690A76EE742683BA08CB2FF']
bugbot_pgp_emails: ['foxboron@archlinux.org']
bugbot_admins:
- keenerd
- falconindy
......
......@@ -8,10 +8,14 @@ Restart=on-failure
ProtectSystem=strict
DynamicUser=yes
PrivateDevices=true
PrivateUsers=true
ProtectKernelTunables=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelModules=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
RestrictRealtime=true
[Install]
......
......@@ -3,13 +3,21 @@
- name: install bugbot utilities
pacman: name=python-irc,python-beautifulsoup4,python-lxml state=present
- name: receive valid signing keys
become: true
command: /usr/bin/gpg --keyserver keys.openpgp.org --auto-key-locate wkd,keyserver --locate-keys {{ item }}
with_items: '{{ bugbot_pgp_emails }}'
register: gpg
changed_when: "gpg.rc == 0"
- name: clone bugbot source
git:
repo: https://gitlab.archlinux.org/archlinux/bugbot.git
dest: /srv/bugbot
force: true
verify_commit: true
version: "{{ bugbot_version }}"
gpg_whitelist: '{{ bugbot_pgp_keys }}'
version: '{{ bugbot_version }}'
- name: install env file
template: src=bugbot.j2 dest=/srv/bugbot/env owner=root group=root mode=0600
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment