dumbpipe icon indicating copy to clipboard operation
dumbpipe copied to clipboard

feat: optionally limit access to nodes listed in authorized_keys file

Open Frando opened this issue 5 months ago • 2 comments

Allows to limit access to a dumbpipe server to nodes listed in an authorized_keys file.

Quoting from the new section in the README:

You can limit access to a dumbpipe listener through a keys file, similar to the authorized_keys file that SSH uses. You can put the file wherever you want, e.g. at ~/.dumbpipe/authorized_keys. For the file to be used, and thus access to be limited, specify the file path with the --authorized-keys (or -a) when launching dumbpipe. When authorization is set, only connections from nodes listed in the file will be accepted.

Here's an example file:

# dumbpipe authorized nodes
148449487b53bb90382927634114457ef90d2a63127200fd8816a8dffb9d48c6 some-server
3827f5124d03d10f2f344d319a88c64c198c4db1335560ea6aad41ce2fb7c311 devbox

The file must contain a list of hex-encoded node ids, seperated by newlines. The node ids may be followed by a comment, separated by a space from the encoded node id. Lines starting with # are ignored and can be used as comments.

Frando avatar Jul 07 '25 07:07 Frando

implemented based on cli flags, it is less state. https://github.com/maan2003/dumbpipe/commit/f22fc7e1136105e3a2e0802f62f2079fec957ad2

maan2003 avatar Jul 07 '25 08:07 maan2003

Given that dumbpipe is supposed to be a very simple and lightweight tool, I am in favour of using just CLI args for this. Adding a file with an associated file format feels a bit heavy.

rklaehn avatar Jul 28 '25 11:07 rklaehn