Giter Club home page Giter Club logo

Comments (5)

bryantbiggs avatar bryantbiggs commented on June 26, 2024

Provide the feature as it was before

You really should look for ways to avoid having the password in plaintext in your statefile. We do not have any plans to re-enable that functionality because its a really poor practice

That said, there is nothing from stopping you from using the random password resource yourself to generate a password and pass it into this module - we want to push users towards the recommended approach (for their own benefit)

from terraform-aws-rds-aurora.

theherk avatar theherk commented on June 26, 2024

Of course one should avoid that. I thought I made it clear I agree with the intent. The only issue is with the stated removal being:

With RDS now supporting the integration with SecretsManager to manage the master user password, the ability to generate a random password has been removed from this module

But RDS doesn't support that in all cases. In those cases, what is your recommendation? I cannot enable IAM authentication without setting a master password. So, without encrypted state support, I'm not clear on the recommended approach here.

from terraform-aws-rds-aurora.

bryantbiggs avatar bryantbiggs commented on June 26, 2024

If you don't want to go the managed password route, just supply a password as input to your module via master_password. You can even use the random resource like this module previously did if you'd like

resource "random_password" "master_password" {
count = local.create_cluster && var.create_random_password ? 1 : 0
length = var.random_password_length
special = false
}

  # ...
  manage_master_user_password = false
  master_password = <something>
  # ...

from terraform-aws-rds-aurora.

theherk avatar theherk commented on June 26, 2024

I appreciate you taking the time. Just to clarify, that is precisely what I am doing. I mention that as the alternatives in the opening remarks. I guess my question is, if this is a poor practice, what is the alternative? I do want to go the managed password route; it just isn't supported.

One improvement would be to ignore changes to the master password, so it can be changed outside the state, but that still requires the initial inclusion.

from terraform-aws-rds-aurora.

github-actions avatar github-actions commented on June 26, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from terraform-aws-rds-aurora.

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.