From 3019acb9c1f77995cb05eb7c1a0ba3da9392f667 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 25 Sep 2026 18:26:11 -0700 Subject: [PATCH] Keep Classic service GM account outside managed bot account prefix --- deploy/classic/prepare-auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/classic/prepare-auth.py b/deploy/classic/prepare-auth.py index 9d1488a..eedae10 100644 --- a/deploy/classic/prepare-auth.py +++ b/deploy/classic/prepare-auth.py @@ -14,7 +14,10 @@ def main(root): account_file=root/'classic-gm-credentials.json' if account_file.exists():gm=json.loads(account_file.read_text()) else: - gm={'username':'AZCLASSICGM','password':secrets.token_hex(8)} + gm={'username':'AZAIADMIN','password':secrets.token_hex(8)} + account_file.write_text(json.dumps(gm));account_file.chmod(0o600) + if gm['username'].startswith('AZCLASSIC'): + gm['username']='AZAIADMIN' account_file.write_text(json.dumps(gm));account_file.chmod(0o600) salt=secrets.token_bytes(32) digest=hashlib.sha1((gm['username'].upper()+':'+gm['password'].upper()).encode()).digest()