From 8522ec6a25cd65bfb181f0bcb7ca74fa722ce18c Mon Sep 17 00:00:00 2001 From: matthewasplund Date: Fri, 4 Dec 2026 15:18:22 -0700 Subject: [PATCH] Add HTTPS data server password change --- CMakeLists.txt | 3 + docs/AGENTS.md | 11 +- docs/claude/services/packaging-dataserver.md | 9 + .../per-user-server-offers-an-account.md | 8 +- .../prefs-data-hook-preserves-paths.md | 6 + include/wxgui/GlobalPrefs.H | 2 + packaging/dataserver/ecce-change-password | 118 +++++++ packaging/dataserver/ecce-dataserver-start | 20 +- packaging/dataserver/httpd.conf.ecce | 16 + src/wxgui/wxdialogs/GlobalPrefs.C | 289 +++++++++++++++++- tests/apps/prefs_data_test.py | 3 + tests/tls/server_tls.py | 33 ++ 12 files changed, 509 insertions(+), 9 deletions(-) create mode 100755 packaging/dataserver/ecce-change-password diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e2bd0b630..d142223e78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1296,6 +1296,9 @@ install(PROGRAMS ${CMAKE_SOURCE_DIR}/packaging/dataserver/ecce-server-tui install(DIRECTORY ${CMAKE_SOURCE_DIR}/packaging/dataserver/tui/ecce_server_tui DESTINATION lib COMPONENT tui) +install(PROGRAMS ${CMAKE_SOURCE_DIR}/packaging/dataserver/ecce-change-password + DESTINATION server/cgi-bin + COMPONENT server) install(FILES ${CMAKE_SOURCE_DIR}/packaging/dataserver/httpd.conf.ecce DESTINATION server/httpd-conf COMPONENT server) diff --git a/docs/AGENTS.md b/docs/AGENTS.md index c57792c57b..8a2de44f3d 100644 --- a/docs/AGENTS.md +++ b/docs/AGENTS.md @@ -737,9 +737,14 @@ on that server. It is saved with the server entry and included when exporting or importing a JSON configuration profile; connecting still prompts for that account's password. Profiles do not include passwords. The Organizer hook `prefs data cert PEM [PNG]` loads a certificate for the first listed HTTPS -server and reports `loaded:` or an error. +server and reports `loaded:` or an error. Select an HTTPS +ECCE server and choose **Change Password** to set a new password; the dialog +checks the current password through the server's TLS-authenticated endpoint +and updates this session's cached credential after success. The button is +disabled without a selected HTTPS ECCE server. `tests/apps/prefs_data_test.py` (ctest `apps_prefs_data`) covers the data server -dialog, username persistence, and valid or invalid certificate files. +dialog, username persistence, button enablement, and valid or invalid +certificate files. ### Portable configuration profiles and server administration @@ -2146,7 +2151,7 @@ calculation. | `ecce-diagnose [-o directory] [run-directory]` | Collects what is needed to diagnose a problem into one text file, `ecce-diagnostics--