Cloud Endpoints Portal public access

1,100 views
Skip to first unread message

pierluigi...@revevol.eu

unread,
Jun 15, 2018, 4:10:16 AM6/15/18
to Google Cloud Endpoints
I've a question regarding the new feature of cloud endpoints portal. 

Right now it doesn't seem possible to let the endpoints portal open to everyone, since it requires the service to be shared with the role "Service Consumer" with single users or google groups.

Using the values "allUsers" or "allAuthenticatedUsers" rise the error:  "Member 'allUsers' is not allowed in role 'roles/servicemanagement.serviceConsumer'."

In my scenario, we use a custom jwt token to let the users access the api, so there's no need to secure the entire portal behind a google account, and it seems to be too much trouble to actually track and add people to the service by hand every time someone needs to use the api.

Is this behavior just temporary for the sake of the beta/alpha or is it permanent ? 
Am I actually missing something about the portal publishing process ? 

thank you everybody for your time :)

Andrew Gunsch

unread,
Jun 15, 2018, 5:27:38 PM6/15/18
to Google Cloud Endpoints
Thanks for the feedback!

On Friday, June 15, 2018 at 1:10:16 AM UTC-7, pierluigi...@revevol.eu wrote:
I've a question regarding the new feature of cloud endpoints portal. 

Right now it doesn't seem possible to let the endpoints portal open to everyone, since it requires the service to be shared with the role "Service Consumer" with single users or google groups.

Using the values "allUsers" or "allAuthenticatedUsers" rise the error:  "Member 'allUsers' is not allowed in role 'roles/servicemanagement.serviceConsumer'."


For the portal, permission to view is tied to the same permissions in Cloud Endpoints --- if a user can enable your API (serviceConsumer), then they can also see the portal.

Unfortunately, Cloud Endpoints as a product doesn't allow you to make your API public to all users today.

Right now, that implies that your portal also cannot be made publicly viewable to all users (since that would subvert the restrictions you applied to your API), though we're considering other options here. It's not connected to alpha/beta/GA status for us.
 
In my scenario, we use a custom jwt token to let the users access the api, so there's no need to secure the entire portal behind a google account, and it seems to be too much trouble to actually track and add people to the service by hand every time someone needs to use the api.

One other option in the meantime is that you could use Google groups for authentication --- that is, you can add a Google group as "Service Consumer", and then every member of that group can view the API + portal.
 

Is this behavior just temporary for the sake of the beta/alpha or is it permanent ? 
Am I actually missing something about the portal publishing process ? 

You're not missing anything---that's how the permissions model works today. We're considering options for ways to make certain APIs public in the portal, since as you mention in cases like yours it doesn't necessarily broaden access to your API.

We'll keep this list updated if we make any changes to the permissions model. In the meantime, we're really appreciative of this kind of input.

Best,
- Andrew

pierluigi...@revevol.eu

unread,
Jun 18, 2018, 4:46:43 AM6/18/18
to Google Cloud Endpoints
Thank you for the reply :) 
I'll keep myself updated for any updates regarding this topic

jona...@beliantech.com

unread,
Jan 5, 2019, 9:11:48 AM1/5/19
to Google Cloud Endpoints
Just to add a +1 to this. Right now Cloud Endpoints isn't ideal for the purpose of marketing an API, letting developers play with the API, etc. 

caleb....@gmail.com

unread,
Jan 25, 2019, 7:10:42 PM1/25/19
to Google Cloud Endpoints
+1

For now I'll probably host a public swagger-ui over my API.


On Friday, June 15, 2018 at 1:10:16 AM UTC-7, pierluigi...@revevol.eu wrote:

mite...@finqware.com

unread,
Mar 5, 2019, 12:56:38 PM3/5/19
to Google Cloud Endpoints
Hi Andrew,

any idea how this dev portal actually has public access?

Thank you
regrads

ma...@bkper.com

unread,
Mar 9, 2019, 3:41:12 PM3/9/19
to Google Cloud Endpoints
Hi Guys,

Sometimes users just want to take a look to the API resources and documentation quality, in order to even consider adopting the product. 

Why not let the Developer Portal aways public, and only request authentication when user actually try the API, like the API Explorer?

Thanks,
Mael

Dumitru Taraianu

unread,
Mar 10, 2019, 4:35:56 AM3/10/19
to ma...@bkper.com, Google Cloud Endpoints
Totally agree.
We’re now using the dev portal for our internal use & communication. It would be great to have public access with some restrictions.

Thanks
Regards

--
You received this message because you are subscribed to a topic in the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-cloud-endpoints/-GrnDqyauiI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/b2f7551a-776a-4b0f-850e-4ebe117559f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Dumitru Taraianu
finqware - devops & infrastructure

Mike McDonald

unread,
Mar 10, 2019, 1:31:30 PM3/10/19
to Dumitru Taraianu, ma...@bkper.com, Google Cloud Endpoints
Hey folks,

Andrew has unfortunately left Google, so I doubt he'll be responding here.

I'm a little surprised that allUsers doesn't work here, as that would be the preferred way to make things public. I can bother some folks and see why this is the case.

We can't make all API portals public, because there are a large category of customers who are using these portals for internal use (e.g. private corp APIs), and set the ACLs to a domain or a group.

