Update c301c59688d2_.py

language
This commit is contained in:
Hossein Shafagh 2020-09-23 10:17:30 -07:00 committed by GitHub
parent 1ea24e396a
commit e3fa072608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 14 deletions

View File

@ -1,21 +1,23 @@
""" """
This upgrade of database updates the key_type information for certificates This database upgrade updates the key_type information for either
that are either still valid or have expired in last 30 days. For RSA keys, still valid or expired certificates in the last 30 days. For RSA
the algorithm is determined based on the key length. For rest of the keys, keys, the algorithm is determined based on the key length. For
the certificate body is parsed to determine the exact key type information. the rest of the keys, the certificate body is parsed to determine
the exact key_type information.
Each individual change is explicitly committed. The logs are added to file Each individual DB change is explicitly committed, and the
named db_upgrade.log in current working directory. Any error encountered respective log is added to a file named db_upgrade.log in the current
while parsing a certificate will also be logged along with the certificate working directory. Any error encountered while parsing a certificate
ID. If faced any issue while running this upgrade, there is no harm in will also be logged along with the certificate ID. If faced with
re-running the upgrade. Each run processes only the keys for which key type any issue while running this upgrade, there is no harm in
information is not yet determined. re-running the upgrade. Each run processes only rows for which
key_type information is not yet determined.
A successful end to end run will end up updating the Alembic Version to new A successful complete run will end up updating the Alembic Version
Revision ID c301c59688d2. Currently only RSA and ECC certificates are supported to the new Revision ID c301c59688d2. Currently, only RSA and ECC
by Lemur. This could be a long running job depending upon the number of certificates are supported by Lemur. This could be a long-running
keys it may process. job depending upon the number of DB entries it may process.
Revision ID: c301c59688d2 Revision ID: c301c59688d2
Revises: 434c29e40511 Revises: 434c29e40511