Encryption and major changes

This commit is contained in:
2024-09-28 23:12:19 +02:00
parent 1f060541c3
commit 6248286ad2
159 changed files with 153 additions and 129 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ jobs:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: | run: |
cd ansible cd ansible
sectool exec ansible-playbook -u $ANSIBLE_USER playbook_hardening.yml --skip-tags roles::cis::suid sectool exec ansible-playbook -u $ANSIBLE_USER playbook_cis.yml --skip-tags roles::cis::suid
sectool exec ansible-playbook -u $ANSIBLE_USER playbook_encryption.yml sectool exec ansible-playbook -u $ANSIBLE_USER playbook_encryption.yml
sectool exec ansible-playbook -u $ANSIBLE_USER playbook_microk8s.yml sectool exec ansible-playbook -u $ANSIBLE_USER playbook_microk8s.yml
sectool exec ansible-playbook -u $ANSIBLE_USER playbook_gitea.yml sectool exec ansible-playbook -u $ANSIBLE_USER playbook_gitea.yml
+13 -9
View File
@@ -11,7 +11,7 @@ sshd_permit_root_login: "no"
sshd_password_authentication: "no" sshd_password_authentication: "no"
sshd_allow_tcp_forwarding: "yes" sshd_allow_tcp_forwarding: "yes"
ansible_user: "{{ lookup('env', 'ANSIBLE_USER') }}" ansible_user: "{{ lookup('env', 'ANSIBLE_USER') }}"
ssh_users: login_users:
- username: operator - username: operator
comment: "Managed by Ansible" comment: "Managed by Ansible"
sudoer: true sudoer: true
@@ -57,9 +57,11 @@ custom_hosts_acls: true
# GeoIP subscription # GeoIP subscription
geoip_sshd_enabled: true geoip_sshd_enabled: true
ssh_allowed_zones: geoip_ssh_allowed_zones:
- "BE" - "BE"
- "PT" - "PT"
geoip_ssh_allowed_networks:
- "0.0.0.0/0"
# fail2ban # fail2ban
fail2ban_jails: fail2ban_jails:
@@ -77,20 +79,22 @@ unattended_reboot: true
unattended_reboot_time: "04:30" unattended_reboot_time: "04:30"
# Kubernetes specific settings # Kubernetes specific settings
microk8s_alt_names: "{{ hostname }}" microk8s_version: 1.29
k8s_version: 1.29 microk8s_allowed_hosts:
k8s_allowed_hosts:
- 87.67.163.177 - 87.67.163.177
microk8s_alt_names: "{{ hostname }}"
k8s_users: # Let's encrypt issuer
microk8s_issuer_email: c.alexandre.pires@alexpires.me
microk8s_encryption_cfg: /a13labs/microk8s_encryption.yaml
microk8s_encryption_secret: "{{ lookup('env', 'MICROK8S_ENCRYPTION_SECRET') }}"
microk8s_users:
- username: operator - username: operator
enabled: true enabled: true
- username: git - username: git
namespace: "gitea" namespace: "gitea"
enabled: true enabled: true
# Let's encrypt issuer # Duo Security
issuer_email: c.alexandre.pires@alexpires.me
duo_users: ["*", "!provision", "!git"] duo_users: ["*", "!provision", "!git"]
duo_api_hostname: api-7cda1654.duosecurity.com duo_api_hostname: api-7cda1654.duosecurity.com
@@ -8,11 +8,11 @@
tags: tags:
- roles - roles
- roles::bootstrap - roles::bootstrap
- role: "manage_users" - role: "login"
tags: tags:
- roles - roles
- roles::users - roles::users
- role: "cis_hardening" - role: "cis"
vars: vars:
# currently aide is failing # currently aide is failing
install_aide: false install_aide: false
@@ -27,7 +27,7 @@
tags: tags:
- roles - roles
- roles::geoip - roles::geoip
- role: "duo_security" - role: "duo"
tags: tags:
- roles - roles
- roles::duosecurity - roles::duosecurity
-4
View File
@@ -4,10 +4,6 @@
gather_facts: true gather_facts: true
roles: roles:
- role: "manage_users"
tags:
- roles
- roles::users
- role: "microk8s" - role: "microk8s"
tags: tags:
- role::microk8s - role::microk8s
@@ -10,3 +10,4 @@ warn_list:
- yaml[line-length] - yaml[line-length]
skip_list: skip_list:
- yaml[comments] - yaml[comments]
- var-naming[no-role-prefix]

Some files were not shown because too many files have changed in this diff Show More