Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incorrect secret creation on drift detection of secret value #2499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jorgecarleitao
Copy link

@jorgecarleitao jorgecarleitao commented Dec 5, 2024

Resolves #1383
Resolves #2288


Before the change?

Given a .tf with a resource with any secret
When .tf is applied
And the secret's value is externally modified
And .tf is applied
Then the new plan results in the creation of a new secret

After the change?

Given a .tf with a resource with any secret
When .tf is applied
And the secret's value is externally modified
And .tf is applied
Then the plan results in the update of the existing secret

In particular, this behavior enables the use of the lifecycle meta argument to ignore changes to externally updated secrets.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

NOTE: I could not find any test that I could re-use to introduce an external change to an existing resource. Need support.

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@jorgecarleitao jorgecarleitao changed the title Fixed incorrect secrets creation on externally updated secret Fixed incorrect secrets creation on drift detection of secret value Dec 5, 2024
@jorgecarleitao jorgecarleitao changed the title Fixed incorrect secrets creation on drift detection of secret value Fixed incorrect secret creation on drift detection of secret value Dec 5, 2024
Copy link

@nbali nbali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, pretty much what I had in mind, ty for your time

@mothilraj
Copy link

Please let us know when this fix will be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants