Add telegram and the desk as channels of their own, each judging nothing and holding only its own secret (hq ADR 0259)

This commit is contained in:
jochen
2026-10-09 17:08:17 +02:00
committed by jschoubben
parent 8754de747d
commit a412389725
16 changed files with 2220 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
{
"module": "telegram",
"version": "1",
"slug": "tgrm",
"claims": [
{
"name": "channel",
"scope": "mesh",
"kind": "telegram",
"capabilities": [
"deliver",
"reaches-away",
"silent",
"edit",
"max-length:4096",
"choice",
"verified-sender",
"exact-render",
"code-factor"
]
},
{
"name": "intake",
"scope": "mesh",
"kind": "telegram"
}
],
"state": [
"offset",
{
"name": "messages",
"ttl-seconds": 2592000
}
],
"own-secrets": {
"telegram-token": "${dir:state}/telegram-token"
},
"secrets-owner": "telegram",
"tools": [
"telegram_status"
],
"resources": [
{
"id": "account",
"type": "user",
"name": "telegram",
"shell": "/usr/bin/nologin",
"home": "/var/lib/telegram"
},
{
"id": "state",
"type": "directory",
"mode": "0700",
"owner": "telegram",
"place": "."
}
],
"build": {
"artifacts": [
{
"name": "tools",
"kind": "bundle",
"language": "go",
"system": "arch",
"from": "cmd/telegram",
"binary": "telegram",
"loads": [
"telegram"
],
"env": {
"MESH_RUN_AS": "telegram",
"MESH_TELEGRAM_TOKEN_FILE": "${dir:state}/telegram-token"
}
}
]
}
}