Skip to content

Conversation

bbasata
Copy link
Contributor

@bbasata bbasata commented Jul 24, 2025

Related Issue

Fixes #1184. Depends on hashicorp/terraform-plugin-go#541.

Description

This pull request updates the ReadResource and ApplyResourceChange RPCs to return an error diagnostic on the Create, Read, and Update paths when a null resource identity would be returned for a resource that has an identity schema.

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

None.

@bbasata bbasata marked this pull request as ready for review July 28, 2025 17:52
@bbasata bbasata requested a review from a team as a code owner July 28, 2025 17:52
Copy link
Member

@austinvalle austinvalle left a comment

Choose a reason for hiding this comment

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

Code LGTM, as you mentioned, should probably point to the GH ref of terraform-plugin-go after that is merged.

Also looks like one of the corner resource's needs to be updated to actually set identity, a good catch! 👍🏻 (Also looks like there is an extra log statement in there 😆 )

@austinvalle
Copy link
Member

hashicorp/terraform-provider-corner#382 will resolve the test failures here

@rainkwan rainkwan requested review from rainkwan and removed request for rainkwan September 22, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Framework allows resource identities to be set to null, eventually triggering mutable identity error

4 participants