Skip to content

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

Merged
merged 11 commits into from
Aug 7, 2025
Merged

chore: add tls log and removing unused crates #359

merged 11 commits into from
Aug 7, 2025

Conversation

houseme
Copy link
Contributor

@houseme houseme commented Aug 7, 2025

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Code is formatted with cargo fmt --all
  • Passed cargo clippy --all-targets --all-features -- -D warnings
  • Passed cargo check --all-targets
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other 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.

@houseme houseme requested a review from Copilot August 7, 2025 09:50
Copilot

This comment was marked as outdated.

@houseme houseme requested a review from Copilot August 7, 2025 10:19
Copilot

This comment was marked as outdated.

@houseme houseme requested a review from Copilot August 7, 2025 10:25
Copilot

This comment was marked as outdated.

houseme and others added 2 commits August 7, 2025 18:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@houseme houseme requested a review from Copilot August 7, 2025 10:44
Copilot

This comment was marked as outdated.

@houseme houseme requested a review from Copilot August 7, 2025 10:54
Copy link
Contributor

@Copilot Copilot AI left a 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

@houseme houseme merged commit e0c99bc into main Aug 7, 2025
13 of 14 checks passed
@houseme houseme deleted the fix/tls branch August 7, 2025 11:02
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