mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
ci: reserve the storage and WAL keys of extra_env regardless of case
GreptimeDB reads its environment keys without regard to case, so a lowercase wal or storage segment must be rejected as well. Signed-off-by: jeremyhi <fengjiachun@gmail.com>
This commit is contained in:
@@ -109,7 +109,8 @@ def parse_extra_env(text: str) -> dict:
|
||||
raise ValueError(f"extra_env line is not a new K=V: {line!r}")
|
||||
env[name.strip()] = value.strip()
|
||||
for name, value in env.items():
|
||||
if not ENV_NAME.fullmatch(name) or name.startswith(RESERVED_ENV) or "\n" in value:
|
||||
# GreptimeDB matches its environment keys without regard to case.
|
||||
if not ENV_NAME.fullmatch(name) or name.upper().startswith(RESERVED_ENV) or "\n" in value:
|
||||
raise ValueError(f"extra_env may not set {name!r}")
|
||||
if name in DEPTHS:
|
||||
positive(name, value, 4096)
|
||||
|
||||
Reference in New Issue
Block a user