[object Object]

← back to Wallco Ai

draft_corey_letter.py: env-first George auth (GMAIL_BASIC_AUTH_B64) — drop hardcoded base64 credential

546e9b4695a09af95efc25b222d2d8eb9c50097c · 2026-06-02 09:23:55 -0700 · Steve Abrams

Files touched

Diff

commit 546e9b4695a09af95efc25b222d2d8eb9c50097c
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Tue Jun 2 09:23:55 2026 -0700

    draft_corey_letter.py: env-first George auth (GMAIL_BASIC_AUTH_B64) — drop hardcoded base64 credential
---
 scripts/draft_corey_letter.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/draft_corey_letter.py b/scripts/draft_corey_letter.py
index 7c332bc..e6d59d2 100644
--- a/scripts/draft_corey_letter.py
+++ b/scripts/draft_corey_letter.py
@@ -6,12 +6,13 @@ Compose a Gmail draft to Corey with 6 wallco.ai design suggestions.
 - POSTs to George /api/drafts on Mac1 (steve@designerwallcoverings.com)
 - Leaves To: blank — Steve picks Corey in Gmail before sending
 """
-import base64, io, json, subprocess, urllib.request
+import base64, io, json, os, subprocess, urllib.request
 from pathlib import Path
 from PIL import Image
 
 GEORGE = 'http://100.107.67.67:9850'
-AUTH = 'YWRtaW46STNZdXNpc2RFU1VOZHh0cm1sYjNRSmV1OXE4T0RLSk8='
+# George basic-auth — env-first; set GMAIL_BASIC_AUTH_B64 (see secrets-manager/.env)
+AUTH = os.environ['GMAIL_BASIC_AUTH_B64']
 
 def psql_json(sql):
     r = subprocess.run(['psql','dw_unified','-At','-q'], input=sql, capture_output=True, text=True, check=True, timeout=10)

← d6068de needs-tif admin: count disk truth (findTifOnDisk), not PG ti  ·  back to Wallco Ai  ·  PDP customizer: hide dragged module from hit-test so reorder 9cf3206 →