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

subscriber able to receive message even though service account is disabled. #1852

Open
zhumin8 opened this issue Dec 26, 2023 · 1 comment
Open
Assignees
Labels
api: pubsub Issues related to the googleapis/java-pubsub API.

Comments

@zhumin8
Copy link

zhumin8 commented Dec 26, 2023

Filing an issue here for part of issuer reported in https://github.com/GoogleCloudPlatform/spring-cloud-gcp (referred as second issue in original comments) that's relevant here.
Application receives a message successfully from subscription, even though service account is disabled

@mayur-solace provided reproducer and steps here: GoogleCloudPlatform/spring-cloud-gcp#2158 (comment) (Note that dispite the class name suggests, this reproducer is with client library and did not use Spring Cloud GCP)

@michaelpri10
Copy link
Contributor

From reading the original issue, it seems that the main issue is that messages are still being received even after the service account is disabled, which I have been able to reproduce from the your examples. What I've noticed is that these UnauthenticatedException are actually occurring on ack and modack calls on the messages but the streaming request that pulls that is actually pulling the messages is still alive.

I suspect that this is occurring because the streaming pull connection has already been created before the service account is disabled and therefore messages are still able to be delivered, but not acked, over this connection. I will do more research into the expected behavior here.

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 googleapis/java-pubsub API.
Projects
None yet
Development

No branches or pull requests

3 participants