Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add update docs scaffolding for v0.22.0 (#1098)
Leendert de Borstb30f8853aaac
diff --git a/docs/installation/update/index.md b/docs/installation/update/index.mdindex fe60ae57a..482fdb1d2 100644--- a/docs/installation/update/index.md+++ b/docs/installation/update/index.md@@ -36,7 +36,7 @@ For most version updates, you can use the standard update process:## Version-Specific Upgrade GuidesUpgrading from certain earlier versions require additional steps during upgrade. If you are upgrading from an older version, please check the relevant articles below if it applies to your server:-- [Updating from < v0.10.0](v0.10.0.html) - SQLite to PostgreSQL migration+- [Updating from < 0.22.0](v0.22.0.html) - Move secrets from .env to file based secrets## Additional Update Optionsdiff --git a/docs/installation/update/v0.10.0.md b/docs/installation/update/v0.10.0.mddeleted file mode 100644index b0c32ea1b..000000000--- a/docs/installation/update/v0.10.0.md+++ /dev/null@@ -1,50 +0,0 @@-----layout: default-title: Update from < v0.10.0-parent: Update-grand_parent: Server Installation-nav_order: 1------# Updating from < v0.10.0-{: .no_toc }--This guide covers the upgrade process from version < v0.10.0 to the latest version. Due to significant database changes, this upgrade must be performed in two steps:--1. First upgrade to version 0.17.0 and perform the database migration-2. Then upgrade to version 0.18.0 or greater--Since the v0.10.0 release the database backend has changed from SQLite to PostgreSQL. This change is required because SQLite is not suitable for environments with concurrent writes that AliasVault requires.--A built-in database migration tool is included in the installer script to help you migrate your data from SQLite to PostgreSQL.--## Update Steps--1. First, backup your existing SQLite database:-```bash-cp database/AliasServerDb.sqlite database/AliasServerDb.sqlite.backup-```--2. Update AliasVault to version 0.17.0:-```bash-./install.sh install 0.17.0-```--3. Run the database migration tool:-```bash-./install.sh migrate-db-```--4. After the migration has completed successfully, restart all AliasVault containers:-```bash-./install.sh restart-```--5. Test the upgrade by logging in to the admin panel and checking that your data is intact.--6. Once you've confirmed everything is working correctly, you can update to the latest version:-```bash-./install.sh update-```--If you encounter any issues during the upgrade, please create an issue on the [GitHub repository](https://github.com/lanedirt/AliasVault/issues) or contact via Discord.diff --git a/docs/installation/update/v0.22.0.md b/docs/installation/update/v0.22.0.mdnew file mode 100644index 000000000..3ca77a319--- /dev/null+++ b/docs/installation/update/v0.22.0.md@@ -0,0 +1,101 @@+---+layout: default+title: Update from < v0.22.0+parent: Update+grand_parent: Server Installation+nav_order: 1+---++# Updating to v0.22.0+{: .no_toc }++Since v0.22.0, the AliasVault docker structure has changed due to the introduction of the new (optional) all-in-one docker image that simplifies self-hosting use for NAS/Unraid and other home use. However we still advice to keep using the multi-docker setup for more flexibility, and this method stays fully supported as it makes managing your AliasVault instance more easy and gives you more control.++## Update Methods++### 1. Using install.sh++If you have AliasVault deployed using the official `install.sh`, you don't need to do anything. The automatic `install.sh update` will take care of all necessary data migrations for you.++```bash+./install.sh update+```++### 2. Manually installed++If you have manually installed AliasVault via a custom `docker-compose.yml` file or other stack such as Portainer, follow the following manual steps:++#### Step 1: Move secrets from .env to ./secrets folder++Create a new `./secrets` folder and move your secrets from environment variables to individual text files:++```bash+mkdir -p ./secrets+```++Create the following secret files with the specified permissions:++```bash+# Admin password hash (format: hash|timestamp)+echo "your_admin_password_hash|2024-01-01T00:00:00.0000000Z" > ./secrets/admin_password_hash+chmod 600 ./secrets/admin_password_hash++# Data protection certificate password+echo "your_data_protection_cert_password" > ./secrets/data_protection_cert_pass+chmod 600 ./secrets/data_protection_cert_pass++# JWT key+echo "your_jwt_key" > ./secrets/jwt_key+chmod 600 ./secrets/jwt_key++# PostgreSQL password+echo "your_postgres_password" > ./secrets/postgres_password+chmod 600 ./secrets/postgres_password+```++The final structure should look like:+```+-rw------- 1 root root 106 Aug 8 11:30 admin_password_hash+-rw------- 1 root root 44 Aug 7 22:46 data_protection_cert_pass+-rw------- 1 root root 44 Aug 7 22:46 jwt_key+-rw------- 1 root root 44 Aug 7 22:46 postgres_password+```++#### Step 2: Update docker-compose.yml++Update your `docker-compose.yml` to mount the new `./secrets` folder to `/secrets` in the `api` and `admin` containers:++```yaml+services:+ api:+ # ... other configuration+ volumes:+ - ./secrets:/secrets:ro+ # ... other volumes++ admin:+ # ... other configuration+ volumes:+ - ./secrets:/secrets:ro+ # ... other volumes+```++#### Step 3: Remove optional environment variables (optional)++You can optionally remove the following environment variables as they now fallback to default values:++- `Hostname` = empty (defaults to auto-detection)+- `Public registration enabled` = true (defaults to enabled)+- `IP logging` = true (defaults to enabled)++#### Step 4: Update and restart++Pull the latest images and restart your containers:++```bash+docker-compose pull+docker-compose down+docker-compose up -d+```++If you encounter any issues during the upgrade, please join the AliasVault Discord, create an issue on GitHub or contact us by email.