Administration

Accounts and workspaces

OpenPost separates people (accounts) from the places they publish from (workspaces). Connected social accounts, drafts, schedules and media belong to a workspace, and only its members see them. Every member holds a workspace role, and only roles with publishing rights may publish or schedule.

The first account of a fresh instance becomes the instance admin. The deploy registers the break-glass account first for that reason (see Break-glass instance admin). Instance admins manage users, provider apps and instance settings under Settings → Instance; workspace owners invite members and assign their roles under Settings → Workspace → Team.

Single sign-on

The role configures OpenPost’s instance-wide OIDC provider against the shared Keycloak client (OIDC.CLIENT.*) whenever web-app-keycloak is deployed.

  • Users sign in with the Keycloak button on the login page. OpenPost provisions them just in time on their first verified login (OPENPOST_OIDC_JIT_ENABLED=true) and matches later logins by issuer and subject.

  • The platform_administrator is listed in OPENPOST_OIDC_BOOTSTRAP_ALLOWLIST and becomes instance admin on its first SSO login.

  • A just-in-time user starts without access to existing workspaces. Grant access by inviting the user from the workspace’s team settings; OpenPost does not consume Keycloak groups.

  • Password self-registration is closed. OpenPost gates password sign-up and just-in-time provisioning with the same switch, so with Keycloak deployed the role keeps OPENPOST_DISABLE_REGISTRATIONS=false and the shared proxy answers POST /api/v1/auth/register with HTTP 403; without Keycloak the switch itself is set.

  • OpenPost ships no LDAP adapter, so the role declares no ldap service. Directory accounts sign in through Keycloak, which federates OpenLDAP, over OIDC.

  • OpenPost never links an SSO identity to an existing account with the same e-mail address automatically. The break-glass account therefore uses its own address, and a person who already holds a local account keeps signing in with its password until an instance admin removes the local account and the person signs in through Keycloak again.

  • For workspaces that require SSO, OPENPOST_SSO_BREAK_GLASS_EMAILS names instance admins that may still enter with their password plus TOTP or a passkey during an identity-provider outage. Add the break-glass address to that list through the inventory once the account has a second factor.

  • OpenPost also offers a trusted-proxy sign-in (OPENPOST_PROXY_AUTH_SECRET, header X-OpenPost-Proxy-User). The role does not enable it; it is the fallback for a deployment that has to front OpenPost with oauth2-proxy instead of native OIDC, and it then requires the proxy to strip client-supplied X-OpenPost-Proxy-* headers.

Break-glass instance admin

The deploy bootstraps the local account web-app-openpost-breakglass (username openpost-breakglass, password generated into the inventory) as the first OpenPost account, which makes it the instance admin. Use it when Keycloak is unavailable: open https://publish.<DOMAIN_PRIMARY>/ and sign in with the e-mail address and password from the inventory. When the inventory password changes, for example through credential rotation, the deploy writes its bcrypt hash into the existing account, so a password changed in the UI is reset on the next deploy as well. If the deploy reports that the break-glass account can neither sign in nor be registered, another account became the first instance admin; sign in with that account and repair the break-glass account, or restore the database from backup.

Egress guard and relay

OpenPost protects itself against server-side request forgery with its netguard package. Before it connects to a provider URL that a user entered, such as a Mastodon instance, it resolves the name and refuses the connection when any address lies in a private, loopback, CGNAT, link-local, documentation, benchmarking, multicast or reserved range. It repeats the check when it dials and on every redirect, ignores proxy variables and offers no switch for built-in providers.

