mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 22:33:22 +00:00
chore: replace native-tls with pure rustls for FTPS/SFTP e2e tests (#1334)
Signed-off-by: yxrxy <1532529704@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -108,11 +108,95 @@ export RUSTFS_ENABLE_LOCKS=false
|
||||
./rustfs --address 127.0.0.1:9000 ...
|
||||
```
|
||||
|
||||
## Protocol Servers
|
||||
|
||||
### RUSTFS_FTPS_ENABLE
|
||||
|
||||
Controls whether the FTPS (FTP over TLS) server should be started.
|
||||
|
||||
- **Default**: `false`
|
||||
- **Valid values**: `true`, `false`
|
||||
- **Description**: When enabled, starts an FTPS server for secure file transfers over TLS.
|
||||
|
||||
### RUSTFS_FTPS_ADDRESS
|
||||
|
||||
FTPS server bind address.
|
||||
|
||||
- **Default**: `0.0.0.0:8021`
|
||||
- **Valid values**: Valid IP:PORT combination
|
||||
- **Description**: The address and port where the FTPS server will listen for connections.
|
||||
|
||||
### RUSTFS_FTPS_CERTS_FILE
|
||||
|
||||
Path to FTPS server TLS certificate file.
|
||||
|
||||
- **Default**: None (required when FTPS is enabled)
|
||||
- **Valid values**: Path to a PEM-encoded certificate file
|
||||
- **Description**: TLS certificate used for securing FTPS connections.
|
||||
|
||||
### RUSTFS_FTPS_KEY_FILE
|
||||
|
||||
Path to FTPS server TLS private key file.
|
||||
|
||||
- **Default**: None (required when FTPS is enabled)
|
||||
- **Valid values**: Path to a PEM-encoded private key file
|
||||
- **Description**: TLS private key corresponding to the certificate.
|
||||
|
||||
### RUSTFS_FTPS_PASSIVE_PORTS
|
||||
|
||||
Passive port range for FTPS data connections.
|
||||
|
||||
- **Default**: None (system-assigned ports)
|
||||
- **Valid values**: Port range in format "START-END" (e.g., "40000-50000")
|
||||
- **Description**: Range of ports for FTPS passive mode data connections.
|
||||
|
||||
### RUSTFS_FTPS_EXTERNAL_IP
|
||||
|
||||
External IP address for FTPS passive mode.
|
||||
|
||||
- **Default**: None (auto-detected)
|
||||
- **Valid values**: Valid IP address
|
||||
- **Description**: External IP address advertised to FTPS clients for passive mode, useful for NAT setups.
|
||||
|
||||
### RUSTFS_SFTP_ENABLE
|
||||
|
||||
Controls whether the SFTP (SSH File Transfer Protocol) server should be started.
|
||||
|
||||
- **Default**: `false`
|
||||
- **Valid values**: `true`, `false`
|
||||
- **Description**: When enabled, starts an SFTP server for secure file transfers over SSH.
|
||||
|
||||
### RUSTFS_SFTP_ADDRESS
|
||||
|
||||
SFTP server bind address.
|
||||
|
||||
- **Default**: `0.0.0.0:8022`
|
||||
- **Valid values**: Valid IP:PORT combination
|
||||
- **Description**: The address and port where the SFTP server will listen for connections.
|
||||
|
||||
### RUSTFS_SFTP_HOST_KEY
|
||||
|
||||
Path to SFTP server SSH host key file.
|
||||
|
||||
- **Default**: None (required when SFTP is enabled)
|
||||
- **Valid values**: Path to an SSH host key file
|
||||
- **Description**: SSH host key used for server identification.
|
||||
|
||||
### RUSTFS_SFTP_AUTHORIZED_KEYS
|
||||
|
||||
Path to SFTP authorized keys file.
|
||||
|
||||
- **Default**: None (required when SFTP is enabled)
|
||||
- **Valid values**: Path to a file containing OpenSSH public keys
|
||||
- **Description**: File containing authorized SSH public keys for client authentication.
|
||||
|
||||
## Performance Impact
|
||||
|
||||
- **Scanner**: Light to moderate CPU/IO impact during scans
|
||||
- **Heal**: Moderate to high CPU/IO impact during healing operations
|
||||
- **Locks**: Minimal CPU/memory overhead for coordination; disabling can improve throughput in single-client scenarios
|
||||
- **Memory**: Each service uses additional memory for processing queues and metadata
|
||||
- **FTPS**: Moderate CPU/memory overhead for TLS operations and connection management
|
||||
- **SFTP**: Moderate CPU/memory overhead for SSH operations and key management
|
||||
|
||||
Disabling these services in resource-constrained environments can improve performance for primary storage operations.
|
||||
Reference in New Issue
Block a user