mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 23:24:52 +09:00
Add users, roles and permissions and rework the authentication to use separate user and slave tokens for control and slave connections respectively. Add commands for listing permissions, roles and users, and creating, editing and deleting roles and users.
27 lines
1.1 KiB
Markdown
27 lines
1.1 KiB
Markdown
Save Patching
|
|
-------------
|
|
|
|
In order to efficiently get data in and out of running Factorio servers
|
|
and to provide custom interfaces Clusterio uses save
|
|
patching<sup>[1]</sup> to add code to the game. The save patching is
|
|
based on the built in
|
|
[event_handler](https://github.com/wube/factorio-data/blob/master/core/lualib/event_handler.lua)
|
|
library to Factorio and requires scenarios to be coded specifically for
|
|
it. Mods on the other hand work without modifications.
|
|
|
|
<sub>1: Before version 2.0 of Clusterio this was done at runtime
|
|
with a patcher called Hotpatch, but due to the difficulty in supporting
|
|
run time patching and the lack of documentation it was replace it with
|
|
save patching instead.</sub>
|
|
|
|
|
|
User Accounts
|
|
-------------
|
|
|
|
The master server creates and stores accounts for all Factorio users
|
|
that log into instances under its control. These accounts are used to
|
|
store per player data and authorize management of the cluster. By
|
|
default users accounts are assigned a Player role that gives a limited
|
|
read access to the cluster resources, and admins of the cluster can be
|
|
assigned an Admin role to get access to manage it.
|