Deploy now waits while an image's own HEALTHCHECK says "starting" and
stops on "unhealthy" with the check and its result, since traefik doesn't
route unhealthy containers (it used to say "Updated"); an update rolls
back, a first install says it stays installed, and a rollback waits until
the old version is routed again. coreapp signin follows a page's one
"Core SSO" or "Authelia" link, prints the app's visible error when it
doesn't end signed in, and has --help. The skill covers 127.0.0.1 among
trusted proxies, the image's HEALTHCHECK, COPY --chmod, $TMPDIR outside
the sandbox, patching an app's OIDC code for userinfo claims, and testing
a new account's first sign-in. PLAN: ID-token claims for Federated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skill, sign-in.md and the porting checklist say to name the sign-in
provider or button "Core SSO" or "Authelia", so it reads the same in every
app; the sso examples' link says "Sign in with Core SSO".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A rehearsal porting listmonk (postgres, sso, email) deployed it, signed
in, and read its opt-in mail with coreapp inbox. The name refusal said the
Core "already has" listmonk when it's Federated's uninstalled app; it now
says so, and coreapp core lists the names apps can't use. The porting
checklist moves to references/porting.md, adding settings kept in the
app's database, upstream entrypoints that assume root, and min_version
from the app's documented minimum. sign-in.md: the admin rule in an
upstream image, and when --form isn't needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mail an app sends to coreapp.test@<domain> (resets, invitations,
notifications) is now delivered: the account gets mailEnabled and a
homeDirectory (from extensibleObject, so it takes no uidNumber Superpanel
would give a person), older accounts on their next use. coreapp inbox
shows the newest 10 messages with their text (HTML as text, with links'
addresses); --clear empties it; removing the account removes its mail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapp.toml's [postgres] or [mysql] min_version: the installer compares
it with the Core's PostgreSQL or MariaDB on install and update, and
refuses an older Core with both versions, instead of the app failing
later. coreapp core reads the versions the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapp.toml's [postgres] extensions = ["vector"]: the installer checks
the Core's PostgreSQL has each one (refusing before anything changes if
not) and makes them in the app's database as the superuser, with CASCADE,
on install and every update. Ones taken off the list are kept, since the
data may use them. Also fixes the check refusing needs with both postgres
and mysql, which never ran.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SKILL.md keeps what every app needs; sign-in details and publishing move
to references/sign-in.md and references/publishing.md, read when it says.
A Miniflux rehearsal found coreapp signin calling a quiet callback failure
"Signed in": it now checks the app's page doesn't offer sign-in again.
Every app gets CORE_PROXY (traefik's address). The skill says groups is
null (don't map roles from it), claims come from userinfo, and to wait
for Authelia's discovery and the database at startup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Taking sso or email out of needs removes the client or mail account once
the new version answers; postgres or mysql need --drop-database (coreapp
deploy asks for the app's name). Their settings leave .env first, so a
postgres -> mysql switch gets mysql's own values; a failed update rolls
back with them intact. The route wait now compares traefik's answer with
the app's own, so an app's 404 isn't taken for a missing route.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before dumping the app's database for a rollback, coreapps reads its size
and refuses the update, changing nothing, if the apps' disk can't hold
the copy and keep 1 GB free; big databases say the copy takes a while.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapp mail shows what the Core's mail server did with the app's mail
(from its log: accepted, delivered, deferred or bounced). Deploy waits
until traefik routes the public address, so it doesn't answer 404 just
after "Updated". The skill's settings rules no longer contradict, the
lowest role means read-only, the Core's admin gets no local password or
reset, and SQLite may need allowing in an app's multi-user edition.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapp core prints what the Core in the VM offers apps, live: PostgreSQL
and which extensions an app can enable itself (the trusted ones; pgvector
needs a superuser), MariaDB, Authelia, the mail server, Traefik, Docker
and the machine. The skill has the same table with today's versions and
says to check the app's requirements against it before choosing a need.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rerun found Supermarket needs PostgreSQL 18 while the Core runs 17.6,
which nothing had shown. The skill now gives the version and says to
check the app's; coreapp status shows the Core's PostgreSQL/MariaDB
version. Deploy's health check sends the app's Host, as traefik does; a
same-version deploy says so. The skill covers making the owner at
startup, building settings in the app's config loader, and checking mail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every app's .env gets CORE_ADMIN_EMAIL (admin@<domain>, the Core's own
admin, as Federated's apps use). The skill says apps make that account an
admin on each Core sign-in, trusting only Authelia's email, instead of a
setup link; the sso example apps show the check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After pulling a release, coreapps records its registry digest and runs
image:version@sha256:..., so a re-pushed tag can't change an installed
app; installing that release again with another digest is refused. An
older release than the installed one needs --downgrade (coreapps
install/plan, coreapp install), since it may not understand the newer
one's data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An agent ported Supermarket with only the skill. coreapp signin now
presses a sign-in page's button (a form with only hidden fields; --form
picks one), every app gets CORE_DOMAIN, and the skill covers apps that
also run elsewhere, IMAGE_VERSION instead of build args, deriving keys
from APP_SECRET, the first admin, apps with their own client setup, and
that the groups claim is empty on today's Cores.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Vikunja rehearsal's agent could only test sign-in against a stand-in
Authelia. coreapp signin follows the app's sign-in through the Core's real
Authelia as a test person (coreapp.test, made by coreapps test-account
with a new random password each run, kept nowhere), prints each step with
Authelia's errors, and says whether it got back to the app signed in.
--code covers apps that start sign-in in the browser.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A rehearsal with Vikunja showed apps with their own redirect path or no
PKCE needed a bridge in the container. coreapp.toml's [sso] now sets the
Authelia client's callback, PKCE and token method; changes re-register
the client, and a failed update restores it. The skill covers [sso],
images without a shell and upstream ENV defaults; coreapp shell and
status explain rough edges the rehearsal hit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An icon.png that's missing, a link, over 1 MB or not a PNG used to
become the default silently. The installer and coreapp deploy now say
so (and note icons that aren't square or are small); coreapp publish
refuses an unusable or uncommitted one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before an update, coreapps dumps the app's database (pg_dump or
mariadb-dump, in the database's container) and makes a reflink copy of
/data (Cores' /federated is btrfs). A failed update restores both before
starting the old version; a failed dump refuses the update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The service file gets URL="https://<name>.$DOMAIN/", as Federated's
apps on their own hostnames do. Apps from a repository without docs
link to it. Updates remake Superpanel's applist and catalog, as removes
do, so a new title or icon shows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapps keeps copies of the app's service folder, .env and compose
file during an update. If it fails before the app answers, it tears
down needs the update added, restores the copies, starts the old
version and removes the new image. Data isn't rolled back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
needs = ["mysql"] (coreapp new --mysql) makes a user and database
coreapp_<name> on pdnsmysql, with the same DB_* settings as postgres
(so an app has one or the other). Root's password is read inside the
container, so it stays out of installapp's set -x log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
needs = ["email"] (coreapp new --email) makes an LDAP account
coreapp-<name> (not a person, no mailbox) and adds SMTP_* settings.
Teardown removes it only if it's the app's; the installer warns about
an entry it left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapps plan|install <https://host/owner/repo>[@tag] reads only
coreapp.toml and icon.png at the tag's commit (depth 1, blobs on demand,
regular files only), with git limited to https and no prompts or system
settings. The default tag is the newest numeric release; version must
match the tag; the image is always pulled. The marker records source,
tag and commit; the same name from another repository is refused.
coreapps update <name> moves to the newest release. On the workstation:
coreapp install <url> (shows the app and its needs, asks) and update.
Private apps: coreapps login <host> <user> keeps a read-only token (from
stdin) in /etc/coreapps/credentials (root only), checked with the host's
registry first. git gets it as an extraHeader for that host only, docker
in a config made for each pull. coreapp login/logout/logins on the
workstation. Tested with a private repository and package on Federated's
Gitea.
Fixed: old images of docker.io/library/... weren't deleted (docker lists
them by short name); remove force-deleted images another app could use;
coreapp help cut off multi-line descriptions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
coreapp publish builds the release image, pushes image:version to the
registry named in coreapp.toml and tags the commit v<version>. It refuses
local-only image names (suggesting one from the git remote), uncommitted
changes, a version already published and a tag already on another
commit. The existence check uses docker buildx imagetools inspect:
docker manifest inspect reported "no such manifest" for an image that
existed. Any error but "not found" stops the publish.
New apps get .gitea/workflows/publish.yml, which does the same on a v*
tag, for repositories with a runner that can use Docker (secrets
REGISTRY_USER and REGISTRY_TOKEN). Untested: needs a runner.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Addresses now come from 192.168.5.0/24, the range Federated's Core
developer set aside for custom apps. Apps installed in 192.168.200.x get
a new address on their next update.
Like Federated's apps, the sso need keeps a copy of its Authelia client in
/federated/apps/<name>/.<name>.oidc-client.yml, so Authelia's start
(reconcile_authelia_sso) restores it if Authelia is reinstalled. Removing
an app deletes the copy before restarting Authelia, which would otherwise
add the client back. Needs can have an update step, run on every update;
sso's writes the copy for apps installed before this.
Fixed: an update of an app with no needs failed at its end (a test that
found nothing to run set the exit status), leaving the app on its old
address.
PLAN.md: the Core developer's guidance and where coreapp-dev stands on
each point.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
skills/coreapp/SKILL.md teaches a Claude Code agent to make or port an
app for Federated Core: coreapp.toml, the needs, porting an existing app,
the deploy and test loop, troubleshooting, what isn't supported yet and
how to report back. update.sh links it into ~/.claude/skills/coreapp;
uninstall.sh removes the link. Rehearsed with a small app (memo-board)
ported by a fresh agent using only the skill.
The installer now gives /data to the image's user before starting the
container: Docker created it as root, so non-root apps couldn't write.
coreapp deploy --recreate always starts a new container (to test that
data survives); coreapp shell '<command>' runs one command without a
terminal.
PLAN.md: what would change on the Core to put the installer in
/federated/bin/coreapps/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>