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

support allowlist during registration #105

Merged
merged 6 commits into from
Feb 8, 2024
Merged

support allowlist during registration #105

merged 6 commits into from
Feb 8, 2024

Conversation

lindgrenj6
Copy link
Contributor

@lindgrenj6 lindgrenj6 commented Feb 5, 2024

API looks like this:

  • GET /v1/allowlist lists all blocks that are allowed to register for the current org_admin
  • POST /v1/allowlist allowlists a block of IPs, {"ip_block": "1.2.3.4/32"}, can only be done by org admins
  • DELETE /v1/allowlist?block={address} removes an IP from the allowlist, only org admins again

The registration create handler now checks the allowlist for the x-forwarded-for header before letting the registration go through.

@lindgrenj6 lindgrenj6 force-pushed the allowlist_ips branch 2 times, most recently from 1bf992f to e6fc7b6 Compare February 5, 2024 18:13
@lindgrenj6 lindgrenj6 force-pushed the allowlist_ips branch 2 times, most recently from 43159c6 to 9850107 Compare February 7, 2024 16:58
@lindgrenj6 lindgrenj6 requested a review from lphiri February 8, 2024 21:22
Copy link

@lphiri lphiri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lindgrenj6 lindgrenj6 merged commit bbfcc1b into master Feb 8, 2024
5 of 6 checks passed
@lindgrenj6 lindgrenj6 deleted the allowlist_ips branch February 8, 2024 22:47
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.

2 participants