SciProgCentre / controls-kt

Lightweight SCADA device servers and integrations in Kotlin-Multiplatform
Apache License 2.0
24 stars 3 forks source link

Identity validation / security service #7

Open altavir opened 2 years ago

altavir commented 2 years ago

Add a service to provide validation for messages. We have an open system so it is possible to add new devices and users dynamically. The problem is that since messaging protocol (in Magix) is open, it is possible for malicious user to send a fake message to a device.

The idea is to add a fingerprint field to a message, containing kind of checksum for the payload. The fingerprint should be unique to a payload and user so it is possible to identify that a message indeed is sent by given user.

The task is the following:

altavir commented 2 years ago

Additional complication could come from the fact that different implementations could have different rules about text representation for JSON