Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to lock Hybris to Initialize System on Production Environment

Is there any way to lock Hybris by Initializing System accidentally on Production Environment. It is too risky if some one mistakenly click on initialize button.

like image 208
Free-Minded Avatar asked May 17 '15 16:05

Free-Minded


Video Answer


2 Answers

We can use this setting in our local.properties on the production system to avoid the running system from being initialized accidentally from the administration page:

system.unlocking.disabled=true

Hybris highly recommend to use this setting once you have your system up and running.

like image 163
Free-Minded Avatar answered Jan 03 '23 17:01

Free-Minded


As I answered here, let me tell other ways to achieve this.

Lock the system initialization using properties

To lock the system for initialization and update add the unlocking (system.unlocking.disabled=true) properties to your local.properties file and rebuild your system.

Block/Redirect URL from the web server

If you have a web server in place for admin console, You can block or redirect /hac/platform/initURL to some dummy URL(/hac/platform/NOinit) from the web server itself. Do the google for your web server configuration for the same.

Change request mapping in Hybris HAC(Not recommend):

HAC request mapping is done by defaultHacConfiguration.json file. You can change the request mapping itself.

{
    "path" : "/NOinit",
    "label" : "initialization",
    "skipPrefix" : false
  }

Refer the detailed post here

like image 20
HybrisHelp Avatar answered Jan 03 '23 17:01

HybrisHelp