You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your last snippet looks almost right. Try providing the right scopes. (Although the error message suggests something else, error messages have been known to be misleading.)
I'm cross-compiling for Linux on ARM.
I want to use a service account file to authenticate.
I think I need to provide my own
TLSClientConfig.RootCAs
to work around "x509: failed to load system roots and no roots provided."This makes my TLS config happy; requests correctly give Error 401: Anonymous users does not have access to bucket.
When I add
option.WithServiceAccountFile("my-project-1234567.json")
, it seems to be ignored (peroption.WithHTTPClient
docs).How can I provide both a ca-bundle file and a service account credentials file?
I took a stab, but this puts me back to "x509: failed to load system roots and no roots provided":
The text was updated successfully, but these errors were encountered: