To prevent editing and unauthorized access to DashBoard panels, the locking feature can be employed. It offers the flexibility to lock the entire panel or specific parts of it. However, it's worth noting that even when locked, users can view the password when they open the panel with a text editor like Notepad. For a more robust solution that prevents viewing the source code, the encryption feature in DashBoard can be applied.
Steps to lock the entire panel:
- Locking the entire panel involves creating an <abs> container with zero margins on all sides. This container serves as a lock screen, initially set to be invisible, effectively blocking access to the actual panel.
<abs bottom="0" id="lockout" left="0" right="0" style="bg#00000084;" top="0" visible="false">
- You can create a task to verify the entered password. If the password is correct, you can use the ogscript.hide method to hide the <abs> container, granting access to the panel. Conversely, if the password is incorrect, you can use the ogscript.reveal method to display the lock screen again.
<task tasktype="ogscript">
if (params.getValue("Password",0) == "DashBoard")
{
ogscript.hide('lockout');
}
else {
ogscript.rename("wrongpassword", "Wrong Password, please try again");
}
</task>
Steps to lock a portion of a panel:
- Locking a specific part of a panel involves creating another <abs> container with margins tailored to cover the intended portion. This container acts as a lock screen, initially set to be invisible.
<abs bottom="-4" height="160" right="196" width="520">
- Similarly, you can create a task to check the entered password. If correct, use ogscript.hide to make the <abs> container invisible and grant access. If incorrect, use ogscript.reveal to restore the lock screen.
<task tasktype="ogscript">
if (params.getValue("Password",0) == "DashBoard")
{
ogscript.hide('lockout_topright');
}
else {
ogscript.rename("wrongpassword", "Wrong Password, please try again");
}
</task>
Steps to encrypt the panel:
- To encrypt the entire panel, use the "encrypt" attribute in the parent <abs> container, specifying the encryption method, such as "SimpleEncrypt."
- For the encryption to work, you must utilize the "editlock" attribute and set the desired password within it, like so: editlock="password".
<abs contexttype="opengear" editlock="password" encrypt="SimpleEncrypt" gridsize="20">
These instructions enable you to secure your DashBoard panels. Additionally, you can also use RPM’s Role-Based Access Control to prevent unauthorized users from accessing parameters in any devices under DashBoard’s control.
An attached panel demonstrates these features in action.
#DashBoard
------------------------------
Altaz Daruwala
Ross Video
------------------------------