Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented May 22, 2025

This PR adds CLI commands and APIs for listing, issuing and revoking user access tokens. The new CLI commands are:

  • rill token issue
  • rill token list
  • rill token revoke

Example:

> ./rill token issue
Token: rill_usr_nPYFR0<redacted>

> ./rill token list
  ID (3)                                 DESCRIPTION       CLIENT             CREATED               EXPIRES               LAST USED            
 -------------------------------------- ----------------- ------------------ --------------------- --------------------- --------------------- 
  0492ea6c-bff4-411a-be81-54243902fdad                     Created manually   2025-05-22 19:48:01                         2025-05-22 19:48:01  
  764fff49-fbc4-409f-916d-e9420eb4e90f                     Rill CLI           2025-05-09 12:32:47                         2025-05-22 19:23:36  
  debcdc2f-8309-4a6a-b77b-0a81b302897f   Browser session   Rill Web           2025-05-22 19:35:47                         2025-05-22 19:36:06  

> ./rill token revoke debcdc2f-8309-4a6a-b77b-0a81b302897f

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@begelundmuller begelundmuller self-assigned this May 22, 2025
@begelundmuller begelundmuller requested a review from pjain1 May 22, 2025 18:59
@begelundmuller begelundmuller marked this pull request as ready for review May 22, 2025 18:59
@begelundmuller begelundmuller mentioned this pull request May 23, 2025
8 tasks
@begelundmuller begelundmuller merged commit a597810 into main May 26, 2025
12 of 13 checks passed
@begelundmuller begelundmuller deleted the begelundmuller/user-access-tokens branch May 26, 2025 12:01
begelundmuller added a commit that referenced this pull request May 26, 2025
* APIs and CLI commands for user access tokens

* Tests

* Tests on admin service

* Review
@ericpgreen2 ericpgreen2 mentioned this pull request May 28, 2025
8 tasks
royendo added a commit that referenced this pull request Nov 3, 2025
- Create new user-tokens.md page in /manage section covering:
  - Overview and use cases for user (personal access) tokens
  - Comparison with service tokens
  - Creating tokens via CLI and UI (AI tab)
  - Managing tokens: listing, revoking, rotation
  - Using tokens with custom APIs, MCP, CLI, and scripts
  - Token permissions and security policies
  - Detailed use cases (local dev, MCP, scripts)
  - Best practices for security and lifecycle management
  - Troubleshooting guide
  - Comprehensive comparison table for when to use user vs service tokens

- Update /manage/index.md:
  - Add user tokens to Access Control section
  - Position before service tokens (ordered by typical usage)

- Update /integrate/custom-api.md:
  - Expand user tokens section with creation examples
  - Add expiration example
  - Link to comprehensive user tokens documentation
  - Note about automatic revocation

- Update /explore/mcp.md:
  - Clarify token creation via UI vs CLI
  - Add tip box linking to user tokens documentation

- Update /guides/setting-up-mcp.md:
  - Clarify user token terminology
  - Add tip box linking to user tokens documentation

Related to PR #7359 which added user access token APIs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

4 participants