W. Trevor King [Mon, 30 May 2011 15:34:24 +0000 (11:34 -0400)]
Add openpgpg2pem.
With the previous setup, it was difficult for me to check https keys
when signing them. Now I can easily extract public key information
for validating keys with
$ gpg --export 'https://www.physics.drexel.edu' \
| openpgp2pem | openssl rsa -in /dev/stdin -pubin -text
And compare the modulus and exponent with those given for the server's
key
$ openssl rsa -in private.pem -pubout -text
`openpgp2pem` is also useful when confirming a server's public key
through your browser's key acceptance window (without msva), as the
modulus and exponent are readily available.
Jameson Rollins [Sat, 13 Nov 2010 23:07:11 +0000 (18:07 -0500)]
update changelog
Daniel Kahn Gillmor [Thu, 11 Nov 2010 22:39:18 +0000 (17:39 -0500)]
If for whatever reason the primary UID comes up empty, give the injected subkey a reasonable name instead of the empty string
Daniel Kahn Gillmor [Thu, 11 Nov 2010 22:29:27 +0000 (17:29 -0500)]
universalize and consolidate on --fixed-list-mode
Daniel Kahn Gillmor [Thu, 11 Nov 2010 22:21:16 +0000 (17:21 -0500)]
avoid using the running MSVA from the user during the tests
Jameson Rollins [Sat, 30 Oct 2010 00:22:18 +0000 (20:22 -0400)]
update upstream changelog
Jameson Rollins [Sat, 30 Oct 2010 00:56:25 +0000 (20:56 -0400)]
clean up ssh_proxycommand function (no functional change)
Jameson Rollins [Sat, 30 Oct 2010 00:52:11 +0000 (20:52 -0400)]
break out proxy command validation code into it's own function (no functional change)
Jameson Rollins [Sat, 30 Oct 2010 01:46:45 +0000 (21:46 -0400)]
improve debug output
Jameson Rollins [Sat, 30 Oct 2010 01:10:17 +0000 (21:10 -0400)]
fix variable declarations in update_known_hosts
Jameson Rollins [Sat, 30 Oct 2010 02:07:53 +0000 (22:07 -0400)]
catch return for grep in remove_line, for case where grep -v returns nothing (e.g. only line in file is removed)
Jameson Rollins [Sat, 30 Oct 2010 00:14:24 +0000 (20:14 -0400)]
fix ssh_proxycommand marginal ui
After the last big code cleanup, the bookkeeping of numbers of
processed/valid keys was removed. This was done because most things
don't use that info, and it was confusing return codes of top-level
functions.
The one thing that did use that, though, was the ssh_proxycommand. We
fix this by using a global variable to keep track of the number of
processed and valid keys. The proxy command can now easily determine
when it should output it's marginal ui block.
Jameson Rollins [Fri, 29 Oct 2010 23:10:52 +0000 (19:10 -0400)]
fix variable declaration (leftover from break out of touch_key_file_or_fail)
Jameson Rollins [Fri, 29 Oct 2010 22:33:12 +0000 (18:33 -0400)]
consolidate and simplify printing of key lines in process_keys_for_file
also move hashing of known_hosts lines into ssh2known_hosts function
Jameson Rollins [Wed, 27 Oct 2010 14:47:00 +0000 (10:47 -0400)]
remove reference to USE_VALIDATION_AGENT (the usage was incorrect as well)
Jameson Rollins [Wed, 27 Oct 2010 14:45:56 +0000 (10:45 -0400)]
fix label in upstream changelog
Jameson Rollins [Tue, 26 Oct 2010 14:27:58 +0000 (10:27 -0400)]
finalize changelog for 0.34 release
Jameson Rollins [Tue, 26 Oct 2010 14:26:20 +0000 (10:26 -0400)]
add note about CHECK_KEYSERVER var in msph-auth man page
Daniel Kahn Gillmor [Mon, 25 Oct 2010 20:20:23 +0000 (16:20 -0400)]
ensure that we only remove fully-matching lines once we have found them
Jameson Rollins [Sun, 24 Oct 2010 15:51:39 +0000 (11:51 -0400)]
back to using grep fixed-string matching when removing key lines
This method uses grep -F to find the full line to match, and then
second call to grep -v -F to actually remove the line. For
known_hosts, we use two piped grep -F calls. No rexexp are used, and
only one extra call to grep is required for known_hosts line removal.
There is still an issue here about sub-string matches, but there is at
least no regression over early versions.
Jameson Rollins [Fri, 22 Oct 2010 20:25:04 +0000 (16:25 -0400)]
don't fail if authorized_keys file not present
we create a new function here, touch_key_file_or_fail, which will
touch a new key file if there isn't one already present. This is now
used in the update_authorized_keys and update_known_hosts functions
when looking for authorized_keys and known_hosts respectively.
Closes Debian 600644
Jameson Rollins [Fri, 22 Oct 2010 20:22:09 +0000 (16:22 -0400)]
tweak log levels and messages in ma/update_users
Jameson Rollins [Tue, 19 Oct 2010 04:00:17 +0000 (00:00 -0400)]
fix remove_line function to not use fixed string checking, and to mv -f the tmp file into place
Jameson Rollins [Tue, 19 Oct 2010 03:34:06 +0000 (23:34 -0400)]
fix remove_monkeysphere_lines function to just read from stdin and write to stdout
Jameson Rollins [Tue, 19 Oct 2010 03:32:21 +0000 (23:32 -0400)]
fix update_known_hosts to create proper initial temp file
Jameson Rollins [Tue, 19 Oct 2010 02:23:04 +0000 (22:23 -0400)]
fix back to integer indexing in process_authorized_user_ids
Jameson Rollins [Mon, 18 Oct 2010 22:21:55 +0000 (18:21 -0400)]
cleanup update_known_hosts
* don't update if unchanged
* proper trap setting
* cleanup comments
Jameson Rollins [Mon, 18 Oct 2010 22:18:09 +0000 (18:18 -0400)]
fix up update_authorized_keys
* better trap handling
* don't update file if unchanged
* clean up comments
Jameson Rollins [Mon, 18 Oct 2010 22:12:45 +0000 (18:12 -0400)]
fix process_keys_for_file so that it can accept '-' as a file, and send output to stdout.
Jameson Rollins [Mon, 18 Oct 2010 20:36:11 +0000 (16:36 -0400)]
update changelog
Jameson Rollins [Mon, 18 Oct 2010 13:55:53 +0000 (09:55 -0400)]
Simplification/refactoring of key/file processing
This is a fairly major overhaul to greatly reduce the number of
redundant code paths. We here created a new process_keys_for_file
function that processes key from a userid for a given key file. All
the main top elevel functions now call this one function.
The main top level monkeysphere functions for updating the user's
authorized_keys and known_hosts files are now moved to their own
sourced files, which greatly reduces the amount of code sourced with
common.
monkeysphere now updates authorized_keys and known_hosts in temporary
files that are then atomically moved into place upon completion.
Finally, removed the confusing return codes in the key/file processing
functions that were based on number of valid/invalid keys processed.
It was confusing in the presence of actual errors that stopped
processing.
Jameson Rollins [Mon, 18 Oct 2010 05:49:58 +0000 (01:49 -0400)]
fix test for keys-for-user
Jameson Rollins [Mon, 18 Oct 2010 05:34:20 +0000 (01:34 -0400)]
add check for argument in keys-for-user
Jameson Rollins [Mon, 18 Oct 2010 01:40:35 +0000 (21:40 -0400)]
fixed bug in remove_monkeysphere_lines function
it was matching MonkeySphere strings as full lines and therefore not
actually removing monkeysphere lines.
I'm not sure exactly why, upon further consideration, why we actually
need to be removing all monkeysphere lines in update_authorized_keys.
Jameson Rollins [Sun, 17 Oct 2010 23:31:05 +0000 (19:31 -0400)]
fix changelog
Jameson Rollins [Sun, 17 Oct 2010 23:20:29 +0000 (19:20 -0400)]
remove unneccessary export of TMP_AUTHORIZED_USER_IDS
Jameson Rollins [Sun, 17 Oct 2010 23:14:31 +0000 (19:14 -0400)]
fix keys-for-user
This function now properly outputs to stdout exactly what would have
been written to the monkeysphere-controlled authorized_keys file, but
without actually touching it.
Jameson Rollins [Sat, 16 Oct 2010 03:32:43 +0000 (23:32 -0400)]
add missing CHECK_KEYSERVER config in skeleton monkeysphere-authentication.conf
Jameson Rollins [Sat, 16 Oct 2010 03:32:10 +0000 (23:32 -0400)]
add 'k' as shortcut for keys-for-user
Jameson Rollins [Sat, 16 Oct 2010 03:31:47 +0000 (23:31 -0400)]
fix typo in monkeysphere usage
Jameson Rollins [Fri, 15 Oct 2010 22:05:37 +0000 (18:05 -0400)]
update changelog for 0.33 release
Jameson Rollins [Fri, 15 Oct 2010 20:47:21 +0000 (16:47 -0400)]
make sure authorized_keys options lines are skipped in keys-for-user
Jameson Rollins [Fri, 15 Oct 2010 19:38:10 +0000 (15:38 -0400)]
attempt to fix apostroproblem in ma/keys-for-user
This is an attempt to fix #600304 by properly passing the string
litteral in to be processed, instead of escaping problematic
characters.
Daniel Kahn Gillmor [Fri, 15 Oct 2010 17:34:09 +0000 (13:34 -0400)]
avoid keytrans test suite breakage on fast processors (addresses bugs.debian.org/591118)
Daniel Kahn Gillmor [Fri, 8 Oct 2010 20:15:33 +0000 (16:15 -0400)]
default HASH_KNOWN_HOSTS to false (closes MS #2483)
Daniel Kahn Gillmor [Thu, 7 Oct 2010 06:49:56 +0000 (02:49 -0400)]
removed releasenote details, as they are now in monkeysphere-docs
Jameson Rollins [Wed, 6 Oct 2010 21:37:54 +0000 (17:37 -0400)]
Fix more calls to gpg_shere, finishing what was started in
90166e0bb8e4ebc1c1174d9bc2021c604b7a1bd7
There were another calls to gpg_sphere that were packing everything
into a single argument. Since we fixed the need to do that, we fix
all these other calls that were fixed in the first round.
Jameson Rollins [Mon, 4 Oct 2010 06:16:38 +0000 (02:16 -0400)]
update changelog for 0.32 release
Jameson Rollins [Mon, 4 Oct 2010 05:49:47 +0000 (01:49 -0400)]
use LC_ALL=C for all gpg calls
This should help with internationalization differences in gpg that
could cause problems. Works in tests as is, but haven't tested with
odd locales.
Jameson Rollins [Mon, 4 Oct 2010 05:25:46 +0000 (01:25 -0400)]
Merge remote branch 'greg/2459'
Jameson Rollins [Mon, 4 Oct 2010 04:37:29 +0000 (00:37 -0400)]
fix need for only single argument to gpg_sphere
The use of $* instead of $@ in the call to su_monkeysphere_user is
what we want to not split the input to the bash subcalls into separate
words.
Greg Lyle [Sat, 2 Oct 2010 20:10:09 +0000 (16:10 -0400)]
Test coverage for monkeysphere-authentication keys-for-user
Daniel Kahn Gillmor [Sun, 3 Oct 2010 04:23:24 +0000 (00:23 -0400)]
update Changelog
Daniel Kahn Gillmor [Sun, 3 Oct 2010 04:18:24 +0000 (00:18 -0400)]
Merge remote branch 'jrollins/master'
Jameson Rollins [Sat, 2 Oct 2010 20:13:12 +0000 (16:13 -0400)]
fix formatting of
b3f0bbedbf242d2640d3bc56cce62ae726081400 to conform to standard
Micah Anderson [Sat, 2 Oct 2010 19:06:16 +0000 (15:06 -0400)]
add debugging to monkeysphere-host publish-key, closes: #2289
Clint Adams [Sat, 2 Oct 2010 19:06:54 +0000 (15:06 -0400)]
ssh authorized_keys options test
Clint Adams [Sat, 2 Oct 2010 18:53:29 +0000 (14:53 -0400)]
Make remote execution command a parameter to ssh_test
Clint Adams [Sat, 2 Oct 2010 18:39:01 +0000 (14:39 -0400)]
Minimal documentation of ssh authorized_keys options specification.
Clint Adams [Sat, 2 Oct 2010 18:10:59 +0000 (14:10 -0400)]
Assume that space- or tab-prefixed lines contain ssh authorized_keys options applicable to the preceding user ID.
Daniel Kahn Gillmor [Fri, 1 Oct 2010 14:45:21 +0000 (10:45 -0400)]
added changelog note of fix for monkeysphere-host from micah
Micah Anderson [Fri, 1 Oct 2010 14:07:46 +0000 (10:07 -0400)]
fix revoke_key typo in creating temporary directory
fix variable specifying which key to revoke
monkeysphere-host revoke-key <key-id> would produce the following errors, this
commit fixes that:
Really publish this cert to zimmermann.mayfirst.org ? (Y/n) y
/usr/share/monkeysphere/mh/revoke_key: line 96: mkmstempdir: command not found
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: "0x!" not a key ID: skipping
Daniel Kahn Gillmor [Tue, 21 Sep 2010 14:55:18 +0000 (10:55 -0400)]
Merge remote branch 'jamie/master'
Jamie McClelland [Tue, 21 Sep 2010 14:34:03 +0000 (10:34 -0400)]
change log level for outputting message: "! primary key could not be
translated (not RSA?)." from "error" to "verbose"
Jameson Rollins [Tue, 14 Sep 2010 17:36:14 +0000 (13:36 -0400)]
force link making when installing, for idempotence
Jameson Rollins [Tue, 14 Sep 2010 17:35:28 +0000 (13:35 -0400)]
fix *all* install paths, including in man pages and transition scripts
Jameson Rollins [Tue, 14 Sep 2010 17:01:05 +0000 (13:01 -0400)]
fix install target to not add DESTDIR to installed prefix
Jameson Rollins [Tue, 14 Sep 2010 16:26:58 +0000 (12:26 -0400)]
fix specification of install directories in top level scripts.
Various install paths were hard coded in the top level scripts. This
was causing problems for non-standard install locations. Also added
use of LOCALSTATEDIR variable to specify /var/lib path.
Daniel Kahn Gillmor [Mon, 13 Sep 2010 19:53:11 +0000 (15:53 -0400)]
removing freebsd packaging since it is on its own branch
Daniel Kahn Gillmor [Tue, 10 Aug 2010 18:10:31 +0000 (14:10 -0400)]
fix up notes about how to prepare a release
Daniel Kahn Gillmor [Thu, 15 Jul 2010 23:21:23 +0000 (19:21 -0400)]
preparing for 0.31 release
Daniel Kahn Gillmor [Thu, 15 Jul 2010 21:02:08 +0000 (17:02 -0400)]
added some examples for system integration
Jameson Rollins [Sun, 4 Jul 2010 04:19:21 +0000 (00:19 -0400)]
update changelog about new keys-for-user monkeysphere-authentication subcommand
Jameson Rollins [Sun, 4 Jul 2010 04:16:26 +0000 (00:16 -0400)]
Merge remote branch 'dkg/master'
Jameson Rollins [Sun, 4 Jul 2010 04:15:02 +0000 (00:15 -0400)]
fix debug message in checkperms
Jameson Rollins [Sun, 4 Jul 2010 04:14:45 +0000 (00:14 -0400)]
small tweak to monkeysphere man page
Jameson Rollins [Sun, 4 Jul 2010 04:06:35 +0000 (00:06 -0400)]
add keys-for-user subcommand to monkeysphere-authentication
This subcommand will output all valid key for a given user. The
user's authorized_user_ids file will be read for OpenPGP user IDs, one
per line. The ssh-formated RSA keys will be output to stdout.
Also included is a simple script that takes the user as it's one
argument and exec's this command. This is something that would be
suitable for the proposed sshd AuthorizedKeysCommand.
Daniel Kahn Gillmor [Fri, 7 May 2010 02:25:28 +0000 (22:25 -0400)]
reporting new expiration date when key expiry is updated (closes MS #2291)
Daniel Kahn Gillmor [Thu, 6 May 2010 17:02:40 +0000 (13:02 -0400)]
do not fail or bail when admin interactively declines to publish a key with m-h
Daniel Kahn Gillmor [Thu, 6 May 2010 15:24:55 +0000 (11:24 -0400)]
support x509 anchors for monkeysphere-host, allow shared anchors between m-a and mh (closes MS #2288)
Daniel Kahn Gillmor [Tue, 4 May 2010 05:04:18 +0000 (01:04 -0400)]
remember that the releases are being published via the monkeysphere-docs repo now.
Daniel Kahn Gillmor [Sun, 18 Apr 2010 01:46:52 +0000 (21:46 -0400)]
updated scripts and notes for releasing
Daniel Kahn Gillmor [Sun, 18 Apr 2010 00:35:10 +0000 (20:35 -0400)]
preparing a 0.30 release
Daniel Kahn Gillmor [Sun, 18 Apr 2010 00:16:52 +0000 (20:16 -0400)]
do not try to add to known_hosts if HASH_KNOWN_HOSTS is true but ssh-keygen is not available (includes some comments about how to fix these corner cases).
Daniel Kahn Gillmor [Sat, 17 Apr 2010 21:30:18 +0000 (17:30 -0400)]
degrade gracefully in the absence of ssh
Daniel Kahn Gillmor [Sat, 17 Apr 2010 20:44:19 +0000 (16:44 -0400)]
handling ssh fingerprinting internally with keytrans for sshfprs-for-userid
Daniel Kahn Gillmor [Sat, 17 Apr 2010 20:43:15 +0000 (16:43 -0400)]
make comment more nit-pickingly accurate
Daniel Kahn Gillmor [Sat, 17 Apr 2010 20:17:15 +0000 (16:17 -0400)]
fix gpg_ssh_fingerprint() in monkeysphere to use internal implementation of ssh fingerprinting
Daniel Kahn Gillmor [Sat, 17 Apr 2010 20:13:53 +0000 (16:13 -0400)]
monkeysphere-host no longer depends on ssh
Daniel Kahn Gillmor [Sat, 17 Apr 2010 20:05:55 +0000 (16:05 -0400)]
keytrans openpgp2sshfpr now prints out the key size and type
Daniel Kahn Gillmor [Sat, 17 Apr 2010 19:57:47 +0000 (15:57 -0400)]
added internal openpgp2sshfpr subcommand for keytrans
Daniel Kahn Gillmor [Wed, 31 Mar 2010 22:14:32 +0000 (18:14 -0400)]
removed monkeysphere.spec from master since it is now tracked in the rpm branch.
Bernie Innocenti [Wed, 31 Mar 2010 00:31:29 +0000 (21:31 -0300)]
rpm: assign a real shell to user monkeysphere
Sorry for the patch flurry, this should make the package usable in
Fedora.
Bernie Innocenti [Wed, 31 Mar 2010 00:08:32 +0000 (21:08 -0300)]
rpm: create users in pre-install scriptlets
Further improve the rpm packaging by creating (and deleting) the
monkeysphere user automatically.
Bernie Innocenti [Tue, 30 Mar 2010 23:45:45 +0000 (20:45 -0300)]
Improve RPM packaging
With these changes, version 0.29 builds cleanly in Fedora 12 and passes
rpmlint.
Daniel Kahn Gillmor [Tue, 23 Mar 2010 22:03:29 +0000 (18:03 -0400)]
removing git commit id from the VERSION file, since it is ambiguous for packaged versions vs. versions installed by "make install" (and complicated to build cleanly anyway)
Daniel Kahn Gillmor [Tue, 23 Mar 2010 21:15:25 +0000 (17:15 -0400)]
moving git buildpackage configuration off of master branch (please put it debian/gbp.conf in the debian branch)
Daniel Kahn Gillmor [Tue, 23 Mar 2010 19:49:34 +0000 (15:49 -0400)]
we should be making the tarball with git archive now (this is now idempotent, yay!); no need for the tarball make target
Daniel Kahn Gillmor [Tue, 23 Mar 2010 19:47:14 +0000 (15:47 -0400)]
automate updating of VERSION file
Daniel Kahn Gillmor [Tue, 23 Mar 2010 19:27:21 +0000 (15:27 -0400)]
trying to auto-create VERSION file