Skip to content

Conversation

swatimodi-scout
Copy link
Contributor

@swatimodi-scout swatimodi-scout commented Aug 19, 2025

Description

This PR fixes a bug in the AWS Kinesis input binding where the stream ARN was being resolved unconditionally, even when KinesisConsumerMode was set to SharedThroughput (the default).

  • Bug: The binding attempted to call authProvider.Kinesis().Stream(...) regardless of the consumer mode.
  • Impact: When running in SharedThroughput mode, this resulted in nil pointer errors if the stream was unavailable or not initialized. This was encountered during local testing with LocalStack but can occur in any environment.
  • Fix: Added a condition so that stream ARN resolution is only performed when KinesisConsumerMode is set to ExtendedFanout.

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: #[3980]

Checklist

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

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.

@swatimodi-scout swatimodi-scout requested review from a team as code owners August 19, 2025 12:33
@swatimodi-scout
Copy link
Contributor Author

Fixes #3980

javier-aliaga and others added 24 commits August 19, 2025 12:39
Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
…ponent (dapr#3853)

Signed-off-by: Prashanth Nagaraj <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
…rors

- Invoke logic only when KinesisConsumerMode is set to 'extended' to avoid unnecessary calls
- Skip next step if error is not nil to prevent nil pointer errors on StreamDescription.StreamARN.

Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Filinto Duran <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
…re Service Bus Topics. (dapr#3942)

Signed-off-by: Andy Ladd <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Javier Aliaga <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
…apr#3914)

Signed-off-by: Mike Nguyen <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Co-authored-by: peterdalinis-scout <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: nelson.parente <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Oliver Tomlinson <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Mike Nguyen <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Mike Nguyen <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
…#3969)

Signed-off-by: Samantha Coyle <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Eileen Yu <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
Signed-off-by: Samantha Coyle <[email protected]>
Co-authored-by: Yaron Schneider <[email protected]>
Signed-off-by: swatimodi-scout <[email protected]>
yaron2
yaron2 previously approved these changes Aug 19, 2025
@yaron2
Copy link
Member

yaron2 commented Aug 19, 2025

common/authentication/aws/client.go:187:1 gofumpt File is not properly formatted

Signed-off-by: swatimodi-scout <[email protected]>
@swatimodi-scout
Copy link
Contributor Author

common/authentication/aws/client.go:187:1 gofumpt File is not properly formatted

Fixed

@swatimodi-scout
Copy link
Contributor Author

@yaron2 Please review the PR again.

Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions bot added the stale label Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.