The Greengrass nucleus component provides functionality for device side orchestration of deployments and lifecycle management for execution of Greengrass components and applications. This includes features such as starting, stopping, and monitoring execution of components and apps, interprocess communication server for communication between components, component installation and configuration management.
Apache License 2.0
109
stars
45
forks
source link
mqttproxy: despite providing component with access controls, publishing to IoT Core fails #1640
Additional context
Publishing to IoT core succeeded once when I tried to isolate a single thing in a group and perform deployment on that group.
However, I wasn't able to tell in the end why it succeeded and trying it with other things didn't work.
Also I've verified that my greengrass token exchange role has correct permissions:
Describe the bug Despite having wildcard access controls in the component
recipe.yaml
:Trying to publish a message to IoT Core MQTT topic via greengrass v2 IPC:
Fails with the following error:
To Reproduce Not doing anything special. Just following the doc https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-iot-core-mqtt.html with a Python component that published a message to iot core topic every minute.
Expected behavior Publishing to IoT Core topic succeeds because correct permissions have been provided according to the docs: https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-iot-core-mqtt.html
Actual behavior Publishing to IoT Core topic fails with Not Authorized error despite the correct permissions being provided.
Environment
Additional context Publishing to IoT core succeeded once when I tried to isolate a single thing in a group and perform deployment on that group. However, I wasn't able to tell in the end why it succeeded and trying it with other things didn't work.
Also I've verified that my greengrass token exchange role has correct permissions: