question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuring google-cloud-dotnet for a desktop application

See original GitHub issue

With the below configuration I receive ‘StatusCode=PermissionDenied, Detail=“The caller does not have permission”’.

The service account related to the CredentialFile has the ‘Logs Writer Role’ assigned.

The configuration:

GoogleStackdriverTarget googleTarget = new GoogleStackdriverTarget { ProjectId = "the-project-id", Name = "this can be anything", CredentialFile = Path.Combine(@"C:\Users\Jason\Downloads\the-generated-filename.json"), ResourceType = "logging_log" };

Is the ResourceType correct for Stackdriver Logging? With the .json file containing sensitive information, deploying this as part of a desktop application doesn’t make sense. What is the practice to secure this?

Cheers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jskeetcommented, Jun 21, 2018

Hmm. I would probably first try to run the same code with a service account with complete privileges on a test project. It may be that the roles required aren’t obvious. Chris may well know more, and @amanda-tarafa may also have more information. (This is the area within this repo where I know least.)

0reactions
manxjasoncommented, Jun 21, 2018

Appreciate the help/guidance

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting up a .NET development environment
Your .NET app must authenticate itself to use Google Cloud APIs. You use Application Default Credentials (ADC), which let you provide credentials for...
Read more >
Getting started with .NET on Compute Engine
This tutorial shows how to get started with Compute Engine. Follow this tutorial by deploying a Hello World .NET web app to Compute...
Read more >
Deploy an ASP.NET Core app to App Engine
Deploy an ASP.NET Core app to App Engine · 1. Overview · 2. Setup and Requirements · 3. Create an ASP.NET Core app...
Read more >
Call a google cloud function from C# desktop app?
For this, you need to go to the Cloud Functions main page and tick the checkbox at the left of the CF name....
Read more >
Building ASP.NET apps on Google Cloud - Mete Atamel
In this session, we will cover: - How to run traditional Windows based ASP.NET apps on Compute Engine. - How to run new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found