Brett Slatkin
e36a7679b2
mysql client pool work for indexer; temporary glue in blobserver
2011-03-05 15:10:50 -08:00
Brad Fitzpatrick
9924b32691
Temporarily wiring up mysqlindexer to blobserver.
2011-03-05 14:25:08 -08:00
Brad Fitzpatrick
113de1f3a3
get handler cleanup, break apart into smaller bits
2011-03-05 00:03:53 -08:00
Brad Fitzpatrick
38a85571ca
Add dev-blobserver wrapper; remove run.sh
2011-03-02 21:46:07 -08:00
Brad Fitzpatrick
1300b213f2
Update for Go's new http.Request.Header type.
2011-02-25 07:38:12 -08:00
Brad Fitzpatrick
6b4b726c69
Revert "Update for Go's new http.Request.Header type."
...
This reverts commit b021345ed6
.
2011-02-24 10:28:00 -08:00
Brad Fitzpatrick
b021345ed6
Update for Go's new http.Request.Header type.
2011-02-23 17:56:40 -08:00
Brad Fitzpatrick
73587e6085
Rename the blobserver 'preupload' method to 'stat'
...
This is prep for more additions to stat.
2011-02-08 08:24:16 -08:00
Brad Fitzpatrick
4db299e74b
blobserver: library-ify preupload and upload.
2011-02-04 14:31:23 -08:00
Brad Fitzpatrick
1af31f30db
blobserver: move get to handlers library + random cleanup
2011-02-03 17:28:05 -08:00
Brad Fitzpatrick
9411f9b8da
blobserver: move enumerate to handlers library; make it use Storage interface
2011-02-03 17:08:04 -08:00
Brad Fitzpatrick
ba48b63543
Enumerate spec was inconsistent; fix it.
2011-02-03 17:06:01 -08:00
Brad Fitzpatrick
197819e4cb
Ignore more
2011-02-03 17:05:19 -08:00
Brad Fitzpatrick
c0261e5b95
update README
2011-02-03 15:58:37 -08:00
Brad Fitzpatrick
c027ca9d9e
Libraryify: create lib/go/blobserver/handles; move Remove
2011-02-03 15:56:02 -08:00
Brad Fitzpatrick
850623f932
Start ripping up blobserver into libraries, starting with blobserver.Storage
2011-02-03 15:45:35 -08:00
Brad Fitzpatrick
4df8d2ba04
Use switch, not ifs.
2011-02-03 08:28:47 -08:00
Brad Fitzpatrick
8b8f462f6a
blobserver work: remove, enumerate, partition URL changes, cleanup
...
* Blob "remove" support for blobs in the non-default partition.
* Partition URL support: /partition-<name>/camli/*
* Create interface.go for the interface of the storage layer.
Once everything uses this, we can do different storage layers.
* Webserver work to let you do pre-mux dispatch, which is
directory-level granularity only.
2011-02-02 22:42:31 -08:00
Amir Mohammad Saied
d6488c32c4
Making the codebase compatible with latest Go release (2011-02-01.1)
2011-02-02 12:27:30 -08:00
Brad Fitzpatrick
38b4f153e0
go blobserver: queue partition support, via flag.
2011-02-01 22:48:12 -08:00
Brad Fitzpatrick
39f1ebb895
go blobserver: Partition support for enumerate
2011-02-01 20:50:01 -08:00
Brad Fitzpatrick
adf13c6123
go blobserver: fix crash if short blobrefs requested.
2011-01-31 10:19:37 -08:00
Brad Fitzpatrick
749f73866d
gofmt style changes only.
2011-01-29 00:05:07 -08:00
Brad Fitzpatrick
19d0934558
Send HTML in the blobserver unauthorized responses. Easier to demo.
2011-01-29 00:04:32 -08:00
Brad Fitzpatrick
873cb075d8
Go blobserver: guess a MIME type for better demos
2011-01-29 00:00:59 -08:00
Brad Fitzpatrick
f7d76303e7
Slap on copyright headers.
2011-01-27 23:07:18 -08:00
Brad Fitzpatrick
3bcba74f41
Fix copyright lines.
...
Put this under Google's copyright, not our personal ones.
2011-01-27 23:03:57 -08:00
Brad Fitzpatrick
296efd6e99
Remove stealth mode.
2011-01-26 13:09:39 -08:00
Brad Fitzpatrick
3f7e7288e0
Sharing works. Woot.
2011-01-26 10:03:36 -08:00
Brad Fitzpatrick
d1eb213ec0
Merge branch 'master' of danga.com:camlistore
2011-01-25 22:48:26 -08:00
Brad Fitzpatrick
6132d7f9e7
Start of blobserver support for share/via requests.
2011-01-25 22:46:21 -08:00
Brett Slatkin
02717908ef
adds -via to camget; adds -reqlog to blobserver
2011-01-25 21:34:17 -08:00
Brad Fitzpatrick
22819c72eb
remove accidental strace file
2011-01-23 21:47:30 -08:00
Brett Slatkin
b909bc32c3
Attempt at writing a camli object signing/verify server for app engine (in java); foiled by security manager restrictions preventing bouncycastle from working in App Engine
2011-01-22 17:02:27 -08:00
Brett Slatkin
2521ed5f9e
move app engine blobserver into its own directory
2011-01-21 12:51:44 -08:00
Brad Fitzpatrick
5f9840a429
Break camli/blobref into two files; add NewSimpleDirectoryFetcher to fetcher.go
2011-01-16 21:00:36 -08:00
Brad Fitzpatrick
bc0080fccd
remove debug
2011-01-14 09:10:10 -08:00
Brad Fitzpatrick
3b28ed2938
Clean up run.sh; ignore pwd.
2011-01-13 18:07:21 -08:00
Brad Fitzpatrick
791e9ed503
Some debug stuff.
2011-01-13 10:00:35 -08:00
Brad Fitzpatrick
3e001663af
Add a static dir to AppEngine config; stop forcing https for now.
2011-01-13 09:58:27 -08:00
Brad Fitzpatrick
805146d730
Build Go blobserver on start.
2011-01-05 08:21:43 -08:00
Brad Fitzpatrick
d574419e7b
Rearrange; update http to latest go release.
2010-12-30 12:45:00 -08:00
Brad Fitzpatrick
93afcb9d60
Upload works now.
2010-12-24 10:04:08 -08:00
Brad Fitzpatrick
3dafb1b8e4
Gimmicky option for demos, showing image on upload.
2010-12-21 18:11:45 -08:00
Brad Fitzpatrick
297300999f
Go blobserver: follow updated upload spec tighter
...
Also, better error message handling.
2010-12-20 18:51:13 -08:00
Brad Fitzpatrick
50280032db
Move go/blobref and go/jsonsign to lib/go
2010-12-20 14:19:25 -08:00
Brad Fitzpatrick
2627a6cf4c
Add test_upload_corrupt_blob and fix the Go server.
...
The Go server was forgetting the final step of verifying the hash it
computed.
The App Engine server currently fails the test because the failure
mode is specified in the spec. TODO: clarify that.
This also adds some unit tests for camli/blobref, and changes BlobRef
to a struct, instead of an interface.
2010-12-17 10:01:36 -08:00
Brad Fitzpatrick
82278075fc
remove unnecessary scary debugging at end.
2010-12-16 18:57:47 -08:00
Brad Fitzpatrick
fb05cf950a
Tests now pass on Go and App Engine.
2010-12-16 18:56:54 -08:00
Brad Fitzpatrick
b4654b132f
Location header must be str, not unicode.
2010-12-16 18:54:36 -08:00
Brad Fitzpatrick
d9c5b2db73
More blobstore tests; follow upload redirects.
2010-12-16 11:26:06 -08:00
Brad Fitzpatrick
a0a7358f19
Use a 303 redirect, not a 302, so subseqent requests are GETs.
2010-12-16 11:13:29 -08:00
Brad Fitzpatrick
fe16e1cf15
bs-test support for the AppEngine blobserver.
2010-12-15 18:10:10 -08:00
Brad Fitzpatrick
6313ff9293
preupload and upload tests
2010-12-15 17:16:35 -08:00
Brad Fitzpatrick
16ccbdfa59
bs-test: first real test, verify_no_blobs
2010-12-15 11:21:23 -08:00
Brad Fitzpatrick
0d745432f0
More bs-test work
2010-12-13 22:23:20 -08:00
Brad Fitzpatrick
c8f2ccd63c
Start of fleshing out blobserver test suite.
2010-12-13 21:31:16 -08:00
Brad Fitzpatrick
7e08dc0035
Make webserver's --listen flag public.
2010-12-13 18:23:58 -08:00
Brad Fitzpatrick
672ab134e6
Cleanup; make blobserver's GET path use blobref.Fether interface
...
Also expands the Fetcher interface slightly, and cleans up
some other code in the process.
2010-12-13 18:20:31 -08:00
Brad Fitzpatrick
5b94b1602c
Move signing and verifying into a library.
2010-12-08 19:24:48 -08:00
Brad Fitzpatrick
66b7eaf912
Merge branch 'master' of danga.com:camlistore
2010-12-08 14:29:42 -08:00
Brad Fitzpatrick
97df8d6caa
Fix redundant cast.
2010-12-08 10:44:06 -08:00
Brad Fitzpatrick
25d31df378
remove keyid param from signing request
...
get it instead from the public key packet.
2010-12-07 21:55:24 -08:00
Brad Fitzpatrick
bfcc2ae8f5
Public key fingerprints.
2010-12-07 16:59:24 -08:00
Brad Fitzpatrick
0f16c9b29d
rename http_util to httputil
2010-12-05 22:34:46 -08:00
Brad Fitzpatrick
9eca0f8288
Add another set of keyrings, for testing.
2010-12-05 22:30:12 -08:00
Brad Fitzpatrick
0b4a560424
make new shared camli/webserver package
...
so blob server can be easily testable too.
and will be useful for camli capability discovery, probably.
2010-12-05 22:29:11 -08:00
Brad Fitzpatrick
d4b4a9bfe6
Add test for verification error for imposter.
2010-12-04 16:18:03 -08:00
Brad Fitzpatrick
de55109d8e
Verification works! and with unit tests.
2010-12-04 13:49:34 -08:00
Brad Fitzpatrick
c297269e15
Clean up and break up verification code
...
More testable and readable.
2010-12-04 10:12:41 -08:00
Brad Fitzpatrick
5d1ff03248
verify: opening/reading public key blob
2010-12-04 09:31:04 -08:00
Brad Fitzpatrick
09b699f7ca
more verification work
2010-12-03 19:30:08 -08:00
Brad Fitzpatrick
86d56b7b89
more verification work
2010-12-03 18:56:33 -08:00
Brad Fitzpatrick
38de1ffd0d
More sig verify work; move blobref to a library
2010-12-03 07:34:24 -08:00
Brad Fitzpatrick
079c9662ad
go blobserver: return "Received" in JSON
...
Also return text/json mime type,
And switch from fmt.Print* to log.Print*
2010-12-01 22:34:08 -08:00
Brad Fitzpatrick
ff54f62261
add openpgp library to go server's build
2010-12-01 22:03:50 -08:00
Adam Langley
5e974e83aa
Start of an OpenPGP library for Go.
2010-12-01 22:01:06 -08:00
Brad Fitzpatrick
7d3fcf9881
start of camsigd verify handler, notes
2010-11-29 23:22:11 -08:00
Brad Fitzpatrick
ab6c00a199
correct import path
2010-11-29 19:51:25 -08:00
Brad Fitzpatrick
aacaa2239f
camsigd tests, and a bug fix.
2010-11-29 17:35:41 -08:00
Brad Fitzpatrick
f2259ba7d2
Missing part of b05fecb16b
2010-11-29 17:20:08 -08:00
Brad Fitzpatrick
1af335c751
remove some logging
2010-11-29 17:06:56 -08:00
Brad Fitzpatrick
cfb9ff0df6
Merge branch 'master' of danga.com:camlistore
2010-11-29 10:49:44 -08:00
Brad Fitzpatrick
b7c77c1d30
use ephemeral port in camsigd
2010-11-29 07:54:20 -08:00
Brad Fitzpatrick
6d97d31cba
make test depend on camsigd
2010-11-29 07:35:49 -08:00
Brad Fitzpatrick
a25f3b0808
add a camsigd root handler
2010-11-29 07:35:16 -08:00
Brad Fitzpatrick
b05fecb16b
Put libraries under camli/ directory.
2010-11-29 04:06:22 +00:00
Brad Fitzpatrick
c22e941b8a
Work around http://code.google.com/p/go/issues/detail?id=1306
2010-11-29 03:56:57 +00:00
Brad Fitzpatrick
2567346b70
Extra debugging
2010-11-28 14:51:18 -08:00
Daniel Erat
ce4e43184b
Merge remote branch 'origin/master' into sig
2010-11-14 21:52:02 -08:00
Daniel Erat
0050e553ec
get rough implementation of go signing server working
2010-11-14 21:51:52 -08:00
Daniel Erat
a37301b73d
remove passphrase on secret key for now
2010-11-14 21:47:13 -08:00
Brad Fitzpatrick
2a14cee64c
fix test
2010-11-14 21:29:46 -08:00
Brad Fitzpatrick
fd3552dcb6
little signing test client
2010-11-14 20:55:27 -08:00
Brad Fitzpatrick
a882ef09d1
more testing work
2010-11-14 20:31:21 -08:00
Daniel Erat
4554d03916
start implementing go sig server
2010-11-14 20:09:28 -08:00
Brad Fitzpatrick
9e27b6c56d
Merge branch 'master' of danga.com:camlistore
2010-11-14 20:05:35 -08:00
Brad Fitzpatrick
aae9551467
more testing work
2010-11-14 20:05:20 -08:00
Daniel Erat
c0d1b2c69a
Merge remote branch 'origin/master' into lib
2010-11-14 19:53:18 -08:00
Daniel Erat
a1b2793243
split blobserver auth and http_lib into separate packages
2010-11-14 19:52:52 -08:00
Brad Fitzpatrick
82f4fd2ebc
move sigserver
2010-11-14 19:34:00 -08:00
Brad Fitzpatrick
52ce2e3b99
rearrange server/go directory in prep for packages
2010-11-14 19:31:00 -08:00
Brad Fitzpatrick
e22001dd4b
rename blobserver to server
2010-11-14 19:28:13 -08:00