Add server side API key option #3298
Nikola-Milovic
started this conversation in
Anything Else
Replies: 1 comment 2 replies
-
Although not ideal, there is already a way to do something like this with database seeds. Example (for CI): https://github.com/ruslandoga/plausible-seeds-ci In plausible:
# note the new "/entrypoint.sh db seed"
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db seed && /entrypoint.sh run"
volumes:
- ./seeds.exs:/app/lib/plausible-0.0.1/priv/repo/seeds.exs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently to use plausible (self-host) you need to create a user and an API key. Ideally, it would be really nice to specify an api key on startup/ inject it into plausible container, and then we'd be able to authenticate via this api key with our other services. It would make the process much more streamlined. Basically have a server only API key, since I don't really need users.
The title is incorrectly worded, it should be less assertive.
This would probably break the architecture of the project since its probably made do work around users and their api keys, might be possible to just create a default admin user?
I'd make this myself and hack it, but I don't think the user creation api is exposed
Beta Was this translation helpful? Give feedback.
All reactions