Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logmonitor: docs: add security advisory for config file #196

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions LogMonitor/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Log File Monitoring](#log-file-monitoring)
- [Process Monitoring](#process-monitoring)
- [Log Format Customization](#log-format-customization)
- [Security Advisory for Config File](#security-advisory-for-config-file)

## Sample Config File

Expand Down Expand Up @@ -478,3 +479,18 @@ For example:
}
}
```

## Security Advisory for Config File

For extra security for cases where you have low privilege users for your container,
you can restrict modification for the config file to only administrators. You
can do this by running this in the container or adding it in your _dockerfile_.

```powershell
# update the path if not using default
icacls C:/LogMonitor/LogMonitorConfig.json /grant Administrators:F /deny Users:W
```

This grants full access (`F`) to `Administrators` group and denies Write (`W`)
permission to the `Users` group, which includes standard users (such as
`ContainerUser` in the container).