Skip to content

Commit 7b276b0

Browse files
committed
chore: do not show general icon
1 parent 2b33653 commit 7b276b0

11 files changed

+28
-25
lines changed

content/docs/tutorials/api-audit-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Audit Database Activities with Bytebase API
33
author: Ningjing
44
updated_at: 2024/09/23 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '40 mins'
99
description: 'Learn how to use the Bytebase API to fetch audit log in Bytebase'

content/docs/tutorials/api-issue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Deploy Schema Migration with Bytebase API
33
author: Ningjing
44
updated_at: 2023/12/21 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '30 mins'
99
description: "In this tutorial, you will test a sample application that utilizes the Bytebase API to create a change. By following the instructions, you'll gain hands-on experience in running the application and initiating a change using the Bytebase API."

content/docs/tutorials/api-sql-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Codify SQL Review Policies with Bytebase API
33
author: Ningjing
44
updated_at: 2024/11/12 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '40 mins'
99
description: 'Learn how to use the Bytebase API to configure SQL review rules in Bytebase'

content/docs/tutorials/api-user-database-permission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Inspect User and Database Permissions with Bytebase API
33
author: Ningjing
44
updated_at: 2024/09/12 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '40 mins'
99
description: 'Learn how to use the Bytebase API to inspect user and database permissions.'

content/docs/tutorials/database-change-management-with-github-using-bytebase-cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: Ningjing
44
updated_at: 2024/05/11 16:15
55
feature_image: /content/docs/tutorials/database-change-management-with-github-using-bytebase-cloud/feature-image.webp
66
tags: Tutorial
7-
integrations: General, GitHub
7+
integrations: GitHub
88
level: Intermediate
99
estimated_time: '30 mins'
1010
description: Bytebase provide its SaaS version since 1.15.0, this tutorial will bring your schema change to the next level by introducing the GitOps workflow, where you commit schema change script to the GitHub repository, which will, in turn, trigger the schema deployment pipeline in Bytebase Cloud.

content/docs/tutorials/github-action-data-masking-part1.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Applying Data Masking with GitHub Actions - Part 1'
33
author: Ningjing
44
updated_at: 2024/11/19 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '30 mins'
99
description: 'Learn how to automate database masking policies using GitHub Actions and Bytebase API'
@@ -89,43 +89,43 @@ Let's dig into the GitHub Actions workflow [code](https://github.com/bytebase/da
8989

9090
## Column Masking
9191

92-
[Column Masking](/docs/security/data-masking/column-masking/) lets you specify table columns different Masking Level to mask the data.
92+
[Column Masking](/docs/security/data-masking/column-masking/) lets you specify table columns different Masking Level to mask the data.
9393

9494
In Bytebase console, go to a database page, then pick a table, you can specify masking level by clicking pen icon on table detail page.
9595

9696
In the GitHub workflow, find the step `Apply column masking`, which will apply the column masking to the database via API. First it will parse all the column masking files and then do a loop to apply the column masking to the database one by one. The code it calls Bytebase API is as follows:
9797

98-
```bash
99-
response=$(curl -s -w "\n%{http_code}" --request PATCH "${BYTEBASE_API_URL}/instances/${INSTANCE_NAME}/databases/${DATABASE_NAME}/policies/masking?allow_missing=true&update_mask=payload" \
100-
--header "Authorization: Bearer ${BYTEBASE_TOKEN}" \
101-
--header "Content-Type: application/json" \
102-
--data @"$CHANGED_FILE")
103-
```
98+
```bash
99+
response=$(curl -s -w "\n%{http_code}" --request PATCH "${BYTEBASE_API_URL}/instances/${INSTANCE_NAME}/databases/${DATABASE_NAME}/policies/masking?allow_missing=true&update_mask=payload" \
100+
--header "Authorization: Bearer ${BYTEBASE_TOKEN}" \
101+
--header "Content-Type: application/json" \
102+
--data @"$CHANGED_FILE")
103+
```
104104

