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

chore(containers): make feature flag a safe guard #3610

Merged
merged 2 commits into from
Oct 25, 2023
Merged

chore(containers): make feature flag a safe guard #3610

merged 2 commits into from
Oct 25, 2023

Conversation

rafaeldtinoco
Copy link
Contributor

commit b39d884 (HEAD -> no-containers-default, rafaeldtinoco/no-containers-default)
Author: Rafael David Tinoco [email protected]
Date: Wed Oct 25 12:09:09 2023

fix(definitions): debug shows wrong logs for sig events

commit b067fd3
Author: Rafael David Tinoco [email protected]
Date: Wed Oct 25 11:51:14 2023

chore(containers): make feature flag a safe guard

- make default behavior (--containers) to enrich containers
- keep a safeguard measure (change cmdline flag to --no-containers)

- make default behavior (--containers) to enrich containers

Keep a safeguard measure (change cmdline flag to --no-containers):

- do not try to register runtime services
- do not try to register runtime sockets (with or without --crs)
Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geyslan
Copy link
Member

geyslan commented Oct 27, 2023

I've did a bisect and detected that this raised these error logs:

{"level":"error","ts":1698260772.5729601,"msg":"error triggering container enrich in control plane","error":"containers.(*Containers).EnrichCgroupInfo: containers.(*runtimeInfoService).getFromKnownRuntime: unsupported runtime"}

https://github.com/aquasecurity/tracee/actions/runs/6644853997/job/18055080048?pr=3610#step:4:400

{"level":"error","ts":1698260853.4470563,"msg":"error triggering container enrich in control plane","error":"containers.(*Containers).EnrichCgroupInfo: containers.(*runtimeInfoService).getFromKnownRuntime: unsupported runtime"}

https://github.com/aquasecurity/tracee/actions/runs/6644853997/job/18055080048?pr=3610#step:4:452

Was it a dormant bug that came to the surface? Or are those errors expected?

@rafaeldtinoco
Copy link
Contributor Author

Was it a dormant bug that came to the surface? Or are those errors expected?

container enriching is default now. likely a test trying to run enriching and facing issues because this wasn't done before. there is a flag to disable enriching that could bet set for the runtime tests, I believe (until test is ready for the enriching ?).

@geyslan
Copy link
Member

geyslan commented Oct 27, 2023

Yep. Agree. Disabling it on integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants