From cd0b54b878cbbb4028f46cfd33e77140368bf093 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 27 Nov 2026 19:46:29 +1100 Subject: [PATCH] feat(connectors): declare the credential slots and settings the packages take Host, Telegram and Semaphore read credentials and settings their manifests never declared, so a packed artefact carried no grants and the catalogue could not grant the slot an operator has to fill. It is why `host` and `telegram` refused to install: archie-core #2151. The catalogue still needs republishing for these to reach a deployment. --- connectors/host/package.yaml | 8 ++++++++ connectors/semaphore/package.yaml | 15 +++++++++++++++ connectors/telegram/package.yaml | 9 +++++++++ 3 files changed, 32 insertions(+) diff --git a/connectors/host/package.yaml b/connectors/host/package.yaml index 316c424..e7b7e61 100644 --- a/connectors/host/package.yaml +++ b/connectors/host/package.yaml @@ -2,6 +2,14 @@ apiVersion: dev.archie.package.v1 displayName: Host description: Read-only lookups on configured hosts over SSH, plus typed actions (delete old files, enable or disable an allowed timer, set one config key), each judged on its declared effect. Pinned host keys and a machine credential in the ssh slot. version: 0.1.0 +grants: + credentials: [ssh] +settings: + - key: hosts + label: Hosts + description: The hosts it reaches, as JSON, each with its pinned host key and allowed paths. + required: true + type: text contributes: extensions: - surface: connector diff --git a/connectors/semaphore/package.yaml b/connectors/semaphore/package.yaml index f664e48..9a2ed1b 100644 --- a/connectors/semaphore/package.yaml +++ b/connectors/semaphore/package.yaml @@ -2,6 +2,21 @@ apiVersion: dev.archie.package.v1 displayName: Semaphore description: Launches the Semaphore job templates an operator declares, each judged on the effect declared for it. Settings name the base URL, project and templates; the api credential slot holds a bearer token. version: 0.1.0 +grants: + credentials: [api] +settings: + - key: base_url + label: Base URL + required: true + - key: project_id + label: Project + required: true + type: number + - key: templates + label: Templates + description: The job templates it may launch, as JSON. + required: true + type: text contributes: extensions: - surface: connector diff --git a/connectors/telegram/package.yaml b/connectors/telegram/package.yaml index 6efa841..c85a9ea 100644 --- a/connectors/telegram/package.yaml +++ b/connectors/telegram/package.yaml @@ -2,6 +2,15 @@ apiVersion: dev.archie.package.v1 displayName: Telegram description: Delivers messages and approval requests to the Telegram users an operator allows, turns their Approve and Deny taps into approval.answer events, and links their Telegram account to an Archie account through a /start code. The user_ids setting lists who may answer; the bot credential slot holds the bot token. version: 0.1.0 +grants: + egress: [api.telegram.org:443] + credentials: [bot] +settings: + - key: user_ids + label: User IDs + description: Telegram user IDs that may answer, separated by commas. + required: true + type: list contributes: extensions: - surface: connector