encoredev / encore

Development Platform for building robust type-safe distributed systems with declarative infrastructure

Home Page:https://encore.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Topic missing publisher role in GCP deployment

onlywicked opened this issue · comments

commented

Description

Few days back, I faced an issue when I deployed my application to GCP for production usage.
The topic created was missing publisher role for the Cloud Run.

Screenshot 2023-04-04 at 4 23 52 PM


To fix it I have to manually add the permission.

Hi @onlywicked, thanks for the report. Did you actually call Publish on the topic somewhere? Encore only adds the permission when you actually publish messages.

commented

@eandre Yep, I did.
Because and that's how I came to know about it.

I was getting the following error:

failed to publish message to {topic_name}: rpc error: code = PermissionDenied desc = User not authorized to perform this action.

After that I went into project and found that the permission wasn't there.

Hmm, that's very strange, that shouldn't happen. Can you share which Encore application and which deploy id that triggered this? I'll have a look at the infrastructure planning.

commented

Sure. Sent it to you on slack.

This has been fixed with the latest release, thank you!