Skip to content

Commit 474a107

Browse files
authored
docs(no-log-password): point out the opt-in nature of the rule
1 parent 51cf2dd commit 474a107

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ansiblelint/rules/no_log_password.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Always set the `no_log: true` attribute to protect sensitive data.
66
While most Ansible modules mask sensitive data, using secrets inside a loop can result in those secrets being logged.
77
Explicitly adding `no_log: true` prevents accidentally exposing secrets.
88

9+
This is an opt-in rule.
10+
You must enable it in your Ansible-lint configuration as follows:
11+
12+
```yaml
13+
enable_list:
14+
- no-log-password
15+
```
16+
917
## Problematic Code
1018
1119
```yaml

0 commit comments

Comments
 (0)