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.
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.

- 5,322
- 6
- 50
- 93
-
Obviously, you will need to lock the system every time after deployment with this approach. – Nirmal Mangal Dec 10 '15 at 01:11
-
If you do it in the local.properties the settings should persist imo. – mish Oct 27 '16 at 06:51
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

- 5,518
- 2
- 27
- 65