Repository navigation
Labels
Code Cleanup / RefactoringTidying and Making Neat
Description
Part of EPIC: #1978 — Configuration Overhaul (schema v3.0.0)
EPIC position: Subissue #2 of 9. Depends on #1979. Must be implemented before #1640 to avoid merge conflicts on http_tracker.rs.
Spec: docs/issues/drafts/configuration-overhaul-fix-tsl-typo.md
Goal
Fix the pervasive typo tsl_config → tls_config across the entire codebase. This is a pre-existing typo (TLS, not TSL) that has propagated into ~13 Rust source files and ~8 documentation files. Since we are releasing config schema v3.0.0, this is the right time to fix it.
Background
The codebase consistently uses tsl_config instead of tls_config:
// packages/configuration/src/v2_0_0/http_tracker.rs
pub tsl_config: Option<TslConfig>,
// packages/configuration/src/v2_0_0/tracker_api.rs
pub tsl_config: Option<TslConfig>,
// packages/configuration/src/lib.rs
pub struct TslConfig { ... }The struct name TslConfig and all field names tsl_config should be TlsConfig / tls_config. This is a purely mechanical rename with no behavioural change.
Scope
In Scope
- Rename
TslConfig→TlsConfiginpackages/configuration/src/lib.rs - Rename
tsl_config→tls_configin all config struct fields (HttpTracker,HttpApi) - Rename
tsl_config→tls_configin all consumers (~13 Rust files) - Rename
tsl_config→tls_configin all documentation (~8 markdown files) - Rename
packages/axum-server/src/tsl.rs→packages/axum-server/src/tls.rs - Update all
useimports referencing the old module path
Out of Scope
- Any functional changes to TLS configuration
- Changing the TLS implementation itself
Implementation Plan
| ID | Task | Notes |
|---|---|---|
| T1 | Rename TslConfig → TlsConfig struct |
In packages/configuration/src/lib.rs |
| T2 | Rename tsl_config → tls_config fields |
In HttpTracker and HttpApi config structs |
| T3 | Rename tsl.rs → tls.rs |
In packages/axum-server/src/; update mod.rs |
| T4 | Update all Rust consumers (~13 files) | Search-and-replace tsl_config → tls_config, TslConfig → TlsConfig |
| T5 | Update all documentation (~8 files) | Search-and-replace in markdown files |
| T6 | Run linter all and full test suite |
Acceptance Criteria
-
TslConfigis renamed toTlsConfigeverywhere -
tsl_configis renamed totls_configeverywhere -
packages/axum-server/src/tsl.rsis renamed totls.rs -
rg "tsl_config|TslConfig"returns zero matches - All tests pass
-
linter allexits with code0
Metadata
Metadata
Assignees
Labels
Code Cleanup / RefactoringTidying and Making Neat
Activity
docs(configuration): address Copilot PR review comments
docs(configuration): address Copilot PR review comments
Merge #1982: docs(configuration): add Configuration Overhaul EPIC spe…
Merge #1999: feat(configuration): copy v2_0_0 schema to v3_0_0 as bas…
Merge torrust#2005: fix(configuration): correct TLS naming in v3 schema
Merge #2021: chore(issues): archive closed specs and enforce dual-for…
docs(configuration): convert epic to folder type and add migration guide