Skip to content

📝 Destination bigquery: mark service account as required for cloud - #12768

Merged
Liren Tu (tuliren) merged 14 commits into
masterfrom
liren/bigquery-doc-update
May 15, 2022
Merged

Liren Tu (tuliren) merged 14 commits into
masterfrom
liren/bigquery-doc-update

Conversation

@tuliren

@tuliren Liren Tu (tuliren) commented May 11, 2022 •

Copy link
Copy Markdown
Contributor

What

TODO

  • Add screenshots in the documentation to show case service account, required roles, IAM, and HMAC key.
  • List common mistakes that can lead to permission issues.
  • Add a sample "service account key json" in the documentation.
  • Add extra connection check message if possible.
    • The check already has specific error message for GCS permission issues.

🚨 User Impact 🚨

  • Previously users may get the wrong impression that the "service account key json" field is optional on cloud.
  • Now it will be clear that this field is required on cloud.

@github-actions github-actions Bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels May 11, 2022
@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

BigQuery connector documentation screenshot - add "Cloud Storage Admin" role to BigQuery service account.

Screen Shot 2022-05-14 at 22 32 13

@tuliren

Copy link
Copy Markdown
Contributor Author

BigQuery connector documentation screenshot - create a dedicated role for gcs access

Screen Shot 2022-05-14 at 22 39 27

@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

BigQuery connector documentation screenshot - create hmac key for the bigquery service account

Screen Shot 2022-05-14 at 22 48 04

@tuliren

Copy link
Copy Markdown
Contributor Author

BigQuery connector documentation screenshot - create a service account with the bigquery user and data editor roles

Screen Shot 2022-05-14 at 22 55 49

@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-bigquery

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2326393760
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2326393760
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 13      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    13      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     155      8    95%
normalization/transform_config/transform.py                         159     31    81%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_catalog/utils.py                             34      7    79%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 534    345    35%
-------------------------------------------------------------------------------------
TOTAL                                                              1320    550    58%

@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

/test connector=connectors/destination-bigquery-denormalized

🕑 connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/2326393949
✅ connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/2326393949
Python tests coverage:

Name                                                              Stmts   Miss  Cover
-------------------------------------------------------------------------------------
normalization/transform_config/__init__.py                            2      0   100%
normalization/transform_catalog/reserved_keywords.py                 13      0   100%
normalization/transform_catalog/__init__.py                           2      0   100%
normalization/destination_type.py                                    13      0   100%
normalization/__init__.py                                             4      0   100%
normalization/transform_catalog/destination_name_transformer.py     155      8    95%
normalization/transform_config/transform.py                         159     31    81%
normalization/transform_catalog/table_name_registry.py              174     34    80%
normalization/transform_catalog/utils.py                             34      7    79%
normalization/transform_catalog/dbt_macro.py                         22      7    68%
normalization/transform_catalog/catalog_processor.py                147     80    46%
normalization/transform_catalog/transform.py                         61     38    38%
normalization/transform_catalog/stream_processor.py                 534    345    35%
-------------------------------------------------------------------------------------
TOTAL                                                              1320    550    58%

@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery run-tests=false

🕑 connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2326610333
🚀 Successfully published connectors/destination-bigquery
🚀 Auto-bumped version for connectors/destination-bigquery
✅ connectors/destination-bigquery https://github.com/airbytehq/airbyte/actions/runs/2326610333

@tuliren

Liren Tu (tuliren) commented May 15, 2022 •

Copy link
Copy Markdown
Contributor Author

/publish connector=connectors/destination-bigquery-denormalized run-tests=false

🕑 connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/2326610855
🚀 Successfully published connectors/destination-bigquery-denormalized
🚀 Auto-bumped version for connectors/destination-bigquery-denormalized
✅ connectors/destination-bigquery-denormalized https://github.com/airbytehq/airbyte/actions/runs/2326610855

@tuliren
Liren Tu (tuliren) merged commit e00f487 into master May 15, 2022
@tuliren
Liren Tu (tuliren) deleted the liren/bigquery-doc-update branch May 15, 2022 08:28
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets May 15, 2022 08:29 Inactive
@octavia-squidington-iii
Octavia Squidington III (octavia-squidington-iii) temporarily deployed to more-secrets May 15, 2022 08:29 Inactive
Yevhen Sukhomud (suhomud) pushed a commit that referenced this pull request May 23, 2022
…12768)

* Update spec

* Update doc

* Bump version and update changelog

* Modify wording

* Add sample service account key json

* Add screenshots and common permission issues

* Refactor service account helper method

* Update log message

* Update version date in changelog

* auto-bump connector version

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
more-secrets — 0c9e0813 Deployed May 15, 2022 by octavia-squidington-iii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/connectors Connector related issues area/documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants