You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseRuntimeError('Environment variable needs to be a string with = or dict and non-empty. We do not allow the feature of forwarding variables from the host OS!')
labels_check_errors.append(f"- key '{label_key}' has wrong format. Only ^[A-Za-z_]+[A-Za-z0-9_.]*$ is allowed - Maybe consider using --allow-unsafe or --skip-unsafe")
995
+
996
+
# Check the value of the environment var
997
+
# We only forbid long values (>1024), every character is allowed.
998
+
# The value is directly passed to the container and is not evaluated on the host system, so there is no security related reason to forbid special characters.
999
+
ifnotself._allow_unsafeandlen(label_value) >1024:
1000
+
ifself._skip_unsafe:
1001
+
print(TerminalColors.WARNING, arrows(f"Found label value with size {len(label_value)} (max allowed length is 1024) - Skipping label '{label_value}'"), TerminalColors.ENDC)
1002
+
continue
1003
+
labels_check_errors.append(f"- value of label '{label_key}' is too long {len(label_key)} (max allowed length is 1024) - Maybe consider using --allow-unsafe or --skip-unsafe")
0 commit comments