W. Trevor King [Sat, 14 Jun 2014 17:34:10 +0000 (10:34 -0700)]
gkeys.log: Isolate file-handler code in the logpath branch
There's no need for this variable if logpath isn't set, so remove the
global variable and external references.
Also downcase it to the more Pythonic 'file_handler'. PEP8 doesn't
even recognize a 'Sentence_case' naming style [1].
[1]: http://legacy.python.org/dev/peps/pep-0008/#descriptive-naming-styles
Brian Dolbec [Wed, 28 May 2014 02:20:12 +0000 (19:20 -0700)]
gkeys/config.py: Add keyid property to GKEY
Remove no longer tracked keyid and longkeyid from field_types
Brian Dolbec [Wed, 28 May 2014 02:01:32 +0000 (19:01 -0700)]
gkeys/config.py: Add missing _add_gkey_defaults call
Pavlos Ratis [Mon, 26 May 2014 19:29:04 +0000 (22:29 +0300)]
Merge pull request #5 from gentoo/week2_remove_unused_code
remove unused GKEY code
Pavlos Ratis [Mon, 26 May 2014 19:25:34 +0000 (22:25 +0300)]
remove unused GKEY code
Pavlos Ratis [Sun, 25 May 2014 15:04:44 +0000 (18:04 +0300)]
Merge pull request #4 from gentoo/week1_seed_handling
Refine seed handling & improve seed loading
Pavlos Ratis [Sun, 25 May 2014 14:46:15 +0000 (17:46 +0300)]
remove KEYLEN_MAP
Pavlos Ratis [Sat, 24 May 2014 17:56:56 +0000 (20:56 +0300)]
remove unused constants
Pavlos Ratis [Sat, 24 May 2014 17:56:39 +0000 (20:56 +0300)]
refine seed handling
Pavlos Ratis [Sat, 24 May 2014 17:35:04 +0000 (20:35 +0300)]
switch seed handling from list to dictionary
Pavlos Ratis [Sat, 24 May 2014 17:26:19 +0000 (20:26 +0300)]
subclass __new__ to make both gkeys and gkeyldap work properly
Pavlos Ratis [Thu, 22 May 2014 16:21:17 +0000 (19:21 +0300)]
create namedtuple with default mapping
Pavlos Ratis [Wed, 21 May 2014 23:22:14 +0000 (02:22 +0300)]
Merge pull request #3 from gentoo/readme
add README and LICENSE files
Pavlos Ratis [Wed, 21 May 2014 23:18:14 +0000 (02:18 +0300)]
add README and LICENSE files
Pavlos Ratis [Wed, 21 May 2014 17:39:13 +0000 (20:39 +0300)]
fix missed var renaming
Pavlos Ratis [Wed, 21 May 2014 17:38:50 +0000 (20:38 +0300)]
remove unused import
Pavlos Ratis [Wed, 21 May 2014 17:34:14 +0000 (20:34 +0300)]
Merge pull request #2 from gentoo/week1_json_switch
Switch current seed file format to JSON
Pavlos Ratis [Tue, 20 May 2014 23:27:35 +0000 (02:27 +0300)]
switch current seed file format to JSON
Pavlos Ratis [Tue, 20 May 2014 12:33:29 +0000 (15:33 +0300)]
Merge pull request #1 from gentoo/week1_small_improvements
GSoC 2014 Week1: small improvements
Pavlos Ratis [Tue, 20 May 2014 12:31:34 +0000 (15:31 +0300)]
ignore local .conf files
Pavlos Ratis [Tue, 20 May 2014 12:30:26 +0000 (15:30 +0300)]
create config sample
Pavlos Ratis [Mon, 19 May 2014 23:38:01 +0000 (02:38 +0300)]
misc improvements
* Rename some variables to a more easy-to-understand name
* Improve some strings and fix typos
Pavlos Ratis [Mon, 19 May 2014 14:50:42 +0000 (17:50 +0300)]
remove unused build_gkeydict function from gkeyldap
Pavlos Ratis [Thu, 15 May 2014 17:51:14 +0000 (20:51 +0300)]
fix packed string when it gets NoneType values
Pavlos Ratis [Wed, 14 May 2014 18:46:05 +0000 (21:46 +0300)]
add zsh support in testpath
Pavlos Ratis [Sat, 17 May 2014 17:49:10 +0000 (20:49 +0300)]
fix missed quotes
Brian Dolbec [Thu, 15 May 2014 17:19:08 +0000 (10:19 -0700)]
config: clean up unused defaults, add seedurls
Brian Dolbec [Thu, 15 May 2014 17:13:24 +0000 (10:13 -0700)]
cli.py: Complete docstrings
Pavlos Ratis [Sat, 1 Mar 2014 18:05:21 +0000 (20:05 +0200)]
ignore .py[co] extensions
Pavlos Ratis [Sat, 1 Mar 2014 17:56:15 +0000 (19:56 +0200)]
filter output with seed files only
Pavlos Ratis [Sat, 1 Mar 2014 14:45:32 +0000 (16:45 +0200)]
rename filename var since it is removed from func args
Pavlos Ratis [Sat, 1 Mar 2014 14:37:25 +0000 (16:37 +0200)]
initialize defaults for logs and seedsdir
Pavlos Ratis [Sat, 1 Mar 2014 13:12:53 +0000 (15:12 +0200)]
fix typo
Brian Dolbec [Sat, 1 Mar 2014 00:54:25 +0000 (16:54 -0800)]
gkeys/actions.py: Add listseedfiles() and fix -S option support.
Brian Dolbec [Sat, 1 Mar 2014 00:07:06 +0000 (16:07 -0800)]
gkeys/actions.py: load_seeds(), Improve error message.
Brian Dolbec [Fri, 28 Feb 2014 23:55:15 +0000 (15:55 -0800)]
gkeys/actions.py: load_seed(), Upgrade a logger.debug message to logger.error
Brian Dolbec [Tue, 14 Jan 2014 16:37:33 +0000 (08:37 -0800)]
Add ssl-fetch checkout
Brian Dolbec [Tue, 14 Jan 2014 16:36:50 +0000 (08:36 -0800)]
update the seed url's
Brian Dolbec [Sun, 17 Nov 2013 15:10:29 +0000 (07:10 -0800)]
Rename bin/ldap-seeds to bin/gkey-ldap.
Brian Dolbec [Sun, 17 Nov 2013 07:35:05 +0000 (23:35 -0800)]
Allow spaced fingerprint entries as well as multiple fingerprints.
Add a check for the total number of id's match the number of fingerprints
Add a re.compile string for the space separated groups of 4 hexdigits fingerprint strings
Brian Dolbec [Sat, 16 Nov 2013 20:07:11 +0000 (12:07 -0800)]
Initial creation of the SeedHandler class.
Move the relavent code from gkeys/actions.py to the the new SeedHandler class.
Brian Dolbec [Sat, 16 Nov 2013 20:05:22 +0000 (12:05 -0800)]
fix missed dictionary value assignment
Brian Dolbec [Sat, 16 Nov 2013 20:02:47 +0000 (12:02 -0800)]
fix python compatibility
Brian Dolbec [Sat, 16 Nov 2013 20:00:27 +0000 (12:00 -0800)]
fix attribute error for newer pythons
Brian Dolbec [Sat, 16 Nov 2013 19:51:29 +0000 (11:51 -0800)]
Move KEY_LEN to config.
Brian Dolbec [Fri, 15 Nov 2013 09:11:09 +0000 (01:11 -0800)]
Add some addition defaults to begin coding the fetching and scanning for seed files known to gkeys.
Brian Dolbec [Fri, 15 Nov 2013 05:25:35 +0000 (21:25 -0800)]
Add errors count to the output.
Brian Dolbec [Mon, 11 Nov 2013 16:43:17 +0000 (08:43 -0800)]
Begin migration to fingerprints only in ldap info
Brian Dolbec [Sun, 10 Nov 2013 07:45:16 +0000 (23:45 -0800)]
preliminary coding to make gkeyldap py3 capable
Brian Dolbec [Sat, 9 Nov 2013 20:51:13 +0000 (12:51 -0800)]
Add missing logger.info messages.
Reduce a debug message being printed multiple times.
Brian Dolbec [Sat, 9 Nov 2013 19:27:28 +0000 (11:27 -0800)]
Don't add a dev's seed if there were errors
Brian Dolbec [Fri, 8 Nov 2013 04:41:26 +0000 (20:41 -0800)]
Add more checks moving them to idividual functions.
Improve error messages and unify output for both logs and terminal output.
Brian Dolbec [Sat, 27 Jul 2013 12:43:34 +0000 (05:43 -0700)]
Add keyserver config option
Brian Dolbec [Wed, 17 Jul 2013 01:52:30 +0000 (18:52 -0700)]
Change to make keys install to individual directories.
Git has no options to set the git keydir or keyring.
Must set GNUPGHOME env variable to the desired keydir before
calling git log --show-signature to verify commits.
Brian Dolbec [Tue, 16 Jul 2013 00:49:30 +0000 (17:49 -0700)]
Upadte for the new pyGPG pkg name.
Brian Dolbec [Sun, 14 Jul 2013 16:55:14 +0000 (09:55 -0700)]
Move the api actions to it's own class.
Fix printing to be configurable (sort of)
Brian Dolbec [Sun, 14 Jul 2013 06:04:26 +0000 (23:04 -0700)]
Split out common keypath code to it's own function
Add a reset task() to clear/reset additional args.
Code list_keys()
Brian Dolbec [Sun, 14 Jul 2013 06:01:47 +0000 (23:01 -0700)]
More Actions improvements.
Brian Dolbec [Sat, 13 Jul 2013 08:02:18 +0000 (01:02 -0700)]
Move actions logic out to their own class.
Brian Dolbec [Sun, 7 Jul 2013 14:13:40 +0000 (07:13 -0700)]
Clean out uneeded code
Brian Dolbec [Sat, 6 Jul 2013 16:46:08 +0000 (09:46 -0700)]
fix some typo's
Brian Dolbec [Fri, 28 Jun 2013 19:40:48 +0000 (12:40 -0700)]
Add gpgkey, gpgfingerprint check when building the seed info
Brian Dolbec [Fri, 28 Jun 2013 19:17:10 +0000 (12:17 -0700)]
Initial logfile capability
Add logfile capability to gkeyldap
Remove logger.setLevel()
Create logfiles and set different levels for the terminal and logfile.
Brian Dolbec [Wed, 26 Jun 2013 08:31:00 +0000 (01:31 -0700)]
Work in progress changes to get add_key coded & working.
Brian Dolbec [Wed, 26 Jun 2013 08:29:31 +0000 (01:29 -0700)]
fix the typo in gkeys.conf
Brian Dolbec [Tue, 25 Jun 2013 23:29:44 +0000 (16:29 -0700)]
Remove spaces in fingerprints to match what gpg returns
Brian Dolbec [Tue, 25 Jun 2013 15:38:41 +0000 (08:38 -0700)]
Refactor GKEY calss to handle all packing and unpacking of data in order to handle list type field data.
Brian Dolbec [Sun, 23 Jun 2013 07:01:27 +0000 (00:01 -0700)]
Map dev's GKEY keyring field to ldap's uid.
Brian Dolbec [Sun, 23 Jun 2013 03:06:53 +0000 (20:06 -0700)]
Add check for no valid keyid/longkeyid found in ldap data
Account for missing gpgkey key
Prevent a double error message
Brian Dolbec [Sun, 23 Jun 2013 01:26:52 +0000 (18:26 -0700)]
Strip line feeds from seeds when loading
Brian Dolbec [Sun, 23 Jun 2013 01:22:02 +0000 (18:22 -0700)]
Fix a self error
Brian Dolbec [Sun, 23 Jun 2013 01:21:42 +0000 (18:21 -0700)]
set encoding in files
Brian Dolbec [Sun, 23 Jun 2013 01:19:23 +0000 (18:19 -0700)]
strip errant line feeds in ldap values
Brian Dolbec [Sun, 23 Jun 2013 00:36:31 +0000 (17:36 -0700)]
Add GKEY field name to error output
Brian Dolbec [Sat, 22 Jun 2013 21:01:48 +0000 (14:01 -0700)]
Add keyid/longkeyid separation and assignment
Brian Dolbec [Sat, 22 Jun 2013 20:20:43 +0000 (13:20 -0700)]
Add -D, --debug level to cli
Comment out a parse_argrs logger line, move the debug reassignment to after it's setting.
Brian Dolbec [Sat, 22 Jun 2013 20:13:54 +0000 (13:13 -0700)]
Add more progress feedback for normal usage.
Brian Dolbec [Sat, 22 Jun 2013 19:41:31 +0000 (12:41 -0700)]
Make the logger, namespace able.
Brian Dolbec [Sat, 22 Jun 2013 19:29:02 +0000 (12:29 -0700)]
Unify logger message identification
Brian Dolbec [Sat, 22 Jun 2013 22:11:01 +0000 (15:11 -0700)]
Some pyflakes cleanup and fix logger messages
Brian Dolbec [Sat, 22 Jun 2013 18:11:19 +0000 (18:11 +0000)]
Add error output for missing data, comment out a debug statement
Error for 'undefined' in values obtained from ldap
Brian Dolbec [Sat, 22 Jun 2013 17:28:30 +0000 (17:28 +0000)]
Sort the devs on their nick
Brian Dolbec [Sat, 22 Jun 2013 17:20:54 +0000 (10:20 -0700)]
Add seed count and error for missing data
Brian Dolbec [Sat, 22 Jun 2013 16:07:16 +0000 (09:07 -0700)]
filter results for 'active' devs only
Brian Dolbec [Sat, 22 Jun 2013 01:46:22 +0000 (18:46 -0700)]
Initial commit of an ldap search and seed file creation tool.
This app is intended to be run on infra machines or a dev's
home directory on dev.gentoo.org in order for it to have
access to the gentoo ldap server.
Brian Dolbec [Sat, 22 Jun 2013 01:43:33 +0000 (18:43 -0700)]
Add a configured separator for the in file seed info.
Brian Dolbec [Sat, 22 Jun 2013 01:42:03 +0000 (18:42 -0700)]
Add keyring parameter to GkeysGPG class
Brian Dolbec [Sat, 22 Jun 2013 01:40:42 +0000 (18:40 -0700)]
Add nick field to GKEY class
Brian Dolbec [Sat, 22 Jun 2013 01:38:50 +0000 (18:38 -0700)]
Add a --nick option.
Move the --name short option to -N, so -n could be for --nick.
Fix a copied message that I failed to edit.
Brian Dolbec [Sat, 22 Jun 2013 01:34:24 +0000 (18:34 -0700)]
Add an automatice relative testpath file for runing from the git checkouts.
Brian Dolbec [Sun, 23 Dec 2012 07:04:36 +0000 (23:04 -0800)]
remove the shebang from all lib files, since they won't have an if __main__:
Brian Dolbec [Mon, 10 Dec 2012 04:56:34 +0000 (20:56 -0800)]
fix missed copy/paste edit.
Brian Dolbec [Mon, 10 Dec 2012 04:56:08 +0000 (20:56 -0800)]
add moveseed functionality.
Brian Dolbec [Mon, 10 Dec 2012 03:25:47 +0000 (19:25 -0800)]
code list, add remove seeds. Very basic output printing for now.
Brian Dolbec [Mon, 10 Dec 2012 03:24:37 +0000 (19:24 -0800)]
debug seed.py
Brian Dolbec [Mon, 10 Dec 2012 03:23:51 +0000 (19:23 -0800)]
hyphenate the config file variables, make config handling work.
Brian Dolbec [Mon, 10 Dec 2012 03:19:11 +0000 (19:19 -0800)]
chmod +x gkeys
Brian Dolbec [Sun, 9 Dec 2012 15:22:26 +0000 (07:22 -0800)]
add gkeys.__init__.py
Brian Dolbec [Sun, 9 Dec 2012 15:17:37 +0000 (07:17 -0800)]
Add seed files to gkeys.conf
Brian Dolbec [Sun, 9 Dec 2012 15:16:01 +0000 (07:16 -0800)]
New file seed.py, class Seeds for all seed file handling, config fixes and extend GKEY capability.