Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

JS Function and Plan Passwords

Open Proteusiq opened this issue 1 year ago • 1 comments

Is there a way to pass secrets in non-visible way. What we have now

const HOST = 'host;
const USER = 'user';
const PASSWORD = 'visiablepassword:(';
const DATABASE = 'db_name';
const TABLE = 'table_name';

//console.log(`========== User: ${USER}, DATABASE: ${DATABASE} =====`);
// console.log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
// console.log(process.env);  // output {} as process.env is not included
// console.log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");

I would like to be able to do something like

const HOST = process.env.DATABSE_HOST;
const USER = process.env.DATABSE_USER;
const PASSWORD = process.env.DATABSE_PASSWORD;
const DATABASE = process.env.ECO_HOTEL_DATABASE;
const TABLE = process.env.ECO_HOTEL_TABEL;

Is there a way to pass the envs?

Proteusiq avatar Jan 15 '24 09:01 Proteusiq

we'll soon bring vars to custom JS function, stay tuned! https://docs.flowiseai.com/using-flowise/variables

HenryHengZJ avatar Jan 16 '24 17:01 HenryHengZJ