Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backend agent table public permissions #1867
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
Uh oh!
There was an error while loading. Please reload this page.
Backend agent table public permissions #1867
Changes from all commits
f4bbb901d4a637File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Authorize the primary-key predicate before the row query.
assertSomeColumnReadable()allows this query when any column is readable. It does not require the submitted primary-key columns to be readable. A caller can submit a withheld primary key and distinguish an existing row from a missing row.Reject the request with
403when any received primary-key column is absent fromreadableColumns. Add a test whereidis withheld but another column is readable.🤖 Prompt for AI Agents
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Keep the identity column inside the readable-column boundary.
findAutocompleteFieldsUtil()receivesqueryableStructure, but it addstableSettings.identity_columnwithout checking that the identity column is in that structure. If the identity column is withheld, autocomplete still searches it.Only add
identity_columnwhen it is in the readable structure. Add an end-to-end test with a readable referenced column and a withheld identity column.🤖 Prompt for AI Agents
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Do not add a withheld MongoDB
_idfield to the search.This branch adds
_ideven whenreadableColumnsdoes not contain_id. A hexadecimal search can then use a withheld field as a predicate and disclose row existence or permitted values from the matched row.Add
_idonly when it is readable. Add a MongoDB permission test where_idis withheld.🤖 Prompt for AI Agents
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Assert that the search total is zero.
t.not(searched.body.pagination.total, 3)passes for any non-three total. The test states that the search must match nothing, so assertpagination.total === 0.Proposed test correction
📝 Committable suggestion
🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.