Title: Operator PVC mount use fails in namespaces w/ privileged Pod security · Issue #5324 · feast-dev/feast · GitHub
Open Graph Title: Operator PVC mount use fails in namespaces w/ privileged Pod security · Issue #5324 · feast-dev/feast
X Title: Operator PVC mount use fails in namespaces w/ privileged Pod security · Issue #5324 · feast-dev/feast
Description: Expected Behavior With the following FeatureStore spec, the Pod should start successfully (in any namespace) in clusters that support PVC creation - spec: feastProject: my_project services: offlineStore: persistence: file: pvc: create: {...
Open Graph Description: Expected Behavior With the following FeatureStore spec, the Pod should start successfully (in any namespace) in clusters that support PVC creation - spec: feastProject: my_project services: offline...
X Description: Expected Behavior With the following FeatureStore spec, the Pod should start successfully (in any namespace) in clusters that support PVC creation - spec: feastProject: my_project services: offline...
Opengraph URL: https://github.com/feast-dev/feast/issues/5324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Operator PVC mount use fails in namespaces w/ privileged Pod security","articleBody":"## Expected Behavior \nWith the following FeatureStore `spec`, the Pod should start successfully (in any namespace) in clusters that support PVC creation -\n```yaml\nspec:\n feastProject: my_project\n services:\n offlineStore:\n persistence:\n file:\n pvc:\n create: {}\n mountPath: /offline\n```\n\n## Current Behavior\nPod goes into `CrashLoopBackOff` and throws these errors -\nfeast-init container -\n```sh\nCreating feast repository...\nfeast init my_project\nbash: line 3: /offline/my_project/feature_repo/feature_store.yaml: Permission denied\nFeast repo creation complete\n```\nonline container -\n```sh\nCan't find feature repo configuration file at /offline/my_project/feature_repo/feature_store.yaml. Make sure you're running feast from an initialized feast repository.\n``` \n\nThe issue is that the resulting mount is owned by root and does not offer group write permissions.\n```sh\n$ id\nuid=1001(default) gid=0(root) groups=0(root)\n\n$ ls -la /offline\ntotal 24\ndrwxr-xr-x. 4 root root 4096 May 6 13:42 .\ndr-xr-xr-x. 1 root root 61 May 6 13:52 ..\ndrwx------. 2 root root 16384 May 6 13:42 lost+found\ndrwxr-xr-x. 3 root root 4096 May 6 13:42 my_project\n```\n\n\n## Steps to reproduce\n - Switch to a namespace w/ `privileged` pod security -\n```sh\n$ kubectl get ns default -oyaml\napiVersion: v1\nkind: Namespace\nmetadata:\n annotations:\n openshift.io/sa.scc.mcs: s0:c1,c0\n openshift.io/sa.scc.supplemental-groups: 1000000000/10000\n openshift.io/sa.scc.uid-range: 1000000000/10000\n creationTimestamp: \"2025-05-01T02:05:22Z\"\n labels:\n kubernetes.io/metadata.name: default\n pod-security.kubernetes.io/audit: privileged\n pod-security.kubernetes.io/enforce: privileged\n pod-security.kubernetes.io/warn: privileged\n name: default\n```\n - Deploy the following CR -\n```yaml\napiVersion: feast.dev/v1alpha1\nkind: FeatureStore\nmetadata:\n name: sample\nspec:\n feastProject: my_project\n services:\n offlineStore:\n persistence:\n file:\n pvc:\n create: {}\n mountPath: /offline\n```\n\n### Specifications\n\n- Version: 0.49.0\n- Platform: OpenShift\n- Subsystem: Operator\n\n## Possible Solution\nAdd ability to set the `securityContext` of the feature store Pod. This would allow the user to set things like `runAsGroup` \u0026 `fsGroup`, which should resolve the issue","author":{"url":"https://github.com/tchughesiv","@type":"Person","name":"tchughesiv"},"datePublished":"2025-05-06T13:51:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5324/feast/issues/5324"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:264f2aef-1970-701b-ec01-b087709a44a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9650:372AFC:1240B758:12A5973D:696E997A |
| html-safe-nonce | b3034e4f870f5f33f7b8c592b430e396565e461e78a4e5f8258f19f0d9735240 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjUwOjM3MkFGQzoxMjQwQjc1ODoxMkE1OTczRDo2OTZFOTk3QSIsInZpc2l0b3JfaWQiOiI1MDgzMTMxMDQyNTQxMjQ2ODQzIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 0cd0f38067f497f9bee4863805a9d8cb63f106cb4e079488273275ca21350d7a |
| hovercard-subject-tag | issue:3042928123 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/5324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a3b510f2a1864c32d264d9ffc0c9d6aa691ce341daff29bf783e8ae47e6a579/feast-dev/feast/issues/5324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a3b510f2a1864c32d264d9ffc0c9d6aa691ce341daff29bf783e8ae47e6a579/feast-dev/feast/issues/5324 |
| og:image:alt | Expected Behavior With the following FeatureStore spec, the Pod should start successfully (in any namespace) in clusters that support PVC creation - spec: feastProject: my_project services: offline... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tchughesiv |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 27b23bc056eb973d350fc95afc848757edb9e7a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width