Skip to content

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Oct 1, 2025

This PR updates the state decoding logic. When we have identity data in state, but the provider doesn't have an identity schema (likely in the case of a downgrade), we won't try to decode the identity data. Instead we skip decoding and will silently drop the identity data from state. The identity data will be added back to state if a user upgrades to a provider version that supports resource identity again.

Target Release

1.14.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@dbanck dbanck requested a review from a team as a code owner October 1, 2025 14:37
@dbanck dbanck added no-changelog-needed Add this to your PR if the change does not require a changelog entry 1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged labels Oct 1, 2025
@dbanck dbanck merged commit 62540da into main Oct 6, 2025
9 of 11 checks passed
@dbanck dbanck deleted the dbanck/check-identity-schema-decode branch October 6, 2025 08:15
dbanck added a commit that referenced this pull request Oct 6, 2025
…7709)

* Modernize Go

* Check if identity schema is present before decoding state

* Test identity decoding from state without schema
dbanck added a commit that referenced this pull request Oct 6, 2025
…7709)

* Modernize Go

* Check if identity schema is present before decoding state

* Test identity decoding from state without schema
dbanck added a commit that referenced this pull request Oct 7, 2025
…7709) (#37727)

* Modernize Go

* Check if identity schema is present before decoding state

* Test identity decoding from state without schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged no-changelog-needed Add this to your PR if the change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants