Repository navigation
fix: reject unsupported identity.type and missing credentials key, merge XR status, skip query on unresolved subscriptionsRef, page results up to maxResults (default 1000), and switch to distroless static-debian13 - #166
Merged
Conversation
…rge XR status, page results, skip query on unresolved subscriptionsRef
jakubramut
force-pushed
the
fix/release-review-defects
branch
from
November 23, 2026 13:35
726f7a8 to
ca0dffb
Compare
kaessert
approved these changes
Nov 23, 2026
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.
Description of your changes
Fixes an
identity.typecrash, silent wrong or stale results and 1000-row truncation; addsmaxResults; switches the runtime tostatic-debian13.Why
main(42ce960) on kind, Crossplanev2.4.3:identity.type: nil client,panic: runtime error: invalid memory address or nil pointer dereferenceatfn.go:497, exit 2; other XRs getrpc error: code = Unavailable.Secretwithout thecredentialskey:Ready=True, empty status, no warning.queryIntervalMinutes,skipQueryWhenTargetHasDataignored.[{lastQueryTime}], never re-queried.subscriptionsRef: falls back tosubscriptions, credentials or tenant scope.$skipTokenignored: 1200 rows → 1000 stored, no warning.grypeon av0.12.1build: 26libssl3t64/libc6matches frombase-debian13(not-fixed/wont-fix), unused by theCGO_ENABLED=0binary.What
fn.go. Fatal on unsupportedidentity.type(plusdefault:inazQuery) and missingcredentialskey.getXRAndStatusdeep-merges desired over observed status;targetHasDataignores alastQueryTime-only element. Unresolved, empty or non-stringsubscriptionsRef→ warning, query skipped.queryAllPagesfollows$skipTokenup tomaxResults; warning when more rows exist or onresultTruncated.input/v1beta1/input.go.maxResults(default1000, minimum1);identity.typeenum. CRD regenerated (controller-genv0.23.0).Dockerfile.base-debian13→static-debian13, as infunction-msgraph,function-aws-query.README.md,package/crossplane.yaml.credentialskey,maxResults,subscriptionsRef,identity.type; WI example pinned tov0.12.1, valid JSON.Tests
58.0%→82.2%;golangci-lintv2.11.4,govulncheck,grype(ca0dffbimage): 0. Mutants: 25/26 killed, survivor drops an unreachablemin()guard.mainvs branch (static-debian13): 12 baseline scenarios identical, 0 restarts; unknown identity, missing key,maxResults: 0→ fatal; 1200 rows → 1000 + warning (default), 1200 (maxResults: 1200); 449 rows,maxResults: 448→ 448 + warning. Interval, empty-result andsubscriptionsReffixes verified on earlier builds, same code paths.Default output unchanged; over 1000 rows now warns. Missing
credentialskey or unknownidentity.typenow fails; unresolvedsubscriptionsRefskips, even withsubscriptionsset. Each extra page is one ARG call; a failed page fails the step. After a partial-status step, observed status carries into the desired XR. No glibc or OpenSSL in the image.