Skip to content

Add key permissions subcommand#1604

Open
alexchow-stripe wants to merge 1 commit into
masterfrom
alexchow-rak-permissions
Open

Add key permissions subcommand#1604
alexchow-stripe wants to merge 1 commit into
masterfrom
alexchow-rak-permissions

Conversation

@alexchow-stripe
Copy link
Copy Markdown

Reviewers

r? @
cc @stripe/developer-products

Summary

Adds a new hidden stripe keys permissions subcommand that resolves the minimal set of restricted API key (RAK) permissions needed for a given set of API endpoints (e.g. stripe keys permissions "GET /v1/customers")
The command prints the resolved permissions, and surfaces any unresolved endpoints as warnings to stderr.

./stripe-dev keys permissions --api-base $API_BASE  --api-key $SK_TEST "GET /v1/customers" "GET /v1/charges/:id"
Required permissions:
  charge_read
  customer_read

@alexchow-stripe alexchow-stripe requested a review from a team as a code owner May 22, 2026 23:09
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.

1 participant