Open
Conversation
Introduce admin API token creation, listing, and revocation flows in the frontend/admin stack to support controlled backend access with scoped permissions. Also load service-specific .env files in Docker Compose and document the required frontend backend URL and shared internal admin secret for consistent container configuration.feat: add admin API token management and env loading
|
Hey @adithya1012 - how should I go about, locally, creating an admin user? I have the vault running with docker-compose. I set up login with github and then gave myself me@mac pulsevault % docker exec -it pulsevault-postgres psql -U pulsevault -d pulsevault -c \
"UPDATE \"user\" SET role = 'admin' WHERE email = 'mfisher@******.net';"
UPDATE 1After doing this, I log out, and back in, but do not see anything aside from "API Keys for other apps" Earlier this morning and last night, I hacked/disabled the auth so that it just showed the admin interface without a login.... doing it that way I could see two tabs, Api keys, and API tokens on the Admin dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
This PR introduces a new scoped API token system for individual users, intended for PulseCam and future external client access to protected workflows.
It is fully separate from the existing Better Auth website API key flow and does not modify that implementation.
What’s Included
Backend / API
Frontend / Admin
Security / Behavior Notes
Env / Developer Experience