Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.91 KB

File metadata and controls

37 lines (27 loc) · 1.91 KB

Using templates to create Secretless Connector Plugins

We created the templates in this directory to make it easier to add new connectors to Secretless.

Before using the templates, be sure to read the Secretless Connector Plugins README

To create a new Secretless connector plugin, follow these instructions:

  1. Copy the relevant template directory (HTTP/TCP) into a folder on your local machine (or to internal/plugin/connectors/<connector_type> if you are building an internal connector).

    If you're not sure which connector type is appropriate for your target service, please refer to the connector technical overview for guidelines.

  2. Update the copied files to implement your connector. Each file includes instructions in the form of TODOs.

  3. (Internal Connectors Only) Add an entry to the Plugins map defined in GetInternalPluginsFunc() of internal_plugins.go, according to your connector type (HTTP/TCP)

  4. To test your connector, copy the template_connector_test directory onto your local machine.

    If you follow the TODO-based instructions included in the files in this directory, you will be able to write integration tests for your connector using docker-compose. The included test scripts & files will help you stand up networked containers with docker-compose.

    Note for internal connectors: The the test directory should be copied into test/connector/<connector type>/ and renamed to <connector_name>. The Jenkinsfile is set up to automatically run the integration tests from this directory with each project build.