googleapis / googleapis/google-cloud-go

storage: signed url with STORAGE_EMULATOR_HOST get no credentials error

Open
#8,634 3 comments 2 reactions 1 assignee Claimed by @cpriti-os View on GitHub
api: storage needs more info priority: p2 type: feature request
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

**Client**

Storage

**Environment**

local emulator

**Go Environment**

$ go 1.21

**Expected behavior**

Storage client with emulator host should bypass credentials check

**Actual behavior**

When storage client is created creds will be nil (storage.co NewClient)
But when asking signedUrl in bucket.go it tries to evaluate GoogleAccessId.

For example in same situation for pubsub emulator I can use fake google credentials json. But in storage implementation it skipped.

Although I can Add access id as in options. I want to create integration test that uses exact config as in prod. so I do not want ot add opts that are not used in prod.

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.