【问题标题】:Securing a Bitnami Postgresql Database on Google Cloud保护 Google Cloud 上的 Bitnami Postgresql 数据库
【发布时间】:2017-08-30 12:53:18
【问题描述】:

我在 Google Cloud App Engine 上部署了一个基本的 Ruby on Rails 应用程序。我还在计算引擎上部署了一个 Bitnami Postgres 实例。它们都在默认网络组中。但是,我担心 postgresql 实例的防火墙设置非常薄弱。防火墙设置为:

postgresql-1-tcp-5432

Network
default

Priority
1000

Direction
Ingress

Action on match
Allow

Targets
Target tags         postgresql-1-tcp-5432

Source filters
IP ranges           0.0.0.0/0

Protocols and ports
tcp:5432

有人可以建议我如何保护我的数据库吗?我是网络和谷歌云的新手。

【问题讨论】:

    标签: postgresql security google-app-engine google-cloud-platform google-compute-engine


    【解决方案1】:

    斯蒂芬,有几种方法可以做到这一点。

    如果您的所有资源都在默认网络 use network tags 中以将防火墙规则应用于相应的目标。

    gcloud compute instances add-tags [INSTANCE_NAME] --tags tag-1,tag-2
    

    所以你的 Ruby 可以是应用程序,你的 postgress 数据库。在这种情况下,您可以将一些防火墙规则应用于相应的 VM。并且只允许从您的 Ruby VM 进入 db VM。 __________________-

    首选其他选项作为设置代理。您可以找到更多信息here

    【讨论】:

      猜你喜欢
      • 2018-12-25
      • 1970-01-01
      • 2015-12-11
      • 2021-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-21
      • 1970-01-01
      相关资源
      最近更新 更多