LogView is currently in beta. Security updates will be provided for the following versions:
| Version | Supported |
|---|---|
| 0.x.x | ✅ |
LogView is designed with security as a core principle:
- LogView never stores credentials, API keys, or secrets
- Authentication is delegated to existing tools:
- GCP: Uses Application Default Credentials (ADC) via
gcloud auth application-default login - GKE: Uses kubeconfig from
kubectl
- GCP: Uses Application Default Credentials (ADC) via
- Application logs are written to
~/.config/logview/logview.logand never contain credentials or PII
- Directory Allowlist: LogView restricts file access to explicitly permitted directories
- Default allowed directories:
/var/log,/opt,/home - Path Traversal Prevention: Malicious paths like
../../../etc/passwdare blocked - Symlink Protection: Symlinks pointing outside allowed directories are rejected
- Configure the allowlist in
~/.config/logview/config.json:{ "discovery": { "allowed_directories": ["/var/log", "/opt/myapp/logs"] } }
- All user input is validated before constructing queries
- Log content is sanitized before display to prevent terminal escape sequence attacks
- No shell interpolation in any adapter
- LogView requests only read access to log sources
- No write permissions required
- No privileged operations performed
- Install script (
install.sh) uses HTTPS for all downloads - Two-step install method available for security review:
curl -fsSL https://raw.githubusercontent.com/agileguy/logview/main/install.sh -o install.sh less install.sh # Review the script bash install.sh - Checksum verification available for wheel packages (see README.md)
Please do not report security vulnerabilities through public GitHub issues.
If you discover a security vulnerability in LogView, please report it privately:
-
Email: Create a private security advisory on GitHub:
- Go to https://github.com/agileguy/logview/security/advisories
- Click "New draft security advisory"
- Provide details about the vulnerability
-
What to Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if you have one)
-
Response Timeline:
- Initial Response: Within 48 hours
- Status Update: Within 7 days
- Fix Timeline: Depends on severity
- Critical: Within 7 days
- High: Within 14 days
- Medium: Within 30 days
- Low: Next release
-
Disclosure Policy:
- We follow coordinated disclosure
- We will credit you in the security advisory (unless you prefer to remain anonymous)
- We will notify you before public disclosure
- We aim to release a fix before public disclosure
- Use PyPI or GitHub releases only
- Verify checksums when downloading wheel files
- Review install.sh before executing (two-step install method)
- Configure
allowed_directoriesto limit file system access - For production systems, avoid allowing access to
/home - Use least-privilege principles
- Subscribe to GitHub releases for security updates
- Run
pipx upgrade logvieworpip install --upgrade logviewregularly
- Use Application Default Credentials (ADC), never service account keys
- Follow the principle of least privilege for GCP IAM roles
- Minimum required role:
roles/logging.viewer
- Monitor
~/.config/logview/logview.logfor suspicious activity - Ensure log files don't contain sensitive information
- Be aware that default
/homeallowlist grants access to all users' files - Restrict to specific directories in production environments
LogView undergoes regular security reviews:
- Static Analysis: shellcheck for shell scripts
- Dependency Scanning: Dependabot enabled for automatic vulnerability detection
- Code Review: All pull requests require review before merge
- CI/CD Checks: Automated linting, type checking, and testing
LogView displays log content as-is from the source. Malicious log content could potentially:
- Contain terminal escape sequences (mitigated by sanitization)
- Include misleading information
- Contain large volumes of data (mitigated by filtering and limits)
When configured to access local files:
- LogView runs with the user's permissions
- Can read any file the user has access to
- Default
/homeallowlist is permissive
When using GCP/GKE adapters:
- LogView inherits the user's cloud permissions
- No additional access controls beyond IAM
- Recommend using separate service accounts with minimal permissions
Security updates will be released as:
- Patch releases for critical vulnerabilities (e.g., 0.2.1)
- GitHub Security Advisories for all security issues
- CHANGELOG.md entries with
[SECURITY]tag
Subscribe to:
- GitHub repository releases
- Security advisories at https://github.com/agileguy/logview/security/advisories
For security questions or concerns that are not vulnerability reports:
- Open a GitHub Discussion
- Email: Use GitHub security advisory (private)
Last Updated: 2024-12-14