Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update v0.22.0 migration docs (#1098)
Leendert de Borst60221cf0e867
diff --git a/docs/installation/update/v0.22.0.md b/docs/installation/update/v0.22.0.mdindex 3ca77a319..6f5f08bac 100644--- a/docs/installation/update/v0.22.0.md+++ b/docs/installation/update/v0.22.0.md@@ -1,6 +1,6 @@---layout: default-title: Update from < v0.22.0+title: Update to v0.22.0parent: Updategrand_parent: Server Installationnav_order: 1@@ -33,24 +33,20 @@ Create a new `./secrets` folder and move your secrets from environment variablesmkdir -p ./secrets```-Create the following secret files with the specified permissions:+**Migration mapping:**-```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+| Old .env key | New file location | File content format |+|--------------|-------------------|-------------------|+| `ADMIN_PASSWORD_HASH + ADMIN_PASSWORD_GENERATED` | `./secrets/admin_password_hash` | `hash|generated` |+| `DATA_PROTECTION_CERT_PASS` | `./secrets/data_protection_cert_pass` | `password` |+| `JWT_KEY` | `./secrets/jwt_key` | `key` |+| `POSTGRES_PASSWORD` | `./secrets/postgres_password` | `password` |-# JWT key-echo "your_jwt_key" > ./secrets/jwt_key-chmod 600 ./secrets/jwt_key+**Update permissions for new secret files:**-# PostgreSQL password-echo "your_postgres_password" > ./secrets/postgres_password-chmod 600 ./secrets/postgres_password+```bash+# Set proper permissions+chmod 600 ./secrets/*```The final structure should look like:@@ -63,7 +59,7 @@ The final structure should look like:#### 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:+Update your `docker-compose.yml` to mount the new `./secrets` folder to `/secrets` in the `api`, `admin`, `smtp` and `taskrunner` containers:```yamlservices:@@ -78,15 +74,27 @@ services:volumes:- ./secrets:/secrets:ro# ... other volumes++ smtp:+ # ... other configuration+ volumes:+ - ./secrets:/secrets:ro+ # ... other volumes++ task-runner:+ # ... 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:+You can optionally remove the following environment variables from .env 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)+- `HOSTNAME` = empty (defaults to auto-detection)+- `PUBLIC_REGISTRATION_ENABLED` = true (defaults to enabled)+- `IP_LOGGING_ENABLED` = true (defaults to enabled)#### Step 4: Update and restart