Commit Graph

59 Commits

Author SHA1 Message Date
mpl c556debcc5 osutil: take into account env var for default secret ring
http://camlistore.org/issue/227

Change-Id: I40eac298d7d5d74760be65d9e13d531b562830b9
2013-09-20 14:22:12 +02:00
Bill Thiede 630f6ca61f Document environment variables usage.
Running 'go run dev/envvardoc/envvardoc.go' now shows:
'All environment variables are documented'

I also took the liberty of cleaning-up our mishmash of logic for handling
boolean environment variables, and cleaned up a couple other spots that didn't
seem right.

This change adds docmentation for all variables starting with (CAM|DEV|AWS).
This leaves some variables still undocumented.  If there are variables worth
documenting in the following list, maybe we should rename them to have a
CAM{LI} prefix for consistency's sake:

APPDATA                  pkg/osutil/paths.go:86
APPDATA                  pkg/osutil/paths.go:102
DISPLAY                  pkg/misc/gpgagent/gpgagent.go:126
GOPATH                   pkg/fileembed/genfileembed/genfileembed.go:321
GOPATH                   pkg/osutil/paths.go:168
GOPATH                   pkg/test/world.go:54
GOPATH                   server/appengine/build_test.go:77
GPGKEY                   cmd/camput/init.go:77
GPG_AGENT_INFO           cmd/camput/init.go:153
GPG_AGENT_INFO           pkg/misc/gpgagent/gpgagent.go:50
HOME                     pkg/jsonsign/keys.go:79
HOME                     pkg/jsonsign/signhandler/sig.go:64
HOME                     pkg/osutil/paths.go:36
HOMEPATH                 pkg/osutil/paths.go:34
PKG_CONFIG_PATH          pkg/index/sqlite/dbschema.go:59
RUN_BROKEN_TESTS         pkg/fs/fs_test.go:67
SKIP_DEP_TESTS           pkg/test/testdep.go:29
TERM                     pkg/misc/gpgagent/gpgagent.go:133
TERM                     pkg/misc/pinentry/pinentry.go:99
TESTING_PORT_WRITE_FD    pkg/webserver/webserver.go:135
TEST_GPGAGENT_LIB        pkg/misc/gpgagent/gpgagent_test.go:27
USER                     pkg/netutil/ident.go:135
USER                     pkg/osutil/paths.go:45
USERNAME                 pkg/jsonconfig/eval.go:228
USERNAME                 pkg/osutil/paths.go:43
VERBOSE_FUSE             pkg/fs/fs_test.go:133
VERBOSE_FUSE_STDERR      pkg/fs/fs_test.go:137
XDG_CONFIG_HOME          pkg/osutil/paths.go:104

Change-Id: Ief28710d3deefd1e65247cb5d3b1d8dde73e1f2d
2013-09-06 21:54:03 -07:00
Brad Fitzpatrick e20c7f44a8 auth: fix security problem where 'localhost' allowed all access.
Also, add tests. And remove CAMLI_ADVERTISED_PASSWORD, replacing it with explicit devauth mode.

Change-Id: I9cdfe2d537ecefcf75df0b9fb8538258703b1eb7
2013-08-31 13:44:44 -07:00
Bill Thiede ac4ed5492b envvardoc: new tool to find undocumented env vars.
This tool will walk over interesting directories (-srcDirs flag) in the
source tree and look for references to environement variables. It then
cross-references these with environment variables found in a documentaion file
(-doc flag).  Any values found in source but not documented are printed to the
screen, and the exit code is set to non-zero.  Not all environment variables
are considered, only those matching one of the prefixes (-prefixes flag).

The change also begins the process of documenting environment variables.

Change-Id: Ie122b64b7befcb3104b960cf3d2d22bae443f67f
2013-08-25 21:28:23 -07:00
Brad Fitzpatrick 79f7e014ca Merge "start of permanode attributes doc" 2013-06-15 21:05:04 +00:00
Brad Fitzpatrick fc2597e01f Start of an overview page, describing the project, plus more misc doc/website cleanup
Change-Id: Ic456e73ab3adf549e7280c8ee1c9d6668719720e
2013-06-12 07:22:29 -07:00
Brad Fitzpatrick f7d7d48cdd Cleanup
Change-Id: Ic0cdae094108bd3b6dca5f7db3005f1e17199de3
2013-06-11 13:27:04 +02:00
Brad Fitzpatrick 773b089ed9 doc: start of multi-claim.
Change-Id: Iffcf4ca7ecf64c979ccd171fc4c6221194648e93
2013-02-25 06:40:36 -08:00
Brad Fitzpatrick c7bbccf435 config: Rename blobServer config key and flag to just server. use auth from environment when an explicit server is given
Change-Id: I07cfe3df3b644e143fcb92456e56d238bbbdd52e
2013-01-25 16:23:31 -08:00
mpl 4212d6a02a start of permanode attributes doc
Change-Id: I1adda2522c65c7004f3c4ba13d45bb8c14997cbc
2012-11-21 12:11:06 +01:00
Brad Fitzpatrick 00be809cde add WIP notes on modeling a blog
Change-Id: I4d659c6eeb23d4fd4009576e7233e8b5aa724947
2012-02-28 19:43:33 -08:00
Brad Fitzpatrick 03a90299e8 doc: clarify json-sign spec: camliSigner must be in 'O'
Thanks to Brett for pointing this out.

