generalbots/src/basic
Rodrigo Rodriguez (Pragmatismo) c326581a9e fix(zitadel): resolve OAuth client initialization timing issue
- Fix PAT extraction timing with retry loop (waits up to 60s for PAT in logs)
- Add sync command to flush filesystem buffers before extraction
- Improve logging with progress messages and PAT verification
- Refactor setup code into consolidated setup.rs module
- Fix YAML indentation for PatPath and MachineKeyPath
- Change Zitadel init parameter from --config to --steps

The timing issue occurred because:
1. Zitadel writes PAT to logs at startup (~18:08:59)
2. Post-install extraction ran too early (~18:09:35)
3. PAT file wasn't created until ~18:10:38 (63s after installation)
4. OAuth client creation failed because PAT file didn't exist yet

With the retry loop:
- Waits for PAT to appear in logs with sync+grep check
- Extracts PAT immediately when found
- OAuth client creation succeeds
- directory_config.json saved with valid credentials
- Login flow works end-to-end

Tested: Full reset.sh and login verification successful
2026-03-01 19:06:09 -03:00
..
compiler fix(zitadel): resolve OAuth client initialization timing issue 2026-03-01 19:06:09 -03:00
keywords merge: Unify master into main - all commits unified 2026-03-01 07:43:07 -03:00
mod.rs fix(zitadel): resolve OAuth client initialization timing issue 2026-03-01 19:06:09 -03:00
mod.rs.backup fix: Correct parameter names in tool .bas files to match database schema 2026-02-18 17:51:47 +00:00
tests.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00