Commit Graph

3603 Commits

Author SHA1 Message Date
Kush Bavishi a97283f0a4 Fixed indentation 2019-08-07 14:23:09 -07:00
Kush Bavishi a6bf081bec Remove unused import 2019-08-07 14:08:27 -07:00
Kush Bavishi 43f5c8b34e Fixed indentation 2019-08-07 14:08:06 -07:00
Kush Bavishi cadf372f7b Removed hardcoded value from function call 2019-08-07 14:02:10 -07:00
Kush Bavishi b4f4e4dc24 Added extra check for return value to test_create_txt_record 2019-08-07 13:55:02 -07:00
Kush Bavishi fa7f71d859 Modified paginate response to dummy values 2019-08-07 13:53:10 -07:00
Kush Bavishi 3ff56fc595 Blank line removed 2019-08-07 13:42:11 -07:00
Kush Bavishi 894502644c test_wait_for_dns_change fixed! 2019-08-07 13:39:20 -07:00
Kush Bavishi 37a1b55b08 test_delete_txt_record changed to mock get_zone_name and return the value directly instead of executing the function. 2019-08-07 13:27:21 -07:00
Kush Bavishi 31c2d207a2 test_delete_txt_record fixed. Function call was missing earlier 2019-08-07 13:23:05 -07:00
Kush Bavishi 785c1ca73e test_create_txt_record modified - get_zone_name mocked to return the zone name directly, instead of actually running the function. 2019-08-07 13:20:24 -07:00
Kush Bavishi f2cbddf9e2 Unit tests for get_zone_name, get_zones 2019-08-07 13:17:16 -07:00
Kush Bavishi 6e84e1fd59 Unit Tests for create_txt_record, delete_txt_record, wait_for_dns_change 2019-08-07 13:04:38 -07:00
Hossein Shafagh ff1f73f985 fixing the plugin test to include authority 2019-08-07 12:05:36 -07:00
Hossein Shafagh bbda9b1d6f making sure to handle when no config file provided, though we do a check for that 2019-08-07 12:05:13 -07:00
Hossein Shafagh e2ea2ca4d1 providing sample config 2019-08-07 11:05:07 -07:00
Hossein Shafagh b885cdf9d0 adding multi profile name support with DigiCert plug.
This requires that the configs are a dict, with multiple entries, where the key is the name of the Authority used to issue certs with.

DIGICERT_CIS_PROFILE_NAMES = {"sha2-rsa-ecc-root": "ssl_plus"}
DIGICERT_CIS_ROOTS = {"root": "ROOT"}
DIGICERT_CIS_INTERMEDIATES = {"inter": "INTERMEDIATE_CA_CERT"}

