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
Copy file name to clipboardExpand all lines: internal/config/config.go
+49-14Lines changed: 49 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -27,22 +27,33 @@ var (
27
27
InstallDirstring// "" means default (~/.stepsecurity); non-empty makes the agent put all its files (logs, hook errors, future state) under this directory. Bootstrap config.json itself stays at the legacy location. Per-run opt-out is the CLI flag --install-dir=. Resolution: --install-dir flag > STEPSECURITY_HOME env > this field > default — see internal/paths.
28
28
)
29
29
30
+
// MaxExecutionDuration is the whole-process execution-watchdog limit
31
+
// (STEPSEC_MAX_EXECUTION_DURATION). Persisted into config.json at install time
32
+
// so scheduler-fired runs (launchd/systemd/schtasks) — which invoke the binary
33
+
// directly and never inherit the loader-exported env var — resolve the same
34
+
// value the loader configured. "" means fall back to the binary's built-in
35
+
// default (4h). Declared in its own var block (not the placeholder group
36
+
// above) because it carries no build-time {{...}} placeholder. See
37
+
// telemetry.ExecutionDeadline.
38
+
varMaxExecutionDurationstring
39
+
30
40
// ConfigFile is the JSON structure persisted to ~/.stepsecurity/config.json.
0 commit comments