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>