cyberark/secretless-broker

View on GitHub
examples/generic_connector_configs/slack_secretless.yml

Summary

Maintainability
Test Coverage
version: 2
services:
  slack-form-urlencoded:
    connector: generic_http
    listenOn: tcp://0.0.0.0:9030
    credentials:
      token:
        from: keychain
        get: service#slack/temp-token
    config:
      headers:
        Authorization: Bearer {{ .token }}
        Content-type: application/x-www-form-urlencoded
      forceSSL: true
      authenticateURLsMatching:
        - ^http[s]*\:\/\/slack\.com\/api*
  slack-json:
    connector: generic_http
    listenOn: tcp://0.0.0.0:9040
    credentials:
      token:
        from: keychain
        get: service#slack/temp-token
    config:
      headers:
        Authorization: Bearer {{ .token }}
        Content-type: application/json; charset=utf-8
      forceSSL: true
      authenticateURLsMatching:
        - ^http[s]*\:\/\/slack\.com\/api*