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_administratoris listed inOPENPOST_OIDC_BOOTSTRAP_ALLOWLISTand 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=falseand the shared proxy answersPOST /api/v1/auth/registerwith HTTP 403; without Keycloak the switch itself is set.OpenPost ships no LDAP adapter, so the role declares no
ldapservice. 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_EMAILSnames 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, headerX-OpenPost-Proxy-User). The role does not enable it; it is the fallback for a deployment that has to front OpenPost withoauth2-proxyinstead of native OIDC, and it then requires the proxy to strip client-suppliedX-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), whichnetguardaccepts as a global unicast range and which never leaves the Docker host.meta/networks.ymldeclares that block withoutside_pool: truefor that reason, which puts the role inNETWORK_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-tordeployed, the host drops DNS queries from every range outside the internal ones,192.88.99.0/24included, 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 tohost.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.
|
OpenPost setting |
Networks |
|---|---|---|
|
|
X |
|
|
Facebook Pages, Instagram |
|
|
Threads |
|
|
|
|
|
YouTube |
|
|
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 |
|
None |
Set by the instance |
None |
Tokens do not expire |
Pixelfed |
Up to 4 photos, albums |
None; any instance |
|
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 |
|
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 |
Images, carousels, Reels, Stories; no text-only posts |
Meta app; Business or Creator account |
|
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 |
|
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 |
YouTube |
One video or Short per post, no text or image posts |
Google OAuth client; YouTube channel |
|
Production status and Google verification for sensitive scopes |
100 |
No fee found |
Testing-status refresh tokens expire after 7 days |
Text, images, documents, one MP4 |
LinkedIn app; member or Organization Page |
|
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 |
|
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 |
|
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 |
|---|---|
|
|
|
Mastodon or Pixelfed username, or PeerTube channel name. |
|
Read token of the source account, vault-encrypted. It reaches the container as a secret file, never as an environment variable. |
|
Visibilities that are forwarded, usually |
|
Forward only posts carrying one of these hashtags; empty forwards every post. |
|
|
|
Either |
|
|
|
Template per network with |
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 |
Pixelfed |
Settings → Applications → Personal access tokens, create one with the |
PeerTube |
|
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 |
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 |
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 |
Sign in with a native OpenPost account on onion deployments. |
OpenPost’s X budget guardrail ( |
Cap X spending through the prepaid credits of the X developer account. |
Instagram accepts JPEG only and fetches media from a public URL. |
Deploy |
Facebook, Instagram, Threads and TikTok fetch media from public HTTPS URLs. |
Same as above; without |
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 |
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 |
Sibling Fediverse instances are reachable only over TLS on port 443. |
Keep TLS enabled for |
OpenPost’s media upload, avatar upload and instance backup routes believe |
The role adds one location for exactly those routes to its vhost ( |
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-seaweedfsdeployed, browsers upload media directly to its public S3 vhost through presigned URLs, which is whyOPENPOST_S3_ENDPOINTis the public endpoint and the CSP allows it inconnect-src; OpenPost deduplicates identical files by content hash. WithTLS_MODE=self_signedthe role always mounts the root CA into OpenPost and adds it toSSL_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_mediavolume; media inweb-svc-seaweedfsis 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 pinnedrotatable: falsebecause OpenPost refuses to start once a stored row no longer decrypts; the other secrets rotate freely.Changing the pinned version in
meta/services.ymland 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:
Connect the account in a staging workspace and confirm OpenPost shows it as connected.
Publish a text post (where supported), an image post and a video post immediately.
Schedule a post five minutes ahead and confirm it appears on time.
Open each published post through the link in OpenPost.
Disconnect the account and reconnect it to confirm token renewal.
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 |
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 |
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 |