Repository navigation
Secure auth flow: stop emailing API keys, add retrieval - #143
Merged
Merged
Conversation
- Stop sending API keys via email (security risk) - Add POST /auth/retrieve-key: email + password -> API key - Add POST /auth/request-key-regeneration: sends verification email - Add GET /auth/confirm-key-regeneration: revokes old key, issues new - Add 'nemar auth retrieve-key' CLI command - Add 'nemar auth regenerate-key' CLI command - Update approval email to instruct CLI key retrieval - Update admin approve messaging to reflect new flow Closes #140
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR143Version: 🤖 Updated on each push. |
- Add new auth endpoints to strict rate limit paths - Apply escapeHtml to all user data in HTML templates - Escape username, URLs, and user descriptions
This branch was previously deployed
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
POST /auth/retrieve-keyendpoint: email + password returns API keyPOST /auth/request-key-regeneration+GET /auth/confirm-key-regenerationfor key rotationnemar auth retrieve-keyandnemar auth regenerate-keyTest plan
nemar auth retrieve-keywith correct email/password and verify key is returnednemar auth retrieve-keyagain and verify 409 (key already issued)nemar auth regenerate-keyand verify verification email is sentCloses #140