public static boolean verifyEnvironment ( ) { if ( ! PRODUCTION . equals ( getEnv ( ) ) ) { return true ; } else { File tokenFile = new File ( "/etc/xian/xian_runtime_production.token" ) ; if ( tokenFile . exists ( ) && tokenFile . isFile ( ) ) { String token = PlainFileUtil . readAll ( tokenFile ) ; return "cbab75c745ac9707cf75b719a76e81284abc04c0ae96e2506fd247e9a3d9ca04" . equals ( token ) ; } return false ; } }
Production safety check . Protection for production env .