105105
By changing file `masking/databases/**/**/column-masking.json`, create a PR and then merge, the change will be applied to the database.
106106

107107
Log in Bytebase console, at the workspace level, click **Data Access > Data Masking**. Click **Explicit Masked Columns**, you can see the column masking is applied to the database.
108108

109-
![bb-column-masking](/content/docs/tutorials/github-action-data-masking-part1/bb-column-masking.webp)
109+
![bb-column-masking](/content/docs/tutorials/github-action-data-masking-part1/bb-column-masking.webp)
110110

111111
## Access Unmasked Data
112112

113113
[Access Unmasked Data](/docs/security/data-masking/access-unmasked-data/) lets you relax the masking levels for the users. Full masked column to partial or partial masked column to none.
114114

115115
In the GitHub workflow, find the step `Apply masking exception`, which will apply the masking exception to the database and the process is similar, the code it calls Bytebase API is as follows:
116116

117-
```bash
118-
response=$(curl -s -w "\n%{http_code}" --request PATCH "${BYTEBASE_API_URL}/projects/${PROJECT_NAME}/policies/masking_exception?allow_missing=true& update_mask=payload" \
119-
--header "Authorization: Bearer ${BYTEBASE_TOKEN}" \
120-
--header "Content-Type: application/json" \
121-
--data @"$CHANGED_FILE")
122-
```
117+
```bash
118+
response=$(curl -s -w "\n%{http_code}" --request PATCH "${BYTEBASE_API_URL}/projects/${PROJECT_NAME}/policies/masking_exception?allow_missing=true& update_mask=payload" \
119+
--header "Authorization: Bearer ${BYTEBASE_TOKEN}" \
120+
--header "Content-Type: application/json" \
121+
--data @"$CHANGED_FILE")
122+
```
123123

124124
By changing file `masking/projects/**/masking-exception.json`, create a PR and then merge, the change will be applied to the database.
125125

126126
Log in Bytebase console, go to the project `Sample Project`, click **Database > Masking Access**, you can see the masking exception is applied to the database.
127127

128-
![bb-masking-exception](/content/docs/tutorials/github-action-data-masking-part1/bb-masking-exception.webp)
128+
![bb-masking-exception](/content/docs/tutorials/github-action-data-masking-part1/bb-masking-exception.webp)
129129

130130
## Next Steps
131131

content/docs/tutorials/github-action-data-masking-part2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Applying Data Masking with GitHub Actions - Part 2'
33
author: Ningjing
44
updated_at: 2024/11/25 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '30 mins'
99
description: 'Learn how to automate database masking algorithm and semantic types using GitHub Actions and Bytebase API'

content/docs/tutorials/github-action-data-masking-part3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Applying Data Masking with GitHub Actions - Part 3'
33
author: Dec
44
updated_at: 2024/12/04 18:00
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Advanced
88
estimated_time: '30 mins'
99
description: 'Learn how to use data classification and global masking policy using GitHub Actions and Bytebase API'

content/docs/tutorials/just-in-time-database-access-part2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Approve Just-in-Time database access via Slack'
33
author: Ningjing
44
tags: Tutorial
55
updated_at: 2024/12/11 18:15
6-
integrations: General, Slack
6+
integrations: Slack
77
level: Advanced
88
estimated_time: '30 mins'
99
description: 'In this tutorial, we will demonstrate how to automate JIT access via Slack, utilizing Bytebase webhooks and API'

content/docs/tutorials/sql-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'Master SQL Review with GUI, GitOps and API'
33
author: Ningjing
44
updated_at: 2024/08/14 16:15
55
tags: Tutorial
6-
integrations: General, API
6+
integrations: API
77
level: Intermediate
88
estimated_time: '40 mins'
99
description: This tutorial will walk you through using SQL Review in Bytebase to improve your database schema change process.

0 commit comments

Comments
 (0)