fix(connector): declare operator settings in Describe

The contract has carried a settings list since the schema was added, but the
SDK never filled it, so a host received an empty declaration: every setting an
operator entered was refused as one the extension doesn't declare, and a
connector that needs any setting could not start at all.

Host, Telegram and Semaphore now declare the keys they already read.
This commit is contained in:
sam committed 2026-11-27 20:00:48 +11:00
1 parent 4400b6df6e
commit 33890d3b52
5 files changed
+24 -3

No files matched your search

+6 -1
View File
@@ -95,7 +95,12 @@ func newHost(cfg connector.Config) (*host, error) {
}
func (h *host) Describe() connector.Description {
return connector.Description{Actions: h.actionTypes(), Lookups: []*connectorv1.LookupType{
return connector.Description{
Settings: []*connectorv1.Setting{{
Key: "hosts", Label: "Hosts", Required: true, Type: connectorv1.SettingType_SETTING_TYPE_TEXT,
Description: "The hosts it reaches, as JSON, each with its pinned host key and allowed paths.",
}},
Actions: h.actionTypes(), Lookups: []*connectorv1.LookupType{
{
Name: "filesystem_usage",
Description: "Size, used and available bytes and inode use of the filesystem holding a path on a host.",