Skip to content

Conversation

rileyhgrant
Copy link
Contributor

@rileyhgrant rileyhgrant commented Sep 30, 2025

Related:


Overall the strategy to have a list of whitelisted IPs thats private is:

  • Store the IPs (and other details for readability) in a json file in GCS
  • Give the API kubernetes service account access to read from GCS
  • On API startup, load the IPs from the json file into memory
  • On each api call, check the IP against the array of whitelisted IPs in memory
    • Skip the rate limiting if the IP is whitelisted

Curious as to a few things:

  1. Does this approach seem reasonable?
  2. Is completely bypassing rate limiting fine? Or should we just give a more lenient rate limit to whitelisted IPs

@rileyhgrant rileyhgrant self-assigned this Sep 30, 2025
@rileyhgrant rileyhgrant force-pushed the add-whitelisted-ips branch 3 times, most recently from 7e899f9 to 5416d55 Compare September 30, 2025 21:36
@rileyhgrant rileyhgrant merged commit dc9ca20 into main Oct 2, 2025
6 checks passed
@rileyhgrant rileyhgrant deleted the add-whitelisted-ips branch October 2, 2025 18:54
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.

3 participants