Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Allow FTPS to force TLS - #21251

#21251
Merged
harshavardhana merged 1 commit into
minio:masterminio/minio:masterfrom
klauspost:ftp-force-tlsklauspost/minio:ftp-force-tlsCopy head branch name to clipboard
May 9, 2025
Merged

Allow FTPS to force TLS#21251
harshavardhana merged 1 commit into
minio:masterminio/minio:masterfrom
klauspost:ftp-force-tlsklauspost/minio:ftp-force-tlsCopy head branch name to clipboard

Conversation

@klauspost

Copy link
Copy Markdown
Contributor

Description

Fixes #21249

Example params: -ftp=force-tls=true -ftp="tls-private-key=ftp/private.key" -ftp="tls-public-cert=ftp/public.crt"

If MinIO is set up for TLS those certs will be used.

How to test this PR?

Add -ftp=force-tls=true to startup.

Types of changes

  • New feature (non-breaking change which adds functionality)

Fixes minio#21249

Example params: `-ftp=force-tls=true -ftp="tls-private-key=ftp/private.key" -ftp="tls-public-cert=ftp/public.crt"`

If MinIO is set up for TLS those certs will be used.

Copilot AI left a comment

Copy link
Copy Markdown

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 adds a new flag to force TLS when using FTPS, allowing users to ensure that TLS is enforced when launching the FTP server.

  • Introduces a new boolean flag ("force-tls") that is parsed from startup arguments
  • Adds a check to validate that TLS is properly configured when forceTLS is enabled, and passes the flag to the FTP server initialization
Files not reviewed (1)
  • docs/debugging/inspect/go.mod: Language not supported

Comment thread cmd/ftp-server.go
@feorlen

feorlen commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

Should this option be documented? I'm not sure if it is visible in the --help output.

@klauspost

Copy link
Copy Markdown
Contributor Author

@feorlen Where are these params documented? Looked for it, but didn't find anything obvious.

@feorlen

feorlen commented Apr 30, 2025

Copy link
Copy Markdown
Contributor

@klauspost

Copy link
Copy Markdown
Contributor Author

@feorlen Thanks! Something like this:

  • (Optional) force-tls=true, will reject all connection attempts that are done without TLS. A private key must be set or configured on the MinIO server.

@harshavardhana
harshavardhana merged commit c0a3395 into minio:master May 9, 2025
harshavardhana pushed a commit that referenced this pull request May 30, 2025
Fixes #21249

Example params: `-ftp=force-tls=true -ftp="tls-private-key=ftp/private.key" -ftp="tls-public-cert=ftp/public.crt"`

If MinIO is set up for TLS those certs will be used.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Built-in FTPS server can not be forced to use TLS only

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.