We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb6474 commit 7c29841Copy full SHA for 7c29841
1 file changed
Storages/ManagedCode.Storage.Sftp/Options/SftpStorageOptions.cs
@@ -68,9 +68,11 @@ public class SftpStorageOptions : IStorageOptions
68
public string? PrivateKeyContent { get; set; }
69
70
/// <summary>
71
- /// Accept any host key presented by the server (not recommended for production).
+ /// Accept any host key presented by the server.
72
+ /// WARNING: Setting this to true is INSECURE and should only be used for development/testing.
73
+ /// In production, always set this to false and provide a valid HostKeyFingerprint.
74
/// </summary>
- public bool AcceptAnyHostKey { get; set; } = true;
75
+ public bool AcceptAnyHostKey { get; set; } = false;
76
77
78
/// Expected host key fingerprint when <see cref="AcceptAnyHostKey"/> is <c>false</c>.
0 commit comments