Commit Graph

7439 Commits

Author SHA1 Message Date
Brad Fitzpatrick 38f15671e7 all: move from deprecated x/crypto/openpgp to ProtonMail fork
See https://github.com/golang/go/issues/44226 for background.

The ProtonMail fork is the same API (and code mostly).

Differences are documented at https://github.com/ProtonMail/go-crypto/issues/21

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-13 16:52:10 -08:00
Oleksandr Redko a911bc8060 all: fix or disable staticcheck deprecations
(Originally from https://github.com/perkeep/perkeep/pull/1648)
2024-01-13 16:50:09 -08:00
Brad Fitzpatrick bc9fbcd89e chip away at some staticcheck warnings
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-13 15:57:55 -08:00
Brad Fitzpatrick 39348e64f1 doc: add forgotten Tailscale listen docs from earlier
Updates #1668
2024-01-12 10:48:30 -08:00
Brad Fitzpatrick c2334642fb internal/netutil, pkg/schema: remove nocgo tag; os/user has its own nowadays
The os/user package nowadays says:

    When cgo is available, and the required routines are implemented
    in libc for a particular platform, cgo-based (libc-backed) code
    is used. This can be overridden by using osusergo build tag,
    which enforces the pure Go implementation.

So we don't need to work around it anymore.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-11 19:47:49 -08:00
Brad Fitzpatrick 31f3941a00 README.md: remove a Google link
This hasn't been a Google project for some time now.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-11 13:55:45 -08:00
Brad Fitzpatrick cf744db5bf website: move to Fly
Sadly I did this all once (and more completely) but then lost the
commit. So this is a re-do. The sharing demo stuff isn't yet complete.

Updates #1658 etc
2024-01-03 21:02:01 -08:00
Brad Fitzpatrick e1a04f92ed website/pk-web: remove GCE+mailgun support
I moved the website to run on Fly.io some 6 months ago but lost the
git commit that did so. So now I'm redoing it from memory (sigh).

But we don't need any of this GCE or Mailgun stuff now. People can
subscribe to git commits via other means.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-03 19:35:38 -08:00
Brad Fitzpatrick 0caf36bc9c Remove CamliNetIP, camnetdns, gpgchallenge
These were all part of an earlier effort to let it be easy for people
to easily deploy their own Perkeep servers and get them on the
internet. The idea was that we'd run a small DNS server which would
map from GPG public keys to their rented cloud IPs which users would
prove to us with the gpgchallenge stuff.

The recently added Tailscale support (see 43f34e5cc5, #1668) makes
most of this redundant.

Also I'd stopped running this infrastructure ages ago and removed the
launcher code recently in b5823a65b9 (and disabled it in
c9f78d02ad). So this was all basically dead code.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-02 13:33:57 -08:00
Brad Fitzpatrick 43f34e5cc5 auth, webserver, serverinit: add Tailscale tsnet support
Updates #1668

Co-authored-by: Will Norris <will@willnorris.com>
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-02 12:58:44 -08:00
Brad Fitzpatrick d030e15d5a app/publisher, make.go: remove publisher/GopherJS support
The publisher app required GopherJS which has been behind upstream Go
for many years. This just removes all GopherJS stuff, breaking the publisher
app in the process. We'll have to rewrite it.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 13:17:08 -08:00
Brad Fitzpatrick 2b8414f6ce make.go: remove some unused code, address TODOs, bump required Go
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 12:36:32 -08:00
Brad Fitzpatrick 98dff16008 clients/web/embed/closure: use modern go:embed instead of old bespoke make.go hack
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 12:15:42 -08:00
Brad Fitzpatrick bec657b7e2 Remove legacy +build comments; use go:build only
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 09:18:39 -08:00
Brad Fitzpatrick a549aab217 Remove legacy Google AppEngine alternate implementations
AppEngine lets you do just about anything these days. No need to cater
to the ancient limited version.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 08:50:03 -08:00
Brad Fitzpatrick 20622c8a06 make.go: don't build pk-mount on darwin, set osusergo, use modern comma-separated tags
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 20:01:55 -08:00
Brad Fitzpatrick 09cf7e948b go.mod: remove old replaces, update deps, use Go 1.21
This also makes Windows pass tests again (fixed in Go 1.20:
https://github.com/golang/go/issues/51007)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 16:06:52 -08:00
Brad Fitzpatrick afb071614f cmd/pk-mount, pkg/fs: drop macOS FUSE support, update bazil.org/fuse
Our bazil.org/fuse FUSE library no longer supports macOS
(https://github.com/bazil/fuse/issues/224) because osxfuse is no
longer open source (https://github.com/osxfuse/osxfuse/issues/590).

Also, Apple is making it harder and harder (eventually impossible?) to
install custom kernel modules:
https://github.com/macfuse/macfuse/wiki/Getting-Started

So just give up on macOS FUSE support for now. We can resurrect it
later via WebDAV and/or NFS server support.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 15:40:51 -08:00
Brad Fitzpatrick b5823a65b9 pkg/deploy/gce: remove GCE deploy support
We used to have a web-based Perkeep launcher at perkeep.org/launch
that created a GCE-based Perkeep instance for users, where they pay
Google for compute time. (One of those "one click deploy" template things)

Unfortunately, Google broke their APIs for doing the third party VM
creations and we disabled it some years ago. But the code remains. And
now, updating it again, we find that they've broken it again:

   Error: pkg/deploy/gce/deploy.go:358:4: servicemanagement.NewServicesService(s).Enable undefined (type *servicemanagement.ServicesService has no field or method Enable)

It's not worth fighting Google's API breakages. Just remove the GCE
launcher support as it's been unused for years.

We can always resurrect this code from git if really needed. But a
Digital Ocean or Fly launcher would probably be much easier.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 12:47:01 -08:00
Grant 199456cf97 Update map.js to use correct tile.osm.org URL
See: https://github.com/openstreetmap/operations/issues/737
2023-09-02 12:14:08 -07:00
Alexandre Viau 498fcaa7c3
Merge pull request #1655 from alexandear/t-setenv
tests: use T.Setenv instead of os.Setenv
2023-02-20 08:16:05 -05:00
Oleksandr Redko 63c68c6c5b tests: use T.Setenv instead of os.Setenv 2023-02-18 12:53:16 +02:00
Oleksandr Redko 44b1dbe0f6 all: refactor to net/http statuses instead of ints 2023-01-24 08:39:29 -08:00
Oleksandr Redko 001c417e73
all: replace deprecated io/ioutil with io and os (#1647) 2023-01-23 10:25:14 -08:00
Michael Hoffmann f06efdb51f misc: remove sha1 from tests, remove testhooks, minor cleanups 2023-01-13 07:58:19 -08:00
Brad Fitzpatrick 6614d23428 schema: simplify parseSuperset
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-01-13 07:48:53 -08:00
Michael Hoffmann ad7454c304 misc: add race flag to devcam and fix fallout 2023-01-13 07:48:33 -08:00
Michael Hoffmann d1e67a4ba3 ui: remove obsolete code 2023-01-13 07:47:09 -08:00
Michael Hoffmann 6ab96b90c6
Merge pull request #1640 from ginabythebay/add_query_example
demonstrate query using curl
2023-01-09 19:14:37 +01:00
Gina White 0c2a1b8c65 introduce SEARCHHOST variable 2023-01-02 15:43:48 -08:00
Brad Fitzpatrick 86b513ccf9 go.mod: bump honnef.co/go/tools/cmd/staticcheck
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
Brad Fitzpatrick 921894783b all: gofmt for Go 1.19
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
Brad Fitzpatrick f704514cb0 all: bump required Go version from Go 1.16 to Go 1.19
(Taking over #1632)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
ginabythebay b2d3e64a0f
Fix #1635, trim slash when looking up resource files (#1637) 2022-12-31 21:46:44 -08:00
Michael Hoffmann 328c536cf4 tests: increase timeout in video thumbnailer test 2022-12-31 21:46:01 -08:00
Gina White 5576dea344 camlistore.org -> perkeep.org
fix up some links

There are still some references to camlistore.org that I don't
understand so left alone.
2022-12-31 20:44:52 -08:00
Gina White 28aafe7f68 demonstrate query using curl
It took me a while to figure this out, perhaps it will help other
people to have an example
2022-12-30 16:59:03 -08:00
Michael Hoffmann 7f639a3ad0
Merge pull request #1630 from MichaHoffmann/mhoffm-minor-perkeepd-test-cleanup
perkeepd: test cleanup
2022-12-30 23:43:24 +01:00
Michael Hoffmann 5c74899d34 tests: clean up upload test 2022-12-30 08:32:54 -08:00
ginabythebay 8484d16601 Delete clients/python directory
depends on "ancient and broken Camlistore Python libary" which was removed in 6446c307a1
2022-12-30 08:29:18 -08:00
Michael Hoffmann b67ce5ab74
perkeepd: delete perkeepd test 2022-12-17 22:02:54 +01:00
Michael Hoffmann d77a55caf0 index: add test for out of order indexing when verifying permanode signatures 2022-09-16 07:42:35 -07:00
Michael Hoffmann ce883d983b index: cleanup after #756 was fixed 2022-07-22 07:36:38 -07:00
Michael Hoffmann 4136071ce8 doc: unify bs/s2/gcs storage documentation 2022-07-22 07:35:52 -07:00
Colton J. McCurdy d6d7a8e2b8 Issue#1605 - documents Google Cloud Storage storage
Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
2022-07-15 07:53:15 -07:00
Michael Hoffmann c501f90cd0 deps: bump aws sdk 2022-07-11 13:38:20 -07:00
Michael Hoffmann d974afa090 images: fix crash when decoding with djpeg fails 2022-07-10 13:39:00 -07:00
Alexandre Viau d347af6793
index: verify sigs on permanodes, not just claims (#1382)
Index:
 - Handle bad signatures on permanodes just like we handled them on
   claims.

Importer tests:
- Make pkg/client's UploadPublicKey method public so that we can ensure
  that the key was uploaded before uploading permanodes in importer
  tests. This would otherwise be done automatically by methods such as
  UploadNewPermanode but the importer uses the Blobserver API, it
  uploads blobs with ReceiveBlob. ReceiveBlob does not know if blobs
  are schemas or regular blobs, so it couldn't know if it is
  appropriate to upload the key.
2022-07-05 15:37:10 -04:00
Michael Hoffmann 67f9c75ac2 fs: use bulitin method to get test name 2022-07-02 11:47:07 -07:00
Michael Hoffmann fe775e1aa9 index: minor cleanup 2022-07-01 07:39:59 -07:00