Skip to content

chore: bump kubescape/storage to v0.0.305 - #61

Merged
matthyx merged 1 commit into
mainfrom
bump-storage-v0.0.305
Aug 24, 2026
Merged

chore: bump kubescape/storage to v0.0.305#61
matthyx merged 1 commit into
mainfrom
bump-storage-v0.0.305

Conversation

@matthyx

@matthyx matthyx commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bumps github.com/kubescape/storage to v0.0.305.
  • storage v0.0.303 (kubescape/storage#351) removed the ApplicationProfile and NetworkNeighborhood CRD types in favor of the unified ContainerProfile type. The backend's gRPC API still exposes these types on the wire for backward compatibility with existing clients (node-agent, etc.), so this PR vendors their shape back into the backend at pkg/apis/softwarecomposition/v1beta1.
  • The vendored types are copied field-for-field, tag-for-tag from storage v0.0.302 (the last version that defined them), including the hand-adapted gogo-proto Marshal/Unmarshal/Size/String implementations, so the wire format is unchanged for existing clients. Sub-types storage still exports (ExecCalls, OpenCalls, HTTPEndpoint, RulePolicy, IdentifiedCallStack, SingleSeccompProfile, NetworkNeighbor) are reused directly from the storage package rather than duplicated.
  • storage_service.proto/.pb.go now reference the vendored types for the application_profile/network_neighborhood fields, while ContainerProfile and SBOMSyft continue to come from storage. Added legacy_softwarecomposition.proto purely as IDL documentation of the vendored wire shape (it is intentionally not wired into make proto — see its header comment for why).

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... (all packages pass)
  • Verified wire compatibility of the vendored types against the real gRPC codec (not just mocked unit tests): stood up an in-process grpc.Server/grpc.ClientConn over bufconn and round-tripped GetProfile and ListApplicationProfiles responses containing nested fields (Execs, PolicyByRuleId, etc.)

AI-skills: none

storage v0.0.303 (kubescape/storage#351) removed the ApplicationProfile
and NetworkNeighborhood CRD types in favor of the unified
ContainerProfile type. The backend's gRPC API still serves these types
on the wire for backward compatibility with existing clients, so this
vendors their shape - field-for-field, tag-for-tag, from storage
v0.0.302 (the last version that defined them) - into a new
pkg/apis/softwarecomposition/v1beta1 package. Sub-types storage still
exports (ExecCalls, OpenCalls, HTTPEndpoint, RulePolicy,
IdentifiedCallStack, SingleSeccompProfile, NetworkNeighbor) are reused
from the storage package rather than duplicated.

storage_service.proto/.pb.go now reference the vendored types for the
application_profile/network_neighborhood fields while ContainerProfile
and SBOMSyft keep coming from storage. Verified the real gRPC codec
round-trips these types correctly (GetProfile/ListApplicationProfiles
through an actual grpc.Server+ClientConn over bufconn), not just the
mocked unit tests.
@matthyx matthyx added the ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin) label Aug 24, 2026
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6ecfeb1e-342b-4908-aca5-349e1bfd011c


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@matthyx

matthyx commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

supersedes #55

@matthyx
matthyx merged commit c0a29ec into main Aug 24, 2026
4 of 5 checks passed
@matthyx
matthyx deleted the bump-storage-v0.0.305 branch August 24, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Created through Armosec AI tooling (armosec-shared-rules plugin)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant