You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/tutorials/just-in-time-part2.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,21 @@ This tutorial skips the Bytebase setup part, if you haven't set up the Bytebase
37
37
38
38
Before you begin, make sure you have:
39
39
40
-
- Docker installed
40
+
-[Docker](https://www.docker.com/) installed
41
41
- Slack workspace
42
42
- VS Code for port forwarding
43
43
44
+
## Overall Workflow
45
+
46
+
1. Create a Slack app. The Slack app listens on the webhook notification when someone submits a database access request.
47
+
1. Upon receiving the webhook event, the Slack app will present a message card in the configured channel with request details and approve/deny buttons.
48
+
1. Upon clicking the approve/deny button, the Slack app will call the corresponding Bytebase API to approve/deny the request.
49
+
44
50
## Step 1 - Finished the previous tutorial
45
51
46
52
Make sure you finished the [previous tutorial](/docs/tutorials/just-in-time-part1) and have the Bytebase instance running. Particularly, pay attention to **Step 4**, which is to request JIT access via Bytebase GUI.
47
53
48
-
The `Request role` feature is supported by **Enterprise Plan** which will be needed for this tutorial, other plans only allow the `Assign role` feature which is not enough. You may request a trial from [here](https://www.bytebase.com/contact-us/).
54
+
The `Request role` feature is supported by **Enterprise Plan** which will be needed for this tutorial, other plans only allow the `Assign role` feature which is not enough. You may request a trial from [here](https://www.bytebase.com/contact-us/).
49
55
50
56
## Step 2 - Register a service account in Bytebase
51
57
@@ -61,7 +67,7 @@ The `Request role` feature is supported by **Enterprise Plan** which will be ne
61
67
1. By using VS Code's [Port forwarding](https://code.visualstudio.com/docs/editor/port-forwarding), you can forward the local server's ports:
1. Copy the 8080 port forwarded address to the `.env.local` file as `BB_HOST`.
66
72
1. Also, go to Bytebase, click **Settings > General** to set the address as **External URL**.
67
73
@@ -116,4 +122,4 @@ If digging into the code is your interest, here is a brief explanation of the co
116
122
117
123
## Conclusion
118
124
119
-
In this tutorial, you learned how to set up JIT access via Slack with the help of Bytebase webhooks and APIs. In the next part, we will cover how to request JIT access via Slack.
125
+
In this tutorial, you learned how to set up JIT access via Slack with the help of Bytebase webhooks and APIs. In the next part, we will cover how to request JIT access via Slack.
0 commit comments