My deploy hook command is rejected with "Command blocked at runtime: contains dangerous shell metacharacters" — what's allowed? #180
-
|
I tried to save a deploy hook like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Deploy hooks run on the CertMate host with the privileges of the CertMate process. A naïve Blocked patterns (rejected with
Blocked references (rejected with Allowed.
Running multi-step commands. Two clean options:
Migration note. If you upgraded from v2.3.x to v2.4.0+ and an existing hook stopped working at runtime even though it saved fine on the older version, the runtime validator now catches it. Switch to the script approach above. |
Beta Was this translation helpful? Give feedback.
Deploy hooks run on the CertMate host with the privileges of the CertMate process. A naïve
shell=Truewould mean that anyone who can write to the settings (any admin / valid bearer token) can run arbitrary code on the host. v2.4.0 tightened the validator after a security review; v2.4.1 relaxed one specific allowance ($CERTMATE_*env var substitution). The current rules live inmodules/core/deployer.pyand apply at save time and at runtime.Blocked patterns (rejected with
contains dangerous shell metacharacters). The regex blocks:` `(backticks)$(…)${…}$CERTMATE_*, see below)&&,||;