flagsmith
flagsmith copied to clipboard
Generate/create superadmin API key when starting the application for the first time.
I'd like to be able to programatically set up all of flagsmith, but I can't seem to see a way to specify an API key at startup time? Is the only way to generate an admin API key through the UI?
Ah interesting question. Right now you would have to create a user to get an API key, but you need an API key to generate a user.
Hello. Any movement on this? I see it's been marked as a feature - does that mean it's been planned into a release? or just that it's something that is desirable but not scheduled?
Hi @withnale - yep currently desirable but we havent scheduled it yet. We have another tranche of work planned to overhaul the API token management within the platform and it would make sense to roll this in with that work. If it's something you really need we're happy to discuss a design for an interim solution and happy to take pull requests?
I think it would be something that would stop us from any sort of initial testing. I'm not sure how much time we would have for PRs, but I would imagine this would be pretty small, since obviously the majority of the required methods already exist.
However, I'm not familiar with the codebase. If you could point me at the classes/methods that would mainly be involved it would help.
This is actually something we might be getting to soon actually - we need this for #672 that @gagantrivedi is working on currently.