assemblee-virtuelle / semapps

A toolbox to create semantic web applications
https://semapps.org
Apache License 2.0
86 stars 8 forks source link

Initiate the NextGraph server #1262

Open srosset81 opened 1 month ago

srosset81 commented 1 month ago

Ideally, create a Dockerfile that will bootstrap all NextGraph operations on launch. But this may be difficult as a lot of keys must be generated, and saved in .env variables. So this will probably be a two-step process: generate the keys, save them on the .env file, and then launch the server.

It would be great if the master key required to launch the server was not saved as an env variable, but was required on every launch. This would mean only the administrator who has this key can access the server and decrypt the content of the Pods.

nikoPLP commented 1 month ago

you have the option in nextgraph to not save the master key (remove the --save-key from the command line arguments). the key will be displayed in the standard output at the first launch. Then you have to pass the key at every start with the argument --key. if ngd runs in a docker, we will have to find a way to pass the key to the docker container. I am thinking of implementing a feature that will make the ngd server that lacks a key, to listen on its port (1440) and wait for the key there. and only start the rest of the server once the key is supplied. this way, an admin can connect to the server and send the key. this feature is not implemented yet on my side but i can do it.

srosset81 commented 1 month ago

I am thinking of implementing a feature that will make the ngd server that lacks a key, to listen on its port (1440) and wait for the key there. and only start the rest of the server once the key is supplied. this way, an admin can connect to the server and send the key. this feature is not implemented yet on my side but i can do it.

That would be great !