Hence, in DB one need to add
1) the corresponding authority table, with digicert-cis-issuer. Note the names here are used to mapping in the above config
2) the corresponding intermediary in the certificate table , with root_aurhority_id set to the id of the new authority_id
2019-08-07 10:24:38 -07:00
Kush Bavishi a7c2b970b0 Unit testing Part 1 2019-08-05 14:00:22 -07:00
Hossein Shafagh ad6c38960a
Merge branch 'master' into ultradnsPlugin 2019-07-31 16:05:36 -07:00
Kush Bavishi 2903799b85 Changed string formatting from "{}".format() to f"{}" for consistency 2019-07-31 14:19:49 -07:00
Hossein Shafagh bbc3bf513d
Merge pull request #2837 from hosseinsh/moving-cronjobs-to-celery-v2
moving all cron jobs to become celery jobs
2019-07-31 14:11:25 -07:00
Hossein Shafagh e8e4f826ea updating logging format 2019-07-31 13:09:31 -07:00
Kush Bavishi 5a401b2d87 Added the Zone class and Record class to ultradns.py and removed the respective files 2019-07-31 12:04:42 -07:00
Kush Bavishi fe075dc9f5 Changed function comments to doc strings. 2019-07-31 12:00:31 -07:00
Kush Bavishi 503df999fa Updated metrics.send to send function named, followed by status, separated by a period 2019-07-31 11:32:04 -07:00
Kush Bavishi 11cd095131 Reduced the number of calls to get_public_authoritative_nameserver by using a variable 2019-07-31 11:12:28 -07:00
Kush Bavishi 3ba7fdbd49 Updated logger to log a dictionary instead of a string 2019-07-31 11:11:39 -07:00
Hossein Shafagh 0f591e9a3d
Merge branch 'master' into moving-cronjobs-to-celery-v2 2019-07-30 14:13:59 -07:00
Hossein Shafagh 6bf920e66c
Merge branch 'master' into ultradnsPlugin 2019-07-30 14:13:45 -07:00
Hossein Shafagh 0be80e156a
Merge pull request #2834 from hosseinsh/better-error-handling-dyn
metric tags, to be able to track which domains where failing during t…
2019-07-30 13:38:12 -07:00
Hossein Shafagh 7810095796
Merge branch 'master' into better-error-handling-dyn 2019-07-30 13:27:43 -07:00
Hossein Shafagh ff933ba1aa
Merge pull request #2833 from hosseinsh/redis-better-error-handling_
better error handling for redis
2019-07-30 13:27:33 -07:00
Kush Bavishi 44bc562e8b
Update ultradns.py
Minor logging changes in wait_for_dns_change
2019-07-30 13:08:16 -07:00
Hossein Shafagh 30e4f5032b
Merge branch 'master' into moving-cronjobs-to-celery-v2 2019-07-30 11:44:24 -07:00
Hossein Shafagh ffdd06ec07
Merge branch 'master' into better-error-handling-dyn 2019-07-30 11:43:56 -07:00
Hossein Shafagh bec4416185
Merge branch 'master' into redis-better-error-handling_ 2019-07-30 11:43:49 -07:00
Kush Bavishi b17da52ead Merge branch 'master' of https://github.com/kush-bavishi/lemur into ultradnsPlugin 2019-07-30 11:40:20 -07:00
Kush Bavishi 3d48b422b5 Removed TODO 2019-07-30 11:39:35 -07:00
Hossein Shafagh 0ec8fe05ea
Merge pull request #2838 from hosseinsh/fixing-makeFile
lemur is one level deep than makefile
2019-07-30 10:41:29 -07:00
Hossein Shafagh 244aa069f0 lemur is one level deep than makefile 2019-07-30 10:32:09 -07:00
Hossein Shafagh a89cbe9332 moving all cron jobs to become celery jobs 2019-07-30 09:57:15 -07:00
Kush Bavishi 3ad791e1ec Dynamically obtain the authoritative nameserver for the domain 2019-07-29 18:01:28 -07:00
Kush Bavishi e993194b4f Check ultraDNS authoritative server first. Upon success, check Googles DNS server. 2019-07-29 14:59:28 -07:00
Hossein Shafagh adabe18c90 metric tags, to be able to track which domains where failing during the LetsEncrypt domain validation 2019-07-25 18:56:28 -07:00
Hossein Shafagh 429e6a967c better error handling for redis 2019-07-25 18:49:19 -07:00
Kush Bavishi 252410c6e9 Updated TTL from 300 to 5 2019-07-22 16:00:20 -07:00
Kush Bavishi 51f3b7dde0 Added the Record class for UltraDNS 2019-07-22 14:23:40 -07:00
Kush Bavishi 0b52aa8c59 Added Zone class to handle ultradns zones 2019-07-22 11:47:48 -07:00
Hossein Shafagh 5c1bc72af8
Merge pull request #2825 from arnydo/docs_adcs
Add ADCS Plugin to Docs
2019-07-18 17:16:53 -07:00
Hossein Shafagh 41cf1335d2
Merge branch 'master' into docs_adcs 2019-07-18 17:04:09 -07:00