aquasecurity / aquasecurity/tracee

Refactor/Optimise argument/data parsing (stringification)

Open
#5,338 1 comment 0 reactions 1 assignee Claimed by @geyslan View on GitHub
area/performance kind/feature
Dominant language
Go
Stars
4.6k
Forks
507
Avg merge
2d 8h
Merged PRs (30d)
9

Description

Currently arg/data parsing uses switch case approach and grows for every new required event parsing addition.

https://github.com/aquasecurity/tracee/blob/9e58a0810f08ac15ee61a0ea1a528d479ae88e41/pkg/events/parse_args.go#L20

https://github.com/aquasecurity/tracee/blob/9e58a0810f08ac15ee61a0ea1a528d479ae88e41/pkg/events/parse_args_helpers.go#L17

It deserves a better design focused in reducing laoded code block and reusing parsing logic.

---

Related:

- https://github.com/aquasecurity/tracee/issues/4504

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.