[object Object]

← back to Domain Sniper

migrate GoDaddy auth → Bearer PAT (TK-10 key rotation); sso-key fallback retained

4c047b517300419a73c840d96c62009b42d658a5 · 2026-07-27 20:04:22 -0700 · Steve Abrams

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 4c047b517300419a73c840d96c62009b42d658a5
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Jul 27 20:04:22 2026 -0700

    migrate GoDaddy auth → Bearer PAT (TK-10 key rotation); sso-key fallback retained
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
 honeypot-v2.js | 2 +-
 honeypot.js    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/honeypot-v2.js b/honeypot-v2.js
index e3d5e87..d71ff0b 100755
--- a/honeypot-v2.js
+++ b/honeypot-v2.js
@@ -189,7 +189,7 @@ function godaddyApi(domain) {
     https.get({
       hostname: 'api.godaddy.com',
       path: '/v1/domains/available?domain=' + encodeURIComponent(domain),
-      headers: { Authorization: `sso-key ${key}:${secret}` },
+      headers: { Authorization: process.env.GODADDY_PAT ? `Bearer ${process.env.GODADDY_PAT}` : `sso-key ${key}:${secret}` },
     }, (res) => {
       let d = ''; res.on('data', (c) => d += c);
       res.on('end', () => {
diff --git a/honeypot.js b/honeypot.js
index be2b9a7..aa810a2 100644
--- a/honeypot.js
+++ b/honeypot.js
@@ -112,7 +112,7 @@ function godaddyApi(domain) {
         {
           hostname: 'api.godaddy.com',
           path: '/v1/domains/available?domain=' + encodeURIComponent(domain),
-          headers: { Authorization: `sso-key ${key}:${secret}` },
+          headers: { Authorization: process.env.GODADDY_PAT ? `Bearer ${process.env.GODADDY_PAT}` : `sso-key ${key}:${secret}` },
         },
         (res) => {
           let d = '';

← 5ceb3e9 chore: macstudio3 migration — reconcile from mac2 + repoint  ·  back to Domain Sniper  ·  (newest)