Locking down Settings?

Get help with installation and configuration of OWS. Please post specific bug reports, pull requests, or source code extensions on github.
javaapp
Posts: 39
Joined: 20 May 2020, 18:34

Locking down Settings?

Post by javaapp »

Is there any facility for restricting the user's ability to make changes in the OpenWebstart Settings?

OpenWebstart will be deployed in a customer location; installed by system administrators. It is OK for these admins to have full control over the settings. The end-users, however, should be limited in what they can do in the Settings -- perhaps only allowing such action as enabling debug logging, etc.

Is this currently possible with OpenWebStart? If not, is it doable in a future release?

Stephan Classen
Posts: 185
Joined: 27 Mar 2020, 09:55

Re: Locking down Settings?

Post by Stephan Classen »

Hi

The settings are stored in a property file in the user home.
But there is the possibility to configure system settings which take precedence over the user settings.
Also in the system settings an entry can be locked. This prevents the user from changing such an entry.

Here is a starting point: https://github.com/karakun/OpenWebStart ... figuration

Please ask if you have more questions

javaapp
Posts: 39
Joined: 20 May 2020, 18:34

Re: Locking down Settings?

Post by javaapp »

Thanks for the speedy reply! The ability to define properties centrally and to lock them down sounds like just what we needed!

Our client will need to perform/script the step of creating the %windir%\Sun\Java\deployment\deployment.config file right? And then also to create the actual properties file referred to by that deployment.config - though that sounds like a simple file copy of a pre-created properties file, or perhaps that file can be installed centrally in a shared directory on the network?

John

Stephan Classen
Posts: 185
Joined: 27 Mar 2020, 09:55

Re: Locking down Settings?

Post by Stephan Classen »

Both files are simple text files. So yes you can pre-create them and simply copy them over to every machine.
OWS does not provide any scripts or other features to setup the needed files for a system wide configuration.
We found that most of our customers already have some means for rolling out configurations on their computer.

The URL in the deployment.config file can point to a property file hosted on a server.
This gives the additional advantage that there is a single property file to update in case that the settings need to be changed

javaapp
Posts: 39
Joined: 20 May 2020, 18:34

Re: Locking down Settings?

Post by javaapp »

And I assume these files are proper java properties files, so we can use # comments in them?

Stephan Classen
Posts: 185
Joined: 27 Mar 2020, 09:55

Re: Locking down Settings?

Post by Stephan Classen »

Yes, all files are read using the method Properties.load()

Post Reply