cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMonitor Security/Credentials critical issues

acv_atr
Associate III

Hi everyone.

I'm trying to secure STM32CubeMonitor Editor and UI as defined to Node-RED, but is not possible secure STM32CubeMonitor.

After define a user and password at settings.js (even only for STM32 CubeMonitor) the editor and UI breaks and are simply useless.

0693W00000KdjWjQAJ.png 

0693W00000KdjVcQAJ.png 

0693W00000KdjXFQAZ.pngThis is a critical issue nowadays, not been able to secure a webserver that can be exposed to remote access, to provide REST API's and so on...

Tested STM32CubeMonitor v1.3.0

In other hand, this features works perfectly on native Node-RED instances.

There is a known workaround to secure STM32CubeMonitor editor and UI with user-password login?

1 ACCEPTED SOLUTION

Accepted Solutions
stephane.legargeant
ST Employee

Hi @Andrea cavani​ 

The release 1.5.0 is online. It should be possible now to secure the editor properly.

Please, let us know if it is ok with the new version.

Please note: In the default setting.js, the remote access is now disabled by default.

Best regards

Stephane

View solution in original post

10 REPLIES 10
acv_atr
Associate III

Hello everyone.

There are some possibility of getting an answer from STMicroelectronics people?

Anyone has facing this issue or have this need?

Thanks for your time and attention

acv_atr
Associate III

Hello to everyone.

Does anyone know a wrokaround to this critical issue?

Thanks for your attention.

Best regards

Richard.Chvr
ST Employee

Hello @_acv_atr​ 

I tried using user and password at settings.js for both STM32CubeMonitor-1.3.0 and newly published 1.4.0 and didn't face any issue such as the one you mentioned (see attached settings.js). Can you detail your environment and the modification you made.

// Securing Node-RED
    // -----------------
    // To password protect the Node-RED editor and admin API, the following
    // property can be used. See http://nodered.org/docs/security.html for details.
    adminAuth: {
         type: "credentials",
         users: [{
             username: "admin",
             password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",
             permissions: "*"
         }],
         default: {
             permissions: "read"
         }
     },

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
acv_atr
Associate III

Hello @Richard.Chvr​ 

Going in more detail:

OP: Ubuntu 20.04 desktop

CubeMonitor: v1.3.0

user: admin

password: admin_1234#

FLow: default from ST, after fresh installation

0693W00000LwQ4sQAF.pngEditor asking for password as expected:

0693W00000LwQ57QAF.png 

Editor stuck after enter correct password:0693W00000LwQ5HQAV.png 

Node-RED UI not working properly after correct login0693W00000LwQ5gQAF.png 

Please consider flow and settings on attachment.

If you need further details, let me know.

Thank you

Richard.Chvr
ST Employee

@_acv_atr​ 

Thank for these details, I've tested this configuration on my ubuntu machine (I previously successfully tested it on windows) and I confirm the issue you face. Will investigate and come back to you.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ACava.1
Associate II

@Richard.Chvr​ 

Any news or update about this subject?

Thanks for your support.

ACava.1
Associate II

Hello @Richard.Chvr​ .

There is any update or workaround regarding this critical issue?

Thank your for your attention

Richard.Chvr
ST Employee

Hi @Community member​ 

Problem have been submitted to dev team. Still waiting for feedback .

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Richard.Chvr
ST Employee

Hi @Andrea cavani​ 

Issue should be corrected in next release 1.5.0 that will come soon.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.