Setup and Data Seeding
ThunderID provides two different data seeding paths, depending on how the system is initialized.
| Command | Use Case | Seeded Data |
|---|---|---|
make run | Source development | Default resources |
./setup.sh | Deployment / release initialization | Default resources |
Development Seeding (make run)
For development environments, make run executes the backend/cmd/server/bootstrap/01-default-resources.sh bootstrap script, which seeds the core resources required to start the server and access the console:
- Default Organization Unit
- Default User Type (Person)
- Admin user (credentials default to
admin/admin; configurable viaADMIN_USERNAME/ADMIN_PASSWORDenvironment variables) - System resource server with system actions and permissions
- Administrator role and role assignment
Consoleapplication
Full Bootstrap (./setup.sh)
For release artifacts and deployment environments, ./setup.sh performs a one-time initialization:
- Starts ThunderID temporarily with
SKIP_SECURITY=true - Waits until the server becomes ready (
/health/readiness) - Executes all scripts in the
./bootstrapdirectory in filename order - Stops the temporary server after initialization is complete
Bootstrap Scripts:
01-default-resources.sh— Seeds the core identity resources (same as development seeding above)
In short:
- Use
make runwhen running ThunderID from source. - Use
./setup.shwhen initializing a fresh runtime environment with the full bootstrap data.