Caps-Télé
Permissions for creating a subscription
Sujet précédent Sujet suivant
Auteur Message
Donnieclark
Vient participer
Vient participer

Hors ligne

Inscrit le: 01 Nov 2017
Messages: 86
Sexe: Homme
Présentatrice favorite: fansforum

Posté le: Mercredi 13 Décembre 2017, 12:29
Sujet du message: Permissions for creating a subscription
Répondre en citant

Hi,
It seems like a common intended usage of pubsub is for a consumer to create its own subscription when it starts up. That's based on a few observations: some client libraries have an option that automatically creates subscriptions; a subscription seems to evaporate after 7 days if nobody pulls from it; deployment/configuration of a service is more complicated if a subscription has to be pre-created; and a service often wouldn't want messages starting at some arbitrary time before it started.

However, to create a subscription, we see from the docs that you need:

(a) pubsub.subscriptions.create on the containing Cloud project
(b) pubsub.topics.attachSubscription on the requested topic

The pubsub.subscriber role on the topic gives you (b), which makes sense.

But the only role listed with pubsub.subscriptions.create in it is pubsub.editor, which seems like a crazy permission to give at project level.

So…what am I missing? Intuitively it seems like pubsub.subscriber on the topic should be enough to do this. there doesn't seem to be any such operation in the API as "attaching" a subscription…isn't that the same as creating a subscription? So how are subscriptions.create and topics.attachSubscription logically different?


Please help.
Thanks!

I didn't find the right solution from the Internet.

References:
https://groups.google.com/forum/#!topic/cloud-pubsub-discuss/DhfkLMWcRok


Marketing Explainer Examples
Revenir en haut
Publicité






Posté le: Mercredi 13 Décembre 2017, 12:29
Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Sauter vers:   

Index | Créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB v2 © 2001, 2005 phpBB Group ¦
Style: PussycatBlue ¦