Admin Service
The admin service is the internal Flask application used to manage relational data and operational state for CAS Backend. It exposes administrative views for users, keys, models, indexes, and related database-backed records.
What Lives Here
server.py: local execution entrypoint__init__.py: Flask app creation and extension setupviews.py: Flask-Admin views and admin workflowstemplates/: admin UI and email templatesentrypoint.sh: container startup command
Public Entrypoints
Local process:
python -m cellarium.cas_backend.apps.admin.serverContainer entrypoint:
cellarium/cas_backend/apps/admin/entrypoint.sh
Dependencies
The admin service depends on:
cellarium.cas_backend.core.configfor environment settingscellarium.cas_backend.core.dbfor models, sessions, and migrationscellarium.cas_backend.core.utils.email_utilsfor admin-triggered emailssettings/.envfor runtime secrets
Local Development
Install dependencies and ensure settings/.env is present, then run:
poetry run python -m cellarium.cas_backend.apps.admin.server
By default the app serves the admin UI locally on Flask’s default port. Authentication and database connectivity still depend on the configured environment variables.
Deployment Notes
The admin image is built from deploy/docker/Dockerfile.admin and deployed through the shared Cloud Run workflows
and flavor configuration under deploy/cloudrun/.