Pub/Sub notifications

266 views
Skip to first unread message

Mohammad Youssuf

unread,
Oct 21, 2020, 9:11:16 AM10/21/20
to Google Cloud Pub/Sub Discussions
Hi ,

I have some questions regarding Pub/Sub updates. They are as follows:

1. What Is the best way to test Pub/Sub?
2. If a user from the GMB platform is updating location status(verified/not verified) do we get notification from Pub/ sub, if yes, how? 
3. How long it takes to receive from Pub/Sub notifications re changes?   

I would highly appreciate relevant feedback at the earliest.

Best regards,

Jadid (Google Cloud Platform Support)

unread,
Oct 24, 2020, 3:22:58 PM10/24/20
to Google Cloud Pub/Sub Discussions
Hello,

1.You can develop and test your application locally with the Pub/Sub emulator which provides local emulation of Pub/Sub service using gcloud command-line tool [1].
2.You can set a Pub/Sub topic where notification can be published when a location is updated or has a new review [2].
3.Would you please clarify what you mean by “Pub/Sub notifications re changes”?

Joshua Fox

unread,
Dec 28, 2020, 9:36:04 AM12/28/20
to Google Cloud Pub/Sub Discussions
Why is there a command gcloud pubsub subscriptions set-iam-policy ? In general IAM is set through IAM interfaces, so why a special interface inside the PubSub API?
 

Joshua Fox

unread,
Dec 28, 2020, 9:56:42 AM12/28/20
to Google Cloud Pub/Sub Discussions
I got an answer at the GCP Slack. 

It is for fine-grained permissions. Without this, using the IAM API, a given account would  have to be given full project-wide access at minimum, but with this interface, we can give it access to a single subscription, for example.

On Mon, Dec 28, 2020 at 2:13 PM Joshua Fox <jos...@doit-intl.com> wrote:
Why is there a command gcloud pubsub subscriptions set-iam-policy ? In general IAM is set through IAM interfaces, so why a special interface inside the PubSub API?
 


--

Joshua Fox // DoIT International | Senior Architect | IL: +972 (0545) 69 1165

Monica (Google Cloud Platform)

unread,
Dec 29, 2020, 12:35:28 PM12/29/20
to Google Cloud Pub/Sub Discussions
Indeed, granting minimum permissions on the projects' resources it's a must as to respect the least privilege policy security enhancement.

See here Sample use case: cross-project communication for more information and some code examples that demonstrate how to use Pub/Sub's Identity and Access Management features.

The security of the projects it's a top priority for us. Also address these documents [1] [2] [3] with overall GCP security best practices.

Kir Titievsky

unread,
Jan 27, 2021, 1:45:01 PM1/27/21
to Monica (Google Cloud Platform), Google Cloud Pub/Sub Discussions
To answer the "why" question: The "modern" way to do fine grained permissions on GCP  is IAM conditions.  Pub/Sub was built before that system was available so we had to do it in a less general way.  

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/537529f3-c1c3-4d42-8b39-2d58668a6fd2n%40googlegroups.com.


--
Kir Titievsky | Product Manager | Google Cloud Pub/Sub 

Joshua Fox

unread,
Jan 27, 2021, 1:47:59 PM1/27/21
to Kir Titievsky, Monica (Google Cloud Platform), Google Cloud Pub/Sub Discussions
Thank you, Kir, 

Although the answer I got earlier about the need for fine-grained permissions was correct, your answer addresses my puzzlement that something looked unusual.   

Reply all
Reply to author
Forward
0 new messages