Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-24 Thread Alexander Mills
> If it's an object that already exists no, sadly it's not, i need to generate the url to which i can upload the image to, that url should be unsigned not signed. that being said, a signed url might be fine. On Thu, Dec 24, 2020 at 2:31 PM David Finkel wrote: > > > On Mon, Dec 21, 2020 at 5:54

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-24 Thread David Finkel
On Mon, Dec 21, 2020 at 5:54 PM Alexander Mills wrote: > this is a little irritating lol, i can get a signed url via: > > bucket := "bnk-photos" > filename := "mypic3.json" > method := "PUT" > expires := time.Now().Add(time.Minute * 10) > > url, err := storage.SignedURL(bucket, filename, &storage

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-22 Thread Uli Kunitz
This assumes that you have made site publicly available as described in the document I have linked. On Tuesday, December 22, 2020 at 12:59:31 AM UTC+1 Alexander Mills wrote: > that is not a google url: > > https://example.com/ > > ? > > On Monday, December 21, 2020 at 3:53:37 PM UTC-8 Uli Kunit

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-21 Thread Amnon
I too was puzzled by the term signed and unsigned URL. But I have come across signed and unsigned integers. An unsigned integer (such as uint64) can only take positive values and zero, whereas a signed integer can also hold negative values. So presumably an unsigned URL can only point to positive

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-21 Thread Alexander Mills
that is not a google url: https://example.com/ ? On Monday, December 21, 2020 at 3:53:37 PM UTC-8 Uli Kunitz wrote: > It is the Google Cloud Storage package. Documentation is here: > https://pkg.go.dev/cloud.google.com/go/storage > > Signed URLs are URLs that allow access to an object in the

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-21 Thread Uli Kunitz
It is the Google Cloud Storage package. Documentation is here: https://pkg.go.dev/cloud.google.com/go/storage Signed URLs are URLs that allow access to an object in the cloud storage without any other authentication mechanism: https://cloud.google.com/storage/docs/access-control/signed-urls Go

Re: [go-nuts] how to get unsigned url (not signed url)

2020-12-21 Thread Kurtis Rader
On Mon, Dec 21, 2020 at 2:55 PM Alexander Mills wrote: > this is a little irritating lol, i can get a signed url via: > > bucket := "bnk-photos" > filename := "mypic3.json" > method := "PUT" > expires := time.Now().Add(time.Minute * 10) > > url, err := storage.SignedURL(bucket, filename, &storage

[go-nuts] how to get unsigned url (not signed url)

2020-12-21 Thread Alexander Mills
this is a little irritating lol, i can get a signed url via: bucket := "bnk-photos" filename := "mypic3.json" method := "PUT" expires := time.Now().Add(time.Minute * 10) url, err := storage.SignedURL(bucket, filename, &storage.SignedURLOptions{ GoogleAccessID: cfg.Email, PrivateKey: cfg.PrivateKe