Secrets
Connectors often connect to external entities such as databases
, message brokers
, or APIs
that require a confidential authentication key.
Connectors offers this facility through secrets.
Deploy connectors with a --secrets
flag to pass a file with the secrets definitions:
$ cdk deploy start --config sample-config.yaml --secrets secrets.txt
In the secrets file, you should define a secret per line in the format SECRET_NAME=SECRET_VALUE
:
SECRET_NAME=SECRET_VALUE
SECRET_NAME_2=SUPER_SECRET_VALUE
Todo Provide sample code on how to implement secrets in a custom connector.
In the next section we’ll publish our connector to the Hub.