22 Commits
Author SHA1 Message Date
sam 87337522df docs(telegram): plain the deliver comment (#2085)
publish / publish (push) Successful in 1m17s
2026-11-21 15:21:51 +11:00
sam 6fec20896b feat(telegram): declare the chat_message delivery (#2085) 2026-11-21 15:18:07 +11:00
sam 6d2363cf11 docs(telegram): plain the permanent-failure comments (#2016)
publish / publish (push) Successful in 3m6s
2026-11-21 14:50:41 +11:00
sam a69f71363f fix(telegram): a message Telegram refuses is a permanent failure, not retried (#2016) 2026-11-21 13:45:59 +11:00
sam 48019ec868 fix(telegram): a long message goes out in parts instead of failing for ever
publish / publish (push) Successful in 1m22s
The connector sent title and body as one sendMessage, so any notification
over Telegram's 4096 UTF-16 unit limit was refused with 'message is too
long' and, because a delivery is retried until the channel confirms it,
retried every ten minutes for ever without ever arriving. The chat channel
had its own splitter; both now share one in sdk/telegramtext, which counts
UTF-16 units rather than runes so an emoji-heavy body isn't over the limit
either.
2026-11-18 00:36:44 +11:00
sam 554fe5891f feat(connectors/servicenow): declare the api credential slot and support bearer auth
The manifest now carries an authority block naming the api credential
service, so the marketplace view shows the slot instead of relying on
the description text. The client takes the full Authorization header:
the api slot accepts a basic username/password or a bearer token,
setting both is an error. Egress stays operator-supplied at accept time
because the instance host comes from the instance_url setting, which a
static egressHosts list cannot express.
2026-11-16 21:52:59 +11:00
sam 541b7a46e0 fix(connectors/servicenow): match the real Table API, verified against a PDI
Live testing against dev483891 surfaced four gaps the fake hid: write
responses wrap the row in result, reference fields come back as
display_value objects without display_value=true, the blackout table is
cmn_schedule_span (spans of schedule.type=blackout), not cmn_blackout,
and an approval updates sys_updated_on without moving sys_id, so the
poll cursor is now sys_updated_on|sys_id bounded above by the current
time. Approval values are compared case-insensitively. Adds a regression
test for the in-place approval. All lookups, deliveries and the
approved/rejected event path verified live; test rows cleaned up.
2026-11-16 21:15:25 +11:00
sam 110b28e62a feat(connectors): the ServiceNow connector, one file per area (archie #1983)
client.go holds the Table API client (instance URL setting, basic
credential in the api slot). incident.go delivers create/update with a
note and polls incident.updated. change.go raises and withdraws change
requests idempotently on correlation_id and turns approvals into
change.approved and change.rejected events. cmdb.go resolves owner,
delegate, support group, environment and data class through
cmdb_ci_server, cmdb_ci_appl then cmdb_ci. calendar.go answers active
blackouts for the Timing guard. listen.go polls both tables with a
chg/inc cursor. Built against a developer instance; tests fake the
Table API.
2026-11-16 19:49:51 +11:00
sam af379c0532 feat(host): typed host actions: delete old files, enable and disable an allowed timer, set one config key (archie #1982)
publish / publish (push) Successful in 1m10s
2026-11-16 04:51:52 +11:00
sam 89ea431ea1 feat(semaphore,telegram): a template's summary fills in this action's values, and a tapped request loses its buttons (archie #1984, #2001)
publish / publish (push) Successful in 1m14s
2026-11-16 04:51:23 +11:00
sam 79047f9617 feat(incus): a connector that lists containers, runs allow-listed read-only commands, snapshots them and deletes confined caches (archie #1981)
publish / publish (push) Successful in 5m18s
2026-11-16 04:30:38 +11:00
sam 13f6c420d5 feat(sdk,telegram): Deliver and Listen in the connector contract, and a Telegram connector that delivers approval requests and listens for answers (archie #1984)
publish / publish (push) Successful in 1m11s
2026-11-16 04:22:48 +11:00
sam 53ba618b0b fix(sdk,semaphore): an action that may have run is an unknown outcome, not an error; retry a failed task status read (archie #2001)
publish / publish (push) Successful in 1m12s
2026-11-16 03:57:20 +11:00
sam 8df55d3225 fix(semaphore): refuse a template that would run on every host, and pass only declared variables (archie #2001)
publish / publish (push) Successful in 1m42s
2026-11-16 01:24:02 +11:00
sam f9234574bb feat(connectors): Semaphore connector, launching declared job templates once per idempotency key (archie #2001)
publish / publish (push) Successful in 1m6s
Each template the operator declares becomes an action with the effect declared
for it, so judgement decides on the declaration. A launch carries Archie's
idempotency key in the task message; invoking again finds that task instead of
launching another, so a resumed run never launches twice. A task that ends in
error is a known failure; one still running at the deadline is unknown.
2026-11-16 01:12:17 +11:00
sam 2928bdb682 fix(host): confine lookups to each host's configured path roots
publish / publish (push) Successful in 1m6s
Lookups run no guards and the helpers read as root, so an instruction injected
into an event could steer the agent into listing anywhere on the host. Each
host now names the roots its lookups may look under, and any other path is
refused before a command is built.
2026-11-16 00:42:48 +11:00
sam d74535c0d3 chore: use generic host names in test fixtures
publish / publish (push) Successful in 1m4s
2026-11-16 00:13:06 +11:00
sam b98620cc5b feat(host): root-owned read-only helpers behind a narrow sudo rule, and the target host's requirements
publish / publish (push) Successful in 1m4s
2026-11-15 23:11:18 +11:00
sam 645d514d11 fix(host): pin the host key's algorithm, so a host holding several keys matches its pin
publish / publish (push) Successful in 1m9s
2026-11-15 22:20:05 +11:00
sam 34bd70f1c1 feat(connectors): host connector with read-only SSH lookups; sops engine on the sops library
publish / publish (push) Successful in 2m53s
The host connector answers filesystem_usage, directory_sizes and old_files on
configured hosts over SSH with pinned host keys, dialling through the egress
tunnel when confined. The sops engine decrypts with the sops library instead
of the CLI, takes its file from settings and an age identity from its secrets.
2026-11-15 22:14:26 +11:00
sam 2c8bef237f refactor(connector): the SDK and Alertmanager connector use encoding/json/v2 and jsontext (archie #1980)
publish / publish (push) Successful in 56s
2026-11-15 18:11:38 +11:00
sam 7fd7a4104b feat(connector): the connector.v1 SDK and an Alertmanager connector (archie #1980)
publish / publish (push) Successful in 1m50s
2026-11-15 17:58:18 +11:00