commit
This commit is contained in:
parent
0e0cfddae2
commit
8a240afeb3
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
```
|
||||
|
|
4
main.go
4
main.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue