chiark / gitweb /
distorted-keys
12 years agoprofile.d/00base: Make `%FOO-secrecy' include the right base sections.
Mark Wooding [Sun, 12 Feb 2012 23:05:32 +0000 (23:05 +0000)]
profile.d/00base: Make `%FOO-secrecy' include the right base sections.

Copy and paste error.

12 years agokeyfunc.sh.in: Don't let `userv' gobble our input.
Mark Wooding [Sun, 12 Feb 2012 23:00:03 +0000 (23:00 +0000)]
keyfunc.sh.in: Don't let `userv' gobble our input.

Unfortunately, `userv' has a bad habit of eating our stdin, whether it
needs it or not.  (This is a result of the `cat' processes and pipes
strung between the calling and service environments.)  To prevent this
from gobbling our input, which we might actually want to process
ourselves in some way, make sure that we let it chew on something less
important.  Like `/dev/null', say.

12 years agoMakefile.am: Distinctive `SUBST' indicator for `confsubst' rules.
Mark Wooding [Sun, 12 Feb 2012 23:10:52 +0000 (23:10 +0000)]
Makefile.am: Distinctive `SUBST' indicator for `confsubst' rules.

Rather than use the generic `GEN' indicator.

12 years agokeys.new-keeper: Use `$quis' in errors, rather than `$0'.
Mark Wooding [Sun, 12 Feb 2012 21:23:03 +0000 (21:23 +0000)]
keys.new-keeper: Use `$quis' in errors, rather than `$0'.

12 years agokeys.keeper-cards: Fallback plan in case `mdwfonts' doesn't exist.
Mark Wooding [Tue, 10 Jan 2012 00:39:11 +0000 (00:39 +0000)]
keys.keeper-cards: Fallback plan in case `mdwfonts' doesn't exist.

Just don't fiddle with the fonts in that case.

12 years agoPrograms invoke themselves via `userv' if necessary.
Mark Wooding [Sun, 8 Jan 2012 00:45:36 +0000 (00:45 +0000)]
Programs invoke themselves via `userv' if necessary.

This will prevent the permissions in the key store being messed up.  To
this end:

  * Move `cryptop' to @bindir@ where we can expect users to find it, and
    move `keys' to @sbindir@ where only administrators are likely to
    look.

  * Add a new userv service for `keys', with some configuration files
    listing the permitted users.

12 years agokeys.*: Enforce separation between user's files and the system.
Mark Wooding [Tue, 10 Jan 2012 00:24:14 +0000 (00:24 +0000)]
keys.*: Enforce separation between user's files and the system.

  * keys.new-keeper now writes its nubs into $SAFE rather than the
    caller's current directory.

  * keys.reveal and keys.stash insist on reading their input from stdin
    rather than a file name.

  * keys.keeper-cards writes its output to stdout, and collects input
    nubs from $SAFE.

  * keys.keeper-nub is a new tool which extracts a keeper nub on demand.

Some of the tools have also had their error messages improved.

12 years agodebian: About time, really.
Mark Wooding [Sat, 7 Jan 2012 02:14:49 +0000 (02:14 +0000)]
debian: About time, really.

12 years agoMakefile: Do the release hook thing.
Mark Wooding [Sat, 7 Jan 2012 02:13:24 +0000 (02:13 +0000)]
Makefile: Do the release hook thing.

12 years agoprofile.d/*: Base configuration files.
Mark Wooding [Sat, 7 Jan 2012 02:12:47 +0000 (02:12 +0000)]
profile.d/*: Base configuration files.

Fairly detailed commentary.  Makes up for the lack of useful
documentation in my dreams, at least.

12 years agouserv/distorted-keys.in: Reformat, with backslashes in their own column.
Mark Wooding [Sun, 12 Feb 2012 21:29:21 +0000 (21:29 +0000)]
userv/distorted-keys.in: Reformat, with backslashes in their own column.

A whitespace-only change, empty under `diff -b'.

12 years agouserv/distorted-keys.in: Rename from distorted-keys.userv.in.
Mark Wooding [Sat, 7 Jan 2012 02:10:44 +0000 (02:10 +0000)]
userv/distorted-keys.in: Rename from distorted-keys.userv.in.

This way it gets created with the right name.  It makes Debianizing
easier.

12 years agokeyfunc.sh: Check ACLs for good characters.
Mark Wooding [Sat, 7 Jan 2012 02:08:53 +0000 (02:08 +0000)]
keyfunc.sh: Check ACLs for good characters.

12 years agokeyfunc.sh: Protect arguments to expr(1).
Mark Wooding [Sat, 7 Jan 2012 02:08:18 +0000 (02:08 +0000)]
keyfunc.sh: Protect arguments to expr(1).

Make sure they don't look like operators or functions.

12 years agokeys.stash: Shebang line.
Mark Wooding [Sat, 7 Jan 2012 02:07:29 +0000 (02:07 +0000)]
keys.stash: Shebang line.

I'm an idiot.

12 years agoextract-profile: Allow `%' characters in internal property names.
Mark Wooding [Sat, 7 Jan 2012 02:07:10 +0000 (02:07 +0000)]
extract-profile: Allow `%' characters in internal property names.

Now we don't have to spam the caller with uninteresting properties.

12 years agocryptop.list: Search the requested user's keys only; sort the output.
Mark Wooding [Wed, 28 Dec 2011 23:43:57 +0000 (23:43 +0000)]
cryptop.list: Search the requested user's keys only; sort the output.

12 years agocryptop.list: Fix up the column-spec documentation.
Mark Wooding [Mon, 26 Dec 2011 18:40:39 +0000 (18:40 +0000)]
cryptop.list: Fix up the column-spec documentation.

It got a bit out of date with respect to the actual implementation.

12 years agoWhitespace fixing.
Mark Wooding [Sat, 7 Jan 2012 16:12:07 +0000 (16:12 +0000)]
Whitespace fixing.

12 years agocryptop.list: New tool for listing keys. 0.99.1
Mark Wooding [Mon, 26 Dec 2011 04:19:01 +0000 (04:19 +0000)]
cryptop.list: New tool for listing keys.

Surprisingly nice output format.

12 years agokeyfunc.sh.in, cryptop.{genkey,recover}: Care over key ownership.
Mark Wooding [Mon, 26 Dec 2011 04:18:33 +0000 (04:18 +0000)]
keyfunc.sh.in, cryptop.{genkey,recover}: Care over key ownership.

Interpret profiles relative to the key owner, not the caller!  Only allow
the key owner to recover a key.

12 years agokeys.archive: New program to capture and sign an archive.
Mark Wooding [Mon, 26 Dec 2011 00:03:53 +0000 (00:03 +0000)]
keys.archive: New program to capture and sign an archive.

Doesn't include the key nubs.

12 years agodistorted-keys.userv: Add userv configuration snippet.
Mark Wooding [Mon, 26 Dec 2011 00:03:18 +0000 (00:03 +0000)]
distorted-keys.userv: Add userv configuration snippet.

Needs a configured user name, and sbindir.

12 years agoMakefile.am: Move cryptop stuff after keys stuff.
Mark Wooding [Mon, 26 Dec 2011 00:00:43 +0000 (00:00 +0000)]
Makefile.am: Move cryptop stuff after keys stuff.

Makes more sense this way.

12 years agoextract-profile.in: Allow empty sections.
Mark Wooding [Sun, 25 Dec 2011 23:55:59 +0000 (23:55 +0000)]
extract-profile.in: Allow empty sections.

Create a section as soon as we see a section header; we no longer need
the more complicated lazy creation code.

12 years agocryptop.in, keyfunc.sh.in: Move userv variable setup into keyfunc.sh.
Mark Wooding [Sun, 25 Dec 2011 23:51:36 +0000 (23:51 +0000)]
cryptop.in, keyfunc.sh.in: Move userv variable setup into keyfunc.sh.

We'll need these set up in a later program.

12 years agocryptop.public: Don't check an ACL.
Mark Wooding [Sun, 25 Dec 2011 23:47:22 +0000 (23:47 +0000)]
cryptop.public: Don't check an ACL.

It's not worthwhile: public keys will be clearly visible in an archive
copy.

12 years agokeyfunc.sh.in (prepare): Indicate that an ACL check isn't necessary.
Mark Wooding [Sun, 25 Dec 2011 23:46:39 +0000 (23:46 +0000)]
keyfunc.sh.in (prepare): Indicate that an ACL check isn't necessary.

12 years agokeyfunc.sh.in: Add come commentary to the configuration section.
Mark Wooding [Sun, 25 Dec 2011 23:43:10 +0000 (23:43 +0000)]
keyfunc.sh.in: Add come commentary to the configuration section.

12 years agokeys.new-recov, keys.reveal, keyfunc.sh.in: Don't put @bindir@ on the PATH.
Mark Wooding [Sun, 25 Dec 2011 23:49:44 +0000 (23:49 +0000)]
keys.new-recov, keys.reveal, keyfunc.sh.in: Don't put @bindir@ on the PATH.

Call `shamir' using an explicit pathname instead.

12 years agokeyfunc.sh.in: Rename the nub computation properties.
Mark Wooding [Sun, 25 Dec 2011 23:32:48 +0000 (23:32 +0000)]
keyfunc.sh.in: Rename the nub computation properties.

These names are more consistent with the longer names used elsewhere.

12 years agoextract-profile.in: Property name fixup wasn't applied to ${...} tokens.
Mark Wooding [Sun, 25 Dec 2011 23:58:43 +0000 (23:58 +0000)]
extract-profile.in: Property name fixup wasn't applied to ${...} tokens.

Move it into the common replacement code.

12 years agokeyfunc.sh.in (prepare): Exit nonzero if ACL check fails.
Mark Wooding [Sun, 25 Dec 2011 23:43:50 +0000 (23:43 +0000)]
keyfunc.sh.in (prepare): Exit nonzero if ACL check fails.

Just a missing return code.

12 years agocryptop.verify: Use the correct operations.
Mark Wooding [Sun, 25 Dec 2011 23:54:23 +0000 (23:54 +0000)]
cryptop.verify: Use the correct operations.

Stupid copy-and-paste error.

12 years agokeyfunc.sh.in, extract-profile.in: Put profile name before the filenames.
Mark Wooding [Sun, 25 Dec 2011 23:41:43 +0000 (23:41 +0000)]
keyfunc.sh.in, extract-profile.in: Put profile name before the filenames.

This is the way it was originally, but that version wasn't checked in.
I had some crazy idea that this ordering made interfacing to userv
easier, but it doesn't.

12 years agocryptop.*, extract-profile.in: Set execute bits.
Mark Wooding [Sun, 25 Dec 2011 23:30:26 +0000 (23:30 +0000)]
cryptop.*, extract-profile.in: Set execute bits.

12 years agoMultiple key types, key profiles, and user key storage.
Mark Wooding [Sat, 24 Dec 2011 02:29:11 +0000 (02:29 +0000)]
Multiple key types, key profiles, and user key storage.

  * Introduce multiple key types (currently GnuPG and Seccure, but maybe
    more later, e.g., OpenSSL).

  * Parameters are provided via time-varying profiles.

  * Profiles can be chosen for keeper and recovery keys.

  * Allow users to generate and use keys.

12 years agomore progress. recovery seems to be working now.
Mark Wooding [Sat, 17 Dec 2011 00:15:00 +0000 (00:15 +0000)]
more progress.  recovery seems to be working now.

12 years agoinitial checkin: still somewhat sketchy
Mark Wooding [Tue, 13 Dec 2011 01:05:10 +0000 (01:05 +0000)]
initial checkin: still somewhat sketchy