通过 SFTP 存储敏感信息是否比通过 SOAP 更不安全?

发布于 2024-12-08 17:44:15 字数 48 浏览 0 评论 0原文

通过 SFTP 传输的文件是否比通过 SOAP 传输到数据库的相同数据安全性较低?

Is a file transferred via SFTP any less secure than the same data transferred via SOAP into a database?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半窗疏影 2024-12-15 17:44:15

SFTP 非常安全。 “SFTP”中的“S”甚至代表安全。当然,这并不意味着通过 SFTP 传输的文件一定是安全的 - 只是如果安全性出现问题,您可能会责怪 SFTP 之外的其他原因。 SFTP 不会是薄弱环节。您仍然可能会使用弱密码、丢失证书、让特勤局突袭您的数据中心等等。

但是,SOAP 与安全性无关。 SOAP 请求是一个事物,它可以是安全的,也可以是不安全的,具体取决于它的发送方式。如果您通过 HTTP 发送 SOAP,那么它是极其不安全的。如果您通过 HTTPS 发送它,它可能相对安全,具体取决于您对 CA 的信任程度。使用 SOAP over HTTP 就像将 UPS 包裹留在家门口一样。很方便,但有人可以走过来拿走。

这样想:SOAP 是钱,HTTPS 是装甲车。除非有时装甲车由中国政府驾驶到完全不同的地点,除非你有适当的规则来防止这种情况发生。 (例如,Google Chrome 浏览器对特定域上的 CA 使用白名单。)

摘要:

  • 如果您的证书正确,SFTP 就是安全的。
  • 如果您的证书正确,则基于 HTTPS 的 SOAP 是安全的。
  • HTTP 或 SMTP 上的 SOAP 不安全。

正确获取证书是唯一困难的部分。

SFTP is very secure. The "S" in "SFTP" even stands for secure. That doesn't mean that a file transferred via SFTP is necessarily secure, of course -- just that if something goes wrong with the security, you probably have something else to blame other than SFTP. SFTP won't be the weak link. You could still have a weak password, lose your certificate, have the secret service raid your data center, etc.

However, SOAP has nothing to do with security. A SOAP request is a thing which can be secure or insecure depending on how it's sent. If you send SOAP over HTTP, it is incredibly insecure. If you send it over HTTPS, it can be relatively secure depending on how much you trust your CA. Using SOAP over HTTP is like leaving your UPS package on the doorstep. It's convenient but someone could walk by and take it.

Think about it this way: SOAP is the money, HTTPS is the armored car. Except sometimes the armored car is driven by the Chinese government to a completely different location, unless you have a rule in place to prevent that from happening. (Google Chrome, for example, uses a whitelist for CAs on specific domains.)

Summary:

  • SFTP is secure, if you get your certificates right.
  • SOAP over HTTPS is secure, if you get your certificates right.
  • SOAP over HTTP or SMTP is insecure.

Getting your certificates right is the only hard part about this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文