Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not try to decrypt empty wwan cipher data #4307

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

milan-zededa
Copy link
Contributor

Even when username/password credentials are not used for cellular connection, zedagent still tries to decrypt the cipher block which in this case will contain empty CipherData. This results in error block contains incomplete data being reported inside the DeviceNetworkStatus for the cellular port (in WirelessCfg). Even though EVE will not end up publishing this to the controller (because mmagent will not try to use CipherBlockStatus unless user auth is enabled), we should still fix this to avoid confusing error inside the DeviceNetworkStatus pubsub message.

Even when username/password credentials are not used for cellular
connection, zedagent still tries to decrypt the cipher block which in
this case will contain empty CipherData. This results in error
"block contains incomplete data" being reported inside the
DeviceNetworkStatus for the cellular port.  Even though EVE will not end
up publishing this to the controller (because mmagent will not try to
use CipherBlockStatus unless user auth is enabled), we should still fix
this to avoid confusing error inside the DeviceNetworkStatus pubsub message.

Signed-off-by: Milan Lenco <milan@zededa.com>
@milan-zededa milan-zededa added the bug Something isn't working label Sep 27, 2024
Copy link
Member

@uncleDecart uncleDecart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eriknordmark eriknordmark merged commit 9b584f5 into lf-edge:master Sep 30, 2024
60 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants