Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add digicert source plugin #4703

Merged
merged 6 commits into from
Nov 28, 2023
Merged

Conversation

pinmarva
Copy link
Contributor

Added Digicert source plugin

lemur/plugins/lemur_digicert/plugin.py Show resolved Hide resolved
lemur/plugins/lemur_digicert/plugin.py Outdated Show resolved Hide resolved
search_url = f"{base_url}/services/v2/order/certificate"

certs = []
offset = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use len(certs) instead of offset? I'm concerned that the API may return less than the limit. In this case, the source plugin would skip over some certs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"offset" is needed in the Digicert API:
https://dev.digicert.com/en/certcentral-apis/services-api.html

offset -> Index of the first result to return.

The condition to exit from the loop is:

if offset >= data["page"]["total"]:

Then no certificate would skip over

@coveralls
Copy link

coveralls commented Nov 15, 2023

Coverage Status

coverage: 75.449% (+0.007%) from 75.442%
when pulling de78d67 on pinmarva:digicert_source_plugin
into 022173c on Netflix:main.

auto-merge was automatically disabled November 27, 2023 20:43

Pull Request is not mergeable

@jmcrawford45 jmcrawford45 merged commit a3d19df into Netflix:main Nov 28, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants