Navigation Menu

Skip to content
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

fix(pubsub): make config call permission error in Receive transparent #3985

Merged
merged 8 commits into from Apr 23, 2021

Conversation

hongalex
Copy link
Member

@hongalex hongalex commented Apr 21, 2021

In #3886, a Subscription.Config() call was added to check for EnableMessageOrdering on the subscription before delivering messages with ordering keys in order. This negatively affected users who didn't have the roles/viewer or roles/pubsub.viewer roles on their service account.

This PR incorporates two changes:

  1. The call to Config() is only done (once) when we detect an ordering key in a received message.
  2. If the config call fails, we will deliver messages with ordering keys in order by default.

Fixes #3947

@hongalex hongalex requested review from a team as code owners April 21, 2021 22:48
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Apr 21, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 21, 2021
fix(pubsub): make config call permission error in Receive transparent

remove extra whitespace

clarify doc comments

fix typos

fix formatting
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: simple subscribers require permission pubsub.subscriptions.get since v1.10.2
2 participants