Skip to content

Document the 403 on an API token reset - #73

Open
oshchyhol wants to merge 1 commit into
mainfrom
document-api-token-reset-403
Open

oshchyhol wants to merge 1 commit into
mainfrom
document-api-token-reset-403

Conversation

@oshchyhol

Copy link
Copy Markdown
Contributor

Motivation

A reset gives back a new secret with every permission of the old token. So the API now refuses to reset a different token unless the calling token has Admin access to everything that token can access. Before, Admin access to the token's sub account was enough, even when the token also reached the organization or other sub accounts. A token can still reset itself.

The 403 was already listed for this operation; the description didn't say when it happens.

Merge once the API change is live.

Changes

  • say in the "Reset API token" description when a reset of another token gets a 403

How to test

  • the "Reset API token" page description says that resetting a different token needs Admin access to everything that token can access, and that otherwise the request gets a 403
  • the page still lists the 403 response

Images and GIFs

N/A

Resetting a different token now needs Admin access to everything that token can access. Anything less gets a 403. A token can still reset itself.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 542fa0f6-bff9-465c-a763-37726f55d83c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@oshchyhol
oshchyhol requested a review from IgorDobryn November 18, 2026 12:35
@oshchyhol
oshchyhol marked this pull request as ready for review November 18, 2026 12:35
@oshchyhol
oshchyhol requested a review from izikaj November 18, 2026 12:35
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.

3 participants