develop #6

Merged
wt merged 5 commits from develop into main 2026-03-10 17:02:09 +07:00
Owner

🆕 New Features

  • Configurable JWT Secret: Added support for custom JWT secret via config.json (jwt_secret parameter). The system now reads the secret from configuration, falling back to JWT_DEFAULT_SECRET if not specified.

🔧 Changes

  • All API endpoints updated to use configurable JWT secret:
    • add_user, change_password, change_user, delete_user
    • get_all_users, get_user, get_token, verify_token
  • Configuration: Added jwt_secret parameter to config.json

🐛 Bug Fixes

  • Build fixes: Resolved compilation issues across multiple builds
  • JWT signature fix: Changed remove_padding() function signature to accept non-const string (char * instead of const char *)

📁 Files Modified

File Changes
config.json Added jwt_secret configuration
src/api/*.c Updated all 8 API endpoints to use config-based JWT secret
src/security/jwt.c Fixed const-correctness issue
CMakeLists.txt, meson.build Build system fixes

📊 Statistics

  • 12 files changed
  • 84 insertions(+), 13 deletions(-)
  • **5 commits
🆕 New Features - **Configurable JWT Secret**: Added support for custom JWT secret via `config.json` (`jwt_secret` parameter). The system now reads the secret from configuration, falling back to `JWT_DEFAULT_SECRET` if not specified. ### 🔧 Changes - **All API endpoints updated** to use configurable JWT secret: - `add_user`, `change_password`, `change_user`, `delete_user` - `get_all_users`, `get_user`, `get_token`, `verify_token` - **Configuration**: Added `jwt_secret` parameter to `config.json` ### 🐛 Bug Fixes - **Build fixes**: Resolved compilation issues across multiple builds - **JWT signature fix**: Changed `remove_padding()` function signature to accept non-const string (`char *` instead of `const char *`) ### 📁 Files Modified | File | Changes | |------|---------| | `config.json` | Added `jwt_secret` configuration | | `src/api/*.c` | Updated all 8 API endpoints to use config-based JWT secret | | `src/security/jwt.c` | Fixed const-correctness issue | | `CMakeLists.txt`, `meson.build` | Build system fixes | ### 📊 Statistics - **12 files changed** - **84 insertions(+), 13 deletions(-)** - **5 commits
wt added 5 commits 2026-03-10 17:01:49 +07:00
fix some builds
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 15s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 15s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 13s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Successful in 13s
4db6ec16fb
Update jwt.c
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 1m17s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Successful in 15s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Successful in 13s
e4efaa6165
update added to config.json jwt_secret
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Failing after 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Failing after 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Failing after 13s
e0c807bb35
Update config.json
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Failing after 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Failing after 13s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Failing after 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Failing after 15s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Failing after 14s
9059c21f9c
Update config.json
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make-Without-sqlite3 (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake-Without-sqlite3 (push) Successful in 15s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson-Without-sqlite3 (push) Successful in 12s
472fbb3f8b
wt merged commit 72cc854026 into main 2026-03-10 17:02:09 +07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wt/auth_service_c#6