-
Notifications
You must be signed in to change notification settings - Fork 34
tfprotov5+tfprotov6: Write-only Attribute Implementation #462
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
2a6cf6e
Upgrade Go to `v1.22`
SBGoods a1813c4
Add support for ephemeral resources in protocol version 6
SBGoods 8b3457c
Add support for ephemeral resources in protocol version 5
SBGoods bd78dc5
Add ephemeral resources field to `GetMetadata_Response()`
SBGoods 005c5e6
Update tfplugin5.proto and tfplugin5.proto to support write-only attr…
SBGoods 3c613f8
Implement write-only attributes in `tfprotov5` and `tfprotov6` packages
SBGoods 145d7bc
Remove `State` field from `RenewEphemeralResource` RPC response and r…
SBGoods 76f72b3
Update tfplugin5.proto and tfplugin5.proto to support write-only attr…
SBGoods 05fa3f9
Implement write-only attributes in `tfprotov5` and `tfprotov6` packages
SBGoods 38321c9
Merge remote-tracking branch 'origin/SBGoods/write-only-attributes' i…
SBGoods 0af2658
Update protobuf stubs after rebase
SBGoods 5eafe6a
Increase protocol minor version for write-only attributes
SBGoods 7ea64ad
switch interfaces to be optional
austinvalle 01ad1de
Merge branch 'main' into SBGoods/ephemeral-resources
austinvalle cd3b665
removed `config` from renew request
austinvalle daaf44b
Merge branch 'SBGoods/ephemeral-resources' into SBGoods/write-only-at…
SBGoods adf4d55
Update protocol bindings
SBGoods 9019c19
Merge branch 'main' into SBGoods/write-only-attributes
SBGoods 89be6e8
Merge branch 'main' into SBGoods/write-only-attributes
austinvalle dcf8f64
remove ApplyResourceChange client capabilities + add server logging f…
austinvalle 2f466c8
Merge branch 'main' into SBGoods/write-only-attributes
SBGoods 200b886
Update `protoc` to `v29.3` in CI
SBGoods 0cf16f3
Add changelog entry
SBGoods ba35cea
Apply suggestions from code review
SBGoods File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: FEATURES | ||
body: 'tfprotov5+tfprotov6: Upgraded protocols and added types to support write-only attributes' | ||
time: 2025-01-21T16:34:56.142885-05:00 | ||
custom: | ||
Issue: "462" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,15 @@ | |
|
||
package tfprotov5 | ||
|
||
// ValidateResourceTypeConfigClientCapabilities allows Terraform to publish information | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My monthly reminder that this RPC is named different in protocol v5 😆 |
||
// regarding optionally supported protocol features for the ValidateResourceTypeConfig RPC, | ||
// such as forward-compatible Terraform behavior changes. | ||
type ValidateResourceTypeConfigClientCapabilities struct { | ||
// WriteOnlyAttributesAllowed signals that the client is able to | ||
// handle write_only attributes for managed resources. | ||
WriteOnlyAttributesAllowed bool | ||
} | ||
|
||
// ConfigureProviderClientCapabilities allows Terraform to publish information | ||
// regarding optionally supported protocol features for the ConfigureProvider RPC, | ||
// such as forward-compatible Terraform behavior changes. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not specific feedback to this work, more of an observation, but I see that Terraform core is sending these client capabilities in every RPC request regardless of whether we use them. So in theory we could add, say, the
WriteOnlyAttributesAllowed
capability toPlanResourceChange
with an SDK only change.Not saying we should, but thought it was interesting.