sich icon indicating copy to clipboard operation
sich copied to clipboard

xkeys, xadmin, xecho

Open gurland opened this issue 7 years ago • 1 comments

What are those modules? How to use it or how to work with it? In current release I'm getting this traceback:

2018.08.27 13:46:06 | info  | xkeys      | disabled
2018.08.27 13:46:06 | info  | xadmin     | disabled
2018.08.27 13:46:06 | info  | xecho      | listening at udp:0.0.0.0:31523
2018.08.27 13:46:06 | info  | sich       | listening at tcp:0.0.0.0:31523

gurland avatar Aug 27 '18 12:08 gurland

xkeys: Checks if a key, received on user authentication, is valid. On startup, it is trying to read file "keys.store":

  • if the file is not found, then the key validation is disabled.
  • if the file exists, it must contain a list of keys:
-- content of keys.store
return {
	"some-secret-key",
	"another-secret-key",
}

or a lua function that checks if a given key is valid:

-- content of keys.store
return function (key)
	if key == "some-secret-key" then
		return true
	else
		return false
	end
end

One of these keys must be typed in the cossacks-3 authentication form for successful login.

xadmin: Implements a telnet admin console. Can be enabled in config.store:

-- content of config.store
return {
	admin = {
		host = "127.0.0.1",
		port = 12345,
	},
}

There is no authorization, so better to restrict access only to a localhost. To connect, open a terminal and execute telnet 127.0.0.1 12345. When connected, type help to see the list of available commands.

xecho: Simple UDP server, replying back to incoming broadcast requests. Used by tools/c3servers.wlua to find Sich servers in the local network. Enabled by default, to disable add echo = false into config.

3skcassoc avatar Aug 28 '18 13:08 3skcassoc