Skip to content

Check allowed dir#1007

Merged
aphralG merged 17 commits intov3from
check-allowed-dir
Mar 20, 2025
Merged

Check allowed dir#1007
aphralG merged 17 commits intov3from
check-allowed-dir

Conversation

@aphralG
Copy link
Contributor

@aphralG aphralG commented Mar 4, 2025

Proposed changes

When parsing the config check the allowed directories for include
Change how allowed directories are checked, /etc/nginx will no longer allow /etc/nginx-agent
Removed the parsing of root dir we now ignore them

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

@aphralG aphralG self-assigned this Mar 4, 2025
@aphralG aphralG requested a review from a team as a code owner March 4, 2025 16:52
@github-actions github-actions bot added the chore Pull requests for routine tasks label Mar 4, 2025
@oCHRISo oCHRISo added the v3.x Issues and Pull Requests related to the major version v3 label Mar 6, 2025
@aphralG aphralG requested a review from sean-breen March 6, 2025 16:21
@aphralG aphralG requested review from dhurley and sean-breen March 14, 2025 14:13
@aphralG aphralG merged commit 4b7ada4 into v3 Mar 20, 2025
20 checks passed
@aphralG aphralG deleted the check-allowed-dir branch March 20, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks v3.x Issues and Pull Requests related to the major version v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants