Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated whitelists #23985

Merged
merged 36 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1f81797
Beginnings of making the breadmemes jobs easier
Simyon264 Jan 12, 2024
81cc771
stuff
Simyon264 Jan 12, 2024
c6c83ee
stuff pt. 2
Simyon264 Jan 12, 2024
e09cb3b
Merge remote-tracking branch 'upstream/master' into better-whitelists
Simyon264 Jan 12, 2024
2421f07
Stuff pt.3
Simyon264 Jan 12, 2024
15cc74e
Stuff I forgot last time
Simyon264 Jan 12, 2024
a538164
Basic whitelist
Simyon264 Jan 12, 2024
65ab320
Remove always deny condition in favor of just breaking if playtime ch…
Simyon264 Jan 13, 2024
cb7ab30
Change default whitelist
Simyon264 Jan 13, 2024
21c7285
localization
Simyon264 Jan 13, 2024
3e259e3
Admin check
Simyon264 Jan 13, 2024
e0c38e3
minor spelling change
Simyon264 Jan 13, 2024
2c5ee46
Fix build
Simyon264 Jan 13, 2024
ffd6ab9
Whitelist message
Simyon264 Jan 13, 2024
36b5c7a
Fix vars not being datafield and spelling mistakes
Simyon264 Jan 13, 2024
36b039e
Minor spelling mistake
Simyon264 Jan 13, 2024
e2ab192
Change config for salamander
Simyon264 Jan 13, 2024
5664e3a
Merge branch 'master' into better-whitelists
Simyon264 Mar 18, 2024
72f4dc9
Reviews and stuff
Simyon264 Mar 18, 2024
5c3c003
Add summaries
Simyon264 Mar 23, 2024
34174cf
Fix whitelists
Simyon264 Mar 24, 2024
297d56e
Forgot to add a datafield
Simyon264 Mar 24, 2024
ae855d8
Fixing stuff I guess
Simyon264 Mar 24, 2024
d8c83e9
Reuse admin remarks to reduce load when connecting.
Simyon264 Mar 24, 2024
1f6d7d7
Update log messages to be verbose instead of debug
Simyon264 Mar 26, 2024
297914c
Merge branch 'master' into better-whitelists
Simyon264 Jun 26, 2024
a1345c9
Reviews
Simyon264 Jul 5, 2024
c94c03f
whoops
Simyon264 Jul 5, 2024
b2f6e58
Explain a bit more how whitelist checking works
Simyon264 Jul 6, 2024
25b8cd4
Apply CE's review
Simyon264 Jul 6, 2024
2907daa
Append Membership to Blacklist and Whitelist conditions
Simyon264 Jul 6, 2024
3cff3a3
Merge branch 'master' into better-whitelists
PJB3005 Aug 27, 2024
b0211d7
Fix review comments
PJB3005 Aug 27, 2024
3bfdcd7
Uncapitalize playerConnectionWhitelist, add to ignored client prototypes
PJB3005 Aug 27, 2024
af1526f
Make note count field work
Simyon264 Aug 27, 2024
46e0d13
Fix cvar for thingy
Simyon264 Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Content.Server.Database.Migrations.Postgres
{
/// <inheritdoc />
public partial class Blacklist : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "blacklist",
columns: table => new
{
user_id = table.Column<Guid>(type: "uuid", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_blacklist", x => x.user_id);
});
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "blacklist");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,20 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("assigned_user_id", (string)null);
});

modelBuilder.Entity("Content.Server.Database.Blacklist",
b =>
{
b.Property<Guid>("UserId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("user_id");

b.HasKey("UserId")
.HasName("PK_blacklist");

b.ToTable("blacklist", (string) null);
});

modelBuilder.Entity("Content.Server.Database.BanTemplate", b =>
{
b.Property<int>("Id")
Expand Down
Loading
Loading