feat: initialize panel access before linking Minecraft accounts

Configure connection and storage before creating or resuming the one-time Owner login. Remove Minecraft prerequisites from setup and preserve established login credentials.

Let staff preview and confirm roles from configured authentication sources using the existing account-link storage and game UUID mapping. Retain in-game code proof for players, add client-version and lobby guidance, and support NodePort passkey origins.
This commit is contained in:
Lemon-miaow committed 2026-10-04 03:05:05 +08:00
1 parent 75845d8f58
commit efbbe27629
59 files changed
+1702 -1564

No files matched your search

+9
View File
@@ -331,6 +331,15 @@ func TestAPIService_NodePort(t *testing.T) {
p.PanelNodePort = 30445
svc := apiService(p)
dep := APIDeployment(p)
foundPort := false
for _, env := range dep.Spec.Template.Spec.Containers[0].Env {
if env.Name == "FELIS_PANEL_NODEPORT" {
foundPort = env.Value == "30445"
}
}
if !foundPort {
t.Fatal("API passkey origins do not know the Service's public NodePort")
}
if svc.Name != SAAPI || svc.Namespace != p.ControlNamespace {
t.Errorf("api Service = %s/%s, want %s/%s", svc.Namespace, svc.Name, p.ControlNamespace, SAAPI)