This commit changes the up-to-date services default to "public": false in their service definition files, so if people copy them by default they will not accidentally expose their services to people outside their org. The examples published to the IBM org must be public, so I also changed the exchangePublish.sh script to make the examples "public": true right before they are published. The approach is described in more detail here.
Tested by:
Cloning the examples repo into /tmp/open-horizon (where exchangePublish.sh also pulls in the repo`)
Updating the up-to-date (ie everything except wiotp examples) services there to be "public": false
Running ./exchangePublish.sh -c myorg
Checking all services listed under hzn exchange service list IBM/ had "public": true.
Partially addresses #356
This commit changes the up-to-date services default to
"public": false
in their service definition files, so if people copy them by default they will not accidentally expose their services to people outside their org. The examples published to the IBM org must be public, so I also changed theexchangePublish.sh
script to make the examples"public": true
right before they are published. The approach is described in more detail here.Tested by:
examples
repo into/tmp/open-horizon
(whereexchangePublish.sh
also pulls in the repo`)wiotp
examples) services there to be"public": false
./exchangePublish.sh -c myorg
hzn exchange service list IBM/
had"public": true
.Signed-off-by: Clement Ng clementdng@gmail.com