-
released this
2025-01-26 09:18:48 +01:00 | 5 commits to main since this releaseHMAC File Server – Release v2.6
What’s New
-
Configurable Filenaming
- Added support for
filenaming=None
to skip the default HMAC-based renaming. - Allows users to keep the original filename instead of hashing, while preserving all HMAC authentication for security.
- Added support for
-
Enhanced Logging
- Improved log level usage (
info
,warn
,error
,debug
) across the login flow and file handling operations. - Added more structured fields (e.g.,
method
,remote
,url
) for easier log analysis. - Better security defaults to avoid exposing sensitive data in logs.
- Improved log level usage (
-
Prometheus Metrics Adjustments
- Refined counters, gauges, and histograms to cover all critical events (upload/download, dedup, ClamAV scanning).
- Ensured consistent increments for success/failure paths.
- Simplified registration to avoid double-registration issues.
-
Deduplication Improvements
- Confirmed that after moving a file to the dedup directory, a hard link is consistently created back to the original location.
- Logs now clearly indicate successful dedup steps and any errors.
-
Worker Pool Enhancements
- Better dynamic scaling logs (e.g., “Added worker. Total workers: X”).
- Ensures no duplicate or redundant worker creation.
- Additional metrics for worker adjustments and re-adjustments.
Bug Fixes
-
Resolved “File Not Found” During GET
- Clarified that when
filenaming=None
, the server does not rename files to HMAC paths, preventing mismatches between upload and download URLs. - Fixed potential race conditions in dedup moving vs. linking.
- Clarified that when
-
Reduced Log Noise
- Eliminated repetitive or misleading error messages around networking events.
- Improved clarity in ClamAV scanning logs to better distinguish scan failures vs. actual malware detections.
Upgrade Notes
- Config File:
- Check your
[server]
section forfilenaming
. If you previously relied on HMAC-based filenames, confirm whether you want to setfilenaming="HMAC"
explicitly.
- Check your
- Metrics:
- If you track Prometheus data, your dashboards may need to be updated for any renamed metrics or new labels.
- Logging:
- Logging defaults remain at
info
level. Increase todebug
only for troubleshooting to avoid excessive detail in production logs.
- Logging defaults remain at
Thank you to everyone who contributed feedback and testing for this release! As always, please report any issues, and we welcome suggestions to further improve the HMAC File Server. Enjoy the streamlined filenames, more comprehensive logging, and robust Prometheus metrics!
-