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

Test KubeArmor on AWS Graviton #1063

Closed
3 tasks done
Ankurk99 opened this issue Jan 25, 2023 · 14 comments · Fixed by #1112
Closed
3 tasks done

Test KubeArmor on AWS Graviton #1063

Ankurk99 opened this issue Jan 25, 2023 · 14 comments · Fixed by #1112
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Ankurk99
Copy link
Member

Ankurk99 commented Jan 25, 2023

Feature Request

Short Description
We already support KubeArmor on ARM based processors (tested on Raspberry Pi 4, M1). The aim of this issue is to test and confirm KubeArmor working on AWS ARM based processor - Graviton.

  • enforcement supported? What is the LSM used?
  • Audit/Observability supported
  • Paste the output of karmor probe

Ref: https://aws.amazon.com/ec2/graviton/

@Ankurk99 Ankurk99 added the enhancement New feature or request label Jan 25, 2023
@Ankurk99 Ankurk99 self-assigned this Jan 25, 2023
@nyrahul nyrahul added the good first issue Good for newcomers label Jan 26, 2023
@HariVamsiK
Copy link
Contributor

Hello @Ankurk99 I'll work on this issue. Please assign it to me.

@Ankurk99 Ankurk99 assigned HariVamsiK and unassigned Ankurk99 Jan 26, 2023
@Ankurk99
Copy link
Member Author

Hey @HariVamsiK, if you need any assistance in setting up the cluster or if you want access to AWS Graviton, feel free to ask.

@HariVamsiK
Copy link
Contributor

Yeah sure. Thanks @Ankurk99

@Ankurk99
Copy link
Member Author

Ankurk99 commented Feb 1, 2023

Hey @HariVamsiK, were you able to setup the cluster?

@HariVamsiK
Copy link
Contributor

Did it yesterday..My AWS account was having some issues. I'm yet to test it.

@HariVamsiK
Copy link
Contributor

1

I have used Graviton instance(t4g.small) with Ubuntu 22.04 arm64 as the image. Deployed K3s and probed it.

@HariVamsiK
Copy link
Contributor

@Ankurk99 Do I need to test it on any other platform(like microk8s or minikube)? If not I can update the support matrix and raise the PR.

@Ankurk99
Copy link
Member Author

Ankurk99 commented Feb 2, 2023

Hey @HariVamsiK it seems that KubeArmor is running fine. Can you please perform the items mentioned in the description checklist? For enforcement you can try applying any policies and see if the resources are being correctly blocked. Similarly we will be expecting logs for the corresponding enforcement. This should be verified with karmor logs showing the appropriate alerts based on the enforcement (with details like applied policy name, action, LSM used etc.)
This link might help you choosing the testing workload (wordpress-mysql) and the security policies which you can apply for testing: https://github.com/kubearmor/KubeArmor/wiki/KubeArmor-manual-tests-before-releases

Please let us know if you face any difficulty

@HariVamsiK
Copy link
Contributor

Yeah sure.

@Ankurk99
Copy link
Member Author

Ankurk99 commented Feb 9, 2023

Hey @HariVamsiK, were you able to test the enforcement and observability?

@HariVamsiK
Copy link
Contributor

HariVamsiK commented Feb 9, 2023

karmor probe and pods
wordpress-mysql deployed and tested
karmor logs

AppArmor is primarily used in enforcement and it is the Active LSM.
Audit/Observability Supported : Yes

@nyrahul
Copy link
Contributor

nyrahul commented Feb 9, 2023

Lets verify with Amazon Linux 2 as well. We can update the support-matrix post that.

@nyrahul nyrahul moved this to In Progress in v0.9 backlog Feb 9, 2023
@HariVamsiK
Copy link
Contributor

karmor probe and pods

wordpress-mysql deployed and tested
karmor logs

There is no Active LSM, checking the karmor logs after testing security policies on wordpress-mysql the enforcer is eBPF Monitor.
Audit/Observability: Yes

@Ankurk99
Copy link
Member Author

@HariVamsiK Can you please update the support matrix with AWS Graviton support here: https://github.com/kubearmor/KubeArmor/blob/main/getting-started/support_matrix.md?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
No open projects
Status: Done
3 participants