mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
The emailVerified update looped over every non-reserved user, uploaded a shell script per user and ran kcadm with a JVM login each time, and it always reported changed: 7 users took 23.8 s on echoserver. email_verified.py uses the shared keycloak_admin client through tasks/utils/rest_script.yml: it looks each user up by exact username, skips users already verified, and writes emailVerified with a GET plus a full-representation PUT, as kcadm update did. The task reports changed only when a user was updated, and a failed lookup now fails the task instead of being treated as a missing user. The old lookup piped kcadm -q username=X into head -n1, which could have hit a longer username sharing the prefix. Evidence (local compose, slot 104): summary updated=0 unchanged=8 missing=0 failed=0 in 0.60 s, task ok, staging dir removed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>