[pve-devel] [RFC v1 pve-storage 1/2] (rfc) example: sshfs plugin: add custom storage plugin for sshfs

Fiona Ebner f.ebner at proxmox.com
Mon Mar 31 10:06:08 CEST 2025


Am 28.03.25 um 18:12 schrieb Max Carrara:
> - What would be the preferred way to allow specifying whether a
>   (custom) plugin is shared or not via our API?
> 
>   E.g. some external plugins do the following, which (I suppose)
>   wasn't originally part of the API, but is now, due it being used in
>   the wild:
> 
>     push @PVE::Storage::Plugin::SHARED_STORAGE, 'some-custom-plugin';
> 
>   Would be open for any suggestions on how to support this properly!
>   Perhaps as a flag in `plugindata()`?

Yes, could be done as a storage feature [0].

> - Should we allow custom plugins to define sensitive properties for
>   their own purposes? If so, how?
> 
>   Currently, sensitive props are hardcoded [2] which is sub-optimal,
>   but gets the job done. However, should third-party plugin authors
>   need additional / different properties, there's currently no way to
>   support this. This would perhaps also be useful for this plugin
>   here, as one could e.g. provide a path to a password file to use for
>   something like sshpass [3] or similar, but I'm not really sure about
>   this yet.
> 
> The reason why I'm bringing this up is because the upcoming guide in
> the wiki could benefit from a demonstration on how to implement /
> handle both cases. Network storages are quite common, can be shared
> among nodes in most cases, and may also require one to handle
> authentication.

See here [0][1] ;)

[0]:
https://lore.proxmox.com/pve-devel/20250321134852.103871-8-f.ebner@proxmox.com/
[1]:
https://lore.proxmox.com/pve-devel/20250321134852.103871-11-f.ebner@proxmox.com/




More information about the pve-devel mailing list