mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2026-11-22 07:00:33 +00:00
When ~/.netrc contains an entry matching the Keycloak host, open_url() silently replaces the OIDC Bearer header with Basic auth, causing 401 errors. Add use_netrc option (default false) to all keycloak modules and pass it through to both open_url() call sites. Includes molecule test scenario (netrc) that verifies both behaviors: - default use_netrc=false ignores .netrc (fix works) - use_netrc=true picks up .netrc and gets 401 (proves the bug) Fixes: https://github.com/ansible-middleware/keycloak/issues/403
50 lines
1011 B
YAML
50 lines
1011 B
YAML
---
|
|
driver:
|
|
name: docker
|
|
platforms:
|
|
- name: instance
|
|
image: registry.access.redhat.com/ubi9/ubi-init:latest
|
|
pre_build_image: true
|
|
privileged: true
|
|
command: "/usr/sbin/init"
|
|
exposed_ports:
|
|
- "8080/tcp"
|
|
- "8443/tcp"
|
|
- "8009/tcp"
|
|
- "9000/tcp"
|
|
provisioner:
|
|
name: ansible
|
|
config_options:
|
|
defaults:
|
|
interpreter_python: auto_silent
|
|
roles_path: ../../roles
|
|
ssh_connection:
|
|
pipelining: false
|
|
playbooks:
|
|
prepare: ../default/prepare.yml
|
|
converge: ../default/converge.yml
|
|
verify: verify.yml
|
|
inventory:
|
|
group_vars:
|
|
all:
|
|
keycloak_install_requires_become: true
|
|
host_vars:
|
|
localhost:
|
|
ansible_python_interpreter: "{{ ansible_playbook_python }}"
|
|
env:
|
|
ANSIBLE_FORCE_COLOR: "true"
|
|
PROXY: "${PROXY}"
|
|
NO_PROXY: "${NO_PROXY}"
|
|
verifier:
|
|
name: ansible
|
|
scenario:
|
|
test_sequence:
|
|
- cleanup
|
|
- destroy
|
|
- create
|
|
- prepare
|
|
- converge
|
|
- verify
|
|
- cleanup
|
|
- destroy
|