AniFlow

Documentation

Security and privacy

The login, what to protect, and what AniFlow contacts.

The login

AniFlow has exactly one account. The login exists to keep other people on your network (a flatmate's laptop, a smart TV) from opening AniFlow and changing your library. It is not built to withstand a determined attacker, which is why the rules below on exposure matter.

Creating the account

On the first start AniFlow prints a one-time code to the container log. The setup wizard asks for it, so that only someone who can read the log can create the account:

docker logs aniflow 2>&1 | grep "one-time code"

The code is valid for 60 minutes and works once. It is printed on a line that no log level can hide. If it has expired, restart the container and read the log again. The wizard then asks for a username (3 to 80 characters) and a password.

Password rules

At least 8 characters (at most 200). A phrase is better than a short word with symbols in it. Passwords are stored as salted scrypt hashes, never in plain text.

Sessions and logging out

A login lasts 90 days and is extended every time the browser uses it, so an active browser is not asked again. The session survives a container restart. Log out ends the session of that browser. Only a hash of the session key is stored, so a copy of the database does not contain working logins.

After 10 wrong passwords in a row, logins are refused for 5 minutes, and every failed attempt is answered with a short delay.

Changing username or password

Go to Settings -> Account. Fill in only what you want to change: a new username on its own renames the account, a new password on its own replaces the password. Your current password is always required, and the button is Change username or password.

Forgotten password

On the login page choose Forgot your password?, then Write a new code to the log. Read the code from the container log the same way as for setup, enter it and choose a new password. The code works once and lasts an hour. Setting a new password signs out every logged-in browser.

The connection is plain HTTP

Careful

AniFlow serves plain HTTP. The password travels in clear text on your network every time you log in. Do not expose AniFlow to the internet directly (no port forward on your router).

If you want to reach AniFlow from outside your home, do it in one of these ways:

The session cookie is marked Secure automatically when the request arrived over HTTPS (so it needs no setting when you add a reverse proxy), and it is always HttpOnly and SameSite=Lax. Your reverse proxy must pass the original scheme to AniFlow; if you reach AniFlow over HTTPS but AniFlow sees HTTP, the cookie will not be marked Secure.

What is stored, and where

WhatWhereHow
Watchlist, libraries, downloads, Activity/data/aniflow.dbSQLite database
Username and password/data/aniflow.dbSalted scrypt hash
Login sessions/data/aniflow.dbOnly a SHA-256 of each session key
Paired TVs/data/aniflow.dbName and a SHA-256 of the token; the token itself is never stored
Download client, proxy and Shoko credentials/config/aniflow.yamlPlain text
Log/config/log/aniflow.logRotating files

Because the integration secrets are plain text, protect the /config folder: only the user AniFlow runs as should be able to read it. AniFlow creates the settings file with mode 0600 where the filesystem allows. Keys and passwords are never returned by the AniFlow API (the interface only learns whether one is set) and are not written to the log. Backup files contain them (see Backup, restore and updating).

What works without logging in

Everything under the API needs a session except:

Paired TVs

Each TV gets its own token. From Settings -> Integrations you can see every paired TV and press Revoke to cut one off. A TV can read the watchlist, the schedule, the calendar and In Progress, and add a show to the watchlist; nothing else. See Themes, TV app and debug mode.

Privacy

AniFlow has no analytics, no telemetry, no crash reports, no update check and no account with its authors. Nothing is sent anywhere unless it is one of the requests below, which you started or configured.

What AniFlow contacts

All requests are made by the AniFlow server, never by your browser. Each one identifies itself as AniFlow/<version> and carries no identifier of yours.

WhereWhat it receivesWhen
AniList (graphql.anilist.co), Kitsu (kitsu.io)Search words, titles and ids of what you addMetadata lookups; both are used by default
Jikan (api.jikan.moe), MyAnimeList (api.myanimelist.net), Shikimori (shikimori.one)Titles and idsOnly if you switch the source on; MyAnimeList also needs your own client id
AniDB (anidb.net)Nothing but the request: AniFlow downloads the published title dumpAbout once a week, never more than that
GitHub (raw.githubusercontent.com, the anime-lists id mapping)Nothing but the requestAbout once a week
api.country.is, ipwho.is, api.ipify.orgNothing but the requestOnly when you press the proxy check
The indexers and feeds you addSearch words and the server's addressWhen you search or a feed is scanned
Your download client, Shoko, your proxyWhat the integration needs, including the credentials you gaveOnly the addresses you configured, normally on your own network
The image servers of the metadata providersNothing but the request, through your proxy if you set oneOnce per cover, the first time it is shown

Covers

Covers never load in your browser from a provider. Your browser asks AniFlow, and AniFlow asks the provider once and keeps the picture in /data/cover-cache. A provider therefore sees your server's address, never your visitors'. Only the providers' own image hosts can be fetched this way, over HTTPS.

Proxy

You can send AniFlow's own internet requests through a proxy (Settings -> Integrations). Your download client, Shoko and your own network always go direct, and a proxy in AniFlow does not hide torrent traffic. See Settings.

What your browser stores

The session cookie (needed to stay logged in) and a few display preferences in local storage, such as language, sort order and the adult-content filter. Fonts are bundled and nothing is loaded from a CDN. No tracking cookies are used.

The diagnostics file

The diagnostics zip is built only when you press Download diagnostics, and saved by your browser. AniFlow never sends it anywhere. Passwords, keys and tokens are removed, but anime titles and folder paths are in it, and so are the addresses of your own machines. Open it and read it before you share it.

The first screen of the setup wizard shows a short notice that has to be accepted before an account is created. The same text, in English and German, is in LEGAL.md and LEGAL.de.md in the project. In short:

This is a plain-language notice, not legal advice. AniFlow is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 (CC BY-NC-ND 4.0); see the LICENSE file.