-
Notifications
You must be signed in to change notification settings - Fork 43
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
Добавить аутентификацию / Add authentication #1
Comments
Реализовано.
Done.
|
Т.к. RPC-сервис предполагает доступ к персональным и финансовым данным, критически важным является предоставление пользователю механизмов аутентификации клиентов сервиса.
ZeroMQ поддерживает, помимо никакой, два вида аутентификации:
Есть ещё механизм GSSAPI -- он был добавлен в более поздних версиях ZeroMQ и имплементирован не во всех языковых обвязках ZeroMQ.
Для работы с CURVE библиотеке ZeroMQ нужна библиотека
libsodium
. В поставке бинарных файлов для Windows находятся библиотеки, не имеющие связи сlibsodium
. К тому же, крайняя версия ZeroMQ там ограничивается 4.0.4, в которой всё ещё присутствует баг, при котором при использовании PLAIN-аутентификации клиент автоматически переоткрывает соединение при неудачной попытке аутентификации (см. zeromq/libzmq#882 -- исправлено в 4.1.0).Таким образом, необходимо собрать крайнюю стабильную версию библиотеки ZeroMQ под Windows, слинкованную с
libsodium
, и внедрить её в проект.As the RPC-service is meant to give access to personal and financial data, it is of critical importance to give the user some authentication mechanisms.
ZeroMQ supports two types of authentication (aside from none):
There's another one called GSSAPI -- it was added in the later versions of ZeroMQ and haven't yet been implemented in many ZeroMQ language bindings.
To support CURVE ZeroMQ needs a library named
libsodium
. The binary files package for Windows consists of binaries that are not linked withlibsodium
. Besides, the ZeroMQ library in those packages has the version up to 4.0.4 in which there's still a bug when using the PLAIN authentication: the client automatically reopens the connection after a failed authentication attempt (see zeromq/libzmq#882 -- it was fixed in 4.1.0).Thus, we need to build the last stable version of ZeroMQ on Windows linked against
libsodium
and integrate it into the project.The text was updated successfully, but these errors were encountered: