Skip to content

Feat/regenerate own api token - #318

Merged
EnjoyBacon7 merged 1 commit into
devfrom
feat/regenerate-own-api-token
Apr 20, 2026
Merged

Feat/regenerate own api token#318
EnjoyBacon7 merged 1 commit into
devfrom
feat/regenerate-own-api-token

Conversation

@EnjoyBacon7

Copy link
Copy Markdown
Collaborator

No description provided.

@coderabbitai

coderabbitai Bot commented Apr 20, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EnjoyBacon7 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 37 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 18 minutes and 37 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3ea43ff4-beee-46f0-b64a-d4965ed0418c

📥 Commits

Reviewing files that changed from the base of the PR and between fb0ce12 and b980157.

📒 Files selected for processing (4)
  • extern/indexer-ui
  • openrag/components/indexer/vectordb/utils.py
  • openrag/routers/users.py
  • openrag/routers/utils.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/regenerate-own-api-token

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The POST /users/{user_id}/regenerate_token endpoint used to be
documented as "admin or self" but had no permission check at all —
any authenticated caller could rotate any other user's token. This
adds a `require_admin_or_self` dependency that enforces the
documented contract: admins may regenerate any user's token; non-admins
may only regenerate their own.

Also:
- Return 404 instead of crashing when the target user does not exist.
- Bump the indexer-ui submodule to pull in the companion UI branch
  that surfaces this action as a button in the NavBar.
@EnjoyBacon7
EnjoyBacon7 force-pushed the feat/regenerate-own-api-token branch from d24ab1b to b980157 Compare April 20, 2026 12:39
@Ahmath-Gadji Ahmath-Gadji added feat Add a new feature fix Fix issue and removed feat Add a new feature labels Apr 20, 2026
@EnjoyBacon7
EnjoyBacon7 merged commit fec1aa0 into dev Apr 20, 2026
4 checks passed
@EnjoyBacon7
EnjoyBacon7 deleted the feat/regenerate-own-api-token branch April 20, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants