Skip to content

Releases

Project OWN v0.30.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 18:05

Fixed

  • An answer to a request sent over HTTP/2 while its body was still arriving could be lost: the panel answered, the server then reset the stream, and curl 7.88 (Debian 12) dropped the answer. It hit actions that start a job without reading what was sent (restarting an app, a deploy), now and then. The panel now reads what's left of a request (up to 1 MB) before it answers.

Tests

  • Debian 12 and 13 on arm64 on every push: GitHub's arm64 machines boot them with systemd in a container with a network of its own, and the installer and the 24 live suites run inside, as they do on Ubuntu 22.04 and 24.04.
  • New test-remote-real.sh: a real Cloudflare Tunnel (the token as pasted, a site at its public hostname when it has one) and a real tailnet (a second machine reaches the panel through it, and the panel limited to Tailscale shuts outside addresses out). The secrets come from the environment and are checked to stay out of logs and saved state.
  • Live tests ask again when a restart answers with no job and wait for the site instead of a fixed pause; a site's scheduled task gets as long as the memory check before it; the update test says why GitHub can't be reached before it skips.

Website

  • Tested: Debian on arm64 and Tailscale and Cloudflare Tunnel with real accounts moved to Also tested; the README no longer says Ubuntu 26.04 isn't supported.

Project OWN v0.30.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:06

Added

  • An update that doesn't work is undone by itself. After installing a release, the program it replaced (known to work) watches the new one from a unit of its own: if the panel or the helper doesn't come back on it, doesn't answer, or keeps stopping, it puts itself back and starts them again. A program that stops as soon as it starts is seen in seconds (systemd's restart count), anything else within three minutes. The Dashboard says The update to vX was undone, with why and what the panel and helper last wrote; Doctor lists it, the activity log has it, and it's always sent as an alert. The program that didn't work is kept as own.failed; journalctl -t own-update-watch has the watcher's own lines. While an update is being checked, another is refused. Applies to updates from this release on (the release you update from does the watching).
  • Limits for catalogue apps: CPU, memory and processes, on the app's site, for all its containers together (the database too). Each app's containers now run in its site user's systemd slice, where site limits already apply (Docker's cgroup_parent, named in a compose file of Project OWN's next to the app's own), so the app's use is counted with its site's and Doctor's limit warnings cover it. Apps installed before move there with one restart when their limits are first saved, or at their next update.
  • Doctor warns about Docker ports open past the firewall. Docker forwards a published port (-p 8080:80) to its container before the firewall looks, so a container you run yourself can be reached from the internet whatever the firewall says. Doctor names each one, unless the firewall opens that port too; Project OWN's own apps publish inside the server only.

Fixed

  • Updating twice without a reboot could fail to schedule the restart (own-update-restart already loaded): each restart now has a unit of its own.
  • The firewall page's SSH tunnel hint used the port and address the browser had, which through a tunnel or proxy pointed at localhost; it now gives the panel's own port and you@your-server.
  • The Limits card's figures keep their unit in smaller type, so "56% of a core" no longer wraps in its tile.

Website

  • New screenshots: a site's Limits card with what it uses, and the Firewall page with who can reach the panel.

