How to lock Hybris to Initialize System on Production Environment
Asked Answered
H

2

5

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.

Hebner answered 17/5, 2015 at 16:20 Comment(0)
H
14

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.

Hebner answered 17/5, 2015 at 16:21 Comment(2)
Obviously, you will need to lock the system every time after deployment with this approach.Interstate
If you do it in the local.properties the settings should persist imo.Prefer
J
3

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

Judsen answered 10/4, 2018 at 11:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.