Thanks,
--Mike

You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CAJUG1x7UG%2BtJdNpFUB%2BhfjKhfP_HoCO2y1oZa5Gy-YONmLkQMA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Michael McDonald | Product Manager, Serverless | mpmcd...@google.com | 1-844-THE-FIRE 

Mael Caldas

unread,
Mar 10, 2019, 1:40:57 PM3/10/19
to Mike McDonald, Dumitru Taraianu, Google Cloud Endpoints
Hi Mike,

Thanks for the update.

Yes, that's makes sense not to be aways public, but allowing a way to make it public explicitly, like setting allUsers, and provide the same experience you provide at your demo here:


Would be really valuable for our business, since we could have users checking the API and its documentation, without even the need to login.

Best,
Mael

Mike McDonald

unread,
Mar 10, 2019, 1:45:27 PM3/10/19
to ma...@bkper.com, Dumitru Taraianu, Google Cloud Endpoints
Yeah, I'm not sure how that's been hacked around, but I'll dig in and see if we can make allUsers work. Given that it looks like we can set IAM policies on individual Endpoints services, I'm surprised allUsers doesn't work (I know it doesn't work at the project level).

Thanks,
--Mike

Rob Wyrick

unread,
Mar 11, 2019, 1:26:05 PM3/11/19
to Mike McDonald, Franco Ponticelli, ma...@bkper.com, Dumitru Taraianu, Google Cloud Endpoints

spaq...@systemsbiology.org

unread,
May 8, 2019, 6:01:45 PM5/8/19
to Google Cloud Endpoints
Just want to add that we have this problem as well - a number of our APIs are *meant* to be public, and not require users to be members of Google Groups / enable the API in a GCP project. We're using Swagger UI for the moment, but it'd be nice to not have to produce an entirely separate documentation set just to provide our users with a way to view the APIs in this manner, when the functionality is clearly already there.

se...@staked.us

unread,
Jul 30, 2019, 1:18:40 PM7/30/19
to Google Cloud Endpoints
+1 any movement on this?

james....@machinemax.com

unread,
Aug 19, 2019, 6:24:47 AM8/19/19
to Google Cloud Endpoints
@mike do you have an update on this?

Joan Grau

unread,
Aug 19, 2019, 9:02:23 AM8/19/19
to Google Cloud Endpoints
There is actually a filed Feature Request for this [1] (filed on March this year), however it has no updates from the Cloud Endpoints team as of yet.

I think it would be also good to add any input or comments there, in order to give more traction to the request. 

Rob Wyrick

unread,
Aug 19, 2019, 3:42:13 PM8/19/19
to Joan Grau, Franco Ponticelli, Google Cloud Endpoints
+Franco Ponticelli to comment on Portal
-Rob


--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.

Alan Peters

unread,
Aug 21, 2019, 11:21:27 AM8/21/19
to Google Cloud Endpoints
We have looked at making this change but because the authentication is so closely coupled with Cloud Endpoints, this would require large changes for portals. This is not a priority on our roadmap for the next two quarters. 

ric...@mindloops.nl

unread,
Oct 13, 2019, 5:32:01 AM10/13/19
to Google Cloud Endpoints
Another +1 for this change. Also I would suggest making more clear in de public Cloud Endpoints docs that currently you can't expose the Developer Portal without Google Authentication.

nos...@gmail.com

unread,
Mar 7, 2020, 11:29:14 AM3/7/20
to Google Cloud Endpoints
Yep, because for example we created portal just to find out that it's useless in a few weeks.

David Van Geest

unread,
Apr 28, 2020, 10:02:37 AM4/28/20
to Google Cloud Endpoints
I'm using the gRPC to REST transcoding feature of Cloud Endpoints. I assume that at some point, Cloud Endpoints generates OpenAPI documentation from the gRPC. If that's true, is there at least a way to export that OpenAPI documentation from Cloud Endpoints?

Teju Nareddy

unread,
Apr 28, 2020, 11:56:27 AM4/28/20
to Google Cloud Endpoints
Unfortunately, no. We generate Google service config from OpenAPI, not the other way around. So for gRPC, OpenAPI documentation is never generated, only Google service config.

Prateek Malhotra

unread,
Apr 28, 2020, 2:37:49 PM4/28/20
to Teju Nareddy, Google Cloud Endpoints
I am able to generate swagger definitions using the grpc-gateway project. This project somewhat overlaps ESP (minus the Google service integration) in that it will allow you to serve both gRPC + OpenAPI clients from the same server. I use this to run my gRPC servers on AppEngine (I know this is hacky...)

To generate a swagger definition file from the proto file, run: 

protoc -I. --swagger_out=logtostderr=true:./gen/swagger your/service/v1/your_service.proto

You should be able to generate OpenAPI documentation based on that output. I hope that helps!

Prateek Malhotra


--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.

David Van Geest

unread,
Apr 28, 2020, 2:39:29 PM4/28/20
to Prateek Malhotra, Teju Nareddy, Google Cloud Endpoints
Prateek, thanks very much. I have just discovered the same thing. It's working for me!

Reply all
Reply to author
Forward
0 new messages