Merge pull request #2219 from tgstation/TestThatSigningKeyIsShared

Test token signing key is shared between swarm servers
This commit is contained in:
Jordan Dominion
2025-04-27 12:39:43 -04:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -639,7 +639,7 @@ Bots have a set of built-in commands that can be triggered via `!tgs`, mentionin
All files in game code deployments are considered transient by default, meaning when new code is deployed, changes will be lost. Static files allow you to specify which files and folders stick around throughout all deployments.
The `StaticFiles` folder contains 3 root folders which cannot be deleted and operate under special rules
The `Configuration` folder contains 3 root folders which cannot be deleted and operate under special rules
- `CodeModifications`
- `EventScripts`
- `GameStaticFiles`
@@ -922,6 +922,12 @@ namespace Tgstation.Server.Tests.Live
await using var node1Client = await CreateAdminClient(node1.ApiUrl, cancellationToken);
await using var node2Client = await CreateAdminClient(node2.ApiUrl, cancellationToken);
// test a token signed from any one node will work on another
var token = node2Client.RestClient.Token;
var testNode1Client = restClientFactory.CreateFromToken(node1.ApiUrl, token);
await testNode1Client.ServerInformation(cancellationToken);
var controllerInfo = await controllerClient.RestClient.ServerInformation(cancellationToken);
async Task WaitForSwarmServerUpdate(IRestServerClient client, int currentServerCount)