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

Identity validation / security service #7

Open
altavir opened this issue Jun 5, 2022 · 1 comment
Open

Identity validation / security service #7

altavir opened this issue Jun 5, 2022 · 1 comment
Labels
good first issue The issue awaits its hero. Contributions are welcome

Comments

@altavir
Copy link
Member

altavir commented Jun 5, 2022

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:

  • Decide which validation algorithm to use (minimizing encoding/checking time).
  • Design a way for validation keys to be distributed. Probably there should be a service that has autorisation and stores all public keys for all registered users. So someone, who wants to check the signature, request validation service for a public key and checks that message user name corresponds to the fingerprint.
  • Obviously there should be a way to validate messages from authorisation service. I thin it should be off-loop. Just an external REST service with pre-defined address.
  • Implement basic validation implementation form MagixEndpoint.
@altavir
Copy link
Member Author

altavir commented Jun 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue The issue awaits its hero. Contributions are welcome
Projects
None yet
Development

No branches or pull requests

1 participant