Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Encrypted telemetry data #96

Open
abdjiber opened this issue Nov 8, 2019 · 4 comments
Open

Encrypted telemetry data #96

abdjiber opened this issue Nov 8, 2019 · 4 comments

Comments

@abdjiber
Copy link

abdjiber commented Nov 8, 2019

Hi,

I am storing my real device data connected to iot central with a blob storage. I would like to apply AI on the data in Azure ML studio however the telemetry data are encryted. How could I decrypt them ? Or avoid the encryption ? Here is an example of what I got in the Body on my JSON's files:

"Body":"eyAJCQkJImFpcl9odW1pZGl0eSI6IDEyLCAJCQkJImFpcl90ZW1wZXJhdHVyZSI6IDMsIAkJCQkicHJlc3N1cmUiOiA1LCAJCQkJInNvaWxfaHVtaWRpdHkiOiAzLCAJCQkJIndpbmRfZGlyZWN0aW9uIjogMjEsIAkJCQkid2luZF9zcGVlZCI6IDQxLCAJCQkJImlycmlnYXRpb24iOiAwLCAJCQkJIndpbmRfZ3Vlc3QiOiAxNTksIAkJCQl9"

I noticed that the data from a simulated device are not encrypted. Could anyone help me please it's very urgent ? I search for a long time on the web and couldn't find a solution. I saw in this documentation in Security section that data from real devices are encrypted but how to decrypt them ?

@kartben
Copy link
Contributor

kartben commented Nov 9, 2019 via email

@abdjiber
Copy link
Author

abdjiber commented Nov 9, 2019

Thanks for your response. I am using the iotc python package. If I set the systemProperties = {"content-type":"application/json", "content-encoding":"utf-8"} after one message is sent the connection status become 1 and the telemetry sending stop.

@aimjarozas
Copy link

Hi, u have the same problem, this have some solutions?:
iotc.sendTelemetry("{"temp": " 20"},{"contentType":"application/json","contentEncoding":"utf-8"}): after one message is sent the connection status become 1 and the telemetry sending stop.

If I put the follow:
iotc.sendTelemetry("{"temp": " 20"},{"contentEncoding":"utf-8"})

The system put the contentEncoding in Properties, but this must to appear in "systemProperties:
{"EnqueuedTimeUtc":"2020-02-05T11:25:14.6600000Z","Properties":{"contentEncoding":"UTF-8"},"SystemProperties":{"connectionDeviceId":"c08bccb2-f98b-4970-8c23-64f4cad04778","connectionAuthMethod":"{"scope":"device","type":"sas","issuer":"iothub","acceptingIpFilterRule

Do you have some solutions?

@MikeSpark
Copy link

I don't think this thread should be closed. No matter #47684 or this one has no solution on python's iotc package, only how to encode in javascript is provided. please help on this syntax clarifcation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants