无法在Bluemix上以FIPS模式运行node.js应用程序

时间:2016-06-02 06:08:52

标签: node.js ibm-cloud fips

即使在CF CLI上将变量FIPS_MODE设置为true,也无法运行在Bluemix环境中创建的node.js应用程序。

1 个答案:

答案 0 :(得分:2)

如果使用node.js版本6,我们需要在start命令中明确包含变量-enable-fips

例如: var data = { "log_names": ["one", "one.one", "one.two", "one.three", "one.three.one", "two", "three", "three.one", "three.one.three.two", "four.one.some.more.stuff"] }, object = {}; data.log_names.forEach(function (a) { var temp = object; a.split('.').every(function (b, i, bb) { if (b in temp) { temp = temp[b]; return true; } temp[bb.slice(i).join('.')] = {}; }); }); console.log(object);