Setting allowList dynamically from data base

Hi!

I'm running node-red using docker. On node-red starting, I would like to set the settings.externalModules.palette.allowList using values from a data base.

For now, i use the storageModule. In the exported module, I use init to make an api call and
then modify the settings fed into the module.

What is the "correct" or best way to go about doing this?

A couple of things to check first.

  1. You realise that changing the Node-RED settings from within Node-RED is dangerous right?
  2. Do you realise that you have to restart Node-RED to pick up the changed settings?