Open psigen opened 1 year ago
@danielbankhead I poked into this a bit and it appears that the problem comes in that there doesn't appear to be a way to tell the auth library to "faux" sign a request. Is there a clean way we can bypass this in storage when the user does not want to use authentication?
[discussed offline, sharing here] We may need to take a similar approach as https://github.com/googleapis/gcs-resumable-upload/pull/416 for this issue.
Hijacking this issue to track the implementation of this feature:
When a custom endpoint is set on the client, Sign URLs and Post Policies should automatically use that domain.
Optional: allow users to set a custom hostname for Sign URL and Post policy methods
See: go/signurl-custom-endpoint-gcs
Environment details
@google-cloud/storage
version: 6.10.0Steps to reproduce
Run the following code when using a storage emulator such as
fake-gcs-server
or firebase storage emulator:This will return the following error about credentials, even though the emulator doesn't use credentials, so they aren't needed to sign the URL:
This was previously mentioned in a comment on this previous ticket: https://github.com/googleapis/nodejs-storage/issues/1373#issuecomment-1140351554