Change-Id: Icfcecbb83985ae4292d755af2a4cc830f05973b2
2011-12-07 15:08:34 -08:00
Brad Fitzpatrick 0d0b2032cc Nope, GPG not required for development; keys shipped.
Change-Id: Icb31f759c16e63b9c878595f060393594641bb52
2011-10-12 23:09:13 -07:00
Brett Slatkin b093c814d3 Docs: Setup the Camli build on a Mac
Change-Id: Idb334589314983e0d9f0d6ecedc64469aa303ede
2011-10-12 23:05:50 -07:00
Brad Fitzpatrick c0ea8dbcb1 Issue 17: file vs. bytes schema change
Details:
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ia1237952a2a66f1dcacd00c5c28eb360d9f1d1d7
2011-09-13 11:57:50 -07:00
Brad Fitzpatrick c61317703c indexer: index file sha1s, sizes (for js search lookup later) 2011-06-08 18:26:57 -07:00
Brad Fitzpatrick e0b1723538 file-common schema comment update 2011-06-06 08:53:30 -07:00
Brad Fitzpatrick 9b701a0e37 update file schema to allow hash trees (recursive file schemas) 2011-06-06 08:49:19 -07:00
Brad Fitzpatrick d4f63d89d3 Clarify enumerate docs: after and maxWaitSec are mutually exclusive 2011-05-11 06:11:44 -07:00
Brad Fitzpatrick 59901467fd Server config file support. 2011-04-03 08:07:40 -07:00
Brad Fitzpatrick e4dd0f122f Some more notes/docs on claim types. 2011-03-12 19:27:45 -08:00
Brad Fitzpatrick 38a85571ca Add dev-blobserver wrapper; remove run.sh 2011-03-02 21:46:07 -08:00
Brad Fitzpatrick 8d8fb6a6b7 Fix mistake in example response. 2011-03-01 17:25:35 -08:00
Brad Fitzpatrick 66abaaec73 enumerate: don't allow 'maxwaitsec' with 'after' 2011-02-28 18:11:53 -08:00
Brad Fitzpatrick f34b4b35d2 Spec and start of longpoll enumerate. 2011-02-26 14:03:10 -08:00
Brad Fitzpatrick 246864012d Start of stat long poll spec/code. 2011-02-09 10:57:30 -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 ba48b63543 Enumerate spec was inconsistent; fix it. 2011-02-03 17:06:01 -08:00
Brad Fitzpatrick 21573d77cc Some example blobs 2011-02-02 13:30:01 -08:00
Brad Fitzpatrick 66e6831b9d Fix typos 2011-01-29 16:27:52 -08:00
Brad Fitzpatrick 1557fe73b0 More docs 2011-01-28 13:20:49 -08:00
Brett Slatkin dacdf57b2a various tiny fixes to docs 2011-01-21 10:53:22 -08:00
Brad Fitzpatrick 6041eb81d4 File schema work. 2010-12-30 22:37:46 -08:00
Brad Fitzpatrick eb60cd6f71 Start of a schema library for camput. 2010-12-30 10:17:47 -08:00
Brad Fitzpatrick 0adecfb4cc Upload work. 2010-12-24 07:46:12 -08:00
Brad Fitzpatrick e9b8426e8b Clarify the upload protocol spec. 2010-12-20 18:50:30 -08:00
Brad Fitzpatrick cb5cd3e287 more rearranging of docs 2010-12-08 14:29:28 -08:00
Brad Fitzpatrick 86d56b7b89 more verification work 2010-12-03 18:56:33 -08:00
Brad Fitzpatrick 88fa514b77 Docs: verifying a JSON-signed blob
at least a first quick pass.  thought I wrote
this already.
2010-12-03 18:28:36 -08:00
Brad Fitzpatrick 107678f560 more schema docs 2010-12-01 21:14:07 -08:00
Brad Fitzpatrick 650c6c1a77 static vs. dynamic set note 2010-12-01 20:30:28 -08:00
Brad Fitzpatrick 58102f04a6 Moving schema docs into the repo and cleaning up. 2010-12-01 20:27:56 -08:00
Brad Fitzpatrick 2b946f9b36 Rearrange the docs, prep for new docs. 2010-12-01 19:05:40 -08:00
Brad Fitzpatrick 22dd5557ac fix signing docs 2010-11-14 18:25:17 -08:00
Brad Fitzpatrick f30794d306 fix paths in docs 2010-11-14 18:17:12 -08:00
Daniel Erat bd2b45c23e minor documentation updates 2010-11-04 21:06:52 -07:00
Brett Slatkin e480fc0b76 updates app engine blobserver to match spec docs; various doc updates 2010-08-02 21:05:54 -07:00
Brad Fitzpatrick ded6d7e3cf Start of an enumerate spec 2010-07-25 19:37:36 -07:00
Brad Fitzpatrick a29283972a Clean up upload docs, and write optional resume spec. 2010-07-25 19:03:20 -07:00
Brad Fitzpatrick 7ec931d850 implement preupload 2010-07-10 21:58:30 -07:00