Post-Tyranny-Tech-Infrastru.../ansible/roles/authentik
Pieter 2a107cbf14 fix: Pass API token as command-line arg to recovery script
The recovery flow automation was failing because the Ansible task
was piping the API token via stdin (echo -e), but the Python script
(create_recovery_flow.py) expects command-line arguments via sys.argv.

Changed from:
  echo -e "$TOKEN\n$DOMAIN" | docker exec -i python3 script.py

To:
  docker exec python3 script.py "$TOKEN" "$DOMAIN"

This matches how the Python script is designed (line 365-370).

Tested on valk deployment - recovery flow now creates successfully
with all features:
- Password complexity policy
- Email verification
- "Forgot password?" link on login page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 18:13:10 +01:00
..
defaults Add Authentik identity provider to architecture 2026-01-07 11:23:13 +01:00
files fix: Remove tenant modification from enrollment flow blueprint 2026-01-19 14:06:28 +01:00
handlers Add Authentik identity provider to architecture 2026-01-07 11:23:13 +01:00
tasks fix: Pass API token as command-line arg to recovery script 2026-01-20 18:13:10 +01:00
templates fix: Resolve Authentik email delivery issues 2026-01-13 09:52:23 +01:00