René's URL Explorer Experiment


Title: Operator: manager role lacks `watch` on clusterroles/clusterrolebindings, informers fail with "cannot watch resource" · Issue #7061 · feast-dev/feast · GitHub

Open Graph Title: Operator: manager role lacks `watch` on clusterroles/clusterrolebindings, informers fail with "cannot watch resource" · Issue #7061 · feast-dev/feast

X Title: Operator: manager role lacks `watch` on clusterroles/clusterrolebindings, informers fail with "cannot watch resource" · Issue #7061 · feast-dev/feast

Description: Expected Behavior The operator's RBAC covers every API call the operator makes. The controller-manager log has no permission errors. Current Behavior When a FeatureStore uses Kubernetes authorization (the default), the operator logs thes...

Open Graph Description: Expected Behavior The operator's RBAC covers every API call the operator makes. The controller-manager log has no permission errors. Current Behavior When a FeatureStore uses Kubernetes authorizati...

X Description: Expected Behavior The operator's RBAC covers every API call the operator makes. The controller-manager log has no permission errors. Current Behavior When a FeatureStore uses Kubernetes authori...

Opengraph URL: https://github.com/feast-dev/feast/issues/7061

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Operator: manager role lacks `watch` on clusterroles/clusterrolebindings, informers fail with \"cannot watch resource\"","articleBody":"## Expected Behavior\n\nThe operator's RBAC covers every API call the operator makes. The controller-manager log has no permission errors.\n\n## Current Behavior\n\nWhen a `FeatureStore` uses Kubernetes authorization (the default), the operator logs these errors every few seconds, with client-go backoff:\n\n```\nERROR controller-runtime.cache.UnhandledError Failed to watch {\"reflector\": \"go/pkg/mod/k8s.io/client-go@v0.35.2/tools/cache/reflector.go:289\", \"type\": \"*v1.ClusterRole\", \"error\": \"clusterroles.rbac.authorization.k8s.io is forbidden: User \\\"system:serviceaccount:feast-operator-system:feast-operator-controller-manager\\\" cannot watch resource \\\"clusterroles\\\" in API group \\\"rbac.authorization.k8s.io\\\" at the cluster scope\"}\nERROR controller-runtime.cache.UnhandledError Failed to watch {\"reflector\": \"go/pkg/mod/k8s.io/client-go@v0.35.2/tools/cache/reflector.go:289\", \"type\": \"*v1.ClusterRoleBinding\", \"error\": \"clusterrolebindings.rbac.authorization.k8s.io is forbidden: User \\\"system:serviceaccount:feast-operator-system:feast-operator-controller-manager\\\" cannot watch resource \\\"clusterrolebindings\\\" in API group \\\"rbac.authorization.k8s.io\\\" at the cluster scope\"}\n```\n\nReconciliation still succeeds, and the `FeatureStore` becomes `Ready`. The informers fill from the initial list, but they never receive watch events. As a result, the operator reads ClusterRoles and ClusterRoleBindings from a cache that goes stale, and the log fills with errors (55 in about 17 minutes with one FeatureStore).\n\n### Cause\n\n- The authz code reads and writes ClusterRoles and ClusterRoleBindings through the manager client with `controllerutil.CreateOrUpdate` and `Get`. See `createFeastClusterRole`, `createFeastClusterRoleBinding`, `createOidcClusterRole`, `createOidcClusterRoleBinding` and `cleanupKubernetesClusterRbac` in [`internal/controller/authz/authz.go`](https://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/internal/controller/authz/authz.go#L147).\n- `cmd/main.go` lists many types in `Client.Cache.DisableFor`, but not `rbacv1.ClusterRole` or `rbacv1.ClusterRoleBinding` ([L192](https://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/cmd/main.go#L192)). Reads of these two types therefore go through the cache, and controller-runtime starts an informer for each type on first use. An informer needs `list` and `watch`.\n- The RBAC markers grant only `get;list;create;update;delete` on clusterrolebindings and `create;get;list` on clusterroles ([`featurestore_controller.go` L74-L76](https://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/internal/controller/featurestore_controller.go#L74-L76)). Neither marker includes `watch`.\n\n`master` has the same markers and the same `DisableFor` list.\n\n## Steps to reproduce\n\n1. Install the operator from `infra/feast-operator/dist/install.yaml` (v0.67.0).\n2. Create a `FeatureStore` without `authz` (so it defaults to Kubernetes authorization).\n3. `kubectl -n feast-operator-system logs deploy/feast-operator-controller-manager | grep 'Failed to watch'`\n\n### Specifications\n\n- Version: Feast operator v0.67.0 (`quay.io/feastdev/feast-operator:0.67.0`), controller-runtime v0.23.3\n- Platform: vanilla Kubernetes v1.35.6 (not OpenShift)\n- Subsystem: feast-operator, RBAC / authz\n\n## Possible Solution\n\nEither change fixes the errors:\n\n1. Add `watch` to the two markers:\n   ```go\n   // +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;watch;create;update;delete\n   // +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=create;get;list;watch\n   ```\n   The role already grants `list`, so `watch` exposes no additional data.\n2. Add `&rbacv1.ClusterRole{}` and `&rbacv1.ClusterRoleBinding{}` to `Client.Cache.DisableFor`. Reads of these two types then go directly to the API server, as reads of `Role` and `RoleBinding` already do. With this change, no cluster-wide RBAC informers start at all.\n\nAs a workaround, we append a watch-only rule to `feast-operator-manager-role` with a kustomize patch:\n\n```yaml\n- target:\n    kind: ClusterRole\n    name: feast-operator-manager-role\n  patch: |-\n    - op: add\n      path: /rules/-\n      value:\n        apiGroups: [rbac.authorization.k8s.io]\n        resources: [clusterrolebindings, clusterroles]\n        verbs: [watch]\n```\n\nAfter a restart, the operator logs no `Failed to watch` errors.","author":{"url":"https://github.com/imtpot","@type":"Person","name":"imtpot"},"datePublished":"2026-10-22T11:47:05Z","url":"https://github.com/feast-dev/feast/issues/7061"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c5aecfee-fbf6-b0eb-4ab7-bddde817fb63
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB04E:19EC1D:D5D940:11A26A0:6AFE922C
html-safe-nonce3a48538b0396a95ac460bf190a11bb6b94f27670b20d06c8da914592e5e7f8fe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDRFOjE5RUMxRDpENUQ5NDA6MTFBMjZBMDo2QUZFOTIyQyIsInZpc2l0b3JfaWQiOiIyNDA5MDIzMzQyNTI3ODEyMTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac51fd8e4c1993f99df5d7139ced5cf55f69f3545af7d8399d7728f917b880b1f3
hovercard-subject-tagissue:5978681079
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/7061/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3ade99d0c0fc365c591f9c61a29112000b201578d79f5d4fa623b32a433f0a4c/feast-dev/feast/issues/7061
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3ade99d0c0fc365c591f9c61a29112000b201578d79f5d4fa623b32a433f0a4c/feast-dev/feast/issues/7061
og:image:altExpected Behavior The operator's RBAC covers every API call the operator makes. The controller-manager log has no permission errors. Current Behavior When a FeatureStore uses Kubernetes authorizati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameimtpot
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/7061#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F7061
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F7061
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/7061
Reloadhttps://github.com/feast-dev/feast/issues/7061
Reloadhttps://github.com/feast-dev/feast/issues/7061
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/7061
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/7061
#7062https://github.com/feast-dev/feast/pull/7062
Operator: manager role lacks watch on clusterroles/clusterrolebindings, informers fail with "cannot watch resource"https://github.com/feast-dev/feast/issues/7061#top
#7062https://github.com/feast-dev/feast/pull/7062
https://github.com/imtpot
imtpothttps://github.com/imtpot
on Oct 22, 2026https://github.com/feast-dev/feast/issues/7061#issue-5978681079
internal/controller/authz/authz.gohttps://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/internal/controller/authz/authz.go#L147
L192https://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/cmd/main.go#L192
featurestore_controller.go L74-L76https://github.com/feast-dev/feast/blob/v0.67.0/infra/feast-operator/internal/controller/featurestore_controller.go#L74-L76
shuchuhttps://github.com/shuchu
completedhttps://github.com/feast-dev/feast/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7062https://github.com/feast-dev/feast/pull/7062
on Nov 10, 2026https://github.com/feast-dev/feast/issues/7061#event-35643667616
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/7061
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/7061
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.