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 DynamoDB support #15

Open
johnweland opened this issue Dec 16, 2020 · 1 comment
Open

Add DynamoDB support #15

johnweland opened this issue Dec 16, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@johnweland
Copy link
Owner

Add AWS DynamoDB support.

Schedule a function to loop over the (Firehol blocklist-ipsets)[https://github.com/firehol/blocklist-ipsets], extract the ip addresses as we are already doing in the current ipcheck function. Then compare those IP addresses and their corresponding file as key:value pairs in DynamoDB.

Update ipcheck function to query DynamoDB to check if the IP exists there rather than the Firehol repository directly.

@johnweland johnweland self-assigned this Dec 16, 2020
@johnweland johnweland added the enhancement New feature or request label Dec 16, 2020
@johnweland
Copy link
Owner Author

johnweland commented Dec 16, 2020

  • Create a function to write to DynamoDB

    • Function should be scheduled to run ever X hours.
    • Function should compare existing data so as not to duplicate entries.
    • Function should store ip address and ipset file as key:value pairs.
  • Create a function to read from DynamoDB

    • Function should take an optional parameter as a query.
    • If no query is passed, return all data.
    • If an query parameter is passed (ip) find only that ip and its ipset.
    • If no match is found return null.

@johnweland johnweland added this to the DynamoDB integration milestone Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant