fix: expose office Dex secret to deployment
Homelab Main / validate (push) Waiting to run Details
Homelab Main / running-update (push) Blocked by required conditions Details
Homelab Main / debian-ops (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-10-22 09:35:49 -06:00
parent ccca1af004
commit 92a1d0352e
1 changed files with 2 additions and 1 deletions

View File

@ -327,12 +327,13 @@ required = [
"DEX_USER_ID",
"DEX_USER_PASSWORD",
]
optional = ["DEX_OFFICE_CLIENT_SECRET"]
missing = [key for key in required if not values.get(key)]
if missing:
print(f"Missing Dex secret keys: {', '.join(missing)}", file=sys.stderr)
sys.exit(1)
for key in required:
for key in required + [key for key in optional if values.get(key)]:
value = str(values[key])
if "\n" in value or "\r" in value:
print(f"Secret value for {key} cannot contain a newline", file=sys.stderr)