Skip to content

Add NAP paths to allowed directories #1163

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

Merged
merged 14 commits into from
Jul 18, 2025
Merged

Add NAP paths to allowed directories #1163

merged 14 commits into from
Jul 18, 2025

Conversation

sean-breen
Copy link
Contributor

@sean-breen sean-breen commented Jul 11, 2025

Proposed changes

Adds the NAP config directory /etc/app-protect paths to allowed directories by default.

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

@github-actions github-actions bot added chore Pull requests for routine tasks dependencies labels Jul 11, 2025
@sean-breen sean-breen marked this pull request as ready for review July 11, 2025 14:16
@sean-breen sean-breen requested a review from a team as a code owner July 11, 2025 14:16
@sean-breen sean-breen changed the base branch from main to update-go-1.24 July 11, 2025 14:26
Base automatically changed from update-go-1.24 to main July 14, 2025 13:19
@dhurley
Copy link
Collaborator

dhurley commented Jul 15, 2025

Think you need to update the scripts/packages/preinstall.sh as well

@oCHRISo oCHRISo added the v3.x Issues and Pull Requests related to the major version v3 label Jul 16, 2025
@dhurley
Copy link
Collaborator

dhurley commented Jul 16, 2025

Sorry can you update the nginx-agent.conf as well?

@sean-breen sean-breen merged commit 6787152 into main Jul 18, 2025
25 checks passed
@sean-breen sean-breen deleted the nap-allowed-dirs branch July 18, 2025 13:57
spencerugbo pushed a commit that referenced this pull request Jul 23, 2025
* update go verion and golangci-lint

* add paths for NAP upon instance discovery

* use variable for NAP directory path

* add paths when creating NAP instance

* add nap paths by default, update agent config during upgrade

* add nap by default

* nap paths to default agent configuration

* add back log message

* only add config directory /etc/app_protect

* update preinstall.sh

* update default config

* remove blank line

---------

Co-authored-by: Aphral Griffin <a.griffin@f5.com>
Akshay2191 pushed a commit that referenced this pull request Jul 23, 2025
* update go verion and golangci-lint

* add paths for NAP upon instance discovery

* use variable for NAP directory path

* add paths when creating NAP instance

* add nap paths by default, update agent config during upgrade

* add nap by default

* nap paths to default agent configuration

* add back log message

* only add config directory /etc/app_protect

* update preinstall.sh

* update default config

* remove blank line

---------

Co-authored-by: Aphral Griffin <a.griffin@f5.com>
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 dependencies 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