You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed kubearmor following off doc, later I saw an error in relay pod looks like "I haven't any permission for watch resource" so I gived it:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubearmor-relay-clusterrole
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch # this is verbs that I gived
General Information
Environment description VM-Kubeadm
Kernel version
Linux kube-node-1 5.15.0-124-generic Add Kafka Client #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Orchestration system version in use (e.g. kubectl version, ...)
Client Version: v1.31.3
Kustomize Version: v5.4.2
Server Version: v1.30.1
Link to relevant artifacts (policies, deployments scripts, ...)
On another node start gprc client to relay server using karmor cli
karmor logs
local port to be used for port forwarding kubearmor-relay-7d8894b786-x5kbm: 32867
Created a gRPC client (localhost:32867)
Checked the liveness of the gRPC server
Started to watch alerts
Enter the pod kubectl exec -it -n pentestit <podname> -- bash
cat any environ in proc directory cat /proc/self/environ
See "Permission denied" cat: /proc/self/environ: Permission denied
In logs karmor doesn't see anything
Expected behavior
I expected any logs for my blocking in karmor or in relay server but I haven't anything. Action is block, no notification :(
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Bug Report
I installed kubearmor following off doc, later I saw an error in relay pod looks like "I haven't any permission for watch resource" so I gived it:
General Information
Linux kube-node-1 5.15.0-124-generic Add Kafka Client #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
kubectl version
, ...)To Reproduce
karmor logs
kubectl exec -it -n pentestit <podname> -- bash
cat /proc/self/environ
cat: /proc/self/environ: Permission denied
Expected behavior
I expected any logs for my blocking in karmor or in relay server but I haven't anything. Action is block, no notification :(
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: