Live data from Hacker News

Introduction to BigQuery row-level security

cloud.google.com

11–15 of 15 posts

Re: Introduction to BigQuery row-level security

#11
post #9

It's not immediately clear to me where this is superior to BigQuery authorized views: https://cloud.google.com/bigquery/docs/authorized-views#row-... The comparison in the source doc ( https://cloud.google.com/bigquery/docs/row-level-security-in... ) seems to list the same caveats for both methods.

[deleted]

Re: Introduction to BigQuery row-level security

#12

Earlier quoted context omitted.

As sibling mentioned, table and dataset level security. Another workaround I’ve seen used a lot is to create a view that filters out the rows and columns you’re not sharing with the entire organization. It’s slow and pricey and in most cases I would advocate to duplicate the filtered table, rather than doing a view.

Can you explain how authorised views reduce performance and increase costs?

Wodenokoto may have different explanation, but I'm guessing it's just down to the raw data processed. If you're making a view that winds up running a query on the origin table with a `WHERE` added, then you're still processing the entire table for each query.

I don't think row-level security will be any better based on this documentation.

Re: Introduction to BigQuery row-level security

#13
post #9

It's not immediately clear to me where this is superior to BigQuery authorized views: https://cloud.google.com/bigquery/docs/authorized-views#row-... The comparison in the source doc ( https://cloud.google.com/bigquery/docs/row-level-security-in... ) seems to list the same caveats for both methods.

I dont think its superior or inferior. Row level security is a different way to think about access control.

I think of row level security as enforced on the table which is stronger as it will apply for any reads on the table.

However, if you have authorized views then you can still create a different view of the same table without the access controls.

You can probably use both to solve the problem and in some cases authorized views maybe the right choice and in some cases row level security will work.

Post reply on HN