mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-24 01:44:00 +00:00
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.
71 lines
2.6 KiB
YAML
71 lines
2.6 KiB
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
vars_files:
|
|
- ../group_vars/all/vars.yml
|
|
gather_facts: yes
|
|
vars:
|
|
sudo_pkg_name: sudo
|
|
tasks:
|
|
- name: "Run preparation common to all scenario"
|
|
ansible.builtin.include_tasks: ../prepare.yml
|
|
|
|
- name: Create controller directory for downloads
|
|
ansible.builtin.file: # noqa risky-file-permissions delegated, uses controller host user
|
|
path: /tmp/keycloak
|
|
state: directory
|
|
mode: '0750'
|
|
delegate_to: localhost
|
|
run_once: true
|
|
|
|
- name: Download keycloak archive to controller directory
|
|
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
|
|
url: https://github.com/keycloak/keycloak/releases/download/26.8.2/keycloak-26.8.2.zip
|
|
dest: /tmp/keycloak
|
|
mode: '0640'
|
|
validate_certs: false
|
|
delegate_to: localhost
|
|
run_once: true
|
|
ignore_errors: true
|
|
|
|
- name: Attempt RHBK download using redhat.runtimes_common collection
|
|
when:
|
|
- rhn_username is defined
|
|
- rhn_username | length > 0
|
|
block:
|
|
- name: Retrieve RHBK product download using Unified Downloads API
|
|
middleware_automation.common.product_search:
|
|
client_id: "{{ rhn_username }}"
|
|
client_secret: "{{ rhn_password }}"
|
|
product_type: DISTRIBUTION
|
|
product_version: "{{ keycloak_quarkus_version | default('26.8.2') }}"
|
|
product_category: "RHBK"
|
|
register: rhn_products
|
|
no_log: "{{ omit_rhn_output | default(true) }}"
|
|
delegate_to: localhost
|
|
run_once: true
|
|
ignore_errors: true
|
|
|
|
- name: Determine install zipfile from search results
|
|
ansible.builtin.set_fact:
|
|
rhn_matched_products: "{{ rhn_products.results | selectattr('file_name', 'match', '.*keycloak-' + (keycloak_quarkus_version | default('26.8.2')) + '.zip$') }}"
|
|
delegate_to: localhost
|
|
run_once: true
|
|
when:
|
|
- rhn_products is defined
|
|
- rhn_products.results is defined
|
|
|
|
- name: Download Red Hat Build of Keycloak
|
|
middleware_automation.common.product_download:
|
|
client_id: "{{ rhn_username }}"
|
|
client_secret: "{{ rhn_password }}"
|
|
product_id: "{{ (rhn_matched_products | first).id }}"
|
|
dest: "/tmp/keycloak/keycloak-{{ keycloak_quarkus_version | default('26.8.2') }}.zip"
|
|
no_log: "{{ omit_rhn_output | default(true) }}"
|
|
delegate_to: localhost
|
|
run_once: true
|
|
when:
|
|
- rhn_matched_products is defined
|
|
- rhn_matched_products | length > 0
|
|
ignore_errors: true
|