Skip to content

Fix logrotate permissions#1770

Open
karensantana wants to merge 3 commits into
mainfrom
fix-logrotate-permissions
Open

Fix logrotate permissions#1770
karensantana wants to merge 3 commits into
mainfrom
fix-logrotate-permissions

Conversation

@karensantana

Copy link
Copy Markdown
Contributor

Proposed changes

When logrotate runs (through systemd timer or manually), it ignores /etc/logrotate.d/nginx-agent because its permissions are 0664 (group-writable) instead of 0644. This PR fixes this behavior by setting the permissions of the logrotate config file to 644.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@karensantana karensantana requested a review from a team as a code owner June 30, 2026 15:45
@github-actions github-actions Bot added bug Something isn't working dependencies labels Jun 30, 2026
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.85%. Comparing base (afadb67) to head (242c90e).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1770      +/-   ##
==========================================
+ Coverage   84.83%   84.85%   +0.01%     
==========================================
  Files         105      105              
  Lines       13656    13658       +2     
==========================================
+ Hits        11585    11589       +4     
+ Misses       1548     1544       -4     
- Partials      523      525       +2     

see 3 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afadb67...242c90e. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants