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

fix(misconf): add missing fields to proto #4861

Merged
merged 3 commits into from
Jul 30, 2023

Conversation

nikpivkin
Copy link
Contributor

Description

Some RPC structures do not correspond to similar structures from fanal/types, so the results in server mode differ from the results in standalone mode.

Related issues

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@nikpivkin nikpivkin marked this pull request as ready for review July 23, 2023 16:44
@nikpivkin nikpivkin requested a review from knqyf263 as a code owner July 23, 2023 16:44
Comment on lines 68 to 69
PolicyMetadata policy_metadata = 3;
CauseMetadata cause_metadata = 4;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should not reuse the field number for some reasons. It leads to ambiguity.
https://protobuf.dev/programming-guides/proto3/#assigning

Copy link
Contributor Author

@nikpivkin nikpivkin Jul 24, 2023

Choose a reason for hiding this comment

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

fixed

@knqyf263
Copy link
Collaborator

@nikpivkin Can you please resolve the conflict?

@nikpivkin nikpivkin requested a review from knqyf263 July 27, 2023 09:51
@knqyf263 knqyf263 added this pull request to the merge queue Jul 27, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 27, 2023
@knqyf263 knqyf263 added this pull request to the merge queue Jul 30, 2023
Merged via the queue into aquasecurity:main with commit e1c2a8c Jul 30, 2023
12 checks passed
AnaisUrlichs pushed a commit to AnaisUrlichs/trivy that referenced this pull request Aug 10, 2023
* fix(misconf): add missing fields to proto

* mark deleted fields as reserved
@nikpivkin nikpivkin deleted the nik-sync-proto branch August 15, 2023 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misconfiguration scan results do not contain CauseMetadata in server mode
2 participants