Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Pipeline - Copy Data allows circumvention of Gateway Connection Security

We noticed odd behavior in our instance of Fabric. Previously in Power BI, for SQL connections, a developer could only use the database we explictly listed for a server, whether it was for a dataflow, a semantic model, or a pipeline using the Copy Assistant. If someone tries to modify or create a Copy Data block in a pipeline, in the Source tab, they have the ability to select databases that aren't configured in the gateway connection.

That includes databases we don't have Gateway connections for. Is this expected behavior or a bug in Data Factory / Pipelines? Originally we had a service account being leveraged for each server / database. Giving security concerns, this would require a service account for every individual database as well. 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

It was always (and still is) possible to seemingly login to one database but then run queries against another database on the same server, provided the connection user has access to both databases.

 

One subtle hint at that is the presence of both  Sql.Database and Sql.Databases  Power Query functions.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

It was always (and still is) possible to seemingly login to one database but then run queries against another database on the same server, provided the connection user has access to both databases.

 

One subtle hint at that is the presence of both  Sql.Database and Sql.Databases  Power Query functions.

Anonymous
Not applicable

Interesting, I know some have used more advanced scripting in Power Query against the gateway connections, but by default, if a developer tries to use another database that isn't associated with the connection it won't allow them to leveage the connection initially. At least not with the default options available in the GUI they normally use. 

So is our only option to secure other databases using the same server different accounts with different permissions? There's no way to lock this functionality down in the gateway, gateway connections, or in the service itself for Power BI / Fabric? 

yep, pretty much. Use separate logins.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.