Skip to content

Share a read-only summary of the connector's config (connector-issued keys only)

PUT
/connectors/config
curl --request PUT \
--url https://api.krakenkey.io/connectors/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "hash": "example", "version": "0.3.0", "checkIntervalSeconds": 3600, "plugins": [ { "name": "azure-keyvault", "version": "0.3.0", "source": "bundled" } ], "certificates": [ { "certificateId": 42, "names": [ "www.example.com" ], "keyStore": { "plugin": "azure-keyvault", "keyType": "ecdsa-p256", "settings": { "vault": "kv-prod", "certificate_name": "www" } }, "targets": [ { "label": "nginx-main", "plugin": "file", "implicit": true, "runsCommand": true, "verify": { "host": "www.example.com", "port": 443, "skipChainValidation": false }, "settings": { "vault": "kv-prod", "certificate_name": "www" } } ] } ], "truncated": false }'
Media typeapplication/json
object
hash
required

Sha256 (lowercase hex) of the canonical summary without this field

string
/^[0-9a-f]{64}$/
version
required
string
<= 64 characters
Example
0.3.0
checkIntervalSeconds
object
Example
3600
plugins
required
Array<object>
<= 50 items
object
name
required
string
Example
azure-keyvault
version
object
Example
0.3.0
source
required
string
Allowed values: bundled data_dir path builtin
certificates
required
Array<object>
<= 500 items
object
certificateId
required
number
Example
42
names
required
Array<string>
<= 100 items
Example
[
"www.example.com"
]
keyStore
required
object
plugin
required
string
Example
azure-keyvault
keyType
object
Example
ecdsa-p256
settings

Flat map of known-safe settings: keys match ^[a-z][a-z0-9_]{0,31}$, values are strings (at most 256 characters), booleans or finite numbers

object
<= 10 properties
key
additional properties
One of:
string
Example
{
"vault": "kv-prod",
"certificate_name": "www"
}
targets
required
Array<object>
<= 50 items
object
label
required
string
/^[A-Za-z0-9._-]{1,64}$/
Example
nginx-main
plugin
required
string
Example
file
implicit
required

Added by the connector rather than listed in the config

boolean
runsCommand
required

Runs a command after deploying, or is the exec target

boolean
verify
object
host
object
Example
www.example.com
port
object
Example
443
skipChainValidation
required
boolean
Example
false
settings

Flat map of known-safe settings: keys match ^[a-z][a-z0-9_]{0,31}$, values are strings (at most 256 characters), booleans or finite numbers

object
<= 10 properties
key
additional properties
One of:
string
Example
{
"vault": "kv-prod",
"certificate_name": "www"
}
truncated

True when the connector cut anything (certificates, targets, plugins, names or long setting values) to fit the limits

boolean

Stored, replacing the previous summary; certificates outside the connector restrictions are kept and flagged in the dashboard

Not a connector-issued key