FeatureFuel
1

IP of the entity that does auth, IP of entity that submits request

Source: supabase/supabase#12705 · opened by @amypgon
Hi there. When provisioning a database, could you please inject a function like auth.ip() (beside auth.uid, auth.role, auth.email) into the auth schema to achieve this: ip of the entity that does auth, ip of entity that submits request

Something along the following lines?

current_setting('request.headers', true)::json->>'x-forwarded-for'

This function could then be used when defining RLS policies

Thanks

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests