-
Notifications
You must be signed in to change notification settings - Fork 44
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
workloadconfigurationscans not Generating after Reinstalling #607
Comments
Hello @matthyx, can you help with this please. Did anything change as I cant access the policies in air-gapped env? I have the KS_OFFLINE variable enabled as you instructed but seems to not download successfully since a reinstall? For GKE the scans seems to work but reports are not generated? |
How did you reinstall kubescape-operator? Can you share the command used and/or the content of the |
so this was broken in 1.25.3? |
I think thats correct! I reverted to |
ok thanks for checking, sorry for that mess, I will try to solve that next week |
No worries at all. I appreciate you jumping in! :) |
@AdonisOkpidi I have just tried the latest helm on a kind cluster (not air gap):
After a few minutes I get some results:
|
I am going to check air gaped soon... |
Indeed, seems like I have an issue:
|
Interesting! Just to confirm to was using 1.25.3? |
Actually 1.25.4 (lastest).
…On Mon, Feb 3, 2025, 18:43 AdonisOkpidi ***@***.***> wrote:
@AdonisOkpidi <https://github.com/AdonisOkpidi> I have just tried the
latest helm on a kind cluster (not air gap):
helm repo add kubescape https://kubescape.github.io/helm-charts/ ; helm repo update ; helm upgrade --install kubescape kubescape/kubescape-operator -n kubescape --create-namespace --set clusterName=`kubectl config current-context` --set capabilities.continuousScan=enable
After a few minutes I get some results:
kubectl get workloadconfigurationscans -A
NAMESPACE NAME CREATED AT
local-path-storage serviceaccount-default 2025-02-03T14:56:57Z
local-path-storage serviceaccount-local-path-provisioner-service-account 2025-02-03T14:56:57Z
local-path-storage configmap-local-path-config 2025-02-03T14:56:57Z
local-path-storage configmap-kube-root-ca.crt 2025-02-03T14:56:58Z
local-path-storage deployment-local-path-provisioner 2025-02-03T14:56:59Z
Interesting! Just to confirm to was using 1.25.3?
—
Reply to this email directly, view it on GitHub
<#607 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5ZVENAZS5AHOTH3VUWYU32N6TFFAVCNFSM6AAAAABWF5JFYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZRGY3DCMBRGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@AdonisOkpidi I think I've found what I missed in the chart... can you try to set |
Non Air Gap Environment This seems to work now in 1.25.4 I am getting errors scanning GCR images. Is the ACCOUNT_ID compulsory in this script when setting this up? https://hub.armosec.io/recipes/setup-gcp-iam-authorization-for-in-cluster-installation-of-kubescape-in-gke-1 |
The script is stupid, you don't need to set the ACCOUNT_ID - just make sure you have the proper helm command at the end. |
Thanks! I will give this a try and let you know if any issues |
@AdonisOkpidi can you check that you actually set these 2 parameters?
|
This is ninja scripting to enable the offline mode... I promise I will add soon a capability and some docs. |
Enabling Question: seeing this worked in 1.25.0 in offline mode anyway with I have noticed although this seems to work, some of the node-agents are crashing unusually but the logs have no errors in logs. I will look into it tomorrow and feedback any details. |
That's because of this condition that I've added
As I said, I will make an offline capability in the next release (which could happen today). For node-agents, do you see OOMKills maybe? |
Awesome! Looking forward to the update :) Thats correct. It is a OOMKill for the nodes! I have now increased the memory and this is resolved. I am currently trying to authenticate with GKE and seems the install are using parameters specific to
|
I am not sure how the whole authentication works... help @dwertent !
|
Overview
Reinstalled kubescape to ensure the reports are created/updated effectively when testing scheduled scanning. However the kubescape pod log contains errors (Air-gap only) and reports are not generating with a
no resources found
(Air-gap and non Air-gap environment) when retrieving usingkubectl get workloadconfigurationscans -A
.In AKS (Air Gapped Environment) the errors focuses on Failure to download policies and Host scanner errors (no reports generated). In GKE, Frameworks is pulled successfully and host scanner installed successfully. However the reports are not generated.
AKS (Air Gapped Environment)
Failure to download policies and Host scanner
Using default frameworks scan logs
AKS filtered framework scan logs
GKE (non Air Gapped Environment)
Frameworks is pulled successfully and host scanner installed successfully. However the reports are not generated 'no resources found'.
No Resources Found
The text was updated successfully, but these errors were encountered: