Skip to content
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

Apparmor denial in version 1.28 running nginx #4267

Closed
sergiocazzolato opened this issue Oct 26, 2023 · 3 comments
Closed

Apparmor denial in version 1.28 running nginx #4267

sergiocazzolato opened this issue Oct 26, 2023 · 3 comments
Labels

Comments

@sergiocazzolato
Copy link

We run this smoke microk8s test https://github.com/snapcore/snapd/blob/master/tests/main/microk8s-smoke/task.yaml as part out the snapd validation. When using the version 1.28 we see an apparmon denial which is not expected (not happening in version 1.25)

Reproduction Steps

snap install --channel=1.28-strict/edge microk8s
microk8s status --wait-ready
microk8s kubectl run nginx --image=nginx
microk8s kubectl expose pod/nginx --name nginx-np --type NodePort --target-port 80 --port 80
microk8s kubectl patch svc nginx-np --patch '{"spec":{"ports":rage:{"port":80,"nodePort":31313}]}}'
dmesg | grep DENIED

Then I see this apparmor denial
[ 185.043591] audit: type=1400 audit(1698061446.955:204): apparmor="DENIED" operation="capable" profile="snap.microk8s.daemon-cluster-agent" pid=7284 comm="sed" capability=4 capname="fsetid"

@bschimke95
Copy link
Contributor

Hi Sergio,

Thanks for reporting this. I was able to reproduce this issue locally and will investigate this.
Does this cause any issues for the workload that you are running?

@sergiocazzolato
Copy link
Author

Currently we are testing using 1.25 but the idea is to migrate to 1.28, until then the issue is not affecting out tests.

Copy link

stale bot commented Sep 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Sep 20, 2024
@stale stale bot closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants