-
Notifications
You must be signed in to change notification settings - Fork 342
chore: add tls log and removing unused crates #359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # rustfs/src/server/http.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors TLS logging functionality and removes unused dependencies across the codebase. It introduces conditional TLS key logging based on environment variables and consolidates enable state handling through a centralized enum.
- Adds conditional TLS key logging controlled by the
RUSTFS_TLS_KEYLOG
environment variable - Introduces a comprehensive
EnableState
enum to standardize boolean state parsing across the codebase - Removes unused dependencies and features to reduce build overhead
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
rustfs/src/server/http.rs | Adds conditional TLS key logging and improves TLS handshake failure categorization with metrics |
rustfs/Cargo.toml | Removes unused feature flags including tls_fallback |
crates/utils/src/certs.rs | Implements tls_key_log() function to check environment variable |
crates/config/src/constants/env.rs | Adds EnableState enum with comprehensive boolean state variants |
crates/config/src/constants/tls.rs | Defines TLS-related environment variable constants |
crates/notify/src/registry.rs | Refactors to use the new EnableState enum instead of hardcoded strings |
Multiple Cargo.toml files | Removes unused dependencies across various crates |
Type of Change
Related Issues
Summary of Changes
Checklist
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo check --all-targets
Impact
Additional Notes
Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.