This commit is contained in:
firebadnofire 2025-05-16 18:22:35 +00:00
parent 0e0cfddae2
commit 8a240afeb3
Signed by: firebadnofire
SSH key fingerprint: SHA256:bnN1TGRauJN84CxL1IZ/2uHNvJualwYkFjOKaaOilJE
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@
* Accepts input from STDIN or a file
* Outputs to STDOUT or a specified output file
* Uses `$HOME/.blocked_words.txt` as a pattern file for matching sensitive strings
* Enforces strict file permissions on the config file (`0700` only)
* Enforces strict file permissions on the config file (`0600` only)
* Supports custom redaction strings (e.g. `redaction: <string>`)
* Ignores comment lines beginning with `#` in both input and config
@ -61,7 +61,7 @@ chmod 700 ~/.blocked_words.txt
1. Clone and build:
```sh
git clone https://your.git.repo/logdebarker.git
git clone https://codeberg.org/firebadnofire/logdebarker.git
cd logdebarker
go build -o logdebarker
```

View file

@ -24,8 +24,8 @@ func checkBlockedWordsFilePerm(path string) {
}
mode := info.Mode().Perm()
if mode != 0o700 {
log.Fatalf("Permission on %s must be 700, found %o", path, mode)
if mode != 0o600 {
log.Fatalf("Permission on %s must be 600, found %o", path, mode)
}
}