Skip to content

Commit 82992c5

Browse files
committed
fix(docs/automations): rename Snowflake Tag Propagation to Snowflake Metadata Sync
1 parent 74df89f commit 82992c5

2 files changed

Lines changed: 52 additions & 20 deletions

File tree

docs-website/sidebars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ module.exports = {
333333
className: "saasOnly",
334334
},
335335
{
336-
label: "Snowflake Tag Sync",
336+
label: "Snowflake Metadata Sync",
337337
type: "doc",
338-
id: "docs/automations/snowflake-tag-propagation",
338+
id: "docs/automations/snowflake-metadata-sync",
339339
className: "saasOnly",
340340
},
341341
{

docs/automations/snowflake-tag-propagation.md renamed to docs/automations/snowflake-metadata-sync.md

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FeatureAvailability from '@site/src/components/FeatureAvailability';
22

3-
# Snowflake Tag Propagation Automation
3+
# Snowflake Metadata Sync Automation
44

55
<FeatureAvailability saasOnly />
66

@@ -12,14 +12,16 @@ This feature is currently in Public Beta in DataHub Cloud. Reach out to your Dat
1212

1313
## Introduction
1414

15-
Snowflake Tag Propagation is an automation that allows you to sync DataHub Glossary Terms and Tags on
15+
Snowflake Metadata Sync is an automation that allows you to sync DataHub Glossary Terms, Tags, and Descriptions on
1616
both columns and tables back to Snowflake. This automation is available in DataHub Cloud only.
1717

1818
## Capabilities
1919

2020
- Automatically Add DataHub Glossary Terms to Snowflake Tables and Columns
2121
- Automatically Add DataHub Tags to Snowflake Tables and Columns
22+
- Automatically Sync DataHub Descriptions to Snowflake Tables and Columns as Comments
2223
- Automatically Remove DataHub Glossary Terms and Tags from Snowflake Tables and Columns when they are removed in DataHub
24+
- Support for both Username/Password and Private Key authentication
2325

2426
## Prerequisites
2527

@@ -28,7 +30,8 @@ both columns and tables back to Snowflake. This automation is available in DataH
2830
- `CREATE TAG`: Required to create new tags in Snowflake.
2931
Ensure the user or role has this privilege on the specific schema or database where tags will be created.
3032
- `APPLY TAG`: Required to assign tags to Snowflake objects such as tables, columns, or other database objects.
31-
This permission must be granted at the database, schema, or object level depending on the scope.
33+
**This permission must be granted at the ACCOUNT level** - it cannot be granted on individual schemas, tables, or views.
34+
- `OWNERSHIP` on objects: Required to apply tags to tables and columns, as well as to update comments/descriptions. This is the most comprehensive permission and is necessary for tag operations.
3235

3336
### Permissions Required for Object Access
3437

@@ -40,40 +43,61 @@ both columns and tables back to Snowflake. This automation is available in DataH
4043
To grant the necessary permissions for a specific role (DATAHUB_AUTOMATION_ROLE), you can use the following SQL commands:
4144

4245
```sql
46+
-- Database and schema access
47+
GRANT USAGE ON DATABASE your_database TO ROLE DATAHUB_AUTOMATION_ROLE;
48+
GRANT USAGE ON SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
49+
4350
-- Tag management permissions
4451
GRANT CREATE TAG ON SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
45-
GRANT APPLY TAG ON SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
52+
-- APPLY TAG must be granted at ACCOUNT level
53+
GRANT APPLY TAG ON ACCOUNT TO ROLE DATAHUB_AUTOMATION_ROLE;
4654

47-
-- Object access for metadata operations
48-
GRANT USAGE ON DATABASE your_database TO ROLE DATAHUB_AUTOMATION_ROLE;
49-
GRANT USAGE ON SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
55+
-- Object access and modification permissions
5056
GRANT SELECT ON ALL TABLES IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
57+
GRANT SELECT ON ALL VIEWS IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
58+
59+
-- OWNERSHIP is required for applying tags and updating comments/descriptions
60+
GRANT OWNERSHIP ON ALL TABLES IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
61+
GRANT OWNERSHIP ON ALL VIEWS IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
5162

52-
-- Future privileges for tagging
63+
-- Future privileges for new objects
5364
GRANT SELECT ON FUTURE TABLES IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
54-
GRANT APPLY TAG ON FUTURE TABLES IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
65+
GRANT SELECT ON FUTURE VIEWS IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
66+
GRANT OWNERSHIP ON FUTURE TABLES IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
67+
GRANT OWNERSHIP ON FUTURE VIEWS IN SCHEMA your_database.your_schema TO ROLE DATAHUB_AUTOMATION_ROLE;
68+
-- Note: APPLY TAG is granted at ACCOUNT level above and applies to all objects
5569
```
5670

57-
## Enabling Snowflake Tag Sync
71+
## Enabling Snowflake Metadata Sync
5872

5973
1. **Navigate to Automations**: Click on 'Govern' > 'Automations' in the navigation bar.
6074

6175
<p align="center">
6276
<img width="20%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/automations-nav-link.png"/>
6377
</p>
6478

65-
2. **Create An Automation**: Click on 'Create' and select 'Snowflake Tag Propagation'.
79+
2. **Create An Automation**: Click on 'Create' and select 'Snowflake Metadata Sync'.
6680

6781
<p align="center">
68-
<img width="60%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-tag-propagation/automation-type.png"/>
82+
<img width="60%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-metadata-sync/automation-type.png"/>
6983
</p>
7084

7185
3. **Configure Automation**: Fill in the required fields to connect to Snowflake, along with the name, description, and category.
72-
Note that you can limit propagation based on specific Tags and Glossary Terms. If none are selected, then ALL Tags or Glossary Terms will be automatically
73-
propagated to Snowflake tables and columns. Finally, click 'Save and Run' to start the automation
86+
87+
**Authentication Options:**
88+
89+
- **Username/Password**: Traditional authentication using Snowflake username and password
90+
- **Private Key**: Key pair authentication using RSA private key (more secure for automated processes)
91+
92+
**Sync Options:**
93+
94+
- **Tags & Terms**: You can limit propagation based on specific Tags and Glossary Terms. If none are selected, then ALL Tags or Glossary Terms will be automatically propagated to Snowflake tables and columns.
95+
- **Descriptions**: Enable description sync to automatically update Snowflake table and column comments with DataHub descriptions.
96+
97+
Finally, click 'Save and Run' to start the automation
7498

7599
<p align="center">
76-
<img width="60%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-tag-propagation/automation-form.png"/>
100+
<img width="60%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-metadata-sync/automation-form.png"/>
77101
</p>
78102

79103
## Propagating for Existing Assets
@@ -102,10 +126,18 @@ The back-filling of tags will be available in a future release.
102126

103127
:::
104128

105-
## Viewing Propagated Tags
129+
## Viewing Synced Metadata
130+
131+
You can view propagated Tags, Terms, and updated Comments (and corresponding DataHub URNs) inside the Snowflake UI to confirm the automation is working as expected.
132+
133+
### Tags and Terms
134+
135+
Tags and glossary terms will appear as Snowflake tags on your tables and columns:
136+
137+
### Descriptions
106138

107-
You can view propagated Tags (and corresponding DataHub URNs) inside the Snowflake UI to confirm the automation is working as expected.
139+
DataHub descriptions will be synced as Snowflake comments on tables and columns, visible in the Snowflake UI and accessible via `SHOW TABLES` and `DESCRIBE TABLE` commands.
108140

109141
<p align="center">
110-
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-tag-propagation/view-snowflake-tags.png"/>
142+
<img width="70%" src="https://raw.githubusercontent.com/datahub-project/static-assets/main/imgs/automation/saas/snowflake-metadata-sync/view-snowflake-tags.png"/>
111143
</p>

0 commit comments

Comments
 (0)