Skip to content

Conversation

@SoulMind01
Copy link

Description

This pull request adds functionality to automatically set manage_master_user_password to false when the user provides a manual password. This ensures that the manually provided password is respected and not overridden by Terraform when manage_master_user_password is set to true by default.

Motivation and Context

This change resolves an issue where users provide a password, but it is ignored because manage_master_user_password is set to true by default. By automatically setting manage_master_user_password to false when a password is provided, the module behaves more intuitively, using the password provided by the user.

This change addresses an issue discussed in #510, where the unexpected behavior caused confusion.

Breaking Changes

This change is backward-compatible. If no password is provided, the module will behave as it currently does, with manage_master_user_password defaulting to true. This ensures that the new behavior only affects users who explicitly provide a password.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have validated the changes is working correctly by testing in examples/complete-postgres. After providing a value to password, manage_master_user_password is automatically set to false.
  • I have executed pre-commit run -a on my pull request

…s provided

- Added logic to automatically set `manage_master_user_password` to false when a password is manually provided.
- Updated variable descriptions for `password` and `manage_master_user_password` to reflect the new behavior.
@SoulMind01 SoulMind01 changed the title Automatically disable manage_master_user_password when password is provided feat: Automatically disable manage_master_user_password when password is provided Sep 30, 2024
@SoulMind01 SoulMind01 closed this Sep 30, 2024
@SoulMind01 SoulMind01 reopened this Sep 30, 2024
@SoulMind01
Copy link
Author

Apologies for making changes directly on the master branch. I'll create a new branch and submit a new pull request shortly.

@SoulMind01 SoulMind01 closed this Sep 30, 2024
@github-actions
Copy link

github-actions bot commented Nov 1, 2024

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant