GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feast Operator should auto-create RBAC for Feast service account to access KubeRay cluster · Issue #6408 · feast-dev/feast

Feast Operator should auto-create RBAC for Feast service account to access KubeRay cluster #6408

New issue
Copy link
New issue
Copy link
Open
Task
#6411
Open
Feast Operator should auto-create RBAC for Feast service account to access KubeRay cluster#6408
Task
#6411
Copy link
Labels
OperatorFeast operator related issuesFeast operator related issues

Description

@ntkathole
ntkathole
opened on May 15, 2026
Issue body actions

Problem

When the Feast Operator deploys a FeatureStore CR with batchEngine configured to use a KubeRay cluster, the Feast server pods fail to connect to the Ray cluster because the Feast deployment's service account lacks the necessary RBAC permissions to interact with Ray resources.

Currently, users must manually create Roles and RoleBindings to grant the Feast service account access to rayclusters.ray.io and secrets resources. The connection simply fails with 403 Forbidden errors from the Kubernetes API when the CodeFlare SDK attempts to discover and connect to the Ray cluster.

Scenario

User creates a FeatureStore CR with a batchEngine referencing a Ray batch engine ConfigMap:

spec:
  batchEngine:
    configMapRef:
      name: feast-ray-batch-engine

The ConfigMap contains KubeRay configuration:

use_kuberay: true
kuberay_conf:
  cluster_name: feast-ray
  namespace: feast-demo

The Feast Operator creates a Deployment with service account feast-demo, but does not grant it any permissions to access Ray resources.

When materialization runs, the CodeFlare SDK (via kube-authkit) authenticates using the pod's service account and attempts to:

  • GET /apis/ray.io/v1/namespaces/feast-rag/rayclusters/feast-ray — to discover the Ray cluster
  • GET /api/v1/namespaces/feast-rag/secrets — to retrieve mTLS certificates for the Ray client connection

Both calls fail with 403 Forbidden because the service account has no RBAC grants for these resources.

Expected Behavior

When the Feast Operator detects that batchEngine is configured with a KubeRay cluster, it should automatically create the following RBAC resources for the Feast deployment's service account:

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: <featurestore-name>-ray-access
rules:
- apiGroups: ["ray.io"]
  resources: ["rayclusters"]
  verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: <featurestore-name>-ray-secrets
rules:
- apiGroups: [""]
  resources: ["secrets"]
  verbs: ["get", "list", "watch", "create", "update", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: <featurestore-name>-ray-access
subjects:
- kind: ServiceAccount
  name: <featurestore-name>
roleRef:
  kind: Role
  name: <featurestore-name>-ray-access
  apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: <featurestore-name>-ray-secrets
subjects:
- kind: ServiceAccount
  name: <featurestore-name>
roleRef:
  kind: Role
  name: <featurestore-name>-ray-secrets
  apiGroup: rbac.authorization.k8s.io

These resources should be:

  • Owned by the FeatureStore CR (via ownerReferences) so they are garbage-collected on deletion
  • Only created when batchEngine is configured with a KubeRay-type ConfigMap
  • Scoped to the FeatureStore namespace (namespace-scoped Roles, not ClusterRoles)

Current Workaround

Users must manually create the Roles and RoleBindings shown above before running materialization.

Activity

  1. ntkathole
    added the
    Task
    issue type on May 15, 2026
  2. ntkathole
    added
    OperatorFeast operator related issuesFeast operator related issues
    on May 15, 2026
  3. aravind-n
    added 2 commits that reference this issue on May 18, 2026

    feat(operator): auto-create KubeRay RBAC for Feast service account

    This issue will close once commit 08a3fc9 is merged into the 'master' branch.
    08a3fc9

    feat(operator): auto-create KubeRay RBAC for Feast service account

    This issue will close once commit 2f10a08 is merged into the 'master' branch.
    2f10a08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OperatorFeast operator related issuesFeast operator related issues

    Type

    Task

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.