Create ASM-sync endpoint and scan CRASM-2437 #831
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗣 Description
Create an endpoint that pulls recent changes to the ASM sync asset data (Ips and Subdomains)
Create a scan to be run on the LZ to pull the changes from the DMZ
Implement checksums to validate data passed successfully without man in the middle attacks
💭 Motivation and context
We want to keep the LZ and DMZ asset data in sync between the two databases
🧪 Testing
xfd_api/tests/test_dmz_sync.py contains a set of tests to validate endpoint is functioning as envisioned
Also ran tests in a local environment with two Mini data lakes stood up to test the full flow of data from DMZ to LZ.
✅ Pre-approval checklist
in code comments.
to reflect the changes in this PR.