The IPFS API and Auth

Hi,
I have one question or maybe even proposition about the IPFS API: If I set up my own IPFS node, it is not recommended to open the API server to public access, for obvious reasons. But is there already an easy way to add auth to the interface? – For many applications I think it would be cool to set up a node and have the api interface available, but in a restricted way. Maybe it could be done with an nginx proxy?

2 Likes

Nginx front end proxy would be a very reasonable way to implement this! plus, if you want to, you can pick and choose which API endpoints require authentication, and allow read access to stuff like the DAG api, which can be useful in building webapps if you don’t want to or need a fallback for js-ipfs where webrtc isn’t available.