Commit Graph

13 Commits

Author SHA1 Message Date
Brad Fitzpatrick fb71bb3a5d pkg/server{,init}: delete more remnants of long-deleted setup wizard (take 2)
This is a redo of the previously-reverted b663eacb06 but with
tests fixed this time. (I accidentally ran them earlier with
--exec=true from an earlier refactor.)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-14 19:44:43 -08:00
mpl f964148bbe pkg/serverinit: force long GPG identity when generating low-level conf
The index and search pkg now rely on the GPG identity to be in the long
form (16 chars). But the server configuration historically was using the
short form (8 chars).

This change therefore forces the GPG identity ending up in the generated
low-level config to be in the long form.

Also, fix the functions in pkg/jsonsign to generate the long form as well,
to ease the consistent use of it everywhere else.

Fixes #1047

Change-Id: I1333150316caa2c5e179dde0c92b850a362ad17e
2018-02-20 17:30:05 +01:00
mpl b89bf256d1 pkg/search: start to make funcs use a GPG key ID instead of blobRef
Introduction of an Owner type  in pkg/index.
Related changes in pkg/index and pkg/serverinit.

Fixes #1047

Change-Id: Ifc316865833349d5202b5085e8f2c1235f3f2220
2018-02-07 00:54:38 +01:00
mpl 1d32408503 pkg/server: make share handler support share deletions
Since we don't actually ever remove blobs (until we add garbage
collection, and even then), if a share claim gets deleted (with a delete
claim), the only knowledge of the deletion resides in the Index.

So when the share handler verifies the sharing chain, there is nothing
preventing it from reading a supposedly deleted share claim (from the
blobserver), and concluding that the share chain is valid.

This change adds the index handler to the share handler, so it can check
the deletion status of a share claim, and hence support "share
cancellation".

Fixes #914

Change-Id: I572fdddee30e745aa2d2a6720c83c8e8c916515d
2017-03-24 22:33:50 +01:00
mpl 3f242dbee4 pkg/serverinit: properly update golden files
Since -update_golden reorders lexicographically, and it seems we forgot
to systematically use it in previous updates, the files are now
unordered. So I'm running it now, so that future real changes don't get
polluted and hard to review in the reordering churn.

Change-Id: I7618f2e8dcc22f19850bb15c57084fc9688d67ce
2017-03-24 18:21:04 +01:00
mpl 7291617da7 pkg/server: add share handler prefix to discovery
Change-Id: I5354e3ea375d73d837b5432b63c78a78d1a5bc10
2016-11-10 00:59:19 +01:00
Mario Russo 7b1903d5b1 pkg/server: added help handler
- Available at '/help/'
- Loads and parses server config upon init and generates the necessary client config for access
- Links to 'Downloadable Tools' are not functional (task is not yet completed)
- A link was added to the default server page as well as a 'Help' option to the Piggy menu

Issue: #536

Change-Id: I10629de034c908ebc76f6feacbbfca1df7bf1c2b
2015-05-28 10:02:17 +02:00
Fabian Reinartz 76a445a956 pkg/server: decouple sign handler from UI, replace JSON maps with structs
Signhandler was moved from the ui to the root handler and genconfig
adjusted accordingly.
New discovery struct types to replace the JSON maps are defined in
pkg/types/camtypes. The changes are related to Issue #539.

Change-Id: Ib3f12feeaf6fa81107de2d468cab491723e590ae
2015-05-25 09:28:07 +02:00
Brad Fitzpatrick 168c902865 serverinit: in genconfig, always register the importer handler
Change-Id: Ib6267b93e503dccffbf1a8ce3a3a95c9a04cf454
2014-04-17 10:23:53 -07:00
Brad Fitzpatrick e0dad70437 serverinit: re-baseline genconfig testdata
Just re-run --update_golden, to get it all into canonical format,
to minimize the size of the next diff.

Apparently these have been hand-edited a lot.

Change-Id: Ib7dbd9d629b5501280652c695f538007934708d4
2014-04-17 10:18:55 -07:00
mpl 291320d451 pkg/index: cleanup, refactor sub pkgs
http://camlistore.org/issue/263

Change-Id: I319bb097f0ce30b2bd5271b5c3bbff92b8dcc318
2014-04-05 01:22:05 +02:00
Brad Fitzpatrick bfc76ff0fe serverinit: allow S3-only configurations to also have a working index
... with kv or sqlite indexes, at least. Other types will need more
genconfig work.

Change-Id: I5fb9fa0a122693e08780c3fa20eae67fa850d98f
2014-03-17 08:45:01 -07:00
mpl 448f266d72 rename pkg/serverconfig to pkg/serverinit
To avoid awkwardness with future pkg/types/serverconfig

http://camlistore.org/issue/339

Change-Id: If8a00941cdc269d6bcfe0f76c596154d5969bf0d
2014-01-23 17:18:46 +01:00