-
Notifications
You must be signed in to change notification settings - Fork 4
credential
credential
is the credential infomation that dm used to connect to service.
credential
including two parts: protocol
and value
which devided by :
.
We supports following credential
protocols.
hmac
has two values: access_key
and secret_key
.
format: hmac:<access_key>:<secret_key>
example: hmac:example_access_key:example_secret_key
apikey
has one value: api_key
.
format: apikey:<api_key>
example: apikey:example_api_key
file
has one value: file_path
, service will decide how to use this file.
format: file:<file_path>
example: file:/path/to/file
env
has no values, service will read credential from runtime environment.
format: env
exmaple: env
base64
has one value: base64
, storage service like gcs will take token files as input, we provide base64 protocol so that user can pass token binary data directly.
format: base64:<base64_content>
exmaple: base64:exmaple_base64_content