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

Implemented Allowed IP List Feature and Fixed a bug in Token Denylist #76

Merged
merged 1 commit into from Feb 28, 2024

Conversation

CSPF-Founder
Copy link
Contributor

  • AllowIPList Feature : Restrict access to endpoints by defining a list of allowed IP addresses
  • Fixed a bug in denylist caching: When the total number characters in the list is less than 53 characters, the denylist does not block the entry. The maxcost for ristretto's cache need to include the size of the store item. If the max cost is less(example: 50), the cache rejects the entry that is to be added. This causes the bug.

Example content of the denylist file that will cause issue:
01234567890123456789012345678901234567890123456789

@afr1ka
Copy link
Collaborator

afr1ka commented Feb 28, 2024

Thanks for the improvements!

@afr1ka afr1ka merged commit a5bfe1e into wallarm:main Feb 28, 2024
@CSPF-Founder
Copy link
Contributor Author

CSPF-Founder commented Mar 5, 2024 via email

@iwallarm
Copy link

iwallarm commented Mar 5, 2024

Please share your repo / panel with us, super interesting!

@CSPF-Founder
Copy link
Contributor Author

Hi,

@iwallarm

This is the repo containing the panel and backend management code. Do let us know if you are interested in adding it to your project/repos.

https://github.com/CSPF-Founder/api-firewall-panel

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