Slack 앱(App) 만들기

Slack 앱(App) 만들기

Vault Radar 알림을 Slack으로 보내려면 먼저 HCP Vault Radar Slack 앱을 만들어 워크스페이스에 설치해야 해요. 이 페이지에서 Slack 앱을 만드는 방법을 단계별로 안내해 드릴게요.

출처: 문서

본문

Slack 앱

  • Slack 앱 생성 페이지를 방문합니다.
  • Create New App 버튼을 클릭합니다.
  • From an app manifest 옵션을 클릭합니다.
  • 워크스페이스를 선택하고 Next를 클릭합니다.

다음 앱 매니페스트(app manifest)를 json 입력란에 복사하여 붙여넣습니다:

{
    "display_information": {
        "name": "HashiCorp Vault Radar",
        "description": "Pipeline Security Tools",
        "background_color": "#2b2b2b",
        "long_description": "What if code security could be improved with the same techniques we use to improve code quality? Tests and code coverage reports integrated in our workflows giving us quick feedback on PRs and in our IDEs have helped us build better, faster, and more maintainable code together, and now it’s time to do the same to improve security."
    },
    "features": {
        "bot_user": {
            "display_name": "HashiCorp Vault Radar",
            "always_online": false
        }
    },
    "oauth_config": {
        "scopes": {
            "bot": [
                "chat:write",
                "incoming-webhook"
            ]
        }
    },
    "settings": {
        "org_deploy_enabled": false,
        "socket_mode_enabled": false,
        "token_rotation_enabled": false
    }
}
  • Next를 클릭합니다.
  • 권한이 아래 표시된 이미지와 일치하는지 확인하고 Create를 클릭합니다.
  • Install to Workspace 버튼을 클릭합니다.
  • 채널을 선택하고 Allow를 클릭합니다.
  • Slack 채널로 이동하여 앱의 링크를 클릭합니다.

[!WARNING] Vault Radar 앱의 링크를 클릭하지 않고 나머지 단계를 진행하면, HCP Portal에서 통합 구독을 만들 때 오류 메시지를 받게 됩니다.

  • Add this app to a channel을 클릭합니다.
  • 드롭다운에서 채널을 선택하고 Add를 클릭합니다.
  • 앱이 추가되었는지 확인합니다.

이제 Vault Radar Slack 앱이 생겼으므로 연결(connection)을 만들 수 있습니다.

더 알아보기 (Learn more)