Make secure thrift work for node.js services
Make secure thrift work for node.js services

Summary:
Secure thrift was not working for node.js services because KRB5_CONFIG
environment variable was not being set properly.
It is set in ServiceFrameowrk for cpp services and in BaseController for py
services. See https://phabricator.fb.com/D1584999.

This diff sets the environment variable in ThriftServer.js for node.js services.

Test Plan:
Deployed a local service: fbconfig jsservice/node && fbmake
opt
_build/opt/jsservice/node/JSService.jsar --port=8700

Tested it with:
fbconfig -r experimental/andreib/clients/; fbmake opt
_bin/experimental/andreib/clients/test_client -tier=jsservice.node.dev.sandeepkk
-thrift_security=required

Reviewed By: andrei.bajenov@fb.com

Subscribers: sandeep, andreib, alandau, bmatheny, mshneer, yfeldblum

FB internal diff: D1947534

Tasks: 6498695

Signature: t1:1947534:1427412838:fb6ad35ff72728d8b4f087dfeea1dc609933c3f3

SergeyMakarenko/fbthrift,guker/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,HankFaan/fbthrift,chjp2046/fbthrift,chjp2046/fbthrift,soumith/fbthrift,maxwell-demon/fbthrift,chjp2046/fbthrift,fengshao0907/fbthrift,LinusU/fbthrift,soumith/fbthrift,facebook/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,sinjar666/fbthrift,guker/fbthrift,chjp2046/fbthrift,getyourguide/fbthrift,maxwell-demon/fbthrift,project-zerus/fbthrift,facebook/fbthrift,HankFaan/fbthrift,SergeyMakarenko/fbthrift,sinjar666/fbthrift,sinjar666/fbthrift,HankFaan/fbthrift,Orvid/fbthrift,chjp2046/fbthrift,soumith/fbthrift,sinjar666/fbthrift,SergeyMakarenko/fbthrift,HankFaan/fbthrift,maxwell-demon/fbthrift,maxwell-demon/fbthrift,fengshao0907/fbthrift,fengshao0907/fbthrift,project-zerus/fbthrift,kangkot/fbthrift,sinjar666/fbthrift,Orvid/fbthrift,raphaelamorim/fbthrift,guker/fbthrift,getyourguide/fbthrift,Orvid/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,guker/fbthrift,LinusU/fbthrift,raphaelamorim/fbthrift,facebook/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,maxwell-demon/fbthrift,LinusU/fbthrift,raphaelamorim/fbthrift,soumith/fbthrift,sinjar666/fbthrift,SergeyMakarenko/fbthrift,fengshao0907/fbthrift,getyourguide/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,facebook/fbthrift,maxwell-demon/fbthrift,guker/fbthrift,fengshao0907/fbthrift,getyourguide/fbthrift,Orvid/fbthrift,chjp2046/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,fengshao0907/fbthrift,soumith/fbthrift,HankFaan/fbthrift,kangkot/fbthrift,HankFaan/fbthrift,project-zerus/fbthrift,kangkot/fbthrift,SergeyMakarenko/fbthrift,sinjar666/fbthrift,kangkot/fbthrift,LinusU/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,raphaelamorim/fbthrift,guker/fbthrift,Orvid/fbthrift,fengshao0907/fbthrift,HankFaan/fbthrift,facebook/fbthrift,facebook/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,facebook/fbthrift,Orvid/fbthrift,project-zerus/fbthrift,sinjar666/fbthrift,guker/fbthrift,chjp2046/fbthrift,LinusU/fbthrift,LinusU/fbthrift,SergeyMakarenko/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,project-zerus/fbthrift,maxwell-demon/fbthrift,maxwell-demon/fbthrift,raphaelamorim/fbthrift,LinusU/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,soumith/fbthrift,kangkot/fbthrift,facebook/fbthrift,soumith/fbthrift,Orvid/fbthrift,Orvid/fbthrift,sinjar666/fbthrift,project-zerus/fbthrift,fengshao0907/fbthrift,maxwell-demon/fbthrift,maxwell-demon/fbthrift,kangkot/fbthrift,getyourguide/fbthrift,raphaelamorim/fbthrift,kangkot/fbthrift,facebook/fbthrift,fengshao0907/fbthrift,kangkot/fbthrift,kangkot/fbthrift,LinusU/fbthrift,HankFaan/fbthrift,project-zerus/fbthrift,Orvid/fbthrift,Orvid/fbthrift,chjp2046/fbthrift,chjp2046/fbthrift,project-zerus/fbthrift,HankFaan/fbthrift,fengshao0907/fbthrift,SergeyMakarenko/fbthrift,HankFaan/fbthrift,guker/fbthrift,fengshao0907/fbthrift,sinjar666/fbthrift,SergeyMakarenko/fbthrift,chjp2046/fbthrift,soumith/fbthrift,guker/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,sinjar666/fbthrift,maxwell-demon/fbthrift,getyourguide/fbthrift,HankFaan/fbthrift,guker/fbthrift,raphaelamorim/fbthrift,raphaelamorim/fbthrift,chjp2046/fbthrift,Orvid/fbthrift,guker/fbthrift,raphaelamorim/fbthrift