]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Integrate Modern HWID into content
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 12 Nov 2024 00:51:23 +0000 (01:51 +0100)
committerPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 12 Nov 2024 00:51:54 +0000 (01:51 +0100)
commit4f3db43696fbcc9144d2ad011bbb5f93f6deca7a
tree792cc653f2e6674754dd5030c799a5b776c7d0e0
parent36aceb178c855b381cb9b5868e4348fde1bedbd0
Integrate Modern HWID into content

This should be the primary changes for the future-proof "Modern HWID" system implemented into Robust and the auth server.

HWIDs in the database have been given an additional column representing their version, legacy or modern. This is implemented via an EF Core owned entity. By manually setting the column name of the main value column, we can keep DB compatibility and the migration is just adding some type columns.

This new HWID type has to be plumbed through everywhere, resulting in some breaking changes for the DB layer and such.

New bans and player records are placed with the new modern HWID. Old bans are still checked against legacy HWIDs.

Modern HWIDs are presented with a "V2-" prefix to admins, to allow distinguishing them. This is also integrated into the parsing logic for placing new bans.

There's also some code cleanup to reduce copy pasting around the place from my changes.

Requires latest engine to support ImmutableArray<byte> in NetSerializer.
34 files changed:
Content.Client/Administration/UI/BanPanel/BanPanel.xaml.cs
Content.IntegrationTests/Tests/Commands/PardonCommand.cs
Content.Server.Database/Migrations/Postgres/20241111170112_ModernHwid.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/20241111170112_ModernHwid.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/20241111193608_ConnectionTrust.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/20241111193608_ConnectionTrust.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs
Content.Server.Database/Migrations/Sqlite/20241111170107_ModernHwid.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/20241111170107_ModernHwid.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/20241111193602_ConnectionTrust.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/20241111193602_ConnectionTrust.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs
Content.Server.Database/Model.cs
Content.Server/Administration/BanList/BanListEui.cs
Content.Server/Administration/BanPanelEui.cs
Content.Server/Administration/Commands/BanListCommand.cs
Content.Server/Administration/Commands/RoleBanListCommand.cs
Content.Server/Administration/Managers/BanManager.cs
Content.Server/Administration/Managers/IBanManager.cs
Content.Server/Administration/PlayerLocator.cs
Content.Server/Administration/PlayerPanelEui.cs
Content.Server/Administration/Systems/BwoinkSystem.cs
Content.Server/Connection/ConnectionManager.cs
Content.Server/Connection/UserDataExt.cs [new file with mode: 0644]
Content.Server/Database/BanMatcher.cs
Content.Server/Database/DatabaseRecords.cs
Content.Server/Database/ServerBanDef.cs
Content.Server/Database/ServerDbBase.cs
Content.Server/Database/ServerDbManager.cs
Content.Server/Database/ServerDbPostgres.cs
Content.Server/Database/ServerDbSqlite.cs
Content.Server/Database/ServerRoleBanDef.cs
Content.Shared.Database/TypedHwid.cs [new file with mode: 0644]
Content.Shared/Administration/BanPanelEuiState.cs