-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D1 changelog read permission fix #19742
Conversation
Deploying cloudflare-docs with
|
Latest commit: |
a964dd9
|
Status: | ✅ Deploy successful! |
Preview URL: | https://0c90cb88.cloudflare-docs-7ou.pages.dev |
Branch Preview URL: | https://d1-permissions.cloudflare-docs-7ou.pages.dev |
src/content/changelogs/d1.yaml
Outdated
- publish_date: "2025-02-04" | ||
title: Fixed bug with D1 read-only access via UI and /query REST API. | ||
description: |- | ||
A bug with D1 permissions, which allowed users with read-only roles via the UI and users with read-only API tokens via the `/query` [REST API](/api/resources/d1/subresources/database/methods/query/) to execute queries that modified databases, is fixed. UI actions via the `Tables` tab, such as creating and deleting tables, were incorrectly allowed with read-only access. However, UI actions via the `Console` tab were not affected by this bug and correctly required write access. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rozenmd Does wrangler use the CF role? If yes, would wrangler have been impacted by this bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrangler would have also been impacted here since they have user scoped tokens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wranger user scoped tokens are not the same as API tokens though right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think wrangler explicitly asks for everything in edit mode, so not an issue
No description provided.