Version 0.5.5.93: custom fields in lists, MeshCentral sync flag for statuses

- Show custom field values in asset list, dashboard and list Excel export
- New status flag to exclude assets (e.g. scrapped) from MeshCentral sync
- Require a secure SESSION_SECRET with a readable startup message
- Add SESSION_COOKIE_SECURE and refresh session permissions per request
- Translate HTTP errors and remaining fixed UI texts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
RolandandClaude Opus 5.5 committed 2026-11-17 22:06:56 +01:00
1 parent c3f1ef43db
commit 261b4f2029
35 files changed
+768 -308

No files matched your search

+4
View File
@@ -22,6 +22,7 @@ POSTGRES_DB=assetmanager
POSTGRES_USER=assetmanager
POSTGRES_PASSWORD=CHANGE_ME
SESSION_SECRET=CHANGE_ME_LONG_RANDOM
SESSION_COOKIE_SECURE=false
LOCAL_ADMIN_USERNAME=emergency-admin
LOCAL_ADMIN_PASSWORD=CHANGE_ME_MIN_12_CHARS
MESHCENTRAL_PASSWORD=
@@ -85,6 +86,7 @@ services:
SCRIPT_DIR: /assetmanager-data/scripts
LDAP_BIND_PASSWORD: ${LDAP_BIND_PASSWORD:-}
SESSION_SECRET: ${SESSION_SECRET:-}
SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE:-false}
LOCAL_ADMIN_USERNAME: ${LOCAL_ADMIN_USERNAME:-}
LOCAL_ADMIN_PASSWORD: ${LOCAL_ADMIN_PASSWORD:-}
CALLBACK_BIND_IP: ${CALLBACK_BIND_IP:-127.0.0.1}
@@ -190,6 +192,8 @@ http://192.0.2.10:8088
For Internet-facing use, HTTPS through a properly configured reverse proxy is strongly recommended. The callback endpoint must be reachable from the managed client.
Once the web interface is only reached through HTTPS, set `SESSION_COOKIE_SECURE=true` in `.env` and restart the application container with `docker compose up -d app`. Browsers then send the session cookie only over HTTPS. Keep the value `false` while you still access AssetManager over plain HTTP (for example `http://server:8088` during the first start); otherwise the browser discards the cookie and sign-in fails.
If no callback base address is configured, AssetManager derives the address from the current request.
## 6. Verify the installation
+2 -1
View File
@@ -1,3 +1,4 @@
- [0.5.5.93](UPDATE-0.5.5.93.md) - custom fields in asset lists, MeshCentral sync flag for statuses, enforced session secret and translated UI texts.
- [0.5.5.92](UPDATE-0.5.5.92.md) - startup diagnostics with runtime, database and callback endpoint information.
- [0.5.5.91](UPDATE-0.5.5.91.md) - smoother table scrolling and consolidated current development changes.
- [0.5.5.90](UPDATE-0.5.5.90.md) - modular analyzer profiles, community repository foundation and portable package import/export.
@@ -28,7 +29,7 @@
Release notes are stored outside the project root to keep the repository overview compact.
The current release is **0.5.5.92**.
The current release is **0.5.5.93**.
Older notes are concise English summaries migrated from the original release documents. Git history remains authoritative for exact implementation details.
+19
View File
@@ -0,0 +1,19 @@
# Update 0.5.5.93
Version 0.5.5.93 fixes custom field columns in asset lists, adds a status flag that excludes assets from the MeshCentral sync, hardens session handling and translates remaining fixed UI texts.
## Changes
- Custom fields configured as list columns now show their values in the asset list, the dashboard table and the asset list Excel export. Values are loaded in one query per page; booleans are shown as Yes/No in the user's language.
- New status flag **MeshCentral sync** (Settings → Status values). Assets whose status has the flag disabled, for example scrapped devices, are skipped by the MeshCentral sync: they are not updated, not reported as missing and no new asset is created for a matching device. Such assets get the sync status "Excluded from sync". Existing statuses keep the flag enabled.
- `SESSION_SECRET` is now mandatory: AssetManager refuses to start if it is missing, a known placeholder or shorter than 32 characters, and prints a short explanation instead of a traceback. Generate one with `openssl rand -hex 32`.
- New setting `SESSION_COOKIE_SECURE` (default `false`). Set it to `true` once AssetManager is only reached through HTTPS.
- Session permissions are refreshed on every request, so deactivated or deleted users are signed out immediately and role changes take effect without a new sign-in.
- HTTP error messages are translated into the user's language (`TranslatedHTTPException`); unexpected errors are logged and shown as a toast.
- Remaining fixed German/English texts in templates and scripts (asset history, bulk edit, Excel import, charts, MeshCentral sync, job definitions, toasts, table counters) now use the translation catalog.
- Version updated to 0.5.5.93.
## Upgrade notes
- Make sure `.env` contains a random `SESSION_SECRET` of at least 32 characters before updating, then recreate the container with `docker compose up -d`.
- The database column `status_options.meshcentral_sync` is added automatically at startup.