Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Hello world with a secret

This example teaches you how to develop an Open Horizon service that uses secrets. Secrets ensure that login credentials and other sensitive information are kept secure.

Before you begin

Complete the prerequisite steps in Preparing to create an edge service. As a result, these environment variables should be set, these commands should be installed, and these files should exist:

which git jq make
ls ~/.hzn/keys/service.private.key ~/.hzn/keys/service.public.pem
cat /etc/default/horizon


This example is part of the Open Horizon open-source project. Follow the steps in Creating Your Own Hello Secret Service and then return here.

What to do next

Further reading