GoogleCloudPlatform / GoogleCloudPlatform/esp-v2

Tracing permissions issues when service_account_key specified

Open
#688 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
307
Forks
185
Avg merge
14h 45m
Merged PRs (30d)
6

Description

Hello,
I am having issues in GKE environment with workload identity enabled.
image: gcr.io/endpoints-release/endpoints-runtime:2.34.0

I am using a provided service account through --service_account_key parameter which has owner permissions in a project

Endpoints reporting works fine however tracing keeps throwing errors
`BatchWriteSpans failed (1 spans, 769 bytes): PERMISSION_DENIED: The caller does not have permission`

I have tried querying metadata server and it lists workload identity service accounts

![image](https://user-images.githubusercontent.com/514031/165258862-51a25100-ac62-4973-8ce2-746f80d45439.png)

Seems like reporting works through specified service account, however tracing use workload identity. Is that an expected behavior?

My expectation is: when a service account key is defined, both endpoints reporting and tracing works through the same specified service account.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.