keyshade icon indicating copy to clipboard operation
keyshade copied to clipboard

IP Blacklisting on workspaces

Open rajdip-b opened this issue 1 year ago • 7 comments

Description

Add a feature that will enforce security of the workspaces by blocking users from accessing it if their IP addresses are in the blacklist. We would support both IPv4 and IPv6 address blacklisting. Workspace administrators would be able to update the blacklist of the workspaces.

Solution

  • Update the workspace schema to hold a list of blacklisted IP addresses
  • Create a guard that will run only if: the user is authenticated, they are trying to access a workspace or related resources. If the user's IP address is blacklisted, we don't allow them to access it by throwing an unauthorized exception

rajdip-b avatar Feb 08 '24 16:02 rajdip-b