java - 微服务和数据库安全

标签 java .net database security microservices

我是微服务架构的新手。设计原则说微服务有自己的数据库。我应该担心连接数据库的安全性还是微服务与数据库通信的安全性?

最佳答案

是的,应该使用 TLS 或其他一些方法来保护流量。

Microsoft 列出了一些想法和选项 here (尽管它们会引导您使用 MSFT 产品,但这些概念是相关的)。

Best practice: Secure access from multiple workstations located on-premises to an Azure virtual network.

Detail: Use site-to-site VPN.

Best practice: Secure access from an individual workstation located on-premises to an Azure virtual network.

Detail: Use point-to-site VPN.

Best practice: Move larger data sets over a dedicated high-speed WAN link.

Detail: Use ExpressRoute. If you choose to use ExpressRoute, you can also encrypt the data at the application level by using SSL/TLS or other protocols for added protection.

Best practice: Interact with Azure Storage through the Azure portal.

Detail: All transactions occur via HTTPS. You can also use Storage REST API over HTTPS to interact with Azure Storage and Azure SQL Database.

关于java - 微服务和数据库安全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53621693/

相关文章:

php - 如何对此上下文建模,以便有可能创建自定义问题并收集答案?

java - ServiceTracker何时取消获取ServiceReference?

.net - VS 2012 中的代码覆盖问题

java - ATL 转换 - 空输出

c# - 线程化缓慢且不可预测?

c# - 使用 C# 将 XML 转换为平面文件

mysql - 给定一个形式为 "select a,b,c from t"的 SQL 语句及其输出,你能确定表 t 中的列数吗?

mongodb - Mongodb聚合$ group,限制数组的长度

java - 如何在java中制作倒数倒数计时器(秒表Java)

java - 如何构建大类?