Share a read-only summary of the connector's config (connector-issued keys only)
PUT
/connectors/config
const url = 'https://api.krakenkey.io/connectors/config';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
hash
required
Sha256 (lowercase hex) of the canonical summary without this field
string
version
required
string
Example
0.3.0checkIntervalSeconds
object
Example
3600plugins
required
Array<object>
object
name
required
string
Example
azure-keyvaultversion
object
Example
0.3.0source
required
string
certificates
required
Array<object>
object
certificateId
required
number
Example
42names
required
Array<string>
Example
[ "www.example.com"]keyStore
required
object
plugin
required
string
Example
azure-keyvaultkeyType
object
Example
ecdsa-p256targets
required
Array<object>
object
label
required
string
Example
nginx-mainplugin
required
string
Example
fileimplicit
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.comport
object
Example
443skipChainValidation
required
boolean
Example
falsetruncated
True when the connector cut anything (certificates, targets, plugins, names or long setting values) to fit the limits
boolean
Responses
Section titled “Responses”Stored, replacing the previous summary; certificates outside the connector restrictions are kept and flagged in the dashboard
Not a connector-issued key