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
{{ message }}
Repository navigation
Commit 08138ca
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(policy): drop unreachable sensitive-logging redaction check (#113993)
The policy/data-handling-redaction-disabled check could never emit a finding:
scanPolicyDataHandling records the sensitiveLoggingRedaction evidence with a
hardcoded value true, and the finding builder only fired on value !== true.
Redaction is unconditional in src/logging/redact.ts, which hardcodes tools mode
and reads only redactPatterns, so no config can turn it off.
Delete the check, its finding builder, check id, and the validateOnly fix class
that existed solely for it. Keep the public
dataHandling.sensitiveLogging.requireRedaction policy key: it is a policy.jsonc
contract, it still drives openclaw policy compare baseline strictness, and its
shape stays validated.
Make the key's satisfied status explicit instead of silent: the policy rule
declares satisfiedByInvariant pointing at the evidence source policy state
records (oc://openclaw.invariant/logging/redaction), which openclaw policy check
emits in dataHandling evidence and the attestation. A metadata test asserts every
rule names either its checks or its invariant, never both and never neither, and
that policy state actually emits the declared source.
Also drop the stale logging.redactSensitive entry from the policy config coverage
manifest; that config key is retired.
|`dataHandling.sensitiveLogging.requireRedaction`|Sensitive log redaction, which is always on | Set to `true` to record the requirement; OpenClaw always satisfies it. |
414
+
|`dataHandling.sensitiveLogging.requireRedaction`|Runtime invariant `oc://openclaw.invariant/logging/redaction`| Set to `true` to record the requirement; OpenClaw always satisfies it. |
415
415
|`dataHandling.telemetry.denyContentCapture`|`diagnostics.otel.captureContent`| Set to `true` to reject telemetry content capture. |
416
416
|`dataHandling.retention.requireSessionMaintenance`|`session.maintenance.mode`| Set to `true` to require effective session maintenance mode `enforce`. |
417
417
|`dataHandling.memory.denySessionTranscriptIndexing`|`memory.qmd.sessions.enabled`, `memory.search.experimental.sessionMemory`, and per-agent overrides | Set to `true` to reject session transcript indexing into memory. |
@@ -845,7 +845,6 @@ the interval.
845
845
|`policy/sandbox-container-runtime-socket-mount`| A container-backed sandbox or browser mount exposes the container runtime socket. |
846
846
|`policy/sandbox-container-unconfined-profile`| Container sandbox profile is unconfined when policy denies it. |
847
847
|`policy/sandbox-browser-cdp-source-range-missing`| Sandbox browser CDP source range is missing when policy requires one. |
848
-
|`policy/data-handling-redaction-disabled`| Sensitive logging redaction is disabled when policy requires it. |
849
848
|`policy/data-handling-telemetry-content-capture`| Telemetry content capture is enabled when policy denies it. |
850
849
|`policy/data-handling-session-retention-not-enforced`| Session retention maintenance is not enforced when policy requires it. |
851
850
|`policy/data-handling-session-transcript-memory-enabled`| Session transcript memory indexing is enabled when policy denies it. |
@@ -1013,8 +1012,13 @@ Scoped elevated-tools repairs are detect-only. Scoped data-handling repairs are
1013
1012
also skipped when the finding reports shared telemetry config, because changing
1014
1013
the shared setting would affect more than the scoped policy target.
1015
1014
1016
-
`dataHandling.sensitiveLogging.requireRedaction` has no repair. Sensitive log
1017
-
redaction is unconditional, so the check only validates the policy declaration.
1015
+
`dataHandling.sensitiveLogging.requireRedaction` has no check and no repair.
1016
+
Sensitive log redaction is unconditional in OpenClaw, so nothing can report it
1017
+
as disabled. The key stays a supported policy rule: `openclaw policy` validates
1018
+
its shape, `openclaw policy compare` still requires a candidate policy to be at
1019
+
least as strict as the baseline for it, and `openclaw policy check` records the
1020
+
runtime invariant `oc://openclaw.invariant/logging/redaction` in the
1021
+
`dataHandling` evidence and attestation as proof the requirement is satisfied.
1018
1022
1019
1023
Scoped required-deny repairs are skipped when the finding reports inherited
1020
1024
root `tools.deny`, because adding the required tool to root config would affect
0 commit comments