Skip to content

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 URL https://litellm.bykaj.app/sso/callback, uses PKCE, and its credentials are OIDC_CLIENT_ID and OIDC_CLIENT_SECRET in the litellm 1Password item. The UI role comes from a litellm_role custom claim (proxy_admin for 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 /login returns 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-egress policy 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 no strategy field. A required podAffinity on 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-egress allows on port 25. The relay offers no STARTTLS, so SMTP_TLS is "False"; without it every send fails. The sender is MAIL_FROM from the smtp 1Password item. LiteLLM only sends email with email in general_settings.alerting.
  • Anything else LiteLLM fetches from the internet times out against that policy, so LITELLM_OFFLINE_MODE=true turns 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-egress blocks it and CiliumEgressPolicyDenied fired, so CHECKPOINT_DISABLE=1 turns it off.
  • MCP servers are LiteLLMMCPServer resources in litellm/mcp/servers (Flux Kustomization litellm-mcp); the operator runs each one and registers it with the proxy. litellm-egress allows them by the operator's app.kubernetes.io/component: mcp-server label 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 sends CONTEXT7_API_KEY from the litellm 1Password item as a bearer token, and litellm-egress allows that host on port 443. Agents use it only as a fallback after kubesearch (see AGENTS.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 sends KAGI_API_KEY from the litellm 1Password item as a bearer token, and litellm-egress allows 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 the hermes team has it, as Hermes' web search; the claude-code key 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 hermes team has it. Its write tools are on (no --read-only), so what it may change comes from its ServiceAccount flux-mcp and two ValidatingAdmissionPolicies, not from the server; see Fixing the cluster through an agent. Its policy allows only the Kubernetes API, so search_flux_docs fails.
  • The kubectl MCP server (kubectl-mcp-server) runs with --read-only, which hides every tool that changes state, and its ServiceAccount kubectl-mcp only has view and flux-mcp-read. MCP_TOOLSETS swaps the default helm toolset (Helm keeps releases in Secrets, which it can't read) for diagnostics, crds, certs and cilium. It's FastMCP-based, so FASTMCP_CHECK_FOR_UPDATES=off, and it only accepts the Host LiteLLM sends because of MCP_ALLOWED_HOSTS. Only the hermes team has it.
  • The kguardian MCP server isn't run by the operator: kguardian-mcp points the proxy at the /mcp endpoint kguardian's llm-bridge already serves (port 8080, no authentication). litellm-egress allows that port separately, and the kguardian-llm-bridge policy admits only the proxy and the kguardian frontend. Its generate_network_policy output is a starting point, not a finished policy: it selects on pod-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.net on port 443. It acts as a dedicated Home Assistant user through a long-lived access token (HOMEASSISTANT_TOKEN in the litellm 1Password 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 unifi 1Password item) and may only reach gateway.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-postgres CNPG cluster, so every client gets its own key: a LiteLLMVirtualKey next 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 empty models list allows all of them, so a key that needs none (MCP only) gets models: [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 the claude-code team in litellm/mcp/teams/claude-code.
  • Models and MCP servers stay file-backed (applyMode at its default, and store_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.id resolves to that LoadBalancer IP in the cluster), which litellm-egress allows on port 10443.
  • The proxy takes the client IP from the rightmost X-Forwarded-For entry, 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_KEY encrypts credentials stored in the database. It must never change once the database holds data.
  • Windshift's key is in the windshift-litellm Secret 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 are OIDC_CLIENT_ID and OIDC_CLIENT_SECRET in the hermes 1Password item, set as HERMES_DASHBOARD_OIDC_CLIENT_ID and HERMES_DASHBOARD_OIDC_CLIENT_SECRET, which win over the managed config. Hermes' docs only describe public clients; if sign-in fails with invalid_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/callback and https://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 the setup init container runs it first, before it seeds the profile with LiteLLM (AI). S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETES lets s6 start on the /run emptyDir.
  • The setup init container runs app/resources/setup.sh from the hermes-scripts ConfigMap. 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 current v0.x releases, so Renovate is kept on v0.x. Updates wait 3 days, like LiteLLM's.
  • hermes-egress allows 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) plus mise-versions.jdx.dev and tuf-repo-cdn.sigstore.dev for 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, pip and direct web fetches fail; git clone works 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_INSTALLS stops 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 polled hermes-agent.nousresearch.com and raw.githubusercontent.com every 20 minutes), the update check (updates.check: false) and boto3's EC2 metadata probe of 169.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 hermes PVC instead. Before merging a Hermes update, take a fresh snapshot with just k8s pvc-backup ai hermes, so the restore point isn't up to an hour old.
  • Signal belongs to the ops profile (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.sh writes SIGNAL_HTTP_URL, SIGNAL_ACCOUNT, SIGNAL_ALLOWED_USERS and SIGNAL_HOME_CHANNEL into that profile's .env from the hermes-signal Secret (fields in the hermes 1Password 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-cli policy admits only the Hermes pod, and lets the daemon reach only **.signal.org (**, since the chat connection is grpc.chat.signal.org, two labels below signal.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):

  1. Solve the captcha at signalcaptchas.org/registration/generate.html and copy the signalcaptcha://… link it opens.
  2. Request the code by SMS ("voice": false). A VoIP number that can't receive SMS: wait a minute, then request again with "voice": true.
  3. 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-egress and karakeep-chrome-egress (networkpolicy.yaml) let the app and Chrome reach the internet on any port, through the internet CIDR 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 off CiliumEgressPolicyDenied (karakeep-chrome -> 10.43.0.10). Multicast (224.0.0.0/4) is in an explicit egressDeny: Chrome's own local discovery (mDNS on 224.0.0.251) sends it now and then, even with no page open, and an explicit deny drops it as POLICY_DENY, which the alert ignores (it fired once on 2026-11-09, karakeep-chrome -> 224.0.0.251).
  • Bookmarks of internal hosts (*.bykaj.app behind envoy-internal, the LAN) can't be crawled: CRAWLER_ALLOWED_INTERNAL_HOSTNAMES is 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-archiver holds keys/ (ASP.NET Data Protection keys, /app/DataProtection-Keys), data/import/ (local MBox/EML imports) and data/raw-messages/ (original messages).
  • The original of every archived message is kept byte for byte (RawMessages__Storage: filesystem), as gzip files under data/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. A zcat of a file is a plain .eml that 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 Sent also excludes Archive/Sent. Use entries that name only folders outside the tree you want to keep. MailSync__ExcludeSubfolders is 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, from ENCRYPTION_KEY in the mail-archiver 1Password item. A database dump alone can't reveal them. Losing the key means re-entering the account passwords; to rotate, keep the old key in Security__CredentialEncryptionKeyPrevious until every account has been saved again.

Paperless

  • AI suggestions and document chat go through LiteLLM with the paperless virtual key (PAPERLESS_AI_LLM_*): chatgpt/gpt-6-luna for suggestions and chat, openai/text-embedding-3-small for 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_CRON default), 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.com on 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 fast models. Instead of PAPERLESS_OCR_LANGUAGES (its init-tesseract-langs step apt-installs tesseract-ocr-nld from deb.debian.org on every start), Paperless mounts a complete tessdata folder from ghcr.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 than fast) for Dutch, English, German, French, Spanish and Italian, plus osd and Tesseract 5.5.0's configs, tessconfigs and pdf.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-file subPath fails with ImageVolumeMountFailed: only directory subpath is supported, 2026-11-09). PAPERLESS_OCR_LANGUAGE picks 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 to debian.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 5 in 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.com is blocked. It is a per-user UI setting (Settings → General → Update checking) with no server-wide switch, so a user switching it on sets off CiliumEgressPolicyDenied; switch it back off rather than adding a rule.
  • paperless-egress allows imap.fastmail.com on port 993 for mail rules (for example consuming attachments from Archive/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_login to 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 URL https://files.bykaj.app/oauth/callback/. Accounts are keyed on the sub claim; 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, family and friends groups.
  • 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 groups claim on every login: the highest group wins (resources/seahub_custom_functions.py), and ENABLED_ROLE_PERMISSIONS in local_settings.py sets 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 (price in LLM_MODELS and EMBEDDING_MODEL); the ChatGPT route itself is subscription. default is 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 admins role.
  • With an empty groups claim 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 seafile 1Password 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-fs and seafile-blocks Garage buckets; the PVC (Kopiur) holds the generated config, avatars, thumbnails and logs.
  • The database comes from the mariadb component (user seafile, database seafile_db); mariadb.yaml adds ccnet_db and seahub_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_MODELS and EMBEDDING_MODEL env vars on Seahub and Seafile AI, which override seafile_ai_config.yaml. The kubelet expands $(AI_API_KEY) in them, which only works because AI_API_KEY sorts first in the rendered env.
  • SeaSearch's admin is seafile with SEASEARCH_PASSWORD from the seafile item, created on its first start; Seafile and Seafile AI send base64(seafile:<password>) as SEASEARCH_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_SEAFDAV only adds the WebDAV setting to Seahub; the server starts from enabled in seafdav.conf on the PVC, which the shared-permissions init 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_ROOT runs the Seafile processes as uid 8000, which is also the Kopiur mover UID.
  • The entrypoint refuses to start unless /shared/seafile has mode exactly 777, but the image's boot script creates it as 755, and it inherits the setgid bit of the PVC root. The shared-permissions init container creates it with 777 and clears setgid first.
  • SeaDoc runs without NON_ROOT: its boot script creates /shared/logs as 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 (the nas group on port 443) and github.com and api.github.com for 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 api rule includes /signalr, so Bazarr can follow it over SignalR with an API key.

Radarr

  • Like Sonarr, its api rule includes /signalr for 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, user and guest.
  • 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.yaml in app/, microservices/ and machine-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.cloud is blocked. The setting is server-wide, so switching it back on sets off CiliumEgressPolicyDenied; 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-cache volume (10Gi ceph-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 the Recreate strategy. Model files redirect to CDN hosts several levels below hf.co, hence **.hf.co in the policy (*. matches one level only).
  • Downloads use HF_TOKEN (the immich item 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_TELEMETRY switches it off; without it, every start sets off CiliumEgressPolicyDenied (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 HTTPRouteFilter after the Pocket ID login, so there is no second login.
  • Its api rule matches the ApiKey header (Whisparr) or the apikey query 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_URL points 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.com and the Cloudflare R2 host it redirects the download to (GeoLite2, refreshed every 14 days), and raw.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 off CiliumEgressPolicyDenied.
  • 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 off files. Its PVC comes back from the newest Kopiur snapshot, and its files are still in the opencloud Garage 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 sub claim. It has four public PKCE clients in Pocket ID, with fixed client IDs:

    Client ID Callback URLs
    opencloud-web https://files.bykaj.app/, https://files.bykaj.app/oidc-callback.html, https://files.bykaj.app/oidc-silent-redirect.html
    OpenCloudDesktop http://127.0.0.1, http://localhost (any port is accepted)
    OpenCloudIOS oc://ios.opencloud.eu
    OpenCloudAndroid oc://android.opencloud.eu
  • Roles come from the groups claim 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 sends groups for the groups scope, so the web and app scopes include it.

  • CSP (resources/csp.yaml) is OpenCloud's default plus https://cyrannus.id/.
  • Email. The optional notifications service 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-extensions images 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 subPath web/apps/<name>. A Renovate rule treats the <extension>- tag prefix as a separate line per extension.