-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Keda Non-compliant for pods and containers should only run using approved user and group Ids #2139
Comments
Hi Ferrero,
We are deploying the Container from the below repository using helm chat with version 2.2.2
repository : ghcr.io/kedacore/keda-metrics-apiserver
Thanks,
Santosh C.
|
Yes, sorry. |
One question (I don't have experience with this). Are valid userid/groupsid needed to be defined or there is a built-in predefined group? |
We have provided the group ids as.
"ranges": [
{
"min": 1,
"max": 65535
}
]
Thanks,
Santosh C.
|
@JorTurFer : We are using the below range of values for user and group IDs. "ranges": [ Also, can i have the resolution ASAP. |
Hi |
I'm checking on my own AKS. Honestly, I don't have any experience with Azure Policies, IDK if it needs any extra configuration or something like that. The help message says: And both images has the directive USER in the Dockerfile |
Hi @Sac-BRONGA , I have edited the parameters and these are mine: Basically I added the range to all (userids and gropuids). I know that in theory userids and groupids are not important because the dropdown selections are |
Hi @jorge Turrado ***@***.***>,
We are using Run as User Rule : MustRunAs.
|
okey, let me update the policy and I will comment in 1 hour with the result :) |
Also, Could you please conform you using the below Image ghcr.io/kedacore/keda-metrics-apiserver : 2.2.2 |
I'm using main tag, but I can use as well 2.2.2 to check if it works there. |
The tag 2.2.2 doesn't exist: docker pull ghcr.io/kedacore/keda-metrics-apiserver:2.2.2
Error response from daemon: manifest unknown |
OK Could you please check whether, this parameter and conform. with the Tag 2.2.0 |
Sure, I'm updating it right now. In 1 hour I will update the thread with the news |
Hi @Sac-BRONGA , |
Do you install through Helm or another approach @Sac-BRONGA? |
we install with Helm |
Did you try setting the securityContext inside helm values? I'm trying it right now to check if it works with this values: securityContext:
runAsUser: 1000
runAsNonRoot: true |
It works @Sac-BRONGA , |
@JorTurFer We are using the same thing which is present in the link given below. but still we are getting Non-Compliant. |
Hi @Sac-BRONGA securityContext:
runAsUser: 1000
runAsNonRoot: true As I said here, this change should be enough to make it compliant Let me know any news :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Any update on this @Sac-BRONGA ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
Report
We have enabled Azure Policy for "Kubernetes cluster pods and containers should only run with approved user and group IDs." but we received all the pods in all the containers are Non-Compliant. even we provide all the required parameters.
Expected Behavior
The Keda Pods in the Cluster need to be Non Compliant. The Keda should run only in the provided user and group ids.
Actual Behavior
The Keda should run the provided User and Group Ids. It need to search for the User and Group Ids.
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.2.0
Kubernetes Version
1.21
Platform
Microsoft Azure
Scaler Details
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: