summaryrefslogtreecommitdiff
path: root/src/monkeysphere
AgeCommit message (Collapse)Author
2010-11-13universalize and consolidate on --fixed-list-modeDaniel Kahn Gillmor
2010-10-18Simplification/refactoring of key/file processingJameson Rollins
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.
2010-10-17fix typo in monkeysphere usageJameson Rollins
2010-10-08default HASH_KNOWN_HOSTS to false (closes MS #2483)Daniel Kahn Gillmor
2010-10-04use LC_ALL=C for all gpg callsJameson Rollins
This should help with internationalization differences in gpg that could cause problems. Works in tests as is, but haven't tested with odd locales.
2010-09-14fix specification of install directories in top level scripts.Jameson Rollins
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.
2010-04-17handling ssh fingerprinting internally with keytrans for sshfprs-for-useridDaniel Kahn Gillmor
2010-04-17fix gpg_ssh_fingerprint() in monkeysphere to use internal implementation of ↵Daniel Kahn Gillmor
ssh fingerprinting
2010-03-14added comment about why the key file is named with whitespaceDaniel Kahn Gillmor
2010-03-14deprecate sshfpr; add sshfprs-for-userid (closes: MS #1436)Daniel Kahn Gillmor
2010-03-14use msmktempfile instead of raw mktemp -- should be more portableDaniel Kahn Gillmor
2010-03-14fix CHECK_KEYSERVER for deprecated keys-from-userid as wellDaniel Kahn Gillmor
2010-03-14keys-for-userid now respects MONKEYSPHERE_CHECK_KEYSERVER (Closes: MS ↵Daniel Kahn Gillmor
#1997); finesse description of CHECK_KEYSERVER in monkeysphere.conf (see: MS #2014)
2010-03-08fix my email addressJameson Rollins
2010-02-18enforce --no-armor when exporting to openpgp2ssh in case weird gpg.conf ↵Daniel Kahn Gillmor
options (see bug 1625)
2010-02-02add some useful shortcuts for some common commandsJameson Rollins
2010-01-18canonicalize prompting to prompt if MONKEYSPHERE_PROMPT != 'false'Jameson Rollins
2010-01-12touching up the switch to keys-for-useridDaniel Kahn Gillmor
2010-01-11rename keys-from-userid command to more accurate keys-for-useridJameson Rollins
leave the old command for now, but warn as deprecated.
2010-01-11normalize output for monkeysphere when no subcommand is issued or when an ↵Daniel Kahn Gillmor
unknown subcommand is issued
2010-01-11fix invocation without subcommands to call usage function and exit 1 explicitllyJameson Rollins
2010-01-11add standard --version option for version outputJameson Rollins
2010-01-10Merge branch 'master' of git://labs.riseup.net/~micah/monkeysphereMatthew James Goins
2010-01-10Add new keys-from-userid subcommand to monkeysphere UI.Jameson Rollins
This new subcommand calls a new function, keys_from_userid, that outputs to stdout all acceptable keys for a given user ID literal.
2010-01-04Its more useful and standard to actually output the 'help' output whenMicah Anderson
an improper number of arguments is passed, rather output a line telling the user how to get the help output.
2009-08-01export LOG_PREFIX in monkeysphereJameson Graef Rollins
2009-07-26added MONKEYSPHERE_STRICT_MODES environment option to disable permissions ↵Daniel Kahn Gillmor
checking.
2009-07-24Revert "proposed fix for #1147 by checking for known_hosts file"Jameson Graef Rollins
This reverts commit 189781e00c89227612942ff7dc30eaa756cb78ae. This is reverted because we're going with dkg's better solution.
2009-07-24proposed fix for #1147 by checking for known_hosts fileJameson Graef Rollins
2009-07-11more replacement of read -p with printf; read (re #446)mike castleman
2009-07-11don't use read -p; it is sucky (closes: #446)mike castleman
2009-04-30Add sshfpr subcommand to monkeysphereJameson Graef Rollins
This is a very simple subcommand that outputs the ssh fingerprint of a key in your gpg keyring, by keyid.
2009-04-04add proxycommand --no-connect option to monkeysphere usageJameson Graef Rollins
2009-03-23improving usage and man page for monkeysphere ssh-proxycommand.Daniel Kahn Gillmor
2009-03-07fix the marginal ui output so that it's not prefixed by theJameson Graef Rollins
LOG_PREFIX. also make sure to always export the LOG_PREFIX, so that it gets passed to subprocces su_monkeysphere_user.
2009-03-03fix to logging to prefix all log output with log prefix, and allow changing ↵Jameson Graef Rollins
of log prefix.
2009-03-02get rid of FILE_OWNER variable, in favor of just using $(whoami) whenJameson Graef Rollins
running check_key_file_permissions in update_known_hosts, update_authorized_keys, and process_authorized_user_ids. this is fine, since the policy is just that a user is always updating their own files. closes monkeysphere bug #630.
2009-03-01switched $USER to $FILE_OWNER; new name is more semantically clear and less ↵Daniel Kahn Gillmor
likely to collide with other common uses of $USER.
2009-03-01explicity set the USER variable, since it's needed for checking file ↵Jameson Graef Rollins
permissions. add/modify some debug messages.
2009-03-01break out default variables into their own file: defaultenvJameson Graef Rollins
this allows the common file to be sourced without reseting variables to their defaults, which was causing a problem with su_monkeysphere_user. also added some more debug messages.
2009-03-01normalizing failure invocations in check_gpg_sec_key_id().Daniel Kahn Gillmor
2009-03-01fix two bugs in monkeysphere:check_gpg_sec_key_id that were causing ↵Jameson Graef Rollins
gen_subkey to fail
2009-02-22Fix how version number is saved/retrieved. Version is now stored inJameson Graef Rollins
VERSION file, which is created in the tarball target. This is then installed at /usr/share/monkeysphere/VERSION, and cat'ed when the version number is requested by the front-end ui. No more manual setting of version number required (to avoid future problems, aka "0.23.1"). This system is also more flexible, as the VERSION file could potentially hold more info than just the release number.
2009-02-21make sure all prompt messages are going to stderrJameson Graef Rollins
2009-02-21fix output formatting for cases where multiple fingerprints are found, in ↵Jameson Graef Rollins
functions that are doing that sort of thing
2009-02-21remove 'return' line from monkeysphere that was errantly not removed in the ↵Jameson Graef Rollins
previous commit.
2009-02-21make sure we're explicitly capturing return codes in places where they are ↵Jameson Graef Rollins
tested, in case things are being run set -e
2009-02-19remove import_subkey from monkeysphere usage and man page until we getJameson Graef Rollins
a chance to fully implement it.
2009-02-19add a gpg_user function in monkeysphere to add some gpg quietingJameson Graef Rollins
option, and use it in all gpg invocations. add a trap to subkey_to_ssh_agent.
2009-02-19The monkeysphere {import,gen}_subkey functions were not up-to-date.Jameson Graef Rollins
did a lot of work to bring them up-to-date, and better handle argument checking. also updated man page, changelog, and tests/basic.