A Kubernetes controller for Elastic Load Balancers
This report summarizes scanner evidence for kubernetes-sigs/aws-load-balancer-controller, a Go project with 4,343 GitHub stars. SynthScan examined 310,884 lines of code across 1021 source files, recording 159 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 156 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 159 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 159 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 61 | ToPort int32 `json:"toPort"` | COMMENT |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 81 | // Client affinity gives you control over whether to always route each client to the same specific endpoint. | COMMENT |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 101 | // +kubebuilder:validation:MaxLength=255 | COMMENT |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 121 | COMMENT | |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 161 | // EndpointID is the ID of the endpoint when type is EndpointID. | COMMENT |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 181 | // For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide: | COMMENT |
| LOW | apis/aga/v1beta1/globalaccelerator_types.go | 201 | // Name is the name of the Global Accelerator. | COMMENT |
| LOW | apis/elbv2/v1beta1/ingressclassparams_types.go | 41 | LoadBalancerSchemeInternal LoadBalancerScheme = "internal" | COMMENT |
| LOW | apis/elbv2/v1beta1/albtargetcontrolconfig_types.go | 21 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | COMMENT |
| LOW | apis/elbv2/v1beta1/albtargetcontrolconfig_types.go | 41 | ControlAddress string `json:"controlAddress"` | COMMENT |
| LOW | apis/elbv2/v1beta1/albtargetcontrolconfig_types.go | 61 | // By default, the agent generates a private key in memory. | COMMENT |
| LOW | apis/elbv2/v1beta1/targetgroupbinding_types.go | 161 | IPAddressType *TargetGroupIPAddressType `json:"ipAddressType,omitempty"` | COMMENT |
| LOW | apis/elbv2/v1beta1/targetgroupbinding_types.go | 181 | } | COMMENT |
| LOW | apis/elbv2/v1alpha1/targetgroupbinding_types.go | 141 | // availability zone of the pod's node instead of "all". Requires iamRoleArnToAssume. Enables in-AZ routing | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 101 | // of the reserved keywords. | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 141 | UserPoolDomain string `json:"userPoolDomain"` | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 161 | // The name of the cookie used to maintain session information. The default is | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 201 | // +kubebuilder:validation:MaxItems=10 | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 241 | // The user info endpoint of the IdP. This must be a full URL, including the HTTPS | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 261 | OnUnauthenticatedRequest *AuthenticateOidcActionConditionalBehaviorEnum `json:"onUnauthenticatedRequest,omitempty"` | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 281 | } | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 321 | // +kubebuilder:validation:XValidation:rule="!has(self.actions) || self.actions.all(a, a.type == 'authenticate-oidc' || | COMMENT |
| LOW | apis/gateway/v1/listenerruleconfig_types.go | 341 | // please use the standard Gateway API HTTPRoute or other route resources, which provide | COMMENT |
| LOW | apis/gateway/v1/loadbalancerconfig_types.go | 121 | // +kubebuilder:validation:XValidation:rule="!(self.mode == 'verify' && !has(self.trustStore))",message="trustStore is r | COMMENT |
| LOW | apis/gateway/v1/loadbalancerconfig_types.go | 201 | // +kubebuilder:validation:MinLength=1 | COMMENT |
| LOW | apis/gateway/v1/loadbalancerconfig_types.go | 221 | // +optional | COMMENT |
| LOW | apis/gateway/v1/loadbalancerconfig_types.go | 241 | // +optional | COMMENT |
| LOW | apis/gateway/v1/loadbalancerconfig_types.go | 261 | COMMENT | |
| LOW | apis/gateway/v1/targetgroupconfig_types.go | 21 | */ | COMMENT |
| LOW | apis/gateway/v1/targetgroupconfig_types.go | 241 | Value string `json:"value"` | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 101 | // of the reserved keywords. | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 141 | UserPoolDomain string `json:"userPoolDomain"` | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 161 | // The name of the cookie used to maintain session information. The default is | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 201 | // +kubebuilder:validation:MaxItems=10 | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 241 | // The user info endpoint of the IdP. This must be a full URL, including the HTTPS | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 261 | OnUnauthenticatedRequest *AuthenticateOidcActionConditionalBehaviorEnum `json:"onUnauthenticatedRequest,omitempty"` | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 281 | } | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 321 | // +kubebuilder:validation:XValidation:rule="!has(self.actions) || self.actions.all(a, a.type == 'authenticate-oidc' || | COMMENT |
| LOW | apis/gateway/v1beta1/listenerruleconfig_types.go | 341 | // please use the standard Gateway API HTTPRoute or other route resources, which provide | COMMENT |
| LOW | apis/gateway/v1beta1/loadbalancerconfig_types.go | 121 | // +kubebuilder:validation:XValidation:rule="!(self.mode == 'verify' && !has(self.trustStore))",message="trustStore is r | COMMENT |
| LOW | apis/gateway/v1beta1/loadbalancerconfig_types.go | 201 | // +kubebuilder:validation:MinLength=1 | COMMENT |
| LOW | apis/gateway/v1beta1/loadbalancerconfig_types.go | 221 | // +optional | COMMENT |
| LOW | apis/gateway/v1beta1/loadbalancerconfig_types.go | 241 | // +optional | COMMENT |
| LOW | apis/gateway/v1beta1/loadbalancerconfig_types.go | 261 | COMMENT | |
| LOW | apis/gateway/v1beta1/targetgroupconfig_types.go | 21 | */ | COMMENT |
| LOW | apis/gateway/v1beta1/targetgroupconfig_types.go | 241 | Value string `json:"value"` | COMMENT |
| LOW | config/crd/kustomization.yaml | 1 | # This kustomization.yaml is not intended to be run by itself, | COMMENT |
| LOW | hack/sync-rbac-to-helm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/verify-versions.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/verify-generate.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/install-ko.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/verify-crds.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/verify-rbac-sync.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | hack/tag-release.sh | 1 | #!/bin/bash -xe | COMMENT |
| LOW | docs/examples/cognito-ingress-template.yaml | 1 | # Requirements: | COMMENT |
| LOW | scripts/ci_e2e_test.sh | 121 | } | COMMENT |
| LOW | scripts/ci_e2e_test.sh | 141 | # | COMMENT |
| LOW | scripts/ci_e2e_test.sh | 261 | # None | COMMENT |
| LOW | scripts/lib/ecr.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/lib/ecr.sh | 21 | fi | COMMENT |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/guide/ingress/alb-target-agent.md | 102 | ### Step 1: Install CRDs | COMMENT |
| LOW | docs/guide/ingress/alb-target-agent.md | 108 | ### Step 2: Apply Mutating Webhooks | COMMENT |
| LOW | docs/guide/ingress/alb-target-agent.md | 125 | ### Step 3: Update RBAC Permissions | COMMENT |
| LOW | docs/guide/ingress/alb-target-agent.md | 146 | ### Step 4: Create ALBTargetControlConfig | COMMENT |
| LOW | docs/guide/ingress/alb-target-agent.md | 168 | ### Step 5: Enable ALB Target Control Agent in Controller | COMMENT |
| LOW | docs/guide/ingress/alb-target-agent.md | 181 | ### Step 6: Enable Injection | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 52 | ## Step 1: Translate Manifests | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 92 | ## Step 2: Preview with Dry-Run | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 163 | ## Step 3: Apply Gateway Manifests | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 201 | ## Step 4: Verify Gateway ALBs | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 259 | ## Step 5: Shift Traffic | COMMENT |
| LOW | docs/guide/ingress2gateway/migrate_from_ingress.md | 279 | ## Step 6: Cleanup | COMMENT |
| LOW | docs/guide/globalaccelerator/examples.md | 378 | #### Step 1: Create the ReferenceGrant Resources | COMMENT |
| LOW | docs/guide/globalaccelerator/examples.md | 427 | #### Step 2: Create the GlobalAccelerator Resource with Cross-Namespace References | COMMENT |
| LOW | docs/guide/globalaccelerator/aga-controller.md | 193 | #### Step 1: Create a ReferenceGrant in the Target Namespace | COMMENT |
| LOW | docs/guide/globalaccelerator/aga-controller.md | 214 | #### Step 2: Reference the Resource in your GlobalAccelerator | COMMENT |
| LOW | pkg/deploy/aga/accelerator_manager.go | 154 | // Step 1: Try to disable the accelerator first if it's enabled | COMMENT |
| LOW | pkg/deploy/aga/accelerator_manager.go | 166 | // Step 2: Delete all listeners associated with this accelerator | COMMENT |
| LOW | pkg/deploy/aga/accelerator_manager.go | 188 | // Step 3: Delete the accelerator | COMMENT |
| LOW | pkg/deploy/aga/listener_manager.go | 174 | // Step 1: Delete all endpoint groups associated with this listener | COMMENT |
| LOW | pkg/deploy/aga/listener_manager.go | 195 | // Step 2: Delete the listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 106 | // Step 1: Collect all desired endpoint ports by region and listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 136 | // Step 2: Collect all SDK endpoint ports by region and listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 156 | // Step 3: Find conflicts by comparing different listeners using the same port in the same region | COMMENT |
| LOW⚡ | pkg/ingress2gateway/translate/translate.go | 100 | // Step 1: Merge all ICPs into a fresh spec with conflict detection (ICP-vs-ICP) | COMMENT |
| LOW⚡ | pkg/ingress2gateway/translate/translate.go | 107 | // Step 2: Apply merged ICP spec on top of annotation-derived LBConfig (ICP wins over annotations) | COMMENT |
| LOW | pkg/gateway/routeutils/route_listener_mapper.go | 111 | // Step 1 - Generate initial state maps, to allow for quick calculations. | COMMENT |
| LOW | pkg/gateway/routeutils/route_listener_mapper.go | 162 | // Step 2 - Go through each route and each parent ref on the route. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | pkg/deploy/elbv2/target_group_binding_manager.go | 201 | tgARN, err := resTGB.Spec.Template.Spec.TargetGroupARN.Resolve(ctx) | CODE |
| CRITICAL | pkg/deploy/elbv2/target_group_binding_synthesizer.go | 133 | tgARN, err := resTGB.Spec.Template.Spec.TargetGroupARN.Resolve(ctx) | CODE |
| CRITICAL | pkg/model/elbv2/k8s/target_group_binding.go | 44 | for _, dep := range tgb.Spec.Template.Spec.TargetGroupARN.Dependencies() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | main.go | 82 | // +kubebuilder:scaffold:imports | COMMENT |
| MEDIUM | main.go | 97 | // +kubebuilder:scaffold:scheme | COMMENT |
| MEDIUM | main.go | 499 | //+kubebuilder:scaffold:builder | COMMENT |
| MEDIUM⚡ | config/crd/kustomization.yaml | 9 | # +kubebuilder:scaffold:crdkustomizeresource | COMMENT |
| MEDIUM⚡ | config/crd/kustomization.yaml | 16 | # +kubebuilder:scaffold:crdkustomizewebhookpatch | COMMENT |
| MEDIUM⚡ | config/crd/kustomization.yaml | 22 | # +kubebuilder:scaffold:crdkustomizecainjectionpatch | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/deploy/aga/accelerator_manager.go | 154 | // Step 1: Try to disable the accelerator first if it's enabled | COMMENT |
| LOW | pkg/deploy/aga/accelerator_manager.go | 166 | // Step 2: Delete all listeners associated with this accelerator | COMMENT |
| LOW | pkg/deploy/aga/accelerator_manager.go | 188 | // Step 3: Delete the accelerator | COMMENT |
| LOW | pkg/deploy/aga/listener_manager.go | 174 | // Step 1: Delete all endpoint groups associated with this listener | COMMENT |
| LOW | pkg/deploy/aga/listener_manager.go | 195 | // Step 2: Delete the listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 106 | // Step 1: Collect all desired endpoint ports by region and listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 136 | // Step 2: Collect all SDK endpoint ports by region and listener | COMMENT |
| LOW | pkg/deploy/aga/endpoint_group_synthesizer.go | 156 | // Step 3: Find conflicts by comparing different listeners using the same port in the same region | COMMENT |
| LOW⚡ | pkg/ingress2gateway/translate/translate.go | 100 | // Step 1: Merge all ICPs into a fresh spec with conflict detection (ICP-vs-ICP) | COMMENT |
| LOW⚡ | pkg/ingress2gateway/translate/translate.go | 107 | // Step 2: Apply merged ICP spec on top of annotation-derived LBConfig (ICP wins over annotations) | COMMENT |
| LOW | pkg/gateway/routeutils/listener_set.go | 119 | // Getting here means that the ListenerSet has requested attachment, we need to check if Gateway allows it. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crd-ref-docs.yaml | 1 | # This file contains configuration for our reference docs generation. For more | COMMENT |
| MEDIUM | config/crd/kustomizeconfig.yaml | 1 | # This file is for teaching kustomize how to substitute name and namespace reference in CRD | COMMENT |
| MEDIUM | …s-load-balancer-controller/templates/cert-manager.yaml | 2 | # Create a selfsigned Issuer, in order to create a root CA certificate for | COMMENT |
| MEDIUM | …s-load-balancer-controller/templates/cert-manager.yaml | 33 | # Create an Issuer that uses the above generated CA certificate to issue certs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/theme_overrides/assets/javascripts/version-select.js | 31 | function setupVersionSelectEventHandlers() { | CODE |