ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16.17k stars 3.02k forks source link

HTTP gateway does not support symlinks. #4486

Open icefoxen opened 6 years ago

icefoxen commented 6 years ago

Version information: 0.4.13

Type: Enhancement

Severity: Low

Description:

The go-ipfs daemon's HTTP gateway can serve files from directories in IPFS objects. However, it does not follow symlinks. This is annoying when, for instance, trying to serve Debian package repositories that commonly use symlinks for structure and indirection.

I propose to change it to serve symlinks that do not escape the IPFS directory. I admit this is potentially a security risk.

jcaesar commented 6 years ago

Related/Duplicate? https://github.com/ipfs/go-ipfs/pull/3508