js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

js-ceramic configuration should take a flag for the node secret (string or file)

Open 3benbox opened this issue 1 year ago • 2 comments

Description

Starting the js-ceramic daemon currently requires the node secret in the configuration file. The secret should be accessible from outside the configuration file for better security and easier operations.

Technical Information

Add configurations flags and/or env vars detailing where the node secret can be found.

Something like --node-secret-string=<NODE_SECRET> --node-secret-file-path=<FILE_PATH_TO_NODE_SECRET>

3benbox avatar Jul 09 '24 13:07 3benbox

Sorry @3benbox can you clarify what you mean by the "node secret"? What property from the config file are you referring to?

stbrody avatar Jul 09 '24 20:07 stbrody

Sorry @3benbox can you clarify what you mean by the "node secret"? What property from the config file are you referring to?

The node.privateSeedUrl (also, url?)

https://github.com/ceramicnetwork/js-ceramic/blob/develop/packages/cli/src/ceramic-daemon.ts#L311C9-L311C43

3benbox avatar Jul 10 '24 13:07 3benbox