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

add gRPC to our API server #131

Merged
merged 3 commits into from
Sep 4, 2024
Merged

add gRPC to our API server #131

merged 3 commits into from
Sep 4, 2024

Conversation

matthyx
Copy link
Contributor

@matthyx matthyx commented Aug 14, 2024

No description provided.

@matthyx matthyx changed the title add protobuf annotations protobuf annotations Aug 23, 2024
@matthyx matthyx changed the title protobuf annotations add gRPC to our API server Aug 23, 2024
@matthyx matthyx force-pushed the grpc branch 3 times, most recently from d19c701 to 91a015c Compare August 26, 2024 11:17
@@ -129,5 +129,5 @@ type GrypeDocument struct {
IgnoredMatches []IgnoredMatch
Source *Source
Distro Distribution
Descriptor Descriptor
Descriptor_ Descriptor
Copy link
Contributor Author

Choose a reason for hiding this comment

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

notable change

@@ -52,10 +52,10 @@ type ScannedControlStatus struct {
type ScannedControlRule struct {
Name string
Status RuleStatus
ControlConfigurations map[string][]string
ControlConfigurations map[string]string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

notable change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@slashben this one is causing unmarshaling issues for WorkloadConfigurationScan (continuous scanning)
for some reason the protobufs don't like the initial map so I thought I could change it like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I've found a workaround by delaying unmarshalling with json.RawMessage

UserID int64
GroupID int64
MIMEType string
Size_ int64
Copy link
Contributor Author

Choose a reason for hiding this comment

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

notable change

@@ -640,7 +584,7 @@ type SingleSeccompProfileSpec struct {
// Additional properties from OCI runtime spec

// list of flags to use with seccomp(2)
Flags []*Flag
Flags []Flag
Copy link
Contributor Author

Choose a reason for hiding this comment

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

notable change

@matthyx matthyx force-pushed the grpc branch 2 times, most recently from 68aec88 to 601bb90 Compare August 29, 2024 07:28
Copy link

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

1 similar comment
Copy link

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Copy link

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Signed-off-by: Matthias Bertschy <[email protected]>
Signed-off-by: Matthias Bertschy <[email protected]>
@matthyx matthyx marked this pull request as ready for review September 4, 2024 09:25
Copy link

github-actions bot commented Sep 4, 2024

Summary:

  • License scan: success
  • Credentials scan: failure
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx matthyx added the release label Sep 4, 2024
@matthyx matthyx merged commit 9d9ce72 into main Sep 4, 2024
7 of 9 checks passed
@matthyx matthyx deleted the grpc branch September 4, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant