feat: Gateway API support, network policy tracking & code cleanup#4
Merged
davealtena merged 4 commits intomainfrom Jan 30, 2026
Merged
feat: Gateway API support, network policy tracking & code cleanup#4davealtena merged 4 commits intomainfrom
davealtena merged 4 commits intomainfrom
Conversation
Add collectors and API endpoint for ServiceAccounts, Secrets metadata, Namespaces (with PSS labels), and Nodes. This enables the SaaS platform to perform more comprehensive security risk analysis including: - RBAC misconfiguration detection (cluster-admin to ServiceAccount) - Unused secret identification - Pod Security Standards enforcement gaps - Outdated Kubernetes version detection New endpoint: POST /api/v1/cluster-resources Signed-off-by: Dave Altena <dave@altena.io>
Detect cluster provider (eks, aks, gke, openshift, k3s, etc.), control plane type (managed vs self-hosted), platform (aws, azure, gcp), and Kubernetes version. This enables the SaaS to: - Select correct CIS benchmark for the cluster type - Skip control plane checks for managed clusters - Show provider-specific security recommendations Detection uses node labels, pod names, and provider IDs. Signed-off-by: Dave Altena <dave@altena.io>
Secrets metadata collection removed as it poses unnecessary risk. The agent still collects ServiceAccounts, Namespaces, Nodes, and ClusterInfo for risk analysis. Signed-off-by: Dave Altena <dave@altena.io>
- Add Gateway API route detection for exposure analysis (HTTPRoute, GRPCRoute, TCPRoute, TLSRoute) - Add network policy status tracking per workload - Remove unused scanner implementations (secrets, rbac, infra, benchmark, compliance) - Remove unused delete.go (report deletion functions never called) - Replace duplicate contains() helpers with slices.Contains() - Bump version to 0.2.0 Signed-off-by: Dave Altena <dave@altena.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
New Features
internal/kubectl/gateway.go- New Gateway API client for listing Gateways and routeshas_network_policystatusCleanup (dead code removal)
trivy/delete.gotrivy/benchmark_scanner.gotrivy/compliance_scanner.gotrivy/infra_scanner.gotrivy/rbac_scanner.gotrivy/secrets_scanner.gocluster_scanners.goImprovements
contains()helpers withslices.Contains()logimport from db.goTest plan
go build ./...passesgo test ./...passes