Skip to content

Conversation

@sicoyle
Copy link
Contributor

@sicoyle sicoyle commented Aug 11, 2025

Description

Separating the bindings changes from PR:
#3949

For each dapr release there is an endgame task to ensure that components are properly registered across contrib and dapr/dapr. I took the time to fix all the issues that I came across, cross referencing the docs. This PR updates naming conventions on file directories, adds missing metadata.yaml files, and updates things like the gcp pubsub binding (alpha) to support the same logic as the stable pubsub gcp pubsub component so I could standardize their auth profiles in adding the metadata.yaml file and use the builtinAuthProfile for gcp.

You will also see TODO comments here and there. That is from me going through the code to manually create the metadata.yaml files and add todos i deemed necessary for the component. I also updated any interface{} to any that I came across along the way.

RethinkDB needed custom changes to allow users to properly specify tlsconfig due to rethinkdb embedded structs/tags.

Yes, I did cross ref the docs too so the links should be 99.9% correct unless I made a typo or missed something accidentally.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation
    • Created the dapr/docs PR:

Note: We expect contributors to open a corresponding documentation PR in the dapr/docs repository. As the implementer, you are the best person to document your work! Implementation PRs will not be merged until the documentation PR is opened and ready for review.

@sicoyle sicoyle requested review from a team as code owners August 11, 2025 13:47
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
ClientID string `json:"clientID"`
AuthURI string `json:"authURI"`
TokenURI string `json:"tokenURI"`
AuthProviderX509CertURL string `json:"authProviderX509CertURL"`
Copy link
Member

Choose a reason for hiding this comment

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

This change is good because it consolidates our metadata, and is allowed since the binding is Alpha, but I am worried about breaking changes since I'm aware of several users using this binding in production

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i updated to use our mapstructurealiases in our kit decoder to support both approaches and added a unit test to double check :)

Comment on lines 51 to 63
Topic string `json:"topic"`
Subscription string `json:"subscription"`
Type string `json:"type"`
ProjectID string `json:"projectID"`
PrivateKeyID string `json:"privateKeyID"`
PrivateKey string `json:"privateKey"`
ClientEmail string `json:"clientEmail"`
ClientID string `json:"clientID"`
AuthURI string `json:"authURI"`
TokenURI string `json:"tokenURI"`
AuthProviderX509CertURL string `json:"authProviderX509CertURL"`
ClientX509CertURL string `json:"clientX509CertURL"`
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there are more changes here to align this alpha bindings component to what the stable pubsub version of it has for the auth profile so I could just use the builtinAuthenticationProfiles for gcp on its metadata yaml file

ClientID string `json:"clientID"`
AuthURI string `json:"authURI"`
TokenURI string `json:"tokenURI"`
AuthProviderX509CertURL string `json:"authProviderX509CertURL"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i updated to use our mapstructurealiases in our kit decoder to support both approaches and added a unit test to double check :)

@sicoyle
Copy link
Contributor Author

sicoyle commented Aug 12, 2025

this is ready pls

@yaron2 yaron2 merged commit b11b6da into dapr:main Aug 22, 2025
4 of 57 checks passed
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.

2 participants