App Notes¶
Notes on apps where the manifests don't tell the whole story: settings that live in the app's own UI, decisions not to change something, and gotchas found the hard way, grouped by namespace. Each namespace starts with how its apps sign in. For the full catalog, see Applications. NAS stacks have their notes on the Docker page.
Sign-in methods:
- Native OIDC: the app's own OpenID Connect support, with its own client in Pocket ID.
- gateway-oidc: Envoy logs the user in to Pocket ID before the request
reaches the app (
gateway-oidc), for apps without usable OIDC of their own. - Own login: the app's own accounts, not on single sign-on.
- No login: deliberately open, so it stays reachable when something is broken.
ai¶
| App | Sign-in |
|---|---|
| Hermes | Native OIDC for the web app and dashboard |
| LiteLLM | Native OIDC for the Admin UI; the API and /mcp/ use keys |
LiteLLM¶
How the gateway, models, keys and MCP servers fit together is on the AI page; these are the gotchas.
- Sign-in. Native OIDC covers the Admin UI only, so the API and
/mcp/keep working with keys. The Pocket ID client has callback URLhttps://litellm.bykaj.app/sso/callback, uses PKCE, and its credentials areOIDC_CLIENT_IDandOIDC_CLIENT_SECRETin thelitellm1Password item. The UI role comes from alitellm_rolecustom claim (proxy_adminfor admins). The free tier allows up to 5 SSO users. The login page redirects straight to Pocket ID (auto_redirect_ui_login_to_sso), and the master key no longer works as a UI password (disable_env_credential_login). Password login is off for every account (disable_password_login_when_sso_enabled), so/loginreturns 403. The master key still works for API calls. If Pocket ID is down, the UI way back in is removing both settings and logging in with the master key, since SSO users have no password. - Updates wait 3 days in Renovate, and the image comes from Docker Hub so that rule works (KB-015).
- The
litellm-egresspolicy allows model providers by FQDN. A provider on a new host needs a rule there, or its requests time out. - The ChatGPT token PVC is
ReadWriteOnce, and the operator's Deployment rolls out with a surge pod and has nostrategyfield. A requiredpodAffinityon the proxy's own labels keeps the new pod on the old pod's node, where the volume can attach; elsewhere it would wait on a Multi-Attach error forever. With no other proxy pod (first start, drain) the scheduler lets it go anywhere. The proxy runs as root, so the Kopiur mover does too (KOPIUR_MOVER_UID/GID"0"). - Email (alerts and the UI's test email) goes through the
SMTP relay, which
litellm-egressallows on port 25. The relay offers no STARTTLS, soSMTP_TLSis"False"; without it every send fails. The sender isMAIL_FROMfrom thesmtp1Password item. LiteLLM only sends email withemailingeneral_settings.alerting. - Anything else LiteLLM fetches from the internet times out against that
policy, so
LITELLM_OFFLINE_MODE=trueturns off every fetch it makes on its own (model cost map, Admin UI blog posts and release check, Have I Been Pwned, tokenizers) and it uses the bundled copies instead. The blog fetch is synchronous, so without that every UI page load froze the whole proxy for 5 seconds. - The Prisma CLI that LiteLLM runs at startup for its database contacts
checkpoint.prisma.io(version check and telemetry).litellm-egressblocks it andCiliumEgressPolicyDeniedfired, soCHECKPOINT_DISABLE=1turns it off. - MCP servers are
LiteLLMMCPServerresources inlitellm/mcp/servers(Flux Kustomizationlitellm-mcp); the operator runs each one and registers it with the proxy.litellm-egressallows them by the operator'sapp.kubernetes.io/component: mcp-serverlabel on port 3000, so a server on another port needs that port added. Each server has its own policy that admits only the proxy. - The kubesearch MCP server (kubesearch.dev search plus repo clones) may only
reach GitHub, and keeps the reference repos permanently cloned through
KUBESEARCH_POOL_REPOS. Clients reach it through the proxy with a LiteLLM key. - The Context7 MCP server (upstream library docs by version) is Context7's
hosted server at
mcp.context7.com, not run by the operator: the proxy sendsCONTEXT7_API_KEYfrom thelitellm1Password item as a bearer token, andlitellm-egressallows that host on port 443. Agents use it only as a fallback after kubesearch (seeAGENTS.md). - The Kagi MCP server (web search and page extraction) is Kagi's hosted
server at
mcp.kagi.com, set up like Context7: the proxy sendsKAGI_API_KEYfrom thelitellm1Password item as a bearer token, andlitellm-egressallows that host on port 443. The key belongs to Kagi's Search API, which is billed per call and separate from the Kagi subscription (the subscription has no API credits and Kagi has no OAuth login). Only thehermesteam has it, as Hermes' web search; theclaude-codekey leaves it out because Claude Code has its own. - The Flux MCP server (flux-operator-mcp) is the only write-capable cluster
access an agent gets, and only the
hermesteam has it. Its write tools are on (no--read-only), so what it may change comes from its ServiceAccountflux-mcpand twoValidatingAdmissionPolicies, not from the server; see Fixing the cluster through an agent. Its policy allows only the Kubernetes API, sosearch_flux_docsfails. - The kubectl MCP server (kubectl-mcp-server) runs with
--read-only, which hides every tool that changes state, and its ServiceAccountkubectl-mcponly hasviewandflux-mcp-read.MCP_TOOLSETSswaps the defaulthelmtoolset (Helm keeps releases in Secrets, which it can't read) fordiagnostics,crds,certsandcilium. It's FastMCP-based, soFASTMCP_CHECK_FOR_UPDATES=off, and it only accepts theHostLiteLLM sends because ofMCP_ALLOWED_HOSTS. Only thehermesteam has it. - The kguardian MCP server isn't run by the operator:
kguardian-mcppoints the proxy at the/mcpendpoint kguardian's llm-bridge already serves (port 8080, no authentication).litellm-egressallows that port separately, and thekguardian-llm-bridgepolicy admits only the proxy and the kguardian frontend. Itsgenerate_network_policyoutput is a starting point, not a finished policy: it selects onpod-template-hash, only knows flows seen since the pods started, and attributes kubelet probes to whichever host-network pod shares the node. - The Home Assistant MCP server (ha-mcp) has no route of its own: only the
proxy may call it, and it may only reach
homeassistant.home.cetana.neton port 443. It acts as a dedicated Home Assistant user through a long-lived access token (HOMEASSISTANT_TOKENin thelitellm1Password item); revoking that token in Home Assistant cuts it off. Its settings page is disabled, so configuration only comes from Git. - The UniFi MCP server (unifi-network-mcp) logs in to the gateway as the
dedicated local account (password in the
unifi1Password item) and may only reachgateway.home.cetana.net. Its tools load on demand (UNIFI_TOOL_REGISTRATION_MODE=lazy), and changes still go through its preview-then-confirm flow. - The proxy runs in DB mode on the
litellm-postgresCNPG cluster, so every client gets its own key: aLiteLLMVirtualKeynext to the app, which the operator creates through the proxy's admin API and writes to a Secret in the app's namespace. Limit each key to the models the app uses; an emptymodelslist allows all of them, so a key that needs none (MCP only) getsmodels: [no-default-models]. The master key is only for the operator; don't hand it to apps. - Virtual keys get no MCP servers unless their team grants them
(
LiteLLMTeam.spec.mcpServers), like theclaude-codeteam inlitellm/mcp/teams/claude-code. - Models and MCP servers stay file-backed (
applyModeat its default, andstore_model_in_db: false); only keys, teams and spend live in the database. - The proxy reaches Pocket ID for SSO through the envoy-external pods
(
cyrannus.idresolves to that LoadBalancer IP in the cluster), whichlitellm-egressallows on port 10443. - The proxy takes the client IP from the rightmost
X-Forwarded-Forentry, which Envoy appends (use_x_forwarded_for, one trusted hop, pod network as trusted proxies). That only holds while the route is on envoy-internal: behind cloudflared there is one more hop. LITELLM_SALT_KEYencrypts credentials stored in the database. It must never change once the database holds data.- Windshift's key is in the
windshift-litellmSecret and is pasted into its AI Connection by hand, so a new key needs a manual update there. - Background: LiteLLM 1.107.0 compromise.
Hermes¶
How Hermes is wired to LiteLLM and how its profiles are set up is on the AI page; these are the gotchas.
- Sign-in. One confidential Pocket ID client (with PKCE) serves both the
dashboard (
hermes.bykaj.app) and the web app (chat.bykaj.app). Its credentials areOIDC_CLIENT_IDandOIDC_CLIENT_SECRETin thehermes1Password item, set asHERMES_DASHBOARD_OIDC_CLIENT_IDandHERMES_DASHBOARD_OIDC_CLIENT_SECRET, which win over the managed config. Hermes' docs only describe public clients; if sign-in fails withinvalid_client, the image ignores the secret, and turning the client into a public one in Pocket ID is the fallback. Callback URLs:https://hermes.bykaj.app/auth/callback,https://chat.bykaj.app/auth/callbackandhttps://chat.bykaj.app/api/auth/oidc/callback. Restrict the client to the admin group: everyone it admits has full agent access, shell included. - The image's boot hook runs the config migration through
s6-setuidgid, which fails as non-root, so thesetupinit container runs it first, before it seeds the profile with LiteLLM (AI).S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETESlets s6 start on the/runemptyDir. - The
setupinit container runsapp/resources/setup.shfrom thehermes-scriptsConfigMap. It writes${LITELLM_API_KEY}into the MCP header literally, for Hermes to expand; generated ConfigMaps skip Flux's variable substitution, so the script needs no$${...}escaping (in the HelmRelease itself a plain${...}would become an empty string). - The probes check the gateway's cron heartbeat
(
/opt/data/cron/ticker_heartbeat, written every 60 s), not a port. - The image also has older date tags (
v2026.9.24) that sort above the currentv0.xreleases, so Renovate is kept onv0.x. Updates wait 3 days, like LiteLLM's. hermes-egressallows only DNS, LiteLLM, Pocket ID,models.dev(model metadata, which Hermes fetches at start and in the background with no off switch) and GitHub (github.com,api.github.com,*.githubusercontent.com) plusmise-versions.jdx.devandtuf-repo-cdn.sigstore.devfor mise tool installs. mise verifies GitHub artifact attestations against Sigstore's trust root and hangs when it can't fetch it; its self-update check (mise.jdx.dev) stays blocked and is off (MISE_DISABLE_UPDATE_WARNING). Installing skills from the hub,pipand direct web fetches fail;git cloneworks for GitHub only. Web search goes through the Kagi MCP server instead (paid per search). Hermes has no GitHub token, but GitHub is the one place a prompt injection that brings its own token could push data to; that was accepted for mise.HERMES_DISABLE_LAZY_INSTALLSstops Hermes from installing tool dependencies on first use.- Fetches Hermes makes on its own fire
CiliumEgressPolicyDenied, so they are off: the model catalog (model_catalog.enabled: false; it polledhermes-agent.nousresearch.comandraw.githubusercontent.comevery 20 minutes), the update check (updates.check: false) and boto3's EC2 metadata probe of169.254.169.254(AWS_EC2_METADATA_DISABLED). Opening the plugin catalog in the dashboard and skill hub searches still try the internet; a drop from those is expected. - The LiteLLM key is a pod environment variable. The terminal tool only gets
the variables in
terminal.env_passthrough(none), so the agent's shell can't read it from there, but the named profiles need it as a file (/mnt/secrets/litellm/api-key, see Hermes), and the shell runs as the same user, so it can read that. The key only works against LiteLLM, which is reachable from the cluster and the home network (envoy-internal), not from the internet. - Settings that must stay in each profile's own
config.yaml(providers,mcp_servers, secret sources,skills.external_dirs): declaring them in the managed overlay makes every dashboard save strip them from the profile. - The backend migrates its databases on upgrades, and rolling back the image
doesn't undo that; restore the Kopiur snapshot of the
hermesPVC instead. Before merging a Hermes update, take a fresh snapshot withjust k8s pvc-backup ai hermes, so the restore point isn't up to an hour old. - Signal belongs to the
opsprofile (HERMES_SIGNAL_PROFILE): one number can only be held by one profile, and a cron job delivers to the home channel of its own profile.setup.shwritesSIGNAL_HTTP_URL,SIGNAL_ACCOUNT,SIGNAL_ALLOWED_USERSandSIGNAL_HOME_CHANNELinto that profile's.envfrom thehermes-signalSecret (fields in thehermes1Password item:SIGNAL_ACCOUNT_NUMBER, Hermes' number;SIGNAL_OWNER_UUID, the owner's Signal account UUID;SIGNAL_OWNER_NUMBER, the owner's number). That Secret is not in the pod's environment: the default profile would pick up Signal from there too. Without the fields, setup skips Signal. Removing them later leaves the settings in the profile's.env; delete them there. - The allowlist holds the owner's number and UUID. Signal leaves the
number out while the owner keeps it hidden from non-contacts (the default)
and includes it once it's shared, and Hermes only checks one identifier per
message: the number if present, else the UUID. The UUID isn't shown in the
Signal apps; a dropped message logs it ("Dropped a message from
unrecognized signal user …" in the profile's
logs/gateway.log). Cron reports go to the UUID, which works whatever the number settings are.
signal-cli¶
The official ghcr.io/asamk/signal-cli image as a daemon for Hermes' Signal
adapter, which doesn't talk to Signal itself: it reads messages from the
daemon's event stream and sends through its JSON-RPC API
(http://signal-cli.ai.svc.cluster.local:8080). No route.
- Multi-account mode (
daemon --http, no--account): the daemon starts before a number is registered, registration goes through its API, and Hermes passes the account with every call. - The API has no authentication and can send, read and register as the
account, so the
signal-clipolicy admits only the Hermes pod, and lets the daemon reach only**.signal.org(**, since the chat connection isgrpc.chat.signal.org, two labels belowsignal.org). - The PVC (
/var/lib/signal-cli, backed up by Kopiur) holds the account's keys. Losing it means registering the number again, and contacts see a safety-number change. - Hermes has its own number. Linking it as a device to a personal account would hand it every conversation of that account. Keep the number: a lapsed number can be registered by someone else.
Registering the number, from the Hermes pod (the only one the policy lets in):
- Solve the captcha at
signalcaptchas.org/registration/generate.html
and copy the
signalcaptcha://…link it opens. - Request the code by SMS (
"voice": false). A VoIP number that can't receive SMS: wait a minute, then request again with"voice": true. - Verify the code, set a profile name and a PIN (registration lock, so the number can't be taken over by re-registering it).
kubectl -n ai exec -it deploy/hermes -c app -- sh
rpc() { curl -s http://signal-cli.ai.svc.cluster.local:8080/api/v1/rpc \
-H 'content-type: application/json' -d "$1"; echo; }
rpc '{"jsonrpc":"2.0","id":1,"method":"register","params":{"account":"+31…","captcha":"signalcaptcha://…","voice":false}}'
rpc '{"jsonrpc":"2.0","id":2,"method":"verify","params":{"account":"+31…","verificationCode":"123456"}}'
rpc '{"jsonrpc":"2.0","id":3,"method":"updateProfile","params":{"account":"+31…","givenName":"Hermes"}}'
rpc '{"jsonrpc":"2.0","id":4,"method":"setPin","params":{"account":"+31…","pin":"…"}}'
Then add SIGNAL_ACCOUNT_NUMBER, SIGNAL_OWNER_UUID and SIGNAL_OWNER_NUMBER
to the hermes 1Password item.
Reloader restarts Hermes when the hermes-signal Secret changes, and the
setup init container switches Signal on for the ops profile.
default¶
| App | Sign-in |
|---|---|
| Karakeep | Native OIDC |
| Mail Archiver | Native OIDC, no password login |
| Paperless | Native OIDC, no password login |
| pgAdmin | Native OIDC |
| Seafile | Native OIDC (OAuth), no password login |
| Wallos | Native OIDC, configured in its own UI |
| Windshift | Native OIDC |
Karakeep¶
- It stores the profile picture only when a user is created. An account from a previous identity provider has no picture until it is set in the database.
karakeep-egressandkarakeep-chrome-egress(networkpolicy.yaml) let the app and Chrome reach the internet on any port, through theinternetCIDR group (public space only: no private, CGNAT, link-local or other special-purpose ranges), since they fetch whatever is bookmarked. Inside the cluster and on the LAN, the app may only reach Meilisearch, Chrome, LiteLLM, Garage, envoy-external (Pocket ID) and the SMTP relay; Chrome reaches nothing, except ICMP port unreachable to the kube-dns Service IP (10.43.0.10): Chrome sends several DNS queries per hostname and closes the socket once one answers, so the late answers bounce. Without that rule, every page with many hosts set offCiliumEgressPolicyDenied(karakeep-chrome -> 10.43.0.10). Multicast (224.0.0.0/4) is in an explicitegressDeny: Chrome's own local discovery (mDNS on224.0.0.251) sends it now and then, even with no page open, and an explicit deny drops it asPOLICY_DENY, which the alert ignores (it fired once on 2026-11-09,karakeep-chrome -> 224.0.0.251).- Bookmarks of internal hosts (
*.bykaj.appbehind envoy-internal, the LAN) can't be crawled:CRAWLER_ALLOWED_INTERNAL_HOSTNAMESis unset, so the crawler refuses private addresses itself, and the policies block them too. There were none when this was set up (2026-11-04).
Mail Archiver¶
- The NFS share
/mnt/vault/Applications/mail-archiverholdskeys/(ASP.NET Data Protection keys,/app/DataProtection-Keys),data/import/(local MBox/EML imports) anddata/raw-messages/(original messages). - The original of every archived message is kept byte for byte
(
RawMessages__Storage: filesystem), as gzip files underdata/raw-messages/, sharded by email id:xx/yy/<id>.eml.gz. Postgres keeps the parsed fields plus each original's SHA-256, size and relative path. Restore the database and that directory together: a database restore without the files leaves rows whose original answers HTTP 404. Azcatof a file is a plain.emlthat other tools can import; the account and folder of each message live only in Postgres. - Mail archived before the switch has no original. Only a fresh sync (after deleting it from the archive) stores one; a Full Sync skips mail that is already archived.
- Folder exclusions are not anchored to the root: an entry also matches
every folder whose own name ends with it, at any depth, so
Sentalso excludesArchive/Sent. Use entries that name only folders outside the tree you want to keep.MailSync__ExcludeSubfoldersis on, so an entry also covers the folders below it. - The 15-minute Quick Sync asks the server only for mail delivered since the
last sync (minus 12 hours), and moving a message keeps its delivery date.
Mail filed into an archived folder later is picked up by the daily Full
Sync (
MailSync__FullSyncIntervalHours: "24"), which also updates the stored folder of refiled mail. - Mail account credentials (the IMAP app password) are encrypted in the
database with
Security__CredentialEncryptionKey, fromENCRYPTION_KEYin themail-archiver1Password item. A database dump alone can't reveal them. Losing the key means re-entering the account passwords; to rotate, keep the old key inSecurity__CredentialEncryptionKeyPreviousuntil every account has been saved again.
Paperless¶
- AI suggestions and document chat go through LiteLLM with the
paperlessvirtual key (PAPERLESS_AI_LLM_*):chatgpt/gpt-6-lunafor suggestions and chat,openai/text-embedding-3-smallfor the chat's embeddings. Suggestions always ask for a tool call, so a replacement model must support forced tool calls through LiteLLM. - AI output (suggested titles and tags, chat answers) is in Dutch through
PAPERLESS_AI_LLM_OUTPUT_LANGUAGE: nl-nl. Without it Paperless falls back to the user's UI language. The "LLM output language" field in the UI's AI configuration overrides the variable, so leave that field empty. - The embeddings are a SQLite file (
llmindex.db) on the data PVC, rebuilt daily at 02:10 (PAPERLESS_LLM_INDEX_TASK_CRONdefault), so it is backed up with the rest of the PVC but can be regenerated. paperless-egress(networkpolicy.yaml) allows Postgres, Dragonfly, LiteLLM, envoy-external (Pocket ID), the SMTP relay,imap.fastmail.comon port 993 (mail rules, below), and nothing on the internet at startup.- The image has no Dutch OCR data, and Debian's other languages are the
fastmodels. Instead ofPAPERLESS_OCR_LANGUAGES(itsinit-tesseract-langsstep apt-installstesseract-ocr-nldfromdeb.debian.orgon every start), Paperless mounts a complete tessdata folder fromghcr.io/bykaj/paperless-tessdata(bykaj/containers) as an image volume over/usr/share/tesseract-ocr/5/tessdata. It holds Tesseract's most accurate models (tessdata_best, slower thanfast) for Dutch, English, German, French, Spanish and Italian, plusosdand Tesseract 5.5.0'sconfigs,tessconfigsandpdf.ttf. The kubelet pulls it, so the egress policy is not involved. The whole folder is mounted (subPath: tessdata) because containerd only mounts directories from an image volume (a single-filesubPathfails withImageVolumeMountFailed: only directory subpath is supported, 2026-11-09).PAPERLESS_OCR_LANGUAGEpicks which of the six are used (nld+eng). The apt route lost a Cilium toFQDNs race on fresh pods (2026-11-04 and 2026-11-09: the first connections to the mirror, a CNAME todebian.map.fastlydns.net, were dropped and the start failed), and pinning the mirror's IPs broke because Fastly answers the cluster's resolver with different addresses. - The
5in the mount path is Tesseract's major version. If a Paperless image ships Tesseract 6, the mount lands in an unused folder and OCR fails on the missing languages: move the mount path along with the bump, and bump the Tesseract version the image takes its configs from. - The update check is off for every user and
api.github.comis blocked. It is a per-user UI setting (Settings → General → Update checking) with no server-wide switch, so a user switching it on sets offCiliumEgressPolicyDenied; switch it back off rather than adding a rule. paperless-egressallowsimap.fastmail.comon port 993 for mail rules (for example consuming attachments fromArchive/Receipts). The mail account itself is set up in the Paperless UI. Another provider needs its own rule.
pgAdmin¶
- It skips its login page (
OAUTH2_AUTO_LOGIN); use/login?no_auto_loginto see it. - Logging out also ends the Pocket ID session (
OAUTH2_LOGOUT_URL), so the pgAdmin URL must be in the client's logout callback URLs in Pocket ID.
Seafile¶
Seafile Pro serves files.bykaj.app (APP_SUBDOMAIN: files) and replaced
OpenCloud. Pro is needed to store libraries in S3, and is free
for up to three active users.
Sign-in and roles¶
- Pocket ID is configured in
resources/local_settings.py: Seahub only reads OAuth, email and role settings from Python, so the container command links the file into its install directory. The client is confidential, with callback URLhttps://files.bykaj.app/oauth/callback/. Accounts are keyed on thesubclaim; the desktop and mobile apps sign in through the system browser. - Every Pocket ID login creates an account, so the Pocket ID client only allows
the
admins,familyandfriendsgroups. - Pocket ID accounts can't use or set a password
(
DISABLE_SSO_USER_LOCAL_PWD_LOGIN). Seafile exempts system admins, and the login page keeps showing the password form; Seahub can't hide it. - The role follows the
groupsclaim on every login: the highest group wins (resources/seahub_custom_functions.py), andENABLED_ROLE_PERMISSIONSinlocal_settings.pysets the limits:
| Role | Disk | AI credits per month |
|---|---|---|
admins |
100 GB | unlimited |
family |
100 GB | 500 |
friends |
50 GB | 200 |
default |
1 GB | none |
- 100 credits are USD 1, counted at OpenAI's list prices (
priceinLLM_MODELSandEMBEDDING_MODEL); the ChatGPT route itself is subscription.defaultis explicit because Seahub's own default is unlimited; it also applies to an account until its next login. - A role set by hand is overwritten at the next login; a per-user quota still
wins over the role quota. System admin rights are separate from the
adminsrole. - With an empty
groupsclaim Seahub skips the update and the user keeps their last role. The client's allowed groups prevent that, so keep them in sync with the roles. - The local admin from the
seafile1Password item is deactivated. A Pocket ID account can't be linked to it, so it only served to make the first Pocket ID account an admin. Inactive accounts don't count toward the three users.
Storage and database¶
- Libraries are in the
seafile-commits,seafile-fsandseafile-blocksGarage buckets; the PVC (Kopiur) holds the generated config, avatars, thumbnails and logs. - The database comes from the
mariadb component (user
seafile, databaseseafile_db);mariadb.yamladdsccnet_dbandseahub_db, so the first start uses existing databases (USE_EXISTING_DB) and needs no root password.
Extensions¶
They run as their own Deployments, because the PVC can only be mounted on one
node. The metadata server and Seafile AI read the libraries straight from S3
(resources/seafile.env).
| Deployment | Purpose | Notes |
|---|---|---|
seafile-seadoc |
SeaDoc editor | Routed under /sdoc-server/ (prefix stripped) and /socket.io |
seafile-metadata |
Metadata server | Data in the seafile-metadata bucket |
seafile-ai |
Seafile AI | Needs the metadata server; calls LiteLLM with the seafile virtual key |
seafile-seasearch |
Full-text search | Index on its own ceph-block PVC without backup, since it can be rebuilt |
seafile-notification |
Pushes library, lock and permission changes to clients | Websocket on /notification; Seafile posts events to /events internally (JWT) |
- The AI models are the
LLM_MODELSandEMBEDDING_MODELenv vars on Seahub and Seafile AI, which overrideseafile_ai_config.yaml. The kubelet expands$(AI_API_KEY)in them, which only works becauseAI_API_KEYsorts first in the rendered env. - SeaSearch's admin is
seafilewithSEASEARCH_PASSWORDfrom theseafileitem, created on its first start; Seafile and Seafile AI send base64(seafile:<password>) asSEASEARCH_TOKEN.
Egress policy¶
networkpolicy.yaml gives every pod its own egress allowlist, besides DNS.
All but SeaSearch get the shared secrets and settings through envFrom, so
being internal-only is no reason to leave one open.
| Policy | Allows |
|---|---|
seafile-egress |
The extensions' ports, MariaDB, Dragonfly, LiteLLM, envoy-external (Pocket ID and Seafile's own public URLs for SeaDoc and notifications), the SMTP relay, Garage |
seafile-seadoc-egress |
MariaDB, Seahub on port 80 (SEAHUB_SERVICE_URL) |
seafile-ai-egress |
MariaDB, Dragonfly, Garage, LiteLLM, Seahub, the metadata server, SeaSearch |
seafile-metadata-egress |
MariaDB, Dragonfly, Garage |
seafile-notification-egress |
MariaDB |
seafile-seasearch-egress |
Nothing (index on disk) |
- Nothing on the internet is allowed. A new feature or upgrade that calls out
raises
CiliumEgressPolicyDenied; add a rule only if the destination is expected. - A new extension needs its own policy, and a new port on one needs adding to the policies of the pods that call it.
WebDAV¶
- SeafDAV serves
https://files.bykaj.app/seafdav. The username is the contact email, the password the WebDAV password each user sets under Settings. - Libraries show up as their name plus
-and the first six characters of their ID. ENABLE_SEAFDAVonly adds the WebDAV setting to Seahub; the server starts fromenabledinseafdav.confon the PVC, which theshared-permissionsinit container switches on at every start (on a fresh volume from the second start).- The NAS reaches it on the envoy-external LoadBalancer directly, so uploads have no size limit; see Document sync.
Running as non-root¶
- The image starts as root;
NON_ROOTruns the Seafile processes as uid 8000, which is also the Kopiur mover UID. - The entrypoint refuses to start unless
/shared/seafilehas mode exactly777, but the image's boot script creates it as 755, and it inherits the setgid bit of the PVC root. Theshared-permissionsinit container creates it with 777 and clears setgid first. - SeaDoc runs without
NON_ROOT: its boot script creates/shared/logsas root, after which its converter can't write its log. It only keeps logs, in an emptyDir.
Windshift¶
windshift-egress(networkpolicy.yaml) allows Postgres, LiteLLM, envoy-external (Pocket ID), the SMTP relay, Garage (thenasgroup on port 443) andgithub.comandapi.github.comfor the GitHub SCM integration.- Web push has no subscriptions yet, and Jira, Zammad and email intake aren't set up. Each needs an egress rule for its host when it is.
downloads¶
| App | Sign-in |
|---|---|
| Bazarr | gateway-oidc |
| Prowlarr | gateway-oidc |
| Radarr | gateway-oidc |
| SABnzbd | gateway-oidc |
| Sonarr | gateway-oidc |
| Whisparr | gateway-oidc |
Each app has its own Pocket ID client; an api rule on the route stays open
for app-to-app calls that carry an API key.
Sonarr¶
- It stays on gateway-oidc, because its native OIDC allows only one user.
- Its
apirule includes/signalr, so Bazarr can follow it over SignalR with an API key.
Radarr¶
- Like Sonarr, its
apirule includes/signalrfor Bazarr.
external-secrets¶
| App | Sign-in |
|---|---|
| 1Password Connect | No UI; External Secrets uses its API token |
1Password Connect¶
Its credentials file must contain raw JSON while the 1Password field holds base64; a mistake here also stops External Secrets from fixing it. See KB-010 before changing how Connect reads its credentials.
media¶
| App | Sign-in |
|---|---|
| Audiobookshelf | Native OIDC, configured in its own UI |
| Immich | Native OIDC, configured in its own UI |
| Jellyfin | Own login |
| Plex | Plex account; no login from the LAN and cluster networks |
| Stash | gateway-oidc, with its API key injected |
Audiobookshelf¶
- Its group claim is empty, because it only accepts groups named exactly
admin,userandguest. - Its local password login is off.
audiobookshelf-egress(networkpolicy.yaml) allows envoy-external (Pocket ID), the SMTP relay and, by FQDN, the metadata providers in use: the Audible catalog (every region), Audnexus, Google Books, iTunes and Open Library, plus their cover hosts. FantLab, audiobookcovers.com, MusicBrainz, podcast feeds and custom providers need a rule before they are used.- Its email settings (send to e-reader) live in its own UI and database; they
point at the SMTP relay (
smtp.bykaj.io, port 25, no TLS or login).
Immich¶
- Each of the three pods has its own egress policy (
networkpolicy.yamlinapp/,microservices/andmachine-learning/). The API and the workers may reach Postgres, Dragonfly, machine learning and the SMTP relay; the API also reaches envoy-external (Pocket ID). - The version check is off (Administration → Settings → Version Check) and
version.immich.cloudis blocked. The setting is server-wide, so switching it back on sets offCiliumEgressPolicyDenied; switch it off rather than adding a rule. - Machine learning may only reach Hugging Face. It downloads each model on
first use into its
immich-machine-learning-cachevolume (10Giceph-block, no backup), so a restart keeps them; only a new model or a lost volume needs Hugging Face again. The volume is ReadWriteOnce, so the deployment uses theRecreatestrategy. Model files redirect to CDN hosts several levels belowhf.co, hence**.hf.coin the policy (*.matches one level only). - Downloads use
HF_TOKEN(theimmichitem in 1Password) for Hugging Face's higher rate limits. It's a fine-grained token without permissions, since the models are public. A revoked or expired token makes downloads fail with a 401 rather than fall back to anonymous, so replace it in 1Password (Reloader restarts the pod). - onnxruntime in the machine-learning image sends usage telemetry to
mobile.events.data.microsoft.com.ORT_DISABLE_TELEMETRYswitches it off; without it, every start sets offCiliumEgressPolicyDenied(seen on the rollout, 2026-11-04).
Jellyfin¶
- Not on single sign-on: the SSO plugin is archived and only worked in the browser.
Plex¶
PLEX_NO_AUTH_NETWORKS covers the LAN and the pod and Service networks. The
Tailscale range was removed with the Tailscale ingresses, so don't add it
back.
plex-egress (networkpolicy.yaml) lets Plex reach the internet on any port
(the internet CIDR group) and nothing in the cluster or on the LAN. Remote
access comes in through envoy-external and the LoadBalancer
(ManualPortMappingMode, relay and DLNA off), so it isn't affected. The
policy explicitly denies multicast (224.0.0.0/4) and broadcast
(255.255.255.255) with an egressDeny: Plex's local discovery (SSDP about
twice a minute, GDM to 239.0.0.250 and the broadcast address, and multicast
group joins at startup) can't reach the LAN from the pod anyway, and the
explicit deny drops it as POLICY_DENY, which CiliumEgressPolicyDenied
ignores. Before that, the policy only allowed SSDP to
239.255.255.250:1900, and the startup burst set off the alert whenever the
NFS zeroscaler restarted Plex (a 2-minute LAN outage during a gateway firmware
update on 2026-11-11). It also allows Plex's hourly NAT-PMP check
(UDP 5351) to its own node, the pod's default gateway: nothing answers, so
Plex logs NAT: PMP, got an error: Not Supported by gateway and moves on;
dropped, it showed up as plex -> 10.42.x.y (the node's cilium_host
address, not a pod). Casting or remote control towards LAN devices would need
a rule.
Stash¶
- It gets its API key from an
HTTPRouteFilterafter the Pocket ID login, so there is no second login. - Its
apirule matches theApiKeyheader (Whisparr) or theapikeyquery parameter (Homepage, external players). - Keep Stash's form login on: the API key only exists while credentials are set.
observability¶
| App | Sign-in |
|---|---|
| Prometheus, Alertmanager, VictoriaLogs, Grafana (anonymous), Goldilocks, kguardian | No login |
The Flux UI (flux-system) has no login either. These tools deliberately stay
open, so they are reachable when something is broken.
rook-ceph¶
| App | Sign-in |
|---|---|
| Rook-Ceph dashboard | Own login (Ceph dashboard) |
Rook-Ceph¶
The active mgr leaks memory slowly; see Known Noise.
security¶
| App | Sign-in |
|---|---|
| Pocket ID | Passkeys; it is the identity provider for everything above |
Pocket ID¶
- SMTP and app settings live in Pocket ID's own UI and database, not in Git, so the Kopiur backup of its volume is the only copy.
- It downloads the GeoLite2 City database with
MAXMIND_LICENSE_KEY. Only the license key is needed, no MaxMind account ID. ICON_LIBRARY_URLpoints at the selfh.st icons on GitHub directly. jsDelivr serves only some files from that repository, because it exceeds jsDelivr's 50 MB package limit.pocket-id-egress(networkpolicy.yaml) allows the SMTP relay and, by FQDN,download.maxmind.comand the Cloudflare R2 host it redirects the download to (GeoLite2, refreshed every 14 days), andraw.githubusercontent.com(the icon index). LDAP, SCIM and backchannel logout are unused and blocked, and so is setting a client logo by URL: upload the image instead, or the download sets offCiliumEgressPolicyDenied.- Background: Authentik to Pocket ID.
Disabled apps¶
Notes for apps whose ks.yaml is commented out (see
Applications), kept for when they come back.
OpenCloud¶
- Disabled since Seafile took over
files.bykaj.app. Enabling it again needs another hostname, or Seafile moved offfiles. Its PVC comes back from the newest Kopiur snapshot, and its files are still in theopencloudGarage bucket (decomposeds3); the PVC holds the metadata, so a restore needs both. -
Sign-in. Pocket ID replaces its built-in IdP, and accounts are created on first login, keyed on the
subclaim. It has four public PKCE clients in Pocket ID, with fixed client IDs:Client ID Callback URLs opencloud-webhttps://files.bykaj.app/,https://files.bykaj.app/oidc-callback.html,https://files.bykaj.app/oidc-silent-redirect.htmlOpenCloudDesktophttp://127.0.0.1,http://localhost(any port is accepted)OpenCloudIOSoc://ios.opencloud.euOpenCloudAndroidoc://android.opencloud.eu -
Roles come from the
groupsclaim on every login (resources/proxy.yaml):admins→ Admin,family→ User,friends→ Guest, highest first. A user in none of these groups can't sign in. Pocket ID only sendsgroupsfor thegroupsscope, so the web and app scopes include it. - CSP (
resources/csp.yaml) is OpenCloud's default plushttps://cyrannus.id/. - Email. The optional
notificationsservice is on (OC_ADD_RUN_SERVICES) and sends share and space emails through the SMTP relay; users can turn them off under Preferences. Sharing with an email address uses guest links (OC_ENABLE_GUEST_LINKS): a one-time link, valid for 30 minutes and without an account, renewable with a PIN. - Web extensions (only Pastebin so far) are mounted from their
opencloudeu/web-extensionsimages as image volumes under/opt/web-apps(WEB_ASSET_APPS_PATH); the built-in apps stay available. To add one, add another image volume at/opt/web-apps/<name>with subPathweb/apps/<name>. A Renovate rule treats the<extension>-tag prefix as a separate line per extension.