Inside an Infinito.Nexus deployment the sibling vhosts usually resolve to private addresses: the development stack, split-horizon DNS and WireGuard meshes all answer with RFC 1918 or mesh addresses. The role therefore runs an nginx stream relay next to OpenPost:

  • The role network uses 192.88.99.0/24, the deprecated 6to4 relay anycast block (RFC 7526), which netguard accepts as a global unicast range and which never leaves the Docker host. meta/networks.yml declares that block with outside_pool: true for that reason, which puts the role in NETWORK_ROLE_SUBNET_EXCEPTION_ROLES.

  • The relay carries OpenPost’s own canonical domain, the canonical domains of the deployed Mastodon, Pixelfed and PeerTube roles, and the public domain of the object store, as network aliases, so OpenPost resolves those names to the relay. OpenPost writes media to the object store’s public endpoint because browsers upload through the same presigned URLs; the alias keeps those writes on the shared proxy even where that public name only resolves through Tor. OpenPost requests its own public media URLs before it lets a provider fetch them. With svc-net-tor deployed, the host drops DNS queries from every range outside the internal ones, 192.88.99.0/24 included, so without the alias that check would time out resolving the name.

  • The relay reads the SNI of each TLS connection, forwards a mapped name unchanged to the shared OpenResty proxy and closes every other connection.

  • Onion services carry no TLS, so the relay also forwards plain HTTP on port 80 to the proxy, which routes it by Host; only the aliased names resolve to the relay. It forwards to host.docker.internal, which points at the Docker host in compose and at the stack host in swarm.

  • TLS stays end to end between OpenPost and OpenResty; in self-signed mode OpenPost trusts the platform CA through the compose CA injection.

Every destination that is not one of these aliases still passes through the guard unchanged. A sibling instance that runs on another host is covered as long as the shared proxy of this host serves its vhost; a Fediverse instance outside the deployment needs no relay because it resolves to public addresses. OpenPost’s Mastodon registration accepts https on port 443 only, so the relay requires TLS on the sibling vhosts.

Provider credentials

Developer app credentials live in the central API mapping of group_vars/all/18_api.yml and are overridden in the vault-encrypted inventory. A network whose entry is incomplete (lookup('api_enabled', '<provider>') is false) is not configured in OpenPost and cannot be connected.

API entry

OpenPost setting

Networks

x

X_CLIENT_ID, X_CLIENT_SECRET

X

meta

OPENPOST_PROVIDER_APPS entries facebook and instagram

Facebook Pages, Instagram

threads

THREADS_CLIENT_ID, THREADS_CLIENT_SECRET

Threads

linkedin

LINKEDIN_CLIENT_ID, LINKEDIN_CLIENT_SECRET

LinkedIn

youtube

OPENPOST_PROVIDER_APPS entry youtube

YouTube

tiktok

OPENPOST_PROVIDER_APPS entry tiktok

TikTok

Mastodon, Pixelfed, PeerTube and Bluesky need no operator credentials: PeerTube exchanges the user’s password once for tokens, and Bluesky uses an app password. For Mastodon and Pixelfed the deploy registers an OpenPost app on every deployed sibling instance once, stores its credentials in fediverse-apps.json in the role’s config directory and renders them into MASTODON_SERVERS and PIXELFED_SERVERS, named by the instance’s canonical URL with a trailing slash. OpenPost v7.22.9 can register apps on any other instance by itself, but its code exchange then checks provider readiness against the bare host name the dialog sends and refuses with provider operation is not ready: needs_configuration; an external instance therefore needs the same pinning through those two variables. The name has to differ from the URL, because OpenPost hides a server named exactly like its URL from the connect dialog, which then falls back to its own registration and accepts only https:// instances. Its code exchange strips the trailing slash, so readiness still matches the canonical URL, and onion instances served over plain HTTP connect through the pinned app. Pixelfed registers API apps without an owner, and Laravel Passport 13 then treats them as client_credentials clients and rejects every token whose user ID equals the app’s client ID, which on a fresh instance is the administrator and app number 1. The deploy therefore makes the Pixelfed administrator the owner of OpenPost’s Pixelfed app on every run. Every callback URL has the form https://publish.<DOMAIN_PRIMARY>/api/v1/accounts/<provider>/callback.

Provider simulator

