Cooldude2606
efa2b76ab0
Take the earlier first join time
2024-11-22 04:06:34 -08:00
Cooldude2606
d80385c947
Add test for user merging
2024-11-22 04:06:34 -08:00
Cooldude2606
bdf02a5ea2
Made user ids case insensitive
2024-11-22 04:06:34 -08:00
Daniel
41d76ff757
Prevent bypassing command permission with leading whitespace
2024-11-21 08:46:22 -08:00
Cooldude2606
c5841b17a0
Add tests for new config value
2024-11-21 08:46:22 -08:00
Cooldude2606
762212747e
Added factorio.enable_script_commands
2024-11-21 08:46:22 -08:00
Cooldude2606
feb09a6fe0
Update change log
2024-11-21 08:25:23 -08:00
Cooldude2606
06d9d74b67
Add default autoComplete for credential fields
2024-11-21 08:25:23 -08:00
Cooldude2606
be4c31c10f
Add new node LTS to CI
2024-11-21 08:25:23 -08:00
Cooldude2606
1556c0afdd
Enable source maps in tests
2024-11-21 08:25:23 -08:00
Cooldude2606
069f568941
Add silent test as npm command
2024-11-21 08:25:23 -08:00
Cooldude2606
c6354ded70
Merge pull request #683 from Cooldude2606/fix/winston-log-format
...
Bump winston, winston-transport, and resolve type error
2024-11-12 18:11:17 +00:00
Cooldude2606
cb29db0e45
Bump winston-transport@4.9
2024-11-12 17:15:15 +00:00
Cooldude2606
7298ef2ea7
Bump winston@3.17 and resolve type error
2024-11-12 16:46:01 +00:00
Cooldude2606
ace8356f68
Merge pull request #679 from Cooldude2606/fix/whitelist-remove
...
Fix whitelist remove command with tests. Tests check that set-banned and set-whitelist will send rcon commands to running instances and that it is case insensitive.
2024-11-01 01:29:10 +00:00
Cooldude2606
19b5c4d857
Fix whitelist command
2024-10-31 16:07:58 +00:00
Cooldude2606
f6a40baa55
Added tests for banlist/whitelist rcon commands.
...
Tests check that set-banned and set-whitelist will send rcon commands to running instances and that it is case insensitive.
2024-10-31 16:02:12 +00:00
Cooldude2606
0afbb69308
Use sync file writes and catch errors to reset state. ( #677 )
...
By using sync file writes it prevents interrupts between the state change and the server process starting. Also adding error catching to reset the state following an error writing to the files.
Fixes : #676
2024-10-29 16:50:05 +00:00
Cooldude2606
9e03c743e9
Merge pull request #678 from Cooldude2606/fix/host-user-sync
...
Fix host being unable to sync user state to instances after controller connection
2024-10-29 16:28:37 +00:00
Cooldude2606
dba2dd246e
Update change log
2024-10-29 01:15:58 +00:00
Cooldude2606
198e58c762
Allow host as src for user sync events
2024-10-29 01:03:08 +00:00
Cooldude2606
ef6861a566
Fixed host tests not checking the message was valid
2024-10-29 00:59:17 +00:00
Hornwitser
60e5ed008d
Fix unhandled promise rejection in Link tests
2024-10-28 20:15:33 +01:00
Hornwitser
3838bc6a70
Remove "instance" from ConfigLocation
...
When the config system was ported to TypeScript the "instance" location
was accidentally added to the type of available locations for access
control. This has never been a valid location as it was deemed too
complicated to work with. The correct location for instances is
"controller" and "host" as these are the locations the configs are
handled.
2024-10-28 20:15:09 +01:00
Hornwitser
a6033f4171
Merge pull request #675 from clusterio/fix-instance-update
...
Fix instance update
2024-10-28 20:14:18 +01:00
Hornwitser
6f85ec9dd6
Log files written to aid debugging
...
Log to the verbose level when a datastore file read or written to in
order to make it easier to diagnose whether the files are written or
not.
2024-10-28 20:07:34 +01:00
Cooldude2606
e0b72e568d
Mark RCON password as a credential ( #673 )
...
* Mark RCON password as a credential
* Update location name and description
* Add controller to array to avoid UB
2024-10-28 18:46:26 +00:00
Hornwitser
34da073800
Fix setting instance config fields not being saved
...
If only the config of an instance is updated the dirty flag of the
instance is not set, which results in changes being discarded when the
controller shuts down afterwards.
Fix by always triggering the update logic when an instance field is
changed.
2024-10-28 19:30:03 +01:00
Cooldude2606
300db5cbfd
Change display title for controller.external_address ( #674 )
...
* Rename controller.external_address
* Revert and correct title to avoid breaking change
* Update change log
2024-10-28 17:53:37 +00:00
Cooldude2606
c49bc07e15
Add hidden and readonly config properties ( #665 )
2024-10-27 23:02:45 +00:00
Cooldude2606
c31671d1e6
Added 2.0 zip file name to version matcher ( #671 )
...
* Added 2.0 zip file name to version matcher
Fixes: Install problem ? #668
* Add changelog entry for 671.
2024-10-27 22:53:34 +00:00
Cooldude2606
9d18d18603
Update CI to support testing of multiple factorio versions ( #672 )
...
We have plans to support the latest version and one minor previous. 2.0 will be added to CI once enough changes have been made to support it.
2024-10-27 22:24:15 +00:00
Cooldude2606
8a47fd8414
Update tests
2024-09-21 18:09:29 +01:00
Cooldude2606
49d584394d
Add security logic to readonly and object support
2024-09-21 17:41:46 +01:00
Cooldude2606
e3eb266704
Add hidden and readonly config property
2024-09-21 01:52:01 +01:00
Cooldude2606
3e6806ff0e
Merge pull request #664 from Cooldude2606/feature/role-drop-down
...
Add InputRole as a drop down selector
2024-09-21 01:22:52 +01:00
Cooldude2606
76349fa780
Merge branch 'master' into feature/role-drop-down
2024-09-21 01:06:07 +01:00
Cooldude2606
d4b0e658c3
Change log updates
2024-09-21 01:03:51 +01:00
Cooldude2606
549ec3d1e7
Add InputRole as a drop down selector
2024-09-21 01:01:36 +01:00
Hornwitser
d5f3ac0f4c
Merge pull request #663 from Hornwitser/config-credentials
...
Implement shared Factorio credentials
2024-09-19 00:42:52 +02:00
Hornwitser
a09a564358
Log where Factorio credentials taken from
...
Provide ease of diagnosing credential issues by accurately logging if
the credentials were sourced from the instance config, the host config,
the controller config, or if no credentials were found.
2024-09-18 23:41:45 +02:00
Hornwitser
f873f4b369
Add autocomplete attribute to credential fields
...
Prevent browsers from automatically autofilling the password entry box
for the Factorio credentials by setting the autocomplete property to
new-password on the password input.
2024-09-18 23:10:31 +02:00
Hornwitser
44e5847a1d
Implement shared Factorio credentials
...
Add config entries to controller and host for the Factorio username and
token to use when talking to the Factorio APIs. If set an username and
token is not set in factorio.settings then these settings are used,
making it easy to configure one set of credentials for a cluster/host.
For running more public provide your own hardware clusters, there's an
option to disable controller sharing the credential with the hosts so
that each host have to set their own credentials.
2024-09-16 23:23:21 +02:00
Hornwitser
eedf5b8f67
Credential option for config entries
...
Implement a credential option to config entries which is a list of
locations the config entry can be read from. When specified and the
option is a string field this gets rendered as a password field in the
config UI. If the credential is not readable from control the value of
the fields is cleared when the UI is refreshed.
2024-09-16 23:23:21 +02:00
Cooldude2606
77fea7e295
Fix unrelibable datastore tests ( #662 )
...
* Use incrementDateMs
* Change wait time to 15ms
* Fix loop condition
2024-09-14 17:20:52 +01:00
Hornwitser
a1c7173dd2
Merge pull request #661 from Hornwitser/windows-rework
...
Rework Factorio server stop logic
2024-09-14 18:15:19 +02:00
Cooldude2606
dfc406d025
Host shutdown on duplicate connection ( #647 )
...
* Update no-shadow lint rule for enums
https://typescript-eslint.io/rules/no-shadow/
* Add websocket close codes enum
* Pass close code and reason to event handlers
* Shutdown host on duplicate connection
* Add connection refusal
* Fix lib/link tests
* Response to comments
* Additional Tests
* Removed missed codes in close event
2024-09-14 16:39:59 +01:00
Hornwitser
10a857c4ad
Gracefully handle RCON connection dropping
...
Handle the edge cases of RCON authentication failing and RCON connection
failing during startup so that server stop still works in these cases.
2024-09-14 16:09:17 +02:00
Hornwitser
e4aeafaf14
Set a map limit to speed up integration test
2024-09-14 15:05:13 +02:00
Hornwitser
a1e7b24298
Fix lingering killed server flag
...
Fix killing the Factorio server causing the next run of it to report a
different error when it's killed by an external factor than what's
expected.
2024-09-14 15:05:13 +02:00