-
Notifications
You must be signed in to change notification settings - Fork 292
Labels
bugSomething isn't workingSomething isn't workingfabricrequired by API for GraphQL on Microsoft Fabricrequired by API for GraphQL on Microsoft Fabrictriageissues to be triagedissues to be triaged
Description
What happened?
Aggregations does not respect the column level security requirements specified in DAB config.

Given books table contains columns id, title and publisher_id, consider an entity config like below.
The expectation is that aggregations should not expose publisher_id yet we see from above screenshot that it is not handled.
We should look into ways to address this gap or provide recommendation to atleast disable aggregation from DAB config (is there a switch exposed?) so that CLS on read operation is not exposed via groupBy+aggregation field
"Books": {
"source": {
"object": "dbo.books",
"type": "table",
"key-fields": [
"id"
]
},
"graphql": {
"enabled": true,
"type": {
"singular": "Books",
"plural": "Books"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "reader1",
"actions": [
{
"action": "read",
"fields": {
"include": ["id", "title"]
}
},
{
"action": "create"
}
]
},
{
"role": "rlsreader",
"actions": [
{
"action": "read",
"policy": {
"database": "@item.id eq 123"
}
},
{
"action": "create"
}
]
}
]
},
Version
1.5.56
What database are you using?
Azure SQL
What hosting model are you using?
No response
Which API approach are you accessing DAB through?
No response
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfabricrequired by API for GraphQL on Microsoft Fabricrequired by API for GraphQL on Microsoft Fabrictriageissues to be triagedissues to be triaged