Description:
To enhance security and control over TCP commands, a permissions system should be implemented within the StageLightningControl plugin. This system would restrict access to specific commands, such as starting and stopping the TCP server or controlling SmartSwitch entities.
Potential Approaches:
-
OwnerPlayer Restriction:
- Only allow the
_tcpOwnerPlayer who initiated the TCP connection to execute certain commands.
-
Oxide Permissions System:
- Integrate with the Oxide permissions system to create permission levels for different commands. This would allow server administrators to manage access control dynamically through Oxide.
-
Secret Key Authentication:
- Implement a secret key or token within the plugin. The client must provide this token to execute specific commands over TCP.
Benefits:
- Enhanced security by limiting command execution to authorized users.
- Flexibility in managing access through multiple approaches.
Implementing one or more of these approaches will provide better control and ensure that only trusted individuals can manage TCP connections and SmartSwitch commands.
Description:
To enhance security and control over TCP commands, a permissions system should be implemented within the
StageLightningControlplugin. This system would restrict access to specific commands, such as starting and stopping the TCP server or controlling SmartSwitch entities.Potential Approaches:
OwnerPlayer Restriction:
_tcpOwnerPlayerwho initiated the TCP connection to execute certain commands.Oxide Permissions System:
Secret Key Authentication:
Benefits:
Implementing one or more of these approaches will provide better control and ensure that only trusted individuals can manage TCP connections and SmartSwitch commands.