mfa_bind.py: real MFA+protection binder (proven -100/-101 2-state flow, vk21 E2E); auto.py: mfa_bind before DNS writes; gname_core: aqbh send-cooldown + freshness anchor; README: 4/4 domains proven

This commit is contained in:
Vlad Gothbreach
2026-10-16 00:59:34 +03:00
parent f3bfa0f7f9
commit 58cb86c0e5
4 changed files with 149 additions and 38 deletions
+4
View File
@@ -126,6 +126,10 @@ def main():
st[dom]["ns_set"] = ns
elif args.mail == "dns":
ip = os.environ.get("DNS_A_IP", "")
if os.environ.get("GNAME_UID"):
# ensure operation protection is SET (MFA + czyz[1,4]);
# without it jx_edit writes fail with -101 on fresh accounts
st[dom]["mfa_bind_rc"] = run("mfa_bind.py", "--uid", os.environ["GNAME_UID"])
a_args = ["--a", "mail=" + ip] if ip else []
t_args = ["--txt", "@=v=spf1 ip4:" + ip + " ~all"] if ip else []
run("setup_dns.py", dom, *a_args, "--mx", "@=mail." + dom + ":5", *t_args)