To publish on our behalf, a scheduling tool has to hold the keys to our social media accounts. We preferred to keep those keys on our own server, behind the same door as our other internal tools. It is a defensible choice, but not a free one, and the bill did not arrive where we expected it.
Update of 28 November 2026.
The security audit of our server, on 23 November 2026, also reviewed the publishing tool, and we tightened up three things. The Postiz containers are now pinned to the exact digest of their image, no longer to a mere version tag: an update can no longer arrive without our having chosen it. Files uploaded to the tool are served under a Content Security Policy (CSP) that prevents them from executing anything, even a booby-trapped drawing. Finally, the API, which remains outside single sign-on, accepts fewer types of request and can be restricted to a list of addresses; its key must be rotated at least every 90 days.
The first network connected is Bluesky, and it is still the only one as of 28 November: the Mastodon application is registered, but the account is not yet connected. What the audit checked elsewhere on the server is described in Watching over our own server.
The problem: someone has to keep the keys
Scheduling a post for Tuesday morning means that some piece of software must be able, on Tuesday morning, to talk to the social network on our behalf. It does so with an access token, that is, an authorisation the network issues to an application so that it can act on an account without knowing its password. Whoever holds this token can post, and often read the statistics and the messages, for as long as nobody revokes the authorisation.
The most common solution is to subscribe to an online scheduling service, which then holds all its subscribers’ tokens along with their publishing calendars. It is convenient, since there is nothing to install and the service has already had its application approved by each network. We ruled it out all the same, for a reason our design document sums up in one line. The tokens and the calendar would sit with a third party, whereas we host everything else in the project ourselves, in Europe, as a matter of principle. It would have been odd to make an exception for the most visible part.
We also ruled out the other extreme, a few home-grown scripts calling each network directly, because that meant rewriting a calendar, a media library and each platform’s authorisation mechanics. That left open-source software that you install and host yourself.
What we installed, and why
We chose Postiz, a scheduling tool whose code is published under the AGPL-3.0 licence and which covers the networks we had in mind. On 12 November we installed it on our server, with a daily backup that we test-restored the same day, because a backup that has never been restored is only a hypothesis.
The tool’s interface cannot be reached directly from the Internet. Two paths are exceptions: the images attached to posts, which the networks must be able to read, and an API protected by a key. Everything else sits behind our single sign-on (or SSO, the service that lets you log in once to reach several tools), provided by LemonLDAP::NG, whose arrival we described in an earlier article. We had first thought of a login link sent by email, then dropped the idea. Since a shared door already existed for our other tools, adding a second one would have meant two places to revoke access on the day someone leaves the project.
A few days later, logging in to the tool itself moved to OpenID Connect, the standard protocol by which an application asks an identity provider who the person in front of it is. In practice, there is no longer a separate password to type for the publishing tool: the SSO answers.
What we gain
- The tokens never leave our server. We store them ourselves and back them up with the rest, and no provider holds a copy.
- One main door. The people who publish go through the SSO, and that is where access is revoked. Besides that door there remain an API key and an emergency account, to be watched as such.
- A calendar that belongs to us. Drafts, images and publication dates are data like any other, which we can read back, export or delete.
- A rule that is simple to keep. We set ourselves the rule that nothing goes out until a human has reviewed it, and that rule is easier to keep in a tool whose settings we control. The same principle applies to our notebook: see the site and its cookie-free audience measurement.
What it costs
A second container engine, and a privileged one
From the start, our services have run in containers started by an ordinary account, without root privileges, and we explained why in the article on hosting. Postiz ships as a set of several containers, including a task orchestrator and a search engine, defined for Docker. Its documentation does not cover Podman. Porting it to Podman, which we use, would have meant re-applying every update by hand. And a painful update is one you eventually stop doing.
So we installed Docker alongside, for this one piece of software. But the Docker daemon requires root privileges, except in a special mode that we did not adopt here. That is the opposite of our rule, and we accept it as a compromise. The rule written that day says that our own services stay unprivileged, that only third-party software shipped in this form goes through Docker, and that nothing it starts can be reached except through our front-end web server.
Memory
The whole stack uses about 2.8 GiB of RAM when idle, which is a lot for a tool that spends most of its time waiting for Tuesday morning.
The formalities with each network
This is the cost we had most underestimated. An online service gets its application approved once, for all its subscribers. Hosting the tool ourselves, we have to register our own application with each platform, and each has its own rules. On Mastodon, registering an application takes a few minutes. Elsewhere, an application stays in testing mode until the platform has verified it, with the limits that implies. With Google, for example, an application left in that state finds that its authorisations expire after seven days. On top of that come the steps no tool can take for us: switching an account to a business account, a phone verification, a visual puzzle to solve. There is a certain irony in having to prove to a form that you are not a robot in order to publish automatically.
A licence to comply with
The AGPL would oblige us to publish our modifications if we changed the tool’s code. We therefore use it unmodified, and anything we might want to add around it (preparing content, suggesting draft replies) will have to be written alongside it, not inside it.
Operations
Updates, backups and monitoring are now our job. Our design document says so plainly: if this burden became too heavy, the online service would become a reasonable option again.
Where we stand.
The tool is in service on our server, behind the SSO, backed up every day. At the time of writing, we have connected a first network to it, and the others are waiting for us to finish the formalities each platform requires. Assisted preparation of content and help with replying to comments, both planned in our design document, have yet to be written. We do not yet have enough experience of day-to-day use to say whether the time saved by scheduling makes up for the time spent on operations.
What to take away
Hosting your own publishing tool comes down to trading a dependency for work. You keep your tokens, your calendar and the list of who is allowed to publish, and in return you get one more piece of software to run and have to deal with each platform yourself. For a project that has made hosting under its own control a rule, the trade seemed consistent to us. For a team that only wants to post three times a week, an online service remains a perfectly defensible choice.
Sources
- Postiz, project website: what the tool can do.
- gitroomhq/postiz-app, source code repository, published under the AGPL-3.0 licence.
- LemonLDAP::NG, open-source software for single sign-on and access management.
- OpenID Connect Core 1.0, the specification of the login protocol.
- Docker, Docker Engine security: the daemon requires root privileges, except in “rootless” mode.
- Podman, the container engine we use for everything else.
- Mastodon, Obtaining client app access: how an application registers with an instance.
- Google, Using OAuth 2.0 to Access Google APIs: the seven-day lifetime of authorisations for an application in testing mode.
A question, an objection? contact@ops-devices.eu, or on Bluesky.