Variant 0 of meta/variants.yml starts a WireMock simulator on the role network that answers for X, Facebook, Instagram, YouTube and TikTok under their real API host names. Next to it runs the fake provider, a small stateful Python service built from files/provider/Dockerfile and the files/python/provider/ package that plays LinkedIn on www.linkedin.com and api.linkedin.com: members sign up on /signup, grant OpenPost access on the consent page, and the fake keeps the tokens, images and posts it receives. The deploy signs a certificate for all those names with a per-deploy test CA in the role’s config directory, OpenPost trusts that CA through SSL_CERT_DIR, and the role renders simulator-<provider> credentials instead of the API entries for the simulated providers. The keystore that carries the certificate uses WireMock’s built-in keystore password, so WireMock starts without any password on its command line. The fake also publishes plain HTTP on the local port of services.provider.ports.local.http; Playwright routes https://www.linkedin.com/ there, and /__fake/linkedin/posts lists what OpenPost delivered. The mappings live in files/simulator/openpost.json; a post whose text contains [simulate-429], [simulate-503] or [simulate-400] gets that answer from the X endpoint once. OpenPost v7.22.9 retries a 429 by itself after the reset header, but treats a 503 to a write as an ambiguous delivery: the destination stays in “Manual review required”, its retry is refused, and after confirming on the network that nothing was posted the post has to be published again to that destination. A destination that failed with a definite rejection can be retried on its own. TikTok renditions need content_posting_method, privacy_level and music_usage_confirmed, YouTube renditions need privacy and category_id and wait for the media analysis to finish, and LinkedIn Organization Pages stay off, so a LinkedIn account connects as the member’s personal profile. The simulator and the fake provider never run in production; leave the variant to CI and local tests.

Networks

Network

Post types

Developer app and account

Scopes

Review or verification

Quota

Cost (October 2026)

Token upkeep

Mastodon

Text, up to 4 images or one video, threads, scheduling

None; any instance, account of the user

read write

None

Set by the instance

None

Tokens do not expire

Pixelfed

Up to 4 photos, albums

None; any instance

read write

None

Set by the instance

None

Tokens do not expire

PeerTube

One video per post to one channel

None; instance username and password

Password exchanged once

None

Instance upload quota

None

OAuth tokens stored encrypted; the password is never stored

Bluesky

Text, up to 4 images or one MP4, threads

None; app password

App password

None

About 1,666 creates per hour

None

Sessions last up to 180 days and renew from the app password

Facebook Pages

Text, 1–10 images, public video URL, Stories, Reels

Meta Business app; Facebook Page

pages_manage_posts, pages_read_engagement, pages_show_list, business_management and the further scopes in the upstream .env.example

Standard Access for app-role users without App Review; App Review for everyone else

Reels: 30 per Page per 24 h

No fee found

Long-lived Page tokens do not expire

Instagram

Images, carousels, Reels, Stories; no text-only posts

Meta app; Business or Creator account

instagram_basic, instagram_content_publish, pages_show_list and further scopes

App Review for non-role users

100 per 24 h

No fee found

Instagram Login tokens last 60 days and refresh

X

Text (280 weighted characters), up to 4 images or one video, threads

X developer app with prepaid credits

tweet.read, tweet.write, users.read, offline.access

None beyond the developer agreement

100 per 15 min per user

$0.015 per post, $0.20 per post with a URL

Access tokens refresh via offline.access

YouTube

One video or Short per post, no text or image posts

Google OAuth client; YouTube channel

youtube.upload, youtube.readonly, userinfo.profile, userinfo.email

Production status and Google verification for sensitive scopes

100 videos.insert calls per day

No fee found

Testing-status refresh tokens expire after 7 days

LinkedIn

Text, images, documents, one MP4

LinkedIn app; member or Organization Page

openid, profile, w_member_social; organization scopes need approval

Community Management API vetting of the legal entity

Development tier: 500 calls per app per day

No fee found

60-day tokens without refresh

Threads

Text (500 characters), image or carousel, video

Meta app with the Threads product

threads_basic, threads_content_publish

App Review for non-role users

250 per 24 h

No fee found

60 days, refreshable

TikTok

One video or 1–35 photos; no text-only posts

TikTok developer app

