Graph FS (https://github.com/Valentine-Mario/Graph_FS/tree/master) is a CLI tool that allows you to instantly create a GrqphQL server which can be used to query a file system securely. It can be configured in a number of ways eg using SSL, remote file system, local file system, etc. It also allows authentication and limits users to read-only
access
To use this feature, be sure to have SQLite enabled on your device or PostgreSQL DB setup
With GraphFS you can manage user accounts and privilege access using the CLI command
Eg to create a new user run the command
./graphfs_bin --manage_users add_user --acc_name val --acc_email [email protected] --acc_password 123
This command by default creates a graph_fs.db
SQLite file which tracks the user's details.
Alternatively, you can choose to use PostgreSQL with the following command.
./target/debug/graph_fs --manage_users add_user --acc_name val --acc_email [email protected] --acc_password 123 --storage psql --db_path postgres://path_to_db
Please not that for all commands that require PostgreSQL, you’ll have to add the
--storage psql --db_path postgres://path_to_db
flag
This command would create a user called val
with email [email protected]
and password 123
with both write
and read
access. To limit a user to just read access you can create them with the command
./graphfs_bin --manage_users add_user --acc_name val --acc_email [email protected] --acc_password 123 --acc_permission read
You can add as many users as you want but with unique email values. You can also update the username
, password
or access