Automating Zitadel Updates with Autoupdate
Zitadel is an open source identity management platform that provides features such as authentication, authorization, multi-tenancy and audit trail.
Chapati Systems Autoupdate is a tool that can automatically check for the latest release of Zitadel (and other software) on GitHub and download and install it on your server. It requires a configuration file (INI format) that specifies the parameters for updating Zitadel, such as:
update
: whether to enable or disable automatic updatesapiUrl
: the URL of the GitHub API to fetch the latest release informationsystem
: the operating system and architecture of your serverfile
: the path of the Zitadel binary file on your serverserviceName
: the name of the service that runs Zitadelconfig
: the path of the Zitadel configuration file on your servermasterkey
: the master key for encrypting and decrypting secrets in ZitadeltlsMode
: whether to use internal or external TLS certificates for ZitadelpreUpdateHook
: (optional) a command to run before updating ZitadelpostUpdateHook
: (optional) a command to run after updating Zitadel
To use Chapati Systems Autoupdate, you need to run it as root user on your server with a command like the following one:
root@server:/opt/config# ./autoupdate --config=/opt/config/server.ini
This will read the configuration file from /opt/config/server.ini
and perform the following steps:
- Fetch the latest release information from https://api.github.com/repos/zitadel/zitadel/releases/latest
- Compare the current version of Zitadel on your server with the latest version available on GitHub
- If there is a newer version, download it from GitHub and save it
- If specified, run of
preUpdateHook
before updating Zitadel - Stop the service that runs Zitadel
- Replace the old binary with the new one
- Run the migrations with the
setup
command provided from Zitadel - Start the service that runs Zitadel with the configuration file
- If specified, run of
postUpdateHook
after updating Zitadel
That’s it! You have successfully updated Zitadel using Chapati Systems Autoupdate.
I hope this blog post helps you explain how Chapati Systems Autoupdate works and how it can benefit users who want to keep their identity management platform up-to-date.