Repository navigation
New features
maxResults(#166): limits the number of rows written to the target. The default is1000, one Azure Resource Graph page, which is what v0.12.1 wrote. With a higher value the function follows$skipTokenuntilmaxResultsrows are written. When more rows exist, the function writes the firstmaxResultsrows and emits aWarning:Azure Resource Graph has more rows than maxResults (1000); only the first 1000 were written, raise maxResults to write more. The minimum is1; a lower value is a fatal result. Each additional page is one more Azure Resource Graph call per reconcile and counts against throttling limits; if any page fails, the step fails.
Behaviour changes
- A Secret without the
credentialskey now stops the pipeline (#166): when theazure-credscredential's Secret has nocredentialskey (for example a provider-style Secret with the keycreds), the function returns a fatal resultazure-creds credential has no "credentials" key. Crossplane stops the composition pipeline for that XR and setsSynced=False. In v0.12.1 the step silently did nothing: the XR stayedReady=Truewith no query result, and the rest of the pipeline ran. Check that every Secret referenced asazure-credsholds the credentials JSON under the keycredentialsbefore upgrading. - Unsupported
identity.typeis a fatal result (#166): values other thanAzureServicePrincipalCredentialsandAzureWorkloadIdentityCredentialsreturnunsupported identity.type "<value>": must be AzureServicePrincipalCredentials or AzureWorkloadIdentityCredentials. In v0.12.1 they crashed the function (see Fixes). An emptyidentity.typestill defaults toAzureServicePrincipalCredentials. The input schema now lists the two values as an enum. - An unresolved
subscriptionsRefskips the query (#166): a missing path, a value that is not a list, an empty list, or a list with non-string or empty items emits aWarningsubscriptionsRef "<ref>" did not resolve to a non-empty list of subscription IDs, skipping query. The query does not run, the previous result stays in place, and the pipeline continues. In v0.12.1 the reference was ignored and the query ran against thesubscriptionsfield, the credentials'subscriptionIdor the whole tenant. - Status after a step that writes partial XR status (#166): the function now deep-merges the desired XR status over the observed status (maps merge, other values from the desired status win). Observed status fields are carried into the desired XR, as v0.12.1 already did when no earlier step wrote status. An earlier pipeline step can no longer remove a status field this way.
- Truncated results warn (#166): when Azure Resource Graph reports
resultTruncated(the query useslimit,takeorsampleand matches more than one page, or all output columns aredynamicornull), the function writes the rows it received and emitsAzure Resource Graph returned truncated results and not all rows were written; paging is not possible when the query uses limit, take or sample, or when all output columns are dynamic or null. - gRPC server (#145, #146, #162, #163):
google.golang.org/grpcv1.75.1→v1.83.2. The server validates incoming RPC paths strictly (default sincev1.79.3, no opt-out sincev1.82.0), stops reading from a connection flooded with HTTP/2 frames other than DATA and HEADERS (default limit 100,GRPC_GO_EXPERIMENTAL_CONTROL_BUFFER_THROTTLE_LIMIT), and rejects requests that carry neither:authoritynorHost(v1.83.2). Crossplanev2.4.3is unaffected in our tests.
Fixes
- Crash on an unsupported
identity.type(#166): v0.12.1 called Azure Resource Graph with a nil client (panic: runtime error: invalid memory address or nil pointer dereference). The function container exited and restarted, and while it was down every XR using the function failed withrpc error: code = Unavailable. The error is now a fatal result for the affected XR only. queryIntervalMinutesandskipQueryWhenTargetHasDataafter a step that writes partial XR status (#166): v0.12.1 read only the desired status in that case, did not see its own previous result, and re-queried on every reconcile. Both options are now honoured.- Empty result with
skipQueryWhenTargetHasDataandqueryIntervalMinutes(#166): v0.12.1 stored an empty result as[{lastQueryTime}], counted it as data and never queried again. The query now runs again once the interval has passed. - Silent truncation at 1000 rows (#166): v0.12.1 ignored
$skipToken, wrote the first 1000 rows and reported success. Results with more rows now emit aWarning, andmaxResultspages further.
Security
v0.13.0 fixes all 55 findings a grype scan reports against function-azresourcegraph:v0.12.1 (2 Critical, 22 High, 19 Medium, 5 Low, 7 Negligible). A grype scan of the package built from the release commit reports no vulnerabilities, and govulncheck reports none in the Go code. Scanned with grype 0.122.1 (vulnerability database of 2026-11-23) on linux/amd64 and linux/arm64.
Runtime image
The runtime base image changed from gcr.io/distroless/base-debian13 to gcr.io/distroless/static-debian13 (#166), the image function-msgraph and function-aws-query use.
- The function binary is statically compiled (
CGO_ENABLED=0), so the image no longer ships glibc, OpenSSL or zlib. This removes every finding inlibc6,libssl3t64andzlib1g. - The image still runs as the distroless
nonrootuser and still contains the CA certificates and time zone data. No configuration changes are required.
Components
| Component | v0.12.1 | v0.13.0 | Findings fixed |
|---|---|---|---|
Go toolchain (stdlib) |
go1.26.10 | go1.26.11 | 1 |
golang.org/x/net |
v0.49.0 | v0.62.0 | 7 |
google.golang.org/grpc |
v1.75.1 | v1.83.2 | 4 |
golang.org/x/text |
v0.33.0 | v0.43.0 | 1 |
libc6 |
2.41-12+deb13u4 | removed | 28 |
libssl3t64 |
3.5.7-1~deb13u3 | removed | 12 |
zlib1g |
1:1.3.dfsg+really1.3.1-1+b1 | removed | 2 |
Fixed findings by component
Go standard library
CVE-2026-97054
golang.org/x/net (Critical: CVE-2026-78663)
CVE-2026-33814, CVE-2026-39821, CVE-2026-78659, CVE-2026-78660, CVE-2026-78663, CVE-2026-78669, CVE-2026-97032
google.golang.org/grpc (Critical: CVE-2026-33186)
CVE-2026-33186, CVE-2026-84304, CVE-2026-84445, GHSA-hrxh-6v49-42gf
golang.org/x/text
CVE-2026-56852
libc6 (removed)
CVE-2010-4756, CVE-2018-20796, CVE-2019-9192, CVE-2019-1010022, CVE-2019-1010023, CVE-2019-1010024, CVE-2019-1010025, CVE-2026-5435, CVE-2026-6238, CVE-2026-6368, CVE-2026-6791, CVE-2026-8674, CVE-2026-18374, CVE-2026-19499, CVE-2026-19542, CVE-2026-77117, CVE-2026-80489, CVE-2026-84243, CVE-2026-86805, CVE-2026-89092, CVE-2026-95818, CVE-2026-97399, CVE-2026-100290, CVE-2026-115819, CVE-2026-121757, CVE-2026-121758, CVE-2026-124024, CVE-2026-126765
libssl3t64 (removed)
CVE-2026-35190, CVE-2026-84786, CVE-2026-88822, CVE-2026-88823, CVE-2026-95690, CVE-2026-95691, CVE-2026-95692, CVE-2026-107493, CVE-2026-107496, CVE-2026-121481, CVE-2026-121482, CVE-2026-124709
zlib1g (removed)
CVE-2026-27171, CVE-2026-85091
Other changes
github.com/crossplane/function-sdk-gov0.5.0 → v0.7.1 (#146, #163)github.com/crossplane/crossplane-runtime/v2v2.1.0 → v2.4.3 (#145, #163, #162)github.com/Azure/azure-sdk-for-go/sdk/azcorev1.21.0 → v1.24.0,azidentityv1.13.1 → v1.15.0 andresourcemanager/resourcegraph/armresourcegraphv0.9.0 → v0.10.0, withgolang.org/x/netv0.49.0 → v0.62.0,golang.org/x/textv0.33.0 → v0.43.0 andgolang.org/x/cryptov0.47.0 → v0.58.0 (#160)google.golang.org/grpcv1.75.1 → v1.83.2 (#145, #146, #163, #162)- Go toolchain go1.26.10 → go1.26.11 (#158)
k8s.io/apimachineryv0.35.0 → v0.37.2 (#142, #164),google.golang.org/protobufv1.36.11 → v1.36.12 (#159),github.com/alecthomas/kongv1.13.0 → v1.17.0 (#141, #152)sigs.k8s.io/controller-toolsv0.20.0 → v0.23.0 (#144, #165); input CRD regenerated- README and package readme: required
credentialskey,maxResults,subscriptionsRefandidentity.typebehaviour; the Workload Identity example is valid JSON and pins a release with Workload Identity support (#166) - The v0.12.1 change to
go 1.26.10anddistroless/base-debian13(#154) brought tomain(#155) - Example function pins updated (#137, #150, #161)
- CI workflow and Renovate configuration synced from shared workflows (#139, #153, #157, #158)
Full changelog: v0.12.1...v0.13.0