Provider :system ClusterRole silently under-permissioned: core persists a truncated ProviderRevision.status.objectRefs and never re-derives it
Type: Bug Area: package manager (core) + rbac-manager
Summary
On one cluster, ProviderRevision.status.objectRefs for an active provider revision recorded 13 of 48 ManagedResourceDefinitions. rbac-manager derives the provider :system ClusterRoles from these lists. As a result, every active provider role on the cluster contained 302 of 337 managed-resource kinds. The roles granted no rules for s3.aws.upbound.io.
Thus the API server denied (403) all requests from the provider ServiceAccount to the API group of its managed resources. No S3 managed resource reconciled for at least 12.5 hours (see Timeline).
During this time, the ProviderRevision reported RuntimeHealthy=True and RevisionHealthy=True. The provider pod was Running and Ready with 0 restarts. rbac-manager logged Skipped no-op RBAC ClusterRole apply. It derived the role correctly from the truncated list and found no difference to apply. The only signal was the reflector 403 errors in the provider log.
Routine status reconciles did not repair the list. A core restart also did not: core was replaced mid-incident at T+8 h 34 m, and the list stayed at 13 for four more hours. The repair came 72 s after a second core restart. At that time, a no-op annotation was already present on the ProviderRevision (see Evidence 4).
Environment
| Crossplane | v2.3.4 core + rbac-manager (upgraded from v2.2.0 12 h before onset, see Timeline) |
| Kubernetes | EKS 1.33 (client-go v0.33.0 in provider) |
| Providers | Upbound AWS family v2.3.0: provider-family-aws, provider-aws-s3, provider-aws-iam, provider-aws-ec2, provider-aws-elbv2, provider-aws-route53 |
| MRDs / CRDs | 333 / 248 |
| MRD state | legacy *.aws.upbound.io Active; .m variants Inactive |
| MRAP | activates 6 legacy s3.aws.upbound.io kinds; iam in both variants; ec2/elbv2/route53 .m only |
A second cluster has the identical Crossplane version and the identical provider package digest. The revision name hash is the image digest prefix, thus the package contents are byte-identical. This second cluster is not affected. We used it as the control.
Timeline
All times are UTC. T0 = 2026-08-05 01:38Z is the first observable evidence of the truncation. The rest of this report refers to the offsets in the second column.
| Absolute | Offset | Event |
|---|---|---|
| 2026-07-29 08:48 | T−17 h | The provider provisions S3 resources for a tenant normally. The recorded list was complete at this point |
| 2026-08-04 13:47 | T−12 h | Crossplane core + rbac-manager upgraded v2.2.0 → v2.3.4 (GitOps-driven, new ReplicaSets for both) |
| 2026-08-04 23:34 | T−2 h | Core pod rescheduled onto the new ReplicaSet (node roll, not a deploy change) |
| 2026-08-05 01:38 | T0 | rbac-manager rewrites the :system role of the storage provider → 302 kinds, s3.aws.upbound.io gone. First evidence that the recorded list is short. |
| 2026-08-05 ~04:20 | T+2 h 40 m | First composite blocked. This was the earliest tenant that needed a new S3 managed resource after T0 |
| 2026-08-05 07:02 | T+5 h 24 m | A tenant resume creates fresh managed resources. They hang with blank conditions |
| 2026-08-05 09:55 | T+8 h 17 m | Incident triage begins (~2.5 h after the first tenant alert) |
| 2026-08-05 10:12 | T+8 h 34 m | Core pod replaced (…-775fb65547-qp79r → …-775fb65547-224p9, same ReplicaSet, thus a pod deletion, not a template change). Core re-reconciles revisions at startup: rbac-manager rewrites the iam :system role a minute later, still at 302 kinds. objectRefs remains 13. |
| 2026-08-05 11:32 | T+9 h 54 m | The :system role of the Inactive revision of the same provider is deleted → rbac-manager regenerates it complete (the own objectRefs of that revision is intact at 48) |
| 2026-08-05 12:10 | T+10 h 32 m | Provider pod replaced → Deployment status write → core transitions RuntimeHealthy. Core writes the revision status here and keeps objectRefs at 13. |
| 2026-08-05 12:16 | T+10 h 38 m | The :system role of the active revision is recreated → identical 302 |
| 2026-08-05 13:30 | T+11 h 52 m | Role deleted manually → regenerated → identical 302 again |
| 2026-08-05 14:03 | T+12 h 25 m | rbac-manager restarted with --debug → logs Skipped no-op RBAC ClusterRole apply, zero writes |
| 2026-08-05 14:10 | T+12 h 32 m | Annotation written on the ProviderRevision → no effect for 4.5 min |
| 2026-08-05 14:14:51 | T+12 h 36 m | rollout restart deploy/crossplane (core pod …-766657454d-qd6nm). The annotation from T+12 h 32 m is still present |
| 2026-08-05 14:16:03 | T+12 h 37 m | Core writes status: objectRefs 13 → 48. rbac-manager applies the :system role for all six member revisions in 2 s. |
Total exposure: 12 h 37 m from the first evidence to the repair. Approximately 10 h of this time was tenant-visible.
Evidence
1. The truncated status, and the arithmetic it produces
# affected cluster
$ kubectl get providerrevision <storage-revision> -o json | jq '.status.objectRefs | length'
13 # all ManagedResourceDefinition, all *.s3.aws.m.upbound.io, zero *.s3.aws.upbound.io
# control cluster, same revision name / digest
48 # 24 legacy + 24 .m
rbac-manager builds the :system role of each member provider from the family-wide union of the objectRefs of the active revisions:
| active revision | objectRefs |
|---|---|
| iam | 46 |
| storage | 13 (expected: 48) |
| family | 5 |
| ec2 | 202 |
| elbv2 | 14 |
| route53 | 22 |
| total | 302 (expected: 337) |
This total is exactly the kind count that we observed in the generated roles. The 35 missing kinds are the 11 alphabetically last s3.aws.m.upbound.io kinds (bucketpolicies, bucketpublicaccessblocks, bucketreplicationconfigurations, bucketrequestpaymentconfigurations, buckets, bucketserversideencryptionconfigurations, bucketversionings, bucketwebsiteconfigurations, directorybuckets, objectcopies, objects) plus all 24 s3.aws.upbound.io kinds. s3.aws.upbound.io was also absent from the multi-group */finalizers rule. That rule listed the other ten groups, which included the legacy variant of every other family.
The union is family-wide. Thus all 7 active provider roles on the cluster were short in the same way: the family, iam, ec2, elbv2, and route53 roles too, not only the storage role.
2. rbac-manager operates correctly
With --debug, a freshly started rbac-manager logged:
DEBUG crossplane Skipped no-op RBAC ClusterRole apply
{"controller": "rbac-roles/providerrevision.pkg.crossplane.io",
"role-name": "crossplane:provider:<storage-revision>:system"}
rbac-manager computes the desired rules from the recorded list, compares them with the applied rules, and finds them equal. Two rbac-manager restarts produced zero writes. The resourceVersion of the affected roles did not change. The role was also deleted and regenerated three times (once by an unknown actor in the cluster, twice manually). Each time it came back byte-identical with 302 kinds.
For contrast: the inactive revision of the same provider has its own complete 48-entry objectRefs. The same rbac-manager binary deleted and regenerated its role minutes earlier. That role came back complete, with 24 kinds in each of the two s3 groups.
3. Routine status reconciles do not re-derive objectRefs
At T+10 h 32 m, the provider pod was replaced. kube-controller-manager wrote the status of the provider Deployment. Core observed that write and transitioned the RuntimeHealthy condition of the revision in the same second. That is, core wrote the revision status at that moment and kept objectRefs at 13. Two more role regenerations followed (T+10 h 38 m and T+11 h 52 m). Both were identical.
metadata.managedFields keeps only the latest write per (manager, operation, subresource). Thus the condition lastTransitionTime is the only record that remains of that earlier write.
4. What did and did not repair it
T+8h34m core pod replaced (deletion; same ReplicaSet) -> objectRefs STILL 13, for 4 more hours
T+12h32m kubectl-annotate writes an annotation on the ProviderRevision -> no effect on its own (4.5 min)
T+12h36m kubectl -n crossplane rollout restart deploy/crossplane (annotation still present)
T+12h37m manager=crossplane, subresource=status write -> objectRefs 13 -> 48 (+72 s from restart)
+2 s rbac-manager logs "Applied RBAC ClusterRole" for the :system role of ALL SIX
member revisions (the family-wide union changed for all of them)
Update 2026-10-16: Later repairs on a second cluster show that the annotation is not necessary. A core restart alone repaired the list two times out of two. See this comment.
Thus a fresh core process alone is not sufficient. The restart at T+8 h 34 m shows this. That restart did trigger revision reconciles: rbac-manager rewrote a sibling role a minute later. The annotation alone is also not sufficient. Only the combination repaired the list. An annotation-only edit does not increase metadata.generation, thus it cannot force a spec-change reconcile. We cannot explain why its presence at startup makes a difference.
We also cannot fully isolate the annotation as the differential. Between the two core restarts, the cluster also saw a provider pod replacement (T+10 h 32 m), two deletions of the generated ClusterRole (T+10 h 38 m and T+11 h 52 m), and an rbac-manager restart (T+12 h 25 m). Each of these events is a possible contributor to the state that made the second startup re-derive the list.
5. Downstream effect
E reflector.go:200] "Failed to watch" err="failed to list *v1beta1.Bucket:
buckets.s3.aws.upbound.io is forbidden: User \"system:serviceaccount:<ns>:<sa>\"
cannot list resource \"buckets\" in API group \"s3.aws.upbound.io\" at the cluster scope"
This error repeated for every S3 kind, approximately 900 KB of log from one pod. The log also showed cannot update resource "bucketpolicies/status". Thus already-provisioned resources no longer received status updates but kept their latched Ready=True conditions. They look healthy but are unmanaged. Drift correction, lifecycle changes, and deletions are all blocked.
Composite resources that depend on the group hung with blank conditions on their leaf managed resources. In our case, 7 tenant-facing composites hung. They alerted between 5 minutes and 5 hours 35 minutes after their respective creations.
What we could not determine
- What truncated
objectRefs. The provider provisioned S3 resources normally at T−17 h, thus the list was complete then. The earliest direct evidence of the truncation is the role rewrite at T0. That window contains the v2.2.0 → v2.3.4 upgrade (T−12 h) and a core pod reschedule (T−2 h). But we cannot attribute the truncation to either event, because the control cluster took the same upgrade and is healthy. The MRDs themselves were untouched (managedFieldsunchanged since March). All 48 s3 MRDs existed on the cluster during the outage, correctly owned by the active revision. - Why 13, and why an alphabetical
.m-only prefix. 13 of 48 is not an obvious page or size boundary. The emitted role was approximately 19 KB, much smaller than the ClusterRole and etcd limits. - Why the second core restart re-derived the list and the first did not. A restart with no other change was effectively tested at T+8 h 34 m. It did not repair the list. The annotation was the only deliberate difference at the second restart. But three other cluster-state changes intervened (see Evidence 4). Thus we cannot attribute the repair to a single action.
Ruled out
- A provider crash or OOM (0 restarts)
- A wrong active revision
- The ClusterRoleBinding subject (correct)
- The ServiceAccount name (correct)
- The CRD
ownerReferences(correct, active revision) - MRD or MRAP drift (unchanged for months, all 48 MRDs present)
- GitOps pruning (the generated roles are not managed in git)
- rbac-manager caches or state that a restart clears (two restarts, zero writes)
- Rate limits
- A version-wide regression in 2.3.4 (the control cluster on 2.3.4 regenerates all 337 kinds correctly)
- The package contents (identical digest)
- A cap on the total kind count (the control cluster enumerates all 337)
- Object counts (the affected cluster has fewer CRDs than the control)
Impact
The failure is a silent and total loss of reconciliation for one API group. No Crossplane status field shows it: RuntimeHealthy=True, RevisionHealthy=True, no event, no log line above debug level. The failure survived a restart of the writing controller (core), two restarts of the reading controller (rbac-manager), two deletions of the generated role, and a provider pod replacement. In our case, it surfaced approximately 2.5 hours after onset as application-level alerts that looked unrelated. The root-cause analysis took most of one day.
Suggested changes
- Re-derive
objectRefson each ProviderRevision reconcile, and set a condition when the recorded list disagrees with the MRDs and CRDs that the revision owns. A re-derivation at startup is not enough: one core restart mid-incident kept the truncated list in place. - Give rbac-manager an MRD/CRD EventSource. The
rbac-roles/providerrevisioncontroller watches onlyProviderRevisionandClusterRole. Thus it cannot detect or repair a stale upstream snapshot. It will regenerate an under-permissioned role forever. - Log the number of granted kinds per generated role at info level. Then a regression of this shape is visible in the rbac-manager output, not only in provider reflector errors.
Workaround
Restart crossplane core. Then make sure that objectRefs returns to the expected count. An annotation on the ProviderRevision is not necessary: on a second cluster, a core restart alone repaired the list two times out of two (see this comment). One restart can fail to repair the list, as at T+8 h 34 m above. If the count is still short some minutes after core is Ready, restart core again. A repaired list can also become short again, thus check the count again later.
For immediate mitigation, create a standalone ClusterRole and binding that grant the dropped group to the provider ServiceAccount. This role survives regeneration. If the role has no rbac.crossplane.io/system label and no ownerReferences, rbac-manager does not adopt it.
Potentially a duplicate or related to https://github.com/crossplane/crossplane/issues/7536
Feel free to close as duplicate, although we did not encounter any crashloop behavior here
We're seeing this issue occur almost daily on 4 clusters. Likely exacerbated due to Karpenter reconciling Nodes nightly which causes Crossplane Pod to restart. I posted details in #7536.
I found one concrete producer-side path that can leave ProviderRevision.status.objectRefs incomplete. CachedClient.Get writes fetched package content to the cache asynchronously and ignores the Store result. If that write fails (for example, because the cache volume is full), FsPackageCache.Store leaves a truncated gzip at the final path. A later reconcile can parse that partial entry and persist only the recovered subset in status.objectRefs.
I opened crossplane/crossplane-runtime#1112 to wait for cache writes, drain early writer failures so registry parsing can finish, remove failed writes, and refetch corrupt entries for pull-enabled policies. This fixes the failure we reproduced, but may not explain every source of incomplete objectRefs described here.
We hit this across a 46-cluster EKS fleet and have data that I think narrows the producer side, so adding it here rather than opening a duplicate.
Scale
Sweeping every reachable cluster on 2026-10-09: 52 of 1563 Active AWS
ProviderRevisions have an incomplete status.objectRefs, 1265 MRDs
unreferenced in total, across 11 clusters. All 52 report
RevisionHealthy=True, RuntimeHealthy=True, pods Running with 0 restarts.
Worst cases: provider-aws-ec2 at 5 of 208 refs on three separate clusters,
and provider-aws-iam at 0 of 46 on another.
The truncation is a prefix of the package document stream, and this is checkable
I pulled the published packages and enumerated the documents:
crane manifest --platform linux/amd64 xpkg.upbound.io/upbound/provider-aws-kms:v2.7.0 \
| jq -r '.layers[]|select(.annotations["io.crossplane.xpkg"]=="base")|.digest'
crane blob xpkg.upbound.io/upbound/provider-aws-kms@sha256:9f085c78... \
| tar -xzO package.yaml | yq -r 'select(.kind=="CustomResourceDefinition")|.metadata.name'
Every Upbound AWS package emits all .m. (namespaced) CRDs first, then all
legacy ones, each block alphabetical. provider-aws-kms:v2.7.0 is 14 CRDs:
documents 1-7 are kms.aws.m.upbound.io, documents 8-14 are
kms.aws.upbound.io.
Our truncated kms revision had exactly 5 refs = documents 1-5. Checking all 52
affected revisions, 48 retain only .m. types and zero legacy types, and in
every case the retained set is a contiguous prefix of the .m. block.
This matches the enumeration in the opening report here: 13 of 48 retained for
s3, and the 11 missing .m. kinds listed are documents 14-24 of the s3 package's
.m. block. 13 retained = documents 1-13. Exact prefix.
A prefix cut is consistent with crossplane-runtime#1112 (the cache Store result
is discarded, leaving a truncated gzip at the final path) and with the YAML
short-read analysis in #7817. It is not consistent with a size limit, pagination,
or server-side-apply list merging — objectRefs carries no +listType marker
and the write is a plain Status().Update().
Two things that may be new here
1. The v2.4 revision-name change is an amplifier, not the cause.
Three of our affected clusters are still on core v2.3.6 and have never been
upgraded, so the defect predates v2.4. But on the 20 clusters we took from 2.3.6
to 2.4.2, the count of revisions with a short-generated :system role spiked
from 6 to 36 within ~10 minutes of the rollout, then decayed.
Since #7473 the revision name derives from the digest and
metadata.generation, so a core upgrade recreates every ProviderRevision
simultaneously at an unchanged image digest — roughly 45 packages per cluster
fetched, parsed and cached at once. That is the window where this lands.
2. Restarting the core is not a reliable remediation, and may be a cause.
We restarted core on 11 clusters as remediation. It repaired some revisions, but a restart forces the same simultaneous cold re-fetch described above, and at least one cluster we restarted shows truncations afterwards that we cannot rule out having created. Combined with the report here that a restart did not repair the list at all at T+8h34m, I would stop recommending it.
The masking effect is worth calling out explicitly
roles/reconciler.go unions DefinedResources across every revision sharing
pkg.crossplane.io/provider-family, with no active-revision filter (there is a
TODO(negz) at that spot). While the superseded revision still exists with an
intact list, it masks the incoming revision's truncation entirely.
The gap therefore appears when the old revision is garbage-collected, which
with the default revisionHistoryLimit: 1 is some time after the upgrade. That
decoupling is probably why this is hard to catch in the act, and it explains why
two of our clusters running the same provider version reported different role
sizes (72 vs 77 apiGroups).
Detection, for anyone landing here before a fix ships
Compare len(status.objectRefs) against the MRDs alive in that provider's API
groups. One trap: do not compare against the MRDs the revision owns — the
missing ones are still controller-owned by the previous revisions, so the two
numbers agree and the defect stays invisible. We confirmed that by hand: the MRDs
absent from a truncated list carry ownerReferences to the Provider and to two
older revisions, never to the current Active one.
Mitigation we deployed
A supplementary ClusterRole that unions the family's API groups, with a name
that does not end in :system and no ownerReferences, so rbac-manager neither
overwrites it nor GCs it. Verified by SubjectAccessReview against a real provider
ServiceAccount: remove -> apply -> remove gives denied -> allowed -> denied on
list/watch/update status/update finalizers, with a control group that
never moves.
We currently bind it to the system:serviceaccounts:crossplane-system Group,
which is broader than it should be — it covers core, rbac-manager and every other
workload in that namespace. Binding to ServiceAccount names pinned via
DeploymentRuntimeConfig.spec.serviceAccountTemplate.metadata.name is the tighter
option that still survives revision churn, since those names stop tracking the
revision name.
Worth noting for anyone copying it: match verbsSystem
(get,list,watch,create,update,patch) rather than using *. The generated role
deliberately omits delete, and a wildcard makes the backstop strictly more
privileged than a healthy cluster.
This only covers the RBAC half. APIEstablisher.ReleaseObjects also walks only
objectRefs, so a truncated list still breaks handover on deactivation.
Happy to run specific queries against the affected clusters if that would help move #7537 or crossplane-runtime#1112 along.
We still see this on v2.4.2, which contains the #7821 backport. It happened on two EKS clusters in the last week, both with the Upbound AWS family v2.3.0.
| Cluster A | Cluster B | |
|---|---|---|
| Short revision | provider-aws-ec2: 140 of 202 |
provider-aws-s3: 13 of 48, provider-aws-route53: 17 of 22 |
| On v2.4.2 since | 2026-10-14 17:40Z | 2026-10-06 |
| Short list written | 2026-10-14 19:29Z | 2026-10-12 23:58Z |
| Repaired | 2026-10-15 15:02:40Z | 2026-10-15 15:46:58Z (route53), 15:47:03Z (s3) |
Observations:
- The kept entries are not a prefix of the owned set in either name order. On cluster A, all 101
ec2.aws.m.upbound.ioentries stayed, and 62 of the 101 legacyec2.aws.upbound.ioentries were dropped (networkinterfacestovpngateways). On cluster B, every legacys3.aws.upbound.ioentry was dropped, plus 11 of the 24.mentries. - On cluster A, a single core restart repaired the list. The status write came about 70 s after the new core pod was Ready, with no annotation and no role deletion.
- On cluster B, we put a no-op annotation on both short revisions and then restarted core. Core was Ready at 15:45:56Z. The route53 revision returned to 22 of 22 after 62 s and the s3 revision to 48 of 48 after 67 s. rbac-manager rewrote every
:systemrole in the family 1 to 2 s later, and the legacys3.aws.upbound.iogroup was granted again. - On cluster B the roles were still correct when we found the short lists, because no role regeneration had happened since the truncation. The next regeneration would have removed S3 access. A check of the roles alone does not find this state. A comparison of
status.objectRefswith the MRDs that each revision owns does. - Detection that worked for us: the client-go metric
rest_client_requests_total{code="403", method="GET"}from the provider pods. The fault gives continuous GET 403s (list and watch). On cluster A this metric shows earlier episodes of 1 to 4 days that nobody noticed, because nothing needed the affected kinds then. 403s on POST were unrelated noise in our fleet (creates into terminating namespaces).
Update from cluster A in my previous comment. Two findings change the workaround in the issue body, and one corrects my previous comment.
1. The annotation is not necessary. A core restart alone repairs the list.
On cluster A, one core restart repaired the list two times out of two:
| Repair | Core restart | Status write by core | Annotation on the revision |
|---|---|---|---|
| 1 | 2026-10-15, about 15:01Z | 15:02:40Z, objectRefs 140 → 202 |
Added at 15:04:18Z, after the repair |
| 2 | 2026-10-16, new core leader at 09:13:17Z | 09:14:25Z, objectRefs 20 → 202 |
Not changed. The annotation from repair 1 was still present |
Repair 1 is the clear case: no annotation existed when core wrote the complete list. I changed the workaround in the issue body to match.
2. The list became short again while core was running
At 2026-10-15 18:08:19Z, core wrote the status of the ec2 revision with 20 of 202 entries. This was about 3 h after repair 1. The core pod had run since 16:15:22Z with no restart. There was no Crossplane or provider upgrade, and the provider pod did not restart. Some function pods were replaced at 17:15–17:17Z. I found no other change. Thus the truncation is not only a startup or upgrade event.
rbac-manager rewrote the roles in the same second. This time the aggregated crossplane ClusterRole of core also lost the kinds, and a composite went to Synced=False:
vpcendpointservices.ec2.aws.m.upbound.io "network-svc" is forbidden: User "system:serviceaccount:crossplane:crossplane" cannot patch resource "vpcendpointservices" in API group "ec2.aws.m.upbound.io"
3. Correction: the kept entries are a prefix of the package document order
In my previous comment, I wrote that the kept entries are not a prefix in either name order. That is wrong, because I compared only name orders. @lucasfuzikawa showed above that the Upbound AWS packages list all .m CRDs first and then all legacy CRDs, each block in alphabetical order. In that order, all three short lists on our clusters are prefixes:
- ec2, first truncation: 140 = all 101
.mkinds + the first 39 legacy kinds. The 62 dropped kinds arenetworkinterfacestovpngateways. - ec2, 18:08Z truncation: 20 = the first 20
.mkinds (amicopiestoegressonlyinternetgateways). - s3 on cluster B: 13 = the first 13
.mkinds.
4. Other observations
- After repair 2, the ec2 revision reports
RevisionHealthy=False:
The MRD in the API server is valid (cannot establish control of object: ManagedResourceDefinition.apiextensions.crossplane.io "transitgatewayroutetableassociations.ec2.aws.m.upbound.io" is invalid: [spec.scope: Unsupported value: "": supported values: "Namespaced", "Cluster", spec.versions: Required value, ...]scope: Namespaced, one version, unchanged since 2026-10-01). Thus core sent an MRD with an emptyscopeand noversions.objectRefsstays complete at 202. This can be the same partial package read that crossplane-runtime#1112 describes, but I did not confirm it. - The core
package-cachevolume is anemptyDirwithsizeLimit: 20Mi. I did not confirm that this plays a part.
Another occurrence on cluster A from my earlier comments. This time, core restarts did not repair the list.
1. Three core restarts did not repair the list
Core v2.4.2, Upbound AWS family v2.3.0, same as before.
- 2026-10-19 12:35:44Z: core wrote the status of the
provider-aws-ec2revision with 20 of 202 entries (amicopiestoegressonlyinternetgateways, the same prefix as on 2026-10-15). Core had run since 10:40Z with no restart, and nothing else changed that I could find. - 2026-10-20: we restarted core three times. Core was Ready at 13:30:30Z, 13:36:50Z, and 13:48:22Z. About 70 s after each restart, core wrote the same 20 entries again.
So the repair after a restart is not reliable. On 2026-10-15 and 2026-10-16, one restart repaired the list each time.
2. Confirmation of the masking effect
@lucasfuzikawa wrote that roles/reconciler.go unions objectRefs across all revisions of the family, with no filter for the active revision. Our fleet matches that:
- Cluster A is the only cluster in our fleet with no Inactive revisions, because it was built on 2026-10-01. It is also the only cluster that lost kinds.
- On the other clusters, the ec2
:systemrole has 404 to 405 entries. That is about two complete lists of 202, one from the Active revision and one from the Inactive one. - One other cluster has a truncated Active
provider-aws-elbv2revision (4 of 14 entries). It lost no kinds, because its Inactive revision still lists all 14.
3. Mitigation that worked
We applied static ClusterRoles for every API group of the family. They have no Crossplane label and no ownerReferences. They are bound to the provider ServiceAccounts, whose names we fix with DeploymentRuntimeConfig.spec.serviceAccountTemplate, with the verbsSystem verbs. A second role with rbac.crossplane.io/aggregate-to-crossplane: "true" gives core the same groups. Core had lost them too, and a composite was Synced=False with cannot patch resource "vpcendpointservices".
The last 403 came 11 s before the apply. The blocked managed resources reconciled 2 to 5 s after the apply, while objectRefs stayed at 20 of 202. These roles do not cover the family provider, because its ServiceAccount name changes with each revision.