user.info.basic, video.publish, video.upload

Content Posting API audit

About 15 per creator per day

No fee found

Not researched

Sources: the OpenPost provider reference, its environment variables and the platform sources listed in the role’s requirement.

Crossposter

The crossposter sidecar polls Mastodon, Pixelfed and PeerTube accounts and hands every new post to OpenPost through a workspace API token that the deploy issues for the organisation workspace. It runs only while at least one route is configured, keeps its cursors and delivery records in the crossposter schema of the OpenPost database and lets exactly one instance work at a time through a Postgres advisory lock.

Routes

Routes live under services.crossposter.routes of web-app-openpost in the inventory:

applications:
  web-app-openpost:
    services:
      crossposter:
        poll_interval_seconds: 60
        opt_out_tag: nocrosspost
        retry:
          max_attempts: 8
          base_seconds: 30
          cap_seconds: 3600
        notify:
          recipients:
            - press@example.org
        routes:
          - name: press-mastodon
            source:
              platform: mastodon
              base_url: "https://microblog.example.org"
              account: press
              token: "{{ vault_crosspost_press_mastodon_token }}"
            filters:
              visibility: [public]
              exclude_replies: true
              exclude_reblogs: true
              tags: []
              media: any
            targets:
              social_set: Commercial
            mode: review
            attribution:
              default: "{text}\n\n{source_url}"
              x: "{text}"

Key

Meaning

source.platform

mastodon, pixelfed or peertube.

source.account

Mastodon or Pixelfed username, or PeerTube channel name.

source.token

Read token of the source account, vault-encrypted. It reaches the container as a secret file, never as an environment variable.

filters.visibility

Visibilities that are forwarded, usually [public].

filters.tags

Forward only posts carrying one of these hashtags; empty forwards every post.

filters.media

any, required or none.

targets

Either social_set (name of an OpenPost Social Set) or accounts (list of account slugs).

mode

review creates an unscheduled draft; auto publishes immediately. New routes start in review.

attribution

Template per network with {text} and {source_url}; default covers networks without their own entry.

A route is left out of the deployed configuration while the OpenPost service of its source.platform (services.mastodon, services.pixelfed or services.peertube) is disabled, for example PeerTube on an onion-only deployment, since PeerTube refuses the onion. The deploy validates every remaining route against OpenPost and fails with the route name and the field when a platform is unknown, a token is missing or a target is not connected. Connect the target accounts and create the Social Set in OpenPost before adding the route. On the CI rounds with the provider simulator the routes carry no token: the deploy mints read tokens on the local instances, connects the local Mastodon account and creates the empty Social Sets that the CLI probe fills.

Review and auto

In review mode an editor finds the crossposted post among the drafts of the desk, adjusts it and schedules or publishes it. In auto mode the crossposter publishes immediately. A post with a content warning, or with mentions that a commercial network cannot resolve, always becomes a draft.

Activating a route forwards none of the account’s existing posts: its cursor starts at the newest post. Each poll costs a route one request plus one per further page of new posts (at most five), and on PeerTube one more per new video, so the default 60-second interval stays far below Mastodon’s and Pixelfed’s 300 requests per five minutes and PeerTube’s API limit. An author keeps a single post local by adding the #nocrosspost hashtag. Posts that OpenPost itself published to Mastodon are never forwarded again, so one account can be source and target.

Attribution and X cost

Each network gets its own template. The default X template omits the source link, because a post with a URL costs about 13 times more on the X API. Text is shortened to each network’s limit without breaking words, links or hashtags, and Fediverse mentions become plain names on X and profile links elsewhere.

Source tokens

Platform

How to create the read token

Mastodon

Preferences → Development → New application with the read scope, then copy the access token.

Pixelfed

Settings → Applications → Personal access tokens, create one with the read scope.

PeerTube

POST /api/v1/users/token with the local OAuth client and the account’s password; PeerTube channel listings are public, the token only identifies the crossposter.

Failed deliveries

Transient errors (network errors, HTTP 429 and 5xx) are retried with capped exponential backoff and jitter that honours Retry-After and rate-limit reset headers. When OpenPost reports a provider outage for an automatic publication, the crossposter publishes it again under a new idempotency key. After retry.max_attempts the item is dead-lettered; a permanent rejection by the provider marks it failed. Both reach notify.recipients in one mail per poll, with the source post, the target and the last error.

List every crossposted item with its state:

container exec <crossposter container> python -m crossposter list --config /config/crossposter.json

A dead-lettered item stays in that state; publish the post again from the OpenPost desk when the cause is fixed.

Unsupported features and workarounds

Limitation

Workaround

TikTok’s content sharing guidelines reject in-house upload tools as a use case for the Content Posting API.

Publish to TikTok manually, or apply with a use case TikTok accepts; keep TikTok credentials empty until then.

X charges $0.20 instead of $0.015 for a post that contains a URL.

Write the X rendition without links, or accept the surcharge per post.

X forbids identical content across accounts of the same owner.

Give each X account its own rendition.

On an onion-only deployment OpenPost marks uploaded media as unreachable for providers, because X, Meta, LinkedIn, YouTube and TikTok cannot fetch from a .onion origin.

Serve media from object storage with a clearnet public URL, or publish text-only posts to commercial networks.

OpenPost cannot connect a Mastodon or Pixelfed instance served only on a .onion name: its Go resolver refuses to look up .onion names (RFC 7686), and its own app registration accepts only https:// instances. The deploy therefore pins no app for an onion sibling, and the CI connect checks skip it.

Connect the instance through a clearnet name. The crossposter still reads onion sources, because Python resolves them through the relay.

On a compose deployment served on .onion, single sign-on fails: OpenPost reaches the onion Keycloak only through Tor’s SOCKS port, which svc-net-tor opens to the internal ranges, and OpenPost’s role subnet 192.88.99.0/24 is not one of them. The CI round with SSO therefore runs clearnet only.

Sign in with a native OpenPost account on onion deployments.

OpenPost’s X budget guardrail (OPENPOST_X_MONTHLY_BUDGET_MICROUSD) applies only in its cloud edition.

Cap X spending through the prepaid credits of the X developer account.

Instagram accepts JPEG only and fetches media from a public URL.

Deploy web-svc-seaweedfs so media gets public HTTPS URLs; convert other image formats before upload.

Facebook, Instagram, Threads and TikTok fetch media from public HTTPS URLs.

Same as above; without web-svc-seaweedfs media is served under /media/ of the public OpenPost domain, which also works when that domain is reachable from the internet.

LinkedIn requires vetting of the legal entity and re-authorisation every 60 days.

Plan the vetting before launch and schedule a re-authorisation reminder.

YouTube projects in testing status lose refresh tokens after 7 days.

Move the Google OAuth client to production status and complete verification.

Bluesky is also reachable without OpenPost through web-app-bridgy-fed.

Use the bridge for automatic federation and OpenPost for deliberate Bluesky-native posts.

OpenPost connects PeerTube only through the OAuth password grant, and PeerTube accounts that sign in through Keycloak have no local password.

Connect a local PeerTube account: the root account, which a fresh web-app-peertube instance creates with the first 50 characters of the platform administrator’s password, or one the PeerTube administrator creates for publishing. PeerTube then asks for the channel each video goes to.

Sibling Fediverse instances are reachable only over TLS on port 443.

Keep TLS enabled for web-app-mastodon, web-app-pixelfed and web-app-peertube.

OpenPost’s media upload, avatar upload and instance backup routes believe X-Forwarded-Proto only from loopback, link-local or private peers, unlike the rest of its API, which follows OPENPOST_TRUSTED_PROXY_CIDRS. Behind the shared proxy on the role subnet 192.88.99.0/24 they take an HTTPS session for plain HTTP and refuse it as cross-site (HTTP 403 cross-site session request rejected) whenever media stays in the role volume.

