aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gkeys: Update version and authorsBrian Dolbec2018-07-061-2/+2
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys py2man: Add email optionBrian Dolbec2018-07-061-0/+3
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys-ldap updateseeds.sh: Shellcheck cleanupBrian Dolbec2018-07-061-26/+26
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys-ldap updateseeds.sh: Add a force override optionBrian Dolbec2018-07-061-0/+6
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys actions.py: Exit smoothly if fetch failed to get a new fileBrian Dolbec2018-07-061-0/+3
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys seedhandler.py: Simplify code, let verify() handle fetchingBrian Dolbec2018-07-061-33/+35
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys actions.py: Assign sig_path from fetcherBrian Dolbec2018-07-061-0/+1
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys base.py: Fix fetchonly typo and add to Args classBrian Dolbec2018-07-061-1/+3
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys lib.py: Additional debug loggingBrian Dolbec2018-07-062-4/+5
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys log.py: Reduce the frequency of new log files, add a timestamp messageBrian Dolbec2018-07-061-2/+2
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys keyhandler: Additional debug loggingBrian Dolbec2018-07-061-1/+4
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys actions.py: Additional debug loggingBrian Dolbec2018-07-061-1/+7
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkets etc/*: Update for individual keyring locations.Brian Dolbec2018-07-062-0/+14
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys actionbase.py: Update _set_category for the new keyrings configBrian Dolbec2018-07-061-3/+2
| | | | | | All keyings locations can be set individually now Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys actions.py: Add verify() recursion detection and exitBrian Dolbec2018-07-062-1/+10
| | | | | | | Handles the case of incorrect configuration or keyring problems. Reported by irc user "puchu" in #gentoo-keys. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeysgen/actions.py: Use gkeys py_input and _unicode declarationsBrian Dolbec2018-07-061-5/+5
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys: Implement use of the new Fetch classBrian Dolbec2018-07-063-60/+61
| | | | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org> Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys/lock.py: New LockDir classBrian Dolbec2018-07-061-0/+31
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys/fetch.py: New Fetch classBrian Dolbec2018-07-061-0/+63
| | | | | | | | | | Add sig_path assignment, makes the sig_path available to class instance holders like _verify() Use the lack of a returned timestamp to abort the process If the main file is not downloaded, then don't bother looking for a signature. This allows a verify action to exit smoothly. There is a message about the reason for not downloading, so is not hidden. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys/fileops.py: Add new updateseeds functionBrian Dolbec2018-07-061-0/+28
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys/utils.py: Add get_ack functionBrian Dolbec2018-07-061-0/+9
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeysgpg/cli.py: Fix doctring typosBrian Dolbec2018-07-061-2/+2
| | | | Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys/actions/py: Move the py_input & _unicode import to __init__.pyBrian Dolbec2018-07-062-8/+9
| | | | | | This way it is done once and can be re-used anywhere in the code. Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
* gkeys-ldap update-seeds.sh: Add -S option to git commits to ensure they are ↵Brian Dolbec2018-07-061-2/+2
| | | | | gpg signed This way if the git config is not set to enforce signing, this will ensure it is signed.
* gkeys base.py: Remove the auto-update code from run()Brian Dolbec2018-07-061-58/+0
| | | | | | This code was causing the fetch-seed action to fail with empty urls to connect to. This code should also not be running directly from the CliBase class. I'll move this code to the actions or lib class, to be determined later.
* gkeys seedhandler.py: Add another debug log for the seedurl and seedpathBrian Dolbec2018-07-061-0/+1
| | | This is to aid in troubleshooting fetch-sedd url errors.
* gkeys actions: Added automatic seeds,keys update capabilityaeroniero332018-07-063-13/+24
| | | | | | | | | | Add more detailed update reporting including the keys removed, revoked/changed, added. <rebase edit> Convert print() to proper self.output() Whitespace cleanup Commit message improvements </edit Brian Dolbec>
* gkeys actions: Add keys updated reportingaeroniero332018-07-062-1/+39
| | | | | | | | | Report the updated/revoked keys during the update. <rebase edit> Replace print() with self.output() Whitespace cleanup Create a meaningful commit message </edit Brian Dolbec>
* gkeys/actions: Update the update-seed functionaeroniero332018-07-061-25/+7
| | | | | | | | Update descriptions. Update operations to current library code usage. <rebase edit> Replace print() use with self.output(). Expand commit message </edit Brian Dolbec>
* Created the send-key functionaeroniero332018-07-061-4/+4
| | | | <rebase edit> use _set_category() for consistency </edit Brian Dolbec>
* remove debug printPavlos Ratis2018-07-061-1/+0
|
* Added automatic update check + fixesaeroniero332018-07-063-9/+85
|
* Updated update-seed to display the updated keys when it's usedaeroniero332018-07-062-1/+40
|
* Updated the update-seed function and did a few improvementsaeroniero332018-07-062-12/+34
|
* Created the update-seed functionaeroniero332018-07-062-2/+31
|
* Made the default GPG config file overridableaeroniero332018-07-061-6/+16
|
* Fixed a bug in the verify functionaeroniero332018-07-061-1/+2
|
* Created the send-key functionaeroniero332018-07-063-1/+53
|
* Implemented the email reminders in spec-checkaeroniero332018-07-061-4/+34
| | | | | | | I added a few more lines of code in `actions.py` that if `args.email` == `expiry`, it logs in to the email server using the config credentials, checks every key if they pass the days limit, finds the user's email, compiles a message that includes all necessary information and sends the message to the user's email.
* Added some util methods in keyhandleraeroniero332018-07-061-0/+42
| | | | | | | | The methods are: is_expiring that checks if a key is expiring or has recently expired set_template that reads the template file and returns it as a string generate_template that substitutes the key prints in the template find_email that extracts the correct email address from the key uid
* Added a mail script that handles the emailing proccessaeroniero332018-07-061-0/+51
| | | | I created a new file called `mail.py` that handles the email login and the email sending.
* Added --user and --email args parameters for spec-checkaeroniero332018-07-062-1/+10
| | | | | | I added 2 `args` parameters called `--email` and `--user` in `base.py` to be given to spec-check in order for the script to run. (The `--user` is optional for the user to select with which account to login)
* Created email.conf and setup the config files needed for the email remindersaeroniero332018-07-063-3/+13
| | | | | | | | Added a template_path and a commented days limit value in `gkeys.conf`. Added a 30 default value for the days limit in `config.py`. I also added another config file called `email.conf` that includes the 2 templates for email users' credentials and a preferred address ending with the default being `@gentoo` which if enabled will only send emails to these addresses.
* gkeys actions: Migrate self.category setting to _set_category()Brian Dolbec2016-12-231-8/+10
|
* gkeys actionbase: Fix trust model detection & setting in _set_trust()Brian Dolbec2016-12-231-2/+2
|
* gkeys actions: Fix missing category errors for sign actionBrian Dolbec2016-12-231-0/+2
|
* gkeys-ldap: Add missed CliBase.__init__() callBrian Dolbec2016-12-231-0/+1
|
* gkeys-ldap: Remove keychain line from update-seeds.shBrian Dolbec2016-12-231-2/+0
|
* gkeys-ldap: Add --signed to push commands in update-seeds.shBrian Dolbec2016-12-231-2/+2
|
* Actions._verify: support --signature path argumentZac Medico2016-10-271-0/+2
| | | | | | If the --signature argument refers to an existing file path, use it. This fixes an issue where signature verification would fail because the sig_path variable referred to None.