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

Whitelist IP checks #169

Open
r0wdy1 opened this issue Apr 11, 2023 · 0 comments
Open

Whitelist IP checks #169

r0wdy1 opened this issue Apr 11, 2023 · 0 comments

Comments

@r0wdy1
Copy link

r0wdy1 commented Apr 11, 2023

  1. Add a predefined env variable for whitelist invite code (32 bytes random bytes as hex)
  2. When processing a request from /transactions endpoint check X-Auth-WL header. Compare the value with whitelist invite code
    1. if equal bypass geo IP checks
    2. else continue as usual
  3. Add a service to check invite code at endpoint GET /wl/${wlInviteCode}, which returns 200 if wlInviteCode == env.whiteListInviteCode else 404
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

No branches or pull requests

1 participant