1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00

Add bugbot role to phrik.archlinux.org

Apply more security hardening, add pgp key fetching and verification for
the git repository.
This commit is contained in:
Jelle van der Waa 2020-07-11 22:06:35 +02:00
parent aaa7ace542
commit d9377b5e5b
No known key found for this signature in database
GPG Key ID: C06086337C50773E
4 changed files with 17 additions and 2 deletions

@ -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