botserver/src/settings
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
..
audit_log.rs Fix build errors and unused imports in core, security and package_manager modules 2026-01-24 22:04:47 -03:00
menu_config.rs Add video module, RBAC, security features, billing, contacts, dashboards, learn, social, and multiple new modules 2026-01-08 13:16:17 -03:00
mod.rs fix(zitadel): resolve OAuth client initialization timing issue 2026-03-01 19:06:09 -03:00
permission_inheritance.rs Fix SafeCommand to allow shell scripts with redirects and command chaining 2026-01-08 23:50:38 -03:00
rbac.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
rbac_ui.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
security_admin.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00