Skip to content

Conversation

@bittcrafter
Copy link
Collaborator

Version Updates:

  • Bumped multiple plugin versions for configuration improvements:
    • rmqtt-acl: 0.1.2 → 0.1.3
    • rmqtt-auth-jwt: 0.1.1 → 0.1.2
    • rmqtt-http-api: 0.2.1 → 0.2.2
    • rmqtt-message-storage: 0.1.4 → 0.1.5
    • rmqtt-retainer: 0.1.2 → 0.1.3
    • rmqtt-session-storage: 0.2.1 → 0.2.2
    • rmqtt-sys-topic: 0.1.2 → 0.1.3

Configuration Improvements:

  • Default Configurations: Added default rules and storage configurations
  • Better Error Messages: Enhanced JWT auth error logging with token context
  • Storage Validation: Added explicit error for missing storage engine specification

Key Changes:

  1. ACL Plugin:

    • Added default ACL rules for dashboard and localhost access
    • Improved rule parsing with better error handling
    • Added toml dependency for configuration parsing
  2. Storage Plugins:

    • Added default storage engine selection based on enabled features
    • Better error messages when no storage engine is configured
    • Changed storage fields to Option<T> with defaults
  3. Logging Improvements:

    • Changed debug logs to info for better visibility of loaded configurations
    • Enhanced JWT error messages to include the problematic token
  4. Configuration API:

    • Unified use of read_config_default for optional configurations
    • Maintained backward compatibility with existing config files

Benefits:

  • Out-of-box Experience: Plugins work with sensible defaults
  • Better Debugging: More informative error messages
  • Robustness: Explicit handling of missing configurations
  • Maintainability: Consistent configuration pattern across plugins

…r error reporting

Version Updates:
- Bumped multiple plugin versions for configuration improvements:
  * rmqtt-acl: 0.1.2 → 0.1.3
  * rmqtt-auth-jwt: 0.1.1 → 0.1.2
  * rmqtt-http-api: 0.2.1 → 0.2.2
  * rmqtt-message-storage: 0.1.4 → 0.1.5
  * rmqtt-retainer: 0.1.2 → 0.1.3
  * rmqtt-session-storage: 0.2.1 → 0.2.2
  * rmqtt-sys-topic: 0.1.2 → 0.1.3

Configuration Improvements:
- **Default Configurations**: Added default rules and storage configurations
- **Better Error Messages**: Enhanced JWT auth error logging with token context
- **Storage Validation**: Added explicit error for missing storage engine specification

Key Changes:

1. **ACL Plugin**:
   - Added default ACL rules for dashboard and localhost access
   - Improved rule parsing with better error handling
   - Added toml dependency for configuration parsing

2. **Storage Plugins**:
   - Added default storage engine selection based on enabled features
   - Better error messages when no storage engine is configured
   - Changed storage fields to `Option<T>` with defaults

3. **Logging Improvements**:
   - Changed debug logs to info for better visibility of loaded configurations
   - Enhanced JWT error messages to include the problematic token

4. **Configuration API**:
   - Unified use of `read_config_default` for optional configurations
   - Maintained backward compatibility with existing config files

Benefits:
- **Out-of-box Experience**: Plugins work with sensible defaults
- **Better Debugging**: More informative error messages
- **Robustness**: Explicit handling of missing configurations
- **Maintainability**: Consistent configuration pattern across plugins
@bittcrafter bittcrafter merged commit f82bb88 into rmqtt:master Aug 26, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant