-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
BREAKING: add support for k8s disable-node-collector
flag
#6311
BREAKING: add support for k8s disable-node-collector
flag
#6311
Conversation
f9cdd94
to
98546fc
Compare
--skip-intrusive
flag
b72cc65
to
74f8221
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a breaking change, right? We need a BREAKING
prefix in the PR title.
trivy/.github/workflows/semantic-pr.yaml
Line 31 in df024e8
BREAKING |
Also, the integration test is failing.
--skip-intrusive
flag--skip-intrusive
flag
First of all, I don't mind. @itaysk and you can decide it. I'm just thinking out loud. If the default mode is intrusive, should we consider a more understated name for the non-intrusive mode (such as In some cases, negating a well-known or intuitive term can effectively convey the intended meaning. If "intrusive" is a term that users are likely to understand in the context of Trivy, then using "non-intrusive" as the flag name might be the most straightforward way to communicate the opposite behavior. |
In my opinion, TL;DR: |
--skip-intrusive
flag--non-intrusive
flag
7f95e5d
to
c23dcbb
Compare
after discussing this offline with @chen-keinan we agreed to not change the current default behavior, meaning by default the scan will be intrusive and the user can set a |
I know the context well and it is difficult to get an impartial view of how people feel about current behavior. I'd request a quick review from @simar7. |
As I was summoned, I would like to provide my feedback. I think there are two problems to solve here:
Problem 1 While as something like Problem 2 |
c23dcbb
to
4179e48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @simar7. Feedback from someone unfamiliar with k8s scanning is valuable.
On the other hand, we may be able to make the assumption that people who use the k8s subcommand should be somewhat familiar with it.
We can also take the view that it is okay because the CLI help provides supplementary explanations.
--non-intrusive When the flag is activated, the node-collector job will not be executed, thus skipping misconfiguration findings on the node.
The final decision should be made by the code owner, Chen, so I'll approve it.
I agree with simar and wrote similar gist on the --deep PR. |
@simar7 thanks for the input, putting a flag |
--non-intrusive
flagdisable-node-collector
flag
4179e48
to
7e8c80d
Compare
@chen-keinan reviewed again and left one comment but overall lgtm! |
@simar7 thanks for the review , I do not see the comment you mention |
|
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
Signed-off-by: chenk <hen.keinan@gmail.com>
224322f
to
22e51a6
Compare
Signed-off-by: chenk <hen.keinan@gmail.com>
918c9ac
to
7f2bd02
Compare
@chen-keinan lgtm! |
…rity#6311) Signed-off-by: chenk <hen.keinan@gmail.com>
Description
Add support for k8s intrusive flag
Related issues
--disable-node-collector
flag #6194Checklist