mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
Merge pull request #2453 from Infisical/misc/slack-doc-and-admin-page-updates
misc: updates to admin slack integration page and docs
This commit is contained in:
@@ -5,9 +5,11 @@ description: "Learn how to setup Slack integration"
|
|||||||
|
|
||||||
This guide will provide step by step instructions on how to configure Slack integration for your Infisical projects.
|
This guide will provide step by step instructions on how to configure Slack integration for your Infisical projects.
|
||||||
|
|
||||||
|
## Setting up Slack integration in your projects
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab title="Infisical Cloud">
|
<Tab title="Infisical Cloud">
|
||||||
## Create Slack workflow integration
|
### Create Slack workflow integration
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Navigate to the Workflow Integrations tab in your organization settings">
|
<Step title="Navigate to the Workflow Integrations tab in your organization settings">
|
||||||
In order to use Slack integration in your projects, you will first have to
|
In order to use Slack integration in your projects, you will first have to
|
||||||
@@ -32,7 +34,7 @@ This guide will provide step by step instructions on how to configure Slack inte
|
|||||||
|
|
||||||
</Steps>
|
</Steps>
|
||||||
|
|
||||||
## Configure project to use Slack workflow integration
|
### Configure project to use Slack workflow integration
|
||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Navigate to the Workflow Integrations tab in the project settings">
|
<Step title="Navigate to the Workflow Integrations tab in the project settings">
|
||||||
@@ -56,7 +58,7 @@ This guide will provide step by step instructions on how to configure Slack inte
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="Self-hosted setup">
|
<Tab title="Self-hosted setup">
|
||||||
## Configure admin settings
|
### Configure admin settings
|
||||||
Note that this step only has to be done once for the entire instance.
|
Note that this step only has to be done once for the entire instance.
|
||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
@@ -90,7 +92,7 @@ This guide will provide step by step instructions on how to configure Slack inte
|
|||||||
|
|
||||||
</Steps>
|
</Steps>
|
||||||
|
|
||||||
## Create Slack workflow integration
|
### Create Slack workflow integration
|
||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Navigate to the Workflow Integrations tab in your organization settings">
|
<Step title="Navigate to the Workflow Integrations tab in your organization settings">
|
||||||
@@ -116,7 +118,7 @@ This guide will provide step by step instructions on how to configure Slack inte
|
|||||||
|
|
||||||
</Steps>
|
</Steps>
|
||||||
|
|
||||||
## Configure project to use Slack workflow integration
|
### Configure project to use Slack workflow integration
|
||||||
|
|
||||||
<Steps>
|
<Steps>
|
||||||
<Step title="Navigate to the Workflow Integrations tab in the project settings">
|
<Step title="Navigate to the Workflow Integrations tab in the project settings">
|
||||||
@@ -140,3 +142,23 @@ This guide will provide step by step instructions on how to configure Slack inte
|
|||||||
|
|
||||||
</Tab>
|
</Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
|
## Using the Slack integration in your private channels
|
||||||
|
|
||||||
|
<Steps>
|
||||||
|
<Step title="In the Apps section on Slack, find the Infisical app and view the app details">
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
<Step title="Select Add this app to a channel">
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
<Step title="Find the private channel you want to setup notifications for and press Add">
|
||||||
|

|
||||||
|
You can now view the private channels in the Slack channel selection fields!
|
||||||
|

|
||||||
|
</Step>
|
||||||
|
</Steps>
|
||||||
|
|||||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 670 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 736 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 506 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
@@ -5,6 +5,7 @@ import { z } from "zod";
|
|||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
import { createNotification } from "@app/components/notifications";
|
||||||
import { Button, FormControl, Input } from "@app/components/v2";
|
import { Button, FormControl, Input } from "@app/components/v2";
|
||||||
|
import { useToggle } from "@app/hooks";
|
||||||
import { useGetAdminSlackConfig, useUpdateServerConfig } from "@app/hooks/api";
|
import { useGetAdminSlackConfig, useUpdateServerConfig } from "@app/hooks/api";
|
||||||
|
|
||||||
const slackFormSchema = z.object({
|
const slackFormSchema = z.object({
|
||||||
@@ -65,6 +66,8 @@ export const IntegrationPanel = () => {
|
|||||||
|
|
||||||
const { data: adminSlackConfig } = useGetAdminSlackConfig();
|
const { data: adminSlackConfig } = useGetAdminSlackConfig();
|
||||||
const { mutateAsync: updateAdminServerConfig } = useUpdateServerConfig();
|
const { mutateAsync: updateAdminServerConfig } = useUpdateServerConfig();
|
||||||
|
const [isSlackClientIdFocused, setIsSlackClientIdFocused] = useToggle();
|
||||||
|
const [isSlackClientSecretFocused, setIsSlackClientSecretFocused] = useToggle();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (adminSlackConfig) {
|
if (adminSlackConfig) {
|
||||||
@@ -120,6 +123,9 @@ export const IntegrationPanel = () => {
|
|||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
value={field.value || ""}
|
value={field.value || ""}
|
||||||
|
type={isSlackClientIdFocused ? "text" : "password"}
|
||||||
|
onFocus={() => setIsSlackClientIdFocused.on()}
|
||||||
|
onBlur={() => setIsSlackClientIdFocused.off()}
|
||||||
onChange={(e) => field.onChange(e.target.value)}
|
onChange={(e) => field.onChange(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
@@ -138,6 +144,9 @@ export const IntegrationPanel = () => {
|
|||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
value={field.value || ""}
|
value={field.value || ""}
|
||||||
|
type={isSlackClientSecretFocused ? "text" : "password"}
|
||||||
|
onFocus={() => setIsSlackClientSecretFocused.on()}
|
||||||
|
onBlur={() => setIsSlackClientSecretFocused.off()}
|
||||||
onChange={(e) => field.onChange(e.target.value)}
|
onChange={(e) => field.onChange(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user