Commit Graph

1364 Commits

Author SHA1 Message Date
Cyril Dangerville 7f821abfef Fixed invalid JSON payloads (making API requests fail in particular) (#1522) 2018-08-07 07:46:59 -07:00
Marti Raudsepp 1edb964da9 Delete dead code in unit tests (#1510) 2018-08-07 07:46:59 -07:00
Marti Raudsepp 400bcaf085 Add .pytest_cache dir to .gitignore (#1512) 2018-08-07 07:46:58 -07:00
Curtis Castrapel 583bbee606 remove debug print 2018-08-07 07:46:58 -07:00
Curtis Castrapel 7463d47057 Support LetsEncrypt accounts 2018-08-07 07:46:58 -07:00
Mike Grima 46cd1a21f7 Proper flask_restful boolean parsing.
This is documented here: https://github.com/flask-restful/flask-restful/issues/488
2018-08-07 07:46:58 -07:00
Curtis Castrapel 82c7530b6f fix deletion 2018-08-07 07:46:58 -07:00
Curtis Castrapel 6d8217e00f requirements 2018-08-07 07:46:58 -07:00
Curtis Castrapel cc735e9b33 Error logging 2018-08-07 07:46:58 -07:00
Curtis Castrapel 19753632a9 Show and send error for pending certs 2018-08-07 07:46:58 -07:00
Curtis Castrapel a3e1d08ba2 Adding pessimistic sqlalchemy disconnection handling 2018-08-07 07:46:58 -07:00
Curtis Castrapel 5e34287530 no bare except 2018-08-07 07:46:57 -07:00
Curtis Castrapel dd7c9e3f88 Explicit capture exception during create failure 2018-08-07 07:46:57 -07:00
Curtis Castrapel d8652fad36 Unpinning requests 2018-08-07 07:46:57 -07:00
Curtis Castrapel 58ec0bab09 updated requirements 2018-08-07 07:46:57 -07:00
Marti Raudsepp 094b2fd5a9 Clean up module imports
Example:
* import lemur.common.utils -> from lemur.common import utils
* import sqlalchemy.types as types -> from sqlalchemy import types
2018-08-07 07:46:57 -07:00
Marti Raudsepp 85285b5e62 Cache parsed certificate instead of re-parsing for each field
Use @cached_property decorator to cache the results of parse_certificate().

This significantly cuts down on the number of times certs need to be
parsed for a list view.
2018-08-07 07:46:57 -07:00
Curtis Castrapel 16dc7dc2f6 no bare except 2018-08-07 07:46:57 -07:00
Curtis Castrapel f53067ab29 Explicit capture exception during create failure 2018-08-07 07:46:56 -07:00
Curtis Castrapel efd33db69d Unpinning requests 2018-08-07 07:46:56 -07:00
Steven Reiling 5b13032aec Adds an optional interval variable to notification service's
create_default_expiration_notifications and introduces a new optional
configuration variable, LEMUR_SECURITY_TEAM_EMAIL_INTERVALS, to allow admins
control over the centralized email notification defaults.
2018-08-07 07:46:56 -07:00
Curtis Castrapel 177208f9da updated requirements 2018-08-07 07:46:56 -07:00
Marti Raudsepp b8d017418a Clean up module imports
Example:
* import lemur.common.utils -> from lemur.common import utils
* import sqlalchemy.types as types -> from sqlalchemy import types
2018-08-07 07:46:56 -07:00
Marti Raudsepp ce6e64bd17 Cache parsed certificate instead of re-parsing for each field
Use @cached_property decorator to cache the results of parse_certificate().

This significantly cuts down on the number of times certs need to be
parsed for a list view.
2018-08-07 07:46:56 -07:00
root 6ce044806b initial commit 2018-08-07 07:46:56 -07:00
Justin P 68203436e0 Sinful Use of `$`
Using the `$` sign within any block of text already marked as a code block is a grievous sin due to the fact that it makes it 100% pointless for you to have USED THE CODE BLOCK IN THE FIRST PLACE!

The `$` becomes included in the text we're trying to highlight for us to be able to actually use in our own projects.

Why post the info if you don't want us to use it.

Thank you.
2018-08-07 07:46:55 -07:00
Curtis Castrapel 4f4be51ac8 Merge remote-tracking branch 'upstream/master' 2018-07-12 11:21:31 -07:00
Marti Raudsepp 149caa5602 Clean up module imports
Example:
* import lemur.common.utils -> from lemur.common import utils
* import sqlalchemy.types as types -> from sqlalchemy import types
2018-07-12 11:21:18 -07:00
Marti Raudsepp b472e5e648 Cache parsed certificate instead of re-parsing for each field
Use @cached_property decorator to cache the results of parse_certificate().

This significantly cuts down on the number of times certs need to be
parsed for a list view.
2018-07-12 11:21:18 -07:00
Marti Raudsepp 64132ba92b Expose certificate dateCreated via API 2018-07-12 11:21:18 -07:00
Curtis Castrapel 9ef356f59d reformat code (noop) 2018-07-12 11:21:17 -07:00
Curtis Castrapel 825844107e updates 2018-07-12 11:21:17 -07:00
Curtis 5b70504144
Merge pull request #1395 from intgr/import-police
Clean up module imports
2018-07-09 10:13:08 -07:00
Marti Raudsepp 0398c6e723 Clean up module imports
Example:
* import lemur.common.utils -> from lemur.common import utils
* import sqlalchemy.types as types -> from sqlalchemy import types
2018-07-07 23:56:23 +03:00
Curtis c568e41296
Merge pull request #1388 from intgr/cache-parsed-cert
Cache parsed certificate instead of re-parsing for each field
2018-07-06 09:40:40 -07:00
Marti Raudsepp d690ea32bc Cache parsed certificate instead of re-parsing for each field
Use @cached_property decorator to cache the results of parse_certificate().

This significantly cuts down on the number of times certs need to be
parsed for a list view.
2018-07-03 17:31:44 +03:00
Curtis 48c378127f
Merge pull request #1394 from intgr/date-created
Expose certificate dateCreated via API
2018-07-02 13:12:22 -07:00
Marti Raudsepp 50846eb682 Expose certificate dateCreated via API 2018-07-02 18:24:18 +03:00
Curtis 5c0cc69d22
Merge pull request #1409 from castrapel/up-reqs-6292018
reformat code (noop)
2018-06-29 15:39:05 -07:00
Curtis 74d9fa58be
Merge branch 'master' into up-reqs-6292018 2018-06-29 15:28:21 -07:00
Curtis Castrapel 1a02740b67 reformat code (noop) 2018-06-29 15:24:31 -07:00
Curtis acd473683e
Merge pull request #1408 from castrapel/update-reqs
Update reqs
2018-06-29 14:14:02 -07:00
Curtis Castrapel 090619151e updates 2018-06-29 14:03:45 -07:00
Curtis Castrapel 846027b9e3 Merge remote-tracking branch 'upstream/master' 2018-06-28 13:51:23 -07:00
Curtis Castrapel f9539cfba5 tests 2018-06-28 11:12:55 -07:00
Curtis Castrapel 9375862ee2 lint 2018-06-28 11:12:55 -07:00
Curtis Castrapel 4818cc4eb9 lint 2018-06-28 11:12:55 -07:00
Curtis Castrapel 65461d7418 Update requirements 2018-06-28 11:12:55 -07:00
Curtis Castrapel ad73abced1 Support concurrent issuance in Route53 for LetsEncrypt 2018-06-28 11:12:55 -07:00
Doppins 261b024bf4 Upgrade dependency boto3 to ==1.7.39 2018-06-28 11:12:54 -07:00