Tests

  • New test-rollback.sh: a program that answers own version but can't run the panel or the helper, put in place the way an update does it, is undone by itself in seconds (the previous program back, the failed one kept, why written down with the services' last lines, the panel, Doctor and the activity log saying so, still signed in); an update while one is checked is refused; an update that works is left alone and the note goes. test-update.sh now checks that a real update from GitHub is watched and left alone.
  • New test-applimits.sh: Uptime Kuma's containers in its site's slice from the start (the app's compose file untouched), counted, limited to 512 MB, half a core and 256 processes, a process in it that grows past 512 MB stopped (or, on some kernels, held back at the 90% mark) while the app keeps answering, an app from before moved in by saving its limits, limits off; and Doctor naming a container published with -p 18080:3001, not one on 127.0.0.1.
  • Unit tests: the watcher against a fake systemd (works, comes up late, never starts, systemd gives up, stops as soon as it starts, keeps restarting, still the old program, doesn't answer), the rollback and its note, the panel's notice, check, alert and dismissal; limits allowed on an app's site but not a plain proxy, the app's site user passed to the helper; published ports read from docker inspect and the ones past the firewall picked out.

Project OWN v0.29.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 04:03

Added

  • A copy of the backups on your own PC or NAS, pulled from the server. OWN DevKit (v0.19.0) keeps one: it asks the server for its backup stores every few hours and fetches what's new. The PC asks and the server answers, so it works behind a home router with nothing to open, and the server holds no key to the copy, so a break-in there can't delete it. Anything else can do the same with an API token of an owner or admin (read-only is enough): GET /api/mirror lists the stores, /api/mirror/{id}/files a store's files, /api/mirror/{id}/file?path= serves one, in parts when asked (Range). Only the stores' files are served (never their locks), encrypted as they are: their keys stay root's, and the recovery kit opens them. Each file is named after the SHA-256 of its contents, so a copy can check it. To serve them, the panel's group may now read the backup stores.
  • Bring sites back from a copy on your PC. Put a site's folder from the copy in /var/backups/own/ on the new server: Bring sites back lists it and brings it back with the recovery kit, with no offsite copies set up.

Fixed

  • A log server with its own CA, over TLS, on Ubuntu (v0.28.0): AppArmor, which confines rsyslog on Ubuntu, kept it from reading the CA where Project OWN put it, so nothing was sent. The CA now goes in rsyslog's own folder, where it may read it. Found by the ARM live workflow (WSL has no AppArmor), where test-syslog.sh now passes 13/13 on Ubuntu 22.04 and 24.04.

Changed

  • Each release now starts the upgrade test (from a dozen older releases, with the panel's own update) by itself.

Tests

  • New test-mirror.sh: with a read-only token, the store and its files listed (locks left out), every file fetched whole with its SHA-256 its name, a file in parts, the copy opened by restic with the kit's key; keys and other paths not served, the keys still root's alone, a site user unable to read the stores; and, with no offsite copies, a lost site refused until its store is put back, then brought back from it. 15/15 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04, and on ARM (Ubuntu 22.04 and 24.04).
  • The upgrade workflow's first run: twelve older releases (v0.1.2, v0.3.0, v0.5.0, v0.8.0, v0.11.0, v0.14.0, v0.17.0, v0.20.0, v0.22.0, v0.24.0, v0.25.0 and v0.26.0), each installed and filled by its own tests on an ARM machine, upgraded to v0.27.0 by running its installer again: all twelve kept every site, database and backup, and their backups restore (v0.8.0's on a second try: its first machine had port 443 taken).
  • Unit tests: the stores, files and parts served, and what isn't (locks, stray files, paths out of the store, members); recovery from a store on the server with no offsite copies, refused without one.

Project OWN v0.28.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:27

Added

  • Send logs to a log server. The Security page can send the server's logs to a log server (syslog), as offices and IT departments keep them, such as Graylog, Wazuh, Splunk or their own rsyslog: all the logs, or only security (SSH and other sign-ins, sudo, fail2ban's bans and the panel's activity log). Over TLS (the log server's certificate checked against public CAs, or your own CA's), TCP or UDP. rsyslog reads the system journal in a ruleset of its own, so each line goes out once whatever the system's own rsyslog settings do, and lines wait on the server (up to 200 MB) while the log server is away. Send a test line writes one to look for. The panel's activity log now goes to the system journal too, one line per entry. In the API: /api/syslog.
  • Preview addresses. A site can also answer at an address of its own, over plain HTTP, to try it before its domain points at the server: SITEID.A-B-C-D.sslip.io, which sslip.io (a free public DNS service) sends to the server's public address, or a name under your own wildcard domain (a *.preview.example.com record), and then nothing goes through sslip.io. On the site's page; no certificate is asked for it. In the API: POST /api/sites/{id}/preview, /api/settings/preview.

Tests

  • New test-syslog.sh, with stand-in log servers on the server itself: all the logs over TCP (a program's line, the activity log, each line once, the test line), only security over UDP (a sign-in line arrives, an ordinary one doesn't), and TLS to a log server whose certificate is from its own CA (the CA kept by the helper, not the panel; a wrong CA refused before anything changes); off. 13/13 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04. On ARM (Ubuntu 24.04) 12/13: TLS to a log server with its own CA failed there, as AppArmor kept rsyslog from reading the CA (fixed in v0.29.0).
  • New test-preview.sh: a site at its sslip.io preview address (and public DNS sending that name to the server's public address), then under its own wildcard domain (the old name answering no more), then off, the site still at its domain; no certificate asked for. 10/10 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04, and on ARM (Ubuntu 24.04).
  • Unit tests: syslog settings checked (host names that could break out of rsyslog's settings refused, a CA only for TLS and only certificates), rsyslog's settings for each way and choice; preview addresses made, checked (another site's refused) and given to OpenLiteSpeed, Nginx and Apache.

Known problem: TLS to a log server with its own CA doesn't work on Ubuntu in this release (AppArmor keeps rsyslog from reading the CA). Fixed in v0.29.0.

Project OWN v0.27.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 02:14

Added

  • Limits for each site. A site's page has Limits: the most CPU (100% is one core), memory and processes it may use, and how many PHP requests it serves at once (10 unless changed). They count everything the site runs together: its PHP, its app or worker, its background jobs and scheduled tasks, and its SFTP sessions, all of which now run in the site user's own systemd slice. Over its CPU share a site slows down instead of slowing the others; over its memory limit the kernel stops one of its own processes, never another site's, and a limited site can't spill into swap. Only owners and admins set them. In the API: GET/PUT /api/sites/{id}/limits.
    • What each site uses: the card shows CPU over the last minute and the busiest minute of the hour, memory now and the most in the hour; Doctor lists every site, busiest first, to find the one slowing the server (GET /api/usage). Doctor warns when a site went over its memory limit, or its CPU limit held it back most of the last quarter hour, and so do alerts, if you've asked for warnings.
    • How: OpenLiteSpeed starts each PHP site's PHP in the site user's slice (its cgroups setting), apps, workers, background jobs and tasks get Slice= in their units, and logins land there by themselves. Limits are a drop-in on the slice, also set at runtime, since systemd never applies a changed drop-in to a slice that's running. Setting limits restarts the site's PHP and app once, so they start inside. With Nginx or Apache, PHP-FPM runs outside the slice: PHP requests at once apply, but PHP isn't counted or held to CPU and memory. Containers without cgroups v2 under systemd (some LXC, OpenVZ) are told it can't apply.
  • Only through an SSH tunnel. The Firewall page has four plain choices for who can reach the panel: anyone, my devices on Tailscale, only through an SSH tunnel (nobody on the internet even sees it: ssh -L 8443:127.0.0.1:8443 you@server, then https://localhost:8443), or chosen addresses. And the panel now refuses other addresses by itself, before any page or sign-in, so the choice holds even when the firewall is off or another one is in charge.
  • A way back in for a forgotten password, the only owner included: sudo own reset-password NAME on the server prints a one-time link (30 minutes) that sets a new password and clears two-factor sign-in, which owners and admins then set up again as they sign in. Running sudo on the server is the proof, so there's no reset by email. The sign-in page says how, and the reset is in the activity log.
  • Offsite copies a hacked server can't delete. With S3 storage that keeps versions and locks them (Object Lock), the server's own key can only hide its copies, not delete them. The Backups page now says whether the copies are Protected (locked in Compliance mode), Partly protected (Governance mode, which a key allowed to bypass it can lift: Backblaze's Read and Write keys can) or Not protected, with how to set it up for Backblaze B2, AWS S3 and Wasabi. Bring sites back can bring them back as they were at an earlier time, from before a break-in spoiled or hid the last copies (rclone 1.59 or newer: Debian 12, Ubuntu 24.04 and newer). A backup store already on the server is set aside, never deleted.
  • Check from the internet. The Firewall page can ask check-host.net, a free outside service, to connect to each open TCP port from three places, and shows which can be reached: a port open here can still be blocked by a cloud provider's firewall or a home router, and it says which and where to open it. It runs only when you click it, since that service learns the server's address. In the API: POST /api/firewall/outside.
  • Behind a proxy. The installer's new --proxy=URL sends everything that goes out through an HTTP proxy, as many office and government networks require: apt, the program and its updates, the software Project OWN installs, offsite copies, alerts (still only to public addresses: the destination is checked before it goes to the proxy) and the images Docker pulls. It's kept for later runs of the installer; --proxy=off stops it.

Changed

  • Offsite copies to locked S3 storage: what the keep rule removes on the server is hidden at the storage (kept until its lock runs out, then cleared by the bucket's lifecycle rule), not deleted.
  • S3 destinations at Backblaze and Wasabi are signed for the region in their endpoint, as those services expect.

Tests

  • New test-limits.sh: a PHP site's PHP runs in its user's slice and is counted; limits reach the slice (the drop-in, systemd and the kernel) and PHP requests at once reach the web server; a page that wants a whole core gets a quarter of one; a page that wants 300 MB is stopped at 128 MB and the site still answers; Doctor says so; tasks and an app land in the slice; limits come off when removed and when the site goes to the bin. 26/26 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04, and 21/21 with Nginx on Debian 13 (PHP-FPM outside the slice, its PHP checks left out).
  • New test-proxy.sh: with Squid as the proxy and every other way out to the web blocked, the installer run again with --proxy gets apt, the update check, a package and Docker (an image pulled) through it; --proxy=off takes it all away and the panel is up. 14/14 on Debian 12 and Ubuntu 22.04 and 24.04 (not in the ARM workflow: blocking the way out would cut GitHub's machine off from GitHub).
  • New test-locked.sh, against a real Backblaze B2 bucket with Object Lock (skipped without one): the page says how protected the copies are; deleting them with the server's own key only hides them, a locked version can't be deleted with it, and rclone purge leaves every locked version; the site, lost from the server too, comes back as it was before; everything the test wrote is deleted and the bucket's settings put back. 18/18 on Debian 12, and 17/17 on Ubuntu 22.04, where its rclone (1.53) says it can't go back in time instead.
  • New test-upgrade.sh, and a workflow that runs it from a dozen older releases on ARM, weekly and for each release: the older release installed with its own installer and filled by its own end-to-end test, then upgraded; the owner signs in with the same two-factor secret, every site answers as before, keeps its backups and databases, gets the new release's web server settings, a backup the old release made restores, and a new site works. 16/16 from v0.10.0 (Debian 12), v0.20.0 (Ubuntu 24.04) and v0.26.0 (Debian 13).
  • The scheduled tasks and workers suites passed again on all five systems (their units now go in the site's slice).
  • Unit tests: limits rendered for OpenLiteSpeed and PHP-FPM and validated, use worked out from the counters (a slice that started again included), only admins set limits; the panel refusing other addresses (an SSH tunnel and Tailscale always let through, the CLI socket too); the reset link (only from the root command line, once, replaced by a newer one, the old password gone, two-factor set up again); the outside check against a stand-in check-host.net; S3 request signing, checked against a real bucket.

Project OWN v0.26.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:26

Added

  • Alerts. Doctor now looks every five minutes and tells you when something goes wrong, and again when it's fixed, so you don't have to open the panel to find out: by email, Discord, Slack, Telegram, ntfy or a JSON webhook, added on the Doctor page. A problem is sent once it's been seen twice in a row (a blip wakes no one), not again while it lasts, and with what to do; everything new goes in one message. Problems only, or warnings too. Send a test says how each channel went; Check now runs the check-up at once; the page lists what's open now and the recent alerts.
    • Email goes through this server's own email (with Email installed), or an SMTP server you give (STARTTLS or TLS; a password is never sent without it).
    • A webhook's address is its password: the page shows only its host, and it's in no log or audit entry. Webhooks go to public HTTPS addresses only, checked as each connection is made (never to the server itself, its network, link-local or Tailscale addresses), and don't follow redirects. Discord and Slack addresses must be theirs; mentions in Discord messages are off.
  • Scheduled tasks: a site's own commands on a schedule (cron jobs), on its page. Every minute, every 5, 15 or 30 minutes, hourly, daily or weekly at a time you pick. Each runs as the site's own user, in its public folder, with its PHP version (or its app's runtime and settings), in the same sandbox as its app; shows when it last ran, its exit code and output, and when it runs next; can be run now or turned off. The command lives in a script of its own, never in the systemd unit, so systemd's own $ and % expansions don't touch it. A run still going isn't started again; one is stopped after 55 minutes. Tasks follow the site into the bin and back. Laravel's scheduler fills in php ../artisan schedule:run, every minute. In the API: /api/sites/{id}/tasks.
  • Doctor finds sites that stopped answering: asked for its home page as a visitor would, a site that answers with a server error (5xx) or not at all is a problem, once it has answered since the panel started (so a new site, or an app not deployed yet, isn't). And a free certificate within 14 days of running out (it renews 30 days ahead, so its renewal is failing).

Tests

  • New test-tasks.sh: a task every minute really runs on its own, as the site's user, in its public folder, with its PHP; its output, exit code and next run shown; a failing one says so with its exit code; it can't write outside the site; run now; off (its timer gone, the task kept) and on; a site in the bin runs none, brought back they run again; deleted, nothing is left; only schedules in the activity log. 19/19 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04, and in the ARM live workflow.
  • New test-alerts.sh, to a real ntfy topic read back through ntfy's API: a test message; a PHP site that was up answering 503 (once: nothing; twice: sent; again: nothing new; the page shows it open; back up twice: "Fixed"); MariaDB stopped and started; a webhook aimed at the server itself refused when sending, with why; the topic in no log; a member refused. 19/19 on Debian 12 and 13 and Ubuntu 22.04, 24.04 and 26.04, and in the ARM live workflow.
  • The website's test matrix has rows for Rails apps, databases out and in, PostgreSQL, staging copies, alerts and scheduled tasks, each run on all five systems (amd64) for this release.
  • Unit tests: problem and fix sent once each, a blip never sent, the channel's address kept back, only owners and admins, every kind of channel checked (wrong hosts, http, two addresses, a header in an address, bad Telegram tokens and chats), private, loopback, link-local and Tailscale addresses refused, an SMTP password kept and never shown, and a whole email through a fake SMTP server.

Project OWN v0.25.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 16:24

Fixed

  • WordPress sites installed with one click showed unstyled pages with broken links (v0.17.0 to v0.24.0). WordPress takes its address from where its installer runs, and since v0.17.0 that was the site's folder, above public, so it stored https://DOMAIN/public: its pages asked for their styles, scripts and links under /public/, which isn't there. The installer now gives WordPress its address outright, and updating to this version heals sites installed that way by themselves: where WordPress's address is exactly the site's own followed by /public, it's changed everywhere in its database with WP-CLI (images placed in posts since included), and the activity log says so. Nothing else is changed on any site.

Added

  • Staging copies. A site's page has Staging copy: make a copy of it at another domain (staging. and its own, by default), with its own copy of each of its databases (MariaDB or PostgreSQL), to try an update or a change on before visitors see it. Then, on the copy, Push to the live site: its files, its databases, or both.
    • The copy points at itself. Its .env or wp-config.php names its own databases and its own address; the database passwords stay the same (its users get the live ones' stored hashes), so nothing else in them changes. A WordPress copy has its address changed inside its database too, with WP-CLI, which knows how WordPress stores it, and asks search engines not to index it. An app's settings, PHP version and Git settings come along (deployed only by hand, so you can pick another branch); backups of the copy are off.
    • A push can be undone. A safety snapshot of the live site is taken first (it needs Backups), and if the push fails halfway, the live site is put back from it by itself. A WordPress site keeps its own address and its own search engine setting; files changed on the live site since the copy are replaced, as the confirmation says.
    • Safe between the two sites. Files go between them as each site's own Linux user, read as one and written as the other, never as root: a site whose user swaps a folder for a link mid-copy reaches nothing it couldn't already. Links into the live site's folder are pointed at the copy's, a link to anything outside stays a link, and each site keeps its own SFTP and deploy keys, logs and temporary files.
    • PHP, static and app sites can have copies; a forward to an app run by hand, a load balancer, a worker (a second copy of a bot would answer as the first) and the catalogue's apps can't. In the API: POST /api/sites/{id}/staging and POST /api/sites/{id}/staging/push.

Changed

  • Downloads get there on slow, lossy routes. Some download servers have no copy near the server (wordpress.org's, from parts of Asia, comes at tens of KB/s over a route that drops packets): a try was cut off after 20 minutes however much was still arriving, and each try started from zero, so WordPress (35 MB) could never install there. Now a try runs as long as something keeps arriving (up to 3 hours), a try that breaks off carries on where it stopped (where the server allows it, as wordpress.org does), and it gives up after three tries that bring nothing new, or twenty in all. Every download is still checked against its SHA-256.

Tests

  • test-phpapps.sh checks one-click WordPress's address and that its pages link nothing under /public/, and heals a site broken the old way (and leaves a healthy one alone).
  • New test-staging.sh: a WordPress site copied (served at the copy's address, its address changed in the copy's database only, search engines asked away, its own database noted as a copy whose wp-config.php password reaches it and the live one's doesn't, its files the copy's user's with the web server's group, a link into the live folder pointed at the copy, a link to /etc/shadow kept a link that serves nothing, the live site's keys left behind, no backup schedule; a copy of a copy refused), changed and pushed back (the changes live, the live address everywhere, its search engine setting and keys kept, its wp-config.php on its own database, a safety snapshot first); a push whose database is gone fails and the live site's files are as they were; and a PHP site on PostgreSQL whose .env follows its copy, with the same password the copy's user takes, and only its database pushed back. 38/38 on Debian 12, and on Ubuntu 22.04 and 24.04 in the ARM live workflow.
  • A unit test breaks a download off every 1,500 bytes: seven tries, each carrying on from the last, and the file comes out whole; a file left from before is never taken as its start.

Project OWN v0.24.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:46

Added

  • PostgreSQL, beside MariaDB. Each database is MariaDB or PostgreSQL, picked when you make it: on the Databases page, or with the site (Create a database for this site has an engine choice, PostgreSQL first for Ruby and Python apps). PostgreSQL is a package like the others, installed the first time a database needs it, and everything MariaDB databases have, PostgreSQL ones have too: New password, Download .sql, Load a dump… (the database as it was kept first, and put back if the dump doesn't load), backups and restores, and recovery kits that bring them back on a new server with the same passwords.
    • Set up for a server, not a laptop. Sized to the server's memory, listening inside the server only, and asking for a password on its own socket too: Debian's default lets any Linux user in as the database user of the same name, so a site's user could have reached a database named like it. Each database's user owns it and its tables, can't make users or databases, and is the only one that can connect to it; on PostgreSQL 14 (Ubuntu 22.04) its public schema is made its own too, as PostgreSQL 15 and later do.
    • A dump can't reach past its database, as with MariaDB: it's loaded as the site's own Linux user, through a login made for that one load that can only act as the database's own user, and dropped after. A dump that makes a superuser, switches to another database, or tries to become the superuser is refused, and a shell command in one runs as the site's user. Dumps from PostgreSQL 17 load on older servers too (the one setting older ones don't know is left out, from pg_dump's opening settings only, never from a table's rows).
  • Apps build their PostgreSQL drivers on the server. The PostgreSQL package brings libpq-dev, so a Rails app's pg gem and Python's psycopg2 compile in a deploy's build.
  • DATABASE_URL, ready to paste. A new database's details (and a new password's) include its port and its DATABASE_URL, such as postgresql://user:password@127.0.0.1:5432/name, which Rails, Django, Prisma and most frameworks read. In the API too: databases have an engine, POST /api/databases takes one, and POST /api/sites takes databaseEngine.

Changed

  • A site made with a database installs MariaDB first if the server doesn't have it, as WordPress's one-click install already did, instead of making the site without its database.
  • A safety snapshot before a restore skips a database that isn't there any more (it says so), so restoring a database someone deleted by hand works, for MariaDB too.
  • A site's database is never named pg_..., which PostgreSQL keeps for itself (a domain such as pg.example.com gets site_pg_...); those names, and postgres, template0 and template1, are refused on the Databases page.

Tests

  • New test-pg.sh: PostgreSQL installed with the first site that asks for it, with libpq-dev, listening on 127.0.0.1 and ::1 only, its settings sized to the server, a password asked on the socket; the database's user logs in with its password, not without, isn't a superuser and can't make users or databases, and makes tables in its own database; a second database's user can't connect to the first, nor the first's to it; an export without owners or grants; a dump with PostgreSQL 17's setting loaded, owned by the database's user, the old database kept root-only, no load login left; three hostile dumps refused (a superuser, another database, the superuser's role) with the database as it was; a new password working and the old one not; a backup restored, then restored again with the database and its user deleted (both back, with the same password); PostgreSQL not removable while it has databases. 50/50 on Debian 12 (PostgreSQL 15), and on Ubuntu 22.04 (PostgreSQL 14) and 24.04 (16) in the ARM live workflow, which now removes the PostgreSQL GitHub's machines come with, as it does their MySQL.
  • Unit tests: the engine passed to every database command, backups splitting a site's databases by engine, reserved names refused, site database names never reserved, the dump filter leaving table rows alone, the socket rule rewritten for every user but postgres, and stored passwords checked strictly before a restore uses them.

Project OWN v0.23.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 12:06

Added

  • Download a database, or load a dump into it. On the Databases page, Download .sql saves a copy of a database, and Load a dump… replaces a site's database with a .sql file (up to 4 GB). Before anything changes, the server keeps the database as it was (the last three copies, root-only, in /var/backups/own/db-before-import), and puts it back if the dump doesn't load.
    • A dump can't reach past its database. It's loaded as the site's own Linux user (which can already run anything as itself through its build commands), through a MariaDB account made for that one load, with rights on that one database only, and removed after. A dump that tries to make another database, or touch MariaDB's own tables, is refused, and a shell command written into one (the mariadb client runs them) runs as the site's user, never as root.
  • Kept files, from the panel. A deployed site's Deploy from Git card has Kept files: edit its .env, wp-config.php or any other file kept between deploys, before its first deploy too. They're read and written as the site's own user, so a kept file swapped for a link (to /etc/shadow, say) leads nowhere the site couldn't already reach; readable by the site's user and the web server only; and only their names go in the activity log.
  • In the API too, for tools such as OWN DevKit: GET /api/databases/{name}/export, POST /api/databases/{name}/import (the dump as the body; a job), and GET, PUT /api/sites/{id}/deploy/files (?path=.env; up to 48 KB, only paths in the site's kept list). Making a site with a database already hands back the database's name, user and password in its job's result.

Tests

  • New test-dbsync.sh: an export with the table and its row, nothing left on the server; a dump loaded in place of the database, the old one kept root-only, no import account left, the site's own account still working; a hostile dump (a shell command, another database) refused, run as the site's user, the database put back; .env written before the first deploy, read back exactly, owned by the site's user (640), only its name in the activity log, a file outside the kept list refused, and a .env swapped for a link to /etc/shadow neither written nor read. 29/29 on Debian 12; in the ARM live workflow.
  • test-remote.sh reaches a share link through Cloudflare's public DNS (over HTTPS), so a machine's resolver that cached "no such name" from a moment before the link's name existed can't fail it.

Project OWN v0.22.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 10:45

Added

  • A Rails app deploys from Git as it is. Connecting a Ruby site to its repository offers Rails in the quick settings: bundle config set --local without 'development test', bundle install, bin/rails assets:precompile and bin/rails db:prepare as the build, and storage kept between deploys, where Rails keeps its SQLite databases (the app's own, and Solid Cache, Queue and Cable's) and uploads. A new app from rails new, or from OWN DevKit's Rails template, runs in production with no changes: its gems in the site's own folder without the development and test groups, its assets precompiled, its database made on the first deploy and kept after, and config/master.key never needed on the server (the site's own secret key is there instead). The docs say how to point it at MariaDB or PostgreSQL instead (DATABASE_URL) and how to run Solid Queue's jobs inside Puma.
  • Quick settings for every kind of site. They match the site: Laravel, WordPress, a built front-end or plain files for PHP and static sites (as before); Rails, or Sinatra and Rack, for Ruby; Django, or Flask and FastAPI, for Python; Node.js, Bun and Go apps. Java, Deno and command sites have none.

Changed

  • An app's build sees the app's own settings, as the app does: DATABASE_URL, SECRET_KEY_BASE and anything set in its settings, so migrations in the build reach the app's database. They're handed to the build on its standard input and exported there, never put on a command line, where any user on the server could read them in the process list; a value is taken exactly as written, with nothing in it expanded or run.
  • A Ruby site gets its secret key before its first build too, not only when its app is first set up.

Tests

  • New test-rails.sh: a rails new app with a scaffold, pushed to a private repository over SSH, deployed to a Ruby 3.4 site with the Rails quick settings; the build saw the app's own setting exactly as written and its secret key; gems without the development and test groups; assets precompiled; the SQLite database made in the kept storage, owned by the site's user; the health check and the notes pages answer in production with their stylesheet; a note made through the app survives a second deploy.
  • A unit test runs the build's settings reader in bash: values with $(...), quotes, backslashes and $HOME arrive as written, and nothing in them runs.