fix(deploy): align vector bootstrap identity policy

This commit is contained in:
2026-07-12 02:04:57 +02:00
parent 144acf2093
commit 1145ae20bc
11 changed files with 114 additions and 26 deletions
+3 -3
View File
@@ -12,9 +12,9 @@ from psycopg2 import sql
def read_secret(path: str) -> str:
value = Path(path).read_text().rstrip("\r\n")
if not value or "\x00" in value:
raise ValueError("secret must be non-empty and contain no NUL bytes")
value = Path(path).read_text()
if not value or "\x00" in value or any(character.isspace() for character in value):
raise ValueError("secret must be non-empty and contain no whitespace or NUL bytes")
return value