Giter VIP home page Giter VIP logo

Comments (3)

sethvargo avatar sethvargo commented on June 12, 2024

Hi @jasonbisson

Thank you for opening an issue. It's unclear what you are asking. Are you asking for a new feature or a change to the existing behavior?

from terraform-google-vault.

jasonbisson avatar jasonbisson commented on June 12, 2024

Hi @sethvargo

Thanks for the quick response. The ask is related to the README where a bastion is called out to access the Vault node, but Identity aware proxy with TCP forwarding could be an option to eliminate the bastion host. Also, might be an optional resource deploy by Terraform.

https://cloud.google.com/iap/docs/using-tcp-forwarding

from terraform-google-vault.

onetwopunch avatar onetwopunch commented on June 12, 2024

@jasonbisson The bast practice is to not give SSH access to Vault nodes themselves, since that node holds senstitive information that could be accessed if a privilege escalation vulnerability is exploited on the host. Rather access over HTTPS is preferred, hence the bastion host with firewall at 443 open to Vault for admin tasks. If you'd like to use IAP for the bastion, take a look at https://github.com/terraform-google-modules/terraform-google-bastion-host

However if you still want to enable IAP SSH to the Vault node, simply add a firewall rule on the Vault network that allows port 22 access to the vault service account from the IAP CIDR range.

module "iap_tunneling" {
  source = "terraform-google-modules/bastion-host/google//modules/iap-tunneling"

  project = var.project
  network  = var.network
  service_accounts = [module.vault.service_account_email]

  instances = [{
    name = var.vault_node1
    zone = var.vault_node2
  }]

  members = [
    "group:[email protected]",
    "user:[email protected]",
  ]
}

from terraform-google-vault.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.