Files
ansible-middleware.keycloak/molecule/quarkus_upgrade/prepare.yml
T
Stefan Krempel 738c3a002d Bump Keycloak to 26.8.2 and RHBK to 26.6.9
Update the keycloak_quarkus role defaults, argument specs, README and
molecule scenarios to the current upstream releases. Keycloak 26.8.2
is the only release after 26.8.1; its release notes list 33 fixed
CVEs.

RHBK 26.6.8 (RHSA-2026:95761) fixes 83 CVEs. RHBK 26.6.9
(RHSA-2026:96040) follows a day later and fixes CVE-2026-117691, a
signature bypass in the SAML redirect binding.

- keycloak_quarkus_version: 26.8.1 -> 26.8.2
- rhbk_version: 26.6.7 -> 26.6.9
- molecule/quarkus: keycloak-kerberos-federation 26.8.1 -> 26.8.2;
  SPID provider stays at 26.8.1, there is no 26.8.2 release yet
- molecule/quarkus_upgrade: prepare on 26.8.1, converge to 26.8.2

JDBC driver defaults are left unchanged; they still match the versions
listed in Red Hat article 7033107 referenced from the defaults file.

This bump does not address CVE-2026-114938 ("Java4Shell"). That flaw
is in the OpenJDK HotSpot Base64 decoder intrinsic and is fixed in
the JDK, not in Keycloak or RHBK.
2026-11-20 20:14:00 +01:00

60 lines
1.7 KiB
YAML

---
- name: Prepare
hosts: all
vars_files:
- ../group_vars/all/vars.yml
- vars.yml
vars:
sudo_pkg_name: sudo
keycloak_quarkus_version: 26.8.1
keycloak_quarkus_additional_env_vars:
- key: KC_FEATURES_DISABLED
value: impersonation,kerberos
pre_tasks:
- name: Install sudo
ansible.builtin.apt:
name:
- sudo
- openjdk-17-jdk-headless
state: present
when:
- ansible_facts.os_family == 'Debian'
- name: "Ensure common prepare phase are set."
ansible.builtin.include_tasks: ../prepare.yml
- name: Display Ansible version
ansible.builtin.debug:
msg: "Ansible version is {{ ansible_version.full }}"
- name: "Ensure {{ sudo_pkg_name }} is installed (if user is root)."
ansible.builtin.dnf:
name: "{{ sudo_pkg_name }}"
when:
- ansible_facts["user_id"] == 'root'
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
- name: "Check if {{ sudo_pkg_name }} is installed."
ansible.builtin.assert:
that:
- sudo_pkg_name in ansible_facts.packages
- name: Create certificate request
ansible.builtin.command: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -subj '/CN=instance'
args:
chdir: "{{ playbook_dir }}"
delegate_to: localhost
changed_when: false
roles:
- role: keycloak_quarkus
post_tasks:
- name: "Delete custom fact"
ansible.builtin.file:
path: /etc/ansible/facts.d/keycloak.fact
state: absent
become: "{{ molecule_prepare_require_privilege_escalation | default(true) }}"