-
Notifications
You must be signed in to change notification settings - Fork 15
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
permissions not applying in 21.9.0 #27
Comments
Thanks for raising this @Marty08, I'll see about deploying a test environment I can use to run some integration tests. I've probably done something silly somewhere. Glad at least the previous version is working for you. |
@Marty08 I've started laying the groundwork for proper integration tests (https://github.com/servian/bigquery-view-analyzer/tree/feature/integration-tests). Any test cases you can contribute from your experience working with authorized views would be appreciated mate. Just a few bullet points would be ideal! |
Happy to provide examples, I'll refer to the view being authorised as the target view and anything inside the view or needing authorisation as upstream:
The last two are useful but possibly out of scope for testing |
@christippett , more of a question than a request. e.g pii data and security groups: |
@Marty08 I haven't. Looks interesting though - I'm not working directly with BigQuery much these days so thanks for bringing this to my attention. I'll add to one of my things to look into. |
I'm running command line authorize of a view in V21.9.0 and the process runs successfully with no errors.
All sources have a green tick except for the view I'm trying to authorize which still has an X
permissions to upstream datasets are not applied even though all upstream sources have a tick in the command line.
I've reverted back to version 20.4.1 and the issue is not present and all permissions granted.
Below is the output:
target-project:shared_view.sample_data
└── team-project:authorised_views.sample_data (✓)
└── team-project:calculations.sample (✓)
├── team-project:calculations.calculated_sample (✓)
│ ├── team-project:sales.header (✓)
│ │ └── source-project:sales.header (✓)
│ ├── team-project:sales.body (✓)
│ │ └── source-project:sales.body (✓)
│ ├── team-project:sales.dept (✓)
│ │ └── source-project:sales.dept (✓)
│ └── team-project:sales.sales (✓)
│ └── source-project:sales.sales (✓)
├── team-project:customer.customer_data(✓) **** permission denied here****
│ └── source-project:customer.customer_data (✓)
├── team-project:sales.store (✓)
│ └── source-project:sales.store (✓)
When trying to query the data in target-project:shared_view.sample_data, the permission denied at
team-project:customer.customer_data in version 21.9.0
Works perfectly with no issues in 20.4.1
The text was updated successfully, but these errors were encountered: