keyshade
keyshade copied to clipboard
IP Blacklisting on workspaces
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