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

Update CT Search request #63

Merged
merged 3 commits into from
Jul 13, 2023
Merged

Conversation

king-alexander
Copy link
Collaborator

@king-alexander king-alexander commented Jun 9, 2023

πŸ—£ Description

I updated the CT Search API request to expand the new cert_der field.

πŸ’­ Motivation and context

According to the SSLMate Changelog, on January 3rd 2023 the cert object was deprecated. You now use cert_der to retrieve certificate data.

πŸ§ͺ Testing

I verified that our tasks still function as expected with the changes in place. To test, I performed a dry run and monitored progress from the Celery Flower dashboard. The summary_by_domain task returned results with cert_der expanded, and the cert_by_issuance task returned the base64 representation of the DER-encoded certificate. I stopped the dry run after approximately 10 domains had been scanned.

βœ… Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

βœ… Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

βœ… Post-merge checklist

  • Create a release.

Note: A v.1.3.4 release will not be built for these changes because the version is semantically incorrect. The v1.3.3 release targets a fix at 3cfcde5.

@king-alexander king-alexander added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use python Pull requests that update Python code labels Jun 9, 2023
@king-alexander king-alexander self-assigned this Jun 9, 2023
@jsf9k
Copy link
Member

jsf9k commented Jun 9, 2023

@king-alexander - The linter failure should go away once the current Kraken flows down to this repository.

@king-alexander king-alexander mentioned this pull request Jun 9, 2023
1 task
@king-alexander king-alexander marked this pull request as ready for review June 27, 2023 15:23
The issuance object includes a new field `cert_der` to retrieve the
DER-encoded certificate. The previous `cert` field has been deprecated.
The DER-encoded X.509 certificate data is no longer buried in a
sub-object, so we decode the result directly.
@king-alexander king-alexander force-pushed the improvement/update-search-requests branch from ed35e88 to 4952803 Compare July 13, 2023 16:01
@king-alexander king-alexander merged commit 360757f into develop Jul 13, 2023
52 checks passed
@king-alexander king-alexander deleted the improvement/update-search-requests branch July 13, 2023 16:23
king-alexander added a commit that referenced this pull request Jul 13, 2023
I bungled the version number when I merged #63. This restores Admiral's
correct version.
@king-alexander king-alexander mentioned this pull request Jul 13, 2023
8 tasks
king-alexander added a commit that referenced this pull request Jul 13, 2023
I bungled the version number when I merged #63. This restores Admiral's
correct version.
@dav3r
Copy link
Member

dav3r commented Jul 13, 2023

@king-alexander You should mention something in this PR about why version 1.3.4 will not be built after this PR was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update CT Search requests
4 participants