Created a service account with 1 role : Pub/Sub Publisher.
trying to publish a message to a topic I get :
{ message: 'User not authorized to perform this action.',
domain: 'global',
reason: 'forbidden' }
when using a project-owner service account I succeed in publishing the message.
tried using both google-cloud and googleapis node packages and with both I faced the same behaviour. What am I doing wrong?
Thanks.