The role adds one location for exactly those routes to its vhost (templates/nginx/echo_routes.conf.j2). It forwards them as plain HTTP and rewrites the browser’s own https:// origin to http://, so both sides agree in compose and swarm; OpenPost still compares the origin’s host.

Data processing and dependencies

  • Every network receives exactly what a user publishes to it: the rendition text, attached media, alt text and post settings, plus the OAuth tokens of the connected account.

  • Facebook, Instagram, Threads and TikTok additionally download the attached media from its public URL.

  • Provider tokens and provider-app secrets are stored in Postgres encrypted with AES-256-GCM under OPENPOST_ENCRYPTION_KEY; the key lives in the inventory and is needed to restore a backup.

  • Diagnostics, the update check, PostHog telemetry, the feedback form, public profiles, stock media search and workflow AI are disabled, so the instance sends nothing to OpenPost’s maintainers or to AI providers.

  • Third-party dependencies at runtime are the APIs of the connected networks only.

  • OpenPost is licensed AGPL-3.0-only. The role deploys the unmodified upstream image and links its source, which satisfies the AGPL’s source-offer obligation for network users; the role’s own files remain under the Infinito.Nexus Community License.

Backup, restore and upgrades

  • With web-svc-seaweedfs deployed, browsers upload media directly to its public S3 vhost through presigned URLs, which is why OPENPOST_S3_ENDPOINT is the public endpoint and the CSP allows it in connect-src; OpenPost deduplicates identical files by content hash. With TLS_MODE=self_signed the role always mounts the root CA into OpenPost and adds it to SSL_CERT_DIR, because an onion-primary OpenPost receives no CA injection while that vhost and the local Fediverse siblings behind the relay stay on clearnet HTTPS.

  • The platform backup covers the OpenPost database in the shared Postgres and the openpost_media volume; media in web-svc-seaweedfs is covered by that role’s backup.

  • A restore needs the database, the media and the inventory secrets, especially encryption_key; without it the stored provider tokens cannot be decrypted and every network has to be reconnected. The key is pinned rotatable: false because OpenPost refuses to start once a stored row no longer decrypts; the other secrets rotate freely.

  • Changing the pinned version in meta/services.yml and redeploying runs OpenPost’s own migrations, which take a Postgres advisory lock. Only the latest upstream release receives security fixes, so follow new release tags promptly.

Staging checklist

Run these checks against real platforms after onboarding a network and after every OpenPost upgrade:

  1. Connect the account in a staging workspace and confirm OpenPost shows it as connected.

  2. Publish a text post (where supported), an image post and a video post immediately.

  3. Schedule a post five minutes ahead and confirm it appears on time.

  4. Open each published post through the link in OpenPost.

  5. Disconnect the account and reconnect it to confirm token renewal.

  6. Record the result in the matrix below.

Verified combinations

Network

Content type

OpenPost version

Date

Result

Mastodon (local instance)

Text

v7.22.9

2026-10-22

Published, CI end-to-end test

Pixelfed (local instance)

Image

v7.22.9

2026-10-22

Published, CI end-to-end test

PeerTube (local instance)

Video

v7.22.9

2026-10-22

Published to the root channel, CI end-to-end test

X (simulator)

Text, scheduled text

v7.22.9

2026-10-22

Published; 429 retried, 503 held for manual review, 400 failed

Facebook Pages (simulator)

Text to two Pages

v7.22.9

2026-10-22

Published

Instagram (simulator)

JPEG image

v7.22.9

2026-10-22

Published from a public media URL

YouTube (simulator)

Video

v7.22.9

2026-10-22

Published through a resumable upload

LinkedIn (fake provider)

Text, crossposted from Mastodon and edited in the desk

v7.22.9

not yet verified

CI end-to-end test

TikTok (simulator)

Photo

v7.22.9

2026-10-22

Published

Facebook Pages

Text, image

v7.22.9

not yet verified

Manual staging check

Instagram

Image

v7.22.9

not yet verified

Manual staging check

X

Text

v7.22.9

not yet verified

Manual staging check

YouTube

Video

v7.22.9

not yet verified

Manual staging check