Add Listmonk, Fider, Rallly and Notifuse (#41)

The apps held back until Cottage could send mail. Each sends through the owner's own provider; Fider, Rallly and Notifuse require a mail server because they sign people in only by email.
This commit is contained in:
michael authored and GitHub committed 2026-11-24 12:20:24 -05:00
1 parent 6a4a96e7ed
commit a227920f4a
22 files changed
+525 -13

No files matched your search

+4 -2
View File
@@ -38,8 +38,10 @@ for path in sorted(glob.glob("apps/*/template.yml")):
continue
if p.get("group") != "email":
bad.append(f"{path}: parameter {name}: needs group: email")
if p.get("editable") is not True or p.get("required"):
bad.append(f"{path}: parameter {name}: mail fields are editable and not required")
# Mail fields stay editable and optional, except that an app which signs people in only
# by email may require SMTP_HOST, so it can't be deployed without a mail provider.
if p.get("editable") is not True or (p.get("required") and name != "SMTP_HOST"):
bad.append(f"{path}: parameter {name}: mail fields are editable, and only SMTP_HOST may be required")
if p.get("generate"):
bad.append(f"{path}: parameter {name}: mail fields are never generated")
for k, v in want.items():
+15 -3
View File
@@ -20,10 +20,22 @@ if ! out=$(curl -sS --fail-with-body -H "Authorization: Bearer $HARBOR_TOKEN" -X
echo "$slug: the platform refused template.yml: $out"; exit 1
fi
version=$(api "$HARBOR_URL/v1/templates?slug=$slug" | json "sorted(d['data'], key=lambda t: t['created_at'])[-1]['version']")
health=$(api "$HARBOR_URL/v1/templates/$slug?version=$version" | json "d.get('health_path','/')")
tpl=$(api "$HARBOR_URL/v1/templates/$slug?version=$version")
health=$(printf %s "$tpl" | json "d.get('health_path','/')")
ref="smoke-$slug-$$"
pod=$(api -X POST -H "Idempotency-Key: $ref" -d "{\"slug\":\"smoke-$$\",\"external_ref\":\"$ref\",\"template\":\"$slug\",\"template_version\":\"$version\"}" \
"$HARBOR_URL/v1/pods" | json "d['pod']['id']")
# Settings the owner must fill in (required, no default) get harmless placeholders: an
# example.com address for email fields, an unreachable .invalid host for anything else.
body=$(printf %s "$tpl" | SLUG="smoke-$$" REF="$ref" TEMPLATE="$slug" VERSION="$version" python3 -c '
import json, os, sys
t = json.load(sys.stdin)
params = {}
for p in t.get("parameters") or []:
if p.get("required") and not p.get("default") and not p.get("generate"):
k = p["key"]
params[k] = "1" if p.get("type") == "int" else ("[email protected]" if "EMAIL" in k else "placeholder.invalid")
print(json.dumps({"slug": os.environ["SLUG"], "external_ref": os.environ["REF"], "template": os.environ["TEMPLATE"],
"template_version": os.environ["VERSION"], "params": params}))')
pod=$(api -X POST -H "Idempotency-Key: $ref" -d "$body" "$HARBOR_URL/v1/pods" | json "d['pod']['id']")
trap 'api -X DELETE "$HARBOR_URL/v1/pods/$pod?purge=true" >/dev/null || true' EXIT
for _ in $(seq 1 60); do