How can I integrate security with the eKuiper rule engine for REST API calls to the command service? #295
-
Hi everyone I'm new to EdgeX and using version 3.1 (Napa). My use case involves using an eKuiper rule to trigger a REST API call to the command microservice to turn on a fan when the temperature hits a certain level. I followed the documentation to create an EdgeX stream and a rule as follows.
IssueWhen creating the rule to call the EdgeX command microservice through the REST API, includes a hard coding JWT token. However, once this token expires, the API call will fail due to the invalid token. I would like to ask if there is a better approach? Or how can I refresh this JWT token? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
JWT is not hardcoded. It's retrieved from the secret store dynamically. You may ask eKuiper how to inegrate with EdgeX JWT. Run EdgeX with MQTT broker as the message bus gen the compose file with mqtt-bus arugment |
Beta Was this translation helpful? Give feedback.
It looks like the REST sink doesn't support the native EdgeX JWT integration. You should not always manually modify the JWT.
Please try the MQTT command approach.