Add INITIAL_ADMIN_API_KEY environment variable support#1027
Add INITIAL_ADMIN_API_KEY environment variable support#1027rsp2k wants to merge 6 commits intoPart-DB:masterfrom
Conversation
rsp2k
commented
Sep 7, 2025
- Add configuration parameter for initial admin API key
- Implement getInitialAdminApiToken() method in AbstractMultiPlatformMigration
- Create migration to automatically generate admin API token on initial setup
- Add configuration parameter for initial admin API key - Implement getInitialAdminApiToken() method in AbstractMultiPlatformMigration - Create migration to automatically generate admin API token on initial setup - Add CLAUDE.md to .gitignore for local development documentation
- Document environment variable in configuration.md - Add section to API authentication documentation - Include examples in Docker installation guide for both SQLite and MySQL setups - Provide usage instructions for CI/CD and automated deployments
|
What is your use case for this? And maybe a console command to programmatically create API keys would be more useful than doing that in the database migration ? |
|
I'm using it to bootstrap servers while testing. Thank you so much for this absolutely wonderful project! Hats off to you sir! |
|
What would you say about restricting the lifetime of the API token to a week (or even just a day)? Also I would not put the env into the docker-env templates. That is an feature for advanced usecases, and if you put it into the docker-compose file, then it will probably stay there forever, risking it to be leaked somehow... |
This comment was marked as off-topic.
This comment was marked as off-topic.
This is an feature for advanced users only and will risk secret leaking