Skip to content

chore: update dependencies and refactor validation logic#18

Merged
Chahine-tech merged 9 commits intomainfrom
fix/error
Aug 26, 2025
Merged

chore: update dependencies and refactor validation logic#18
Chahine-tech merged 9 commits intomainfrom
fix/error

Conversation

@Chahine-tech
Copy link
Owner

  • Bump Tokio version from 1.45.0 to 1.46.1 in Cargo.toml.
  • Simplify certificate expiration check in AcmeService by using matches! macro.
  • Refactor condition checking in HyperHandler to use matches! for clarity.
  • Enhance validation in ConfigValidator:
    • Add comments for TLS configuration validation.
    • Validate redirect target URL format and status code.
    • Validate WebSocket frame and message sizes using matches!.
    • Add comments for rate limiting and path rewrite configuration validation.
    • Validate renewal days before expiry with improved logic.

- Bump Tokio version from 1.45.0 to 1.46.1 in Cargo.toml.
- Simplify certificate expiration check in AcmeService by using `matches!` macro.
- Refactor condition checking in HyperHandler to use `matches!` for clarity.
- Enhance validation in ConfigValidator:
  - Add comments for TLS configuration validation.
  - Validate redirect target URL format and status code.
  - Validate WebSocket frame and message sizes using `matches!`.
  - Add comments for rate limiting and path rewrite configuration validation.
  - Validate renewal days before expiry with improved logic.
…n TLS, rate limit, path rewrite, and redirect URL
…, rate limit, path rewrite, and redirect URL
@Chahine-tech Chahine-tech merged commit 5bf88d6 into main Aug 26, 2025
3 checks passed
@Chahine-tech Chahine-tech deleted the fix/error branch August 26, 2025 08:15
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