Kuiper with EdgeX security #85
-
Hi all, We are working on an EdgeX (jakarta) application where we use eKuiper rules engine to actuate a device. When a GPIO IR sensor detects a moment of person, then the kuiper send a command to a usb device to start capturing. Any suggestions on how to proceed integrating kuiper with EdgeX security services? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 36 replies
-
What do you mean by this? Kuiper --is-- integrated with EdgeX running in secure mode. Can you explain the delta between the current behavior running EdgeX in secure mode and the expected behavior? |
Beta Was this translation helpful? Give feedback.
-
You could change the log level to 'debug' to obtain more information about ekuiper's status. |
Beta Was this translation helpful? Give feedback.
-
This discussion has gone quite a long way, and I am going to throw this in, but not sure it is relevant, but: security-secretstore-setup won't generate an secure MQTT credential unless the This setting causes a The security-enabled default is |
Beta Was this translation helpful? Give feedback.
-
Note that eKuiper does run with EdgeX in Secure Mode. In jakarta, the Redis Pub/Sub is secure and EdgeX injects the MessageBus credentials for Redis Pub/Sub. MQTT MessageBus in Jakarta is not secured and eKuiper doesn't need credentials to connect. The Levski release added secure MQTT MessageBus and EdgeX injects the MessageBus credentials for the MQTT Broker. |
Beta Was this translation helpful? Give feedback.
-
As I updated in response https://github.com/orgs/edgexfoundry/discussions/85#discussioncomment-5598749, the connections you need to connect to redis directly are there, or could be made available relatively easy. Please make sure you are running a current release of EdgeX. |
Beta Was this translation helpful? Give feedback.
-
@ngjaying @bnevis-i @lenny-intel Thank you so much for your help. |
Beta Was this translation helpful? Give feedback.
Update: I added the following to security-secretstore-setup:
And to rules-engine (for the moment, not injecting the bootstrapper script):
Add curl
docker exec -ti -u root edgex-kuiper apk add curl
Get secret store token (note workaround for different uid for ekuiper container)
docker exec -ti -u 2002 edgex-kuiper cat /tmp/edgex/secrets/ekui…