Skip to content

Add support for reflection in the produced grpc server #1509

@remyleone

Description

@remyleone

SDK version

	github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0

Use-cases

My end goal would be to have a better understanding of the grpc communication happening between terraform and provider. I would like to be able to sniff a socket to see all the communication happening between a terraform client and a provider.

Attempted Solutions

I've tried to launch a provider as a binary and communicate with it using a grpc client (evans, grpcurl, etc...) the problem is that no reflection seems to be enabled which render the communication cumbersome.

Proposal

Could you consider offer as a possibility the feature to enable grpc reflection on the produce provider. It would be disabled by default but could be enabled. It could be very useful in case of migration between the SDKv2 and terraform provider framework to have a better grasp of the difference between the two. I understand that you try to abstract that away with the libraries but in case something goes wrong it would help fill up bug reports.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions