Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature regen api keys #541

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jasonfy2k
Copy link

Description

Added an endpoint to regenerate an existing api key and related button in the frontend.

Preferably this button would have a confirmation dialog to confirm the regen instead of immediately doing so, but I'm not great with frontend stuff, so any thoughts or work is appreciated.

Checklist

  • Ran the Black Formatter and
    djLint-er on any new code
    (checks
    will
    fail without)
  • Made any changes or additions to the documentation where required
  • Changes generate no new warnings/errors
  • New and existing unit tests pass locally with my
    changes

What type of PR is this?

  • ✨ Feature

Added/updated tests?

  • 👍 yes

Related PRs, Issues etc

@TreyWW
Copy link
Owner

TreyWW commented Dec 13, 2024

Hi @jasonfy2k, thanks for the PR! Great job, nice work making the frontend and tests too :)

May I ask why you create a new API Key rather than just changing the uuid field? It's fine if there's a specific reason, just wondered

@TreyWW TreyWW self-assigned this Dec 13, 2024
@jasonfy2k
Copy link
Author

Hi @jasonfy2k, thanks for the PR! Great job, nice work making the frontend and tests too :)

May I ask why you create a new API Key rather than just changing the uuid field? It's fine if there's a specific reason, just wondered

No reason, hadn't thought about it tbh. Was thinking more of "recreate", but your idea is much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

idea: Ability to roll a new API Key
2 participants