← Back to Pull requests

Add cluster tag isolation for EFS access points #2003

Closed
unknown closed this pull request without merging on Nov 04, 2026 19:22 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 02:17 UTC
Author

Depends on #2007.

Is this a bug fix or adding new feature?

New Feature

What is this PR about? / Why do we need it?

Tag every access point the controller creates with <cluster-tag-key>=<cluster-name>, and add --cluster-tag-isolation (disable, backfill, enforce) so a controller can be limited to its own cluster's resources with a tag-based IAM policy.

  • New flags --cluster-name, --cluster-tag-key and --cluster-tag-isolation, with matching Helm values. backfill and enforce require both name and key and fail at startup (and in the chart) otherwise. In disable, setting only one is logged.

  • backfill tags existing access points this driver provisioned for its own PersistentVolumes, at startup and every hour, and logs a summary per sweep plus "cluster tag backfill complete". File systems and static volumes are reported for an administrator to tag.

  • enforce refuses to reuse, adopt or remove the root directory of an access point without this cluster's tag value (FailedPrecondition).

  • New --extra-tags (k1=v1,k2=v2) replaces the deprecated --tags; both are merged and validated at startup and can't set efs.csi.aws.com/cluster or the cluster tag key. enableTagging=false is rejected when the cluster tag is configured.

  • IAM policies in docs: tag-based controller, node and backfill policies for EKS Pod Identity, plus IRSA variants for self-managed clusters that read a cluster-name role tag.

  • docs/install.md recommends EKS Pod Identity, documents IRSA for self-managed Kubernetes, and drops the node instance-profile option. The managed policies remain the option for file systems shared between clusters.

  • docs/cluster-tag-isolation.md covers the policies, rollout for existing clusters, and how to confirm backfill is complete.

  • New serial e2e spec [efs-csi] Cluster tag isolation walks the documented rollout on an EKS Pod Identity cluster, changing the controller role's policies for each state and restoring them afterwards. It skips on clusters without a Pod Identity association.
  • What testing is done?

  • The new e2e spec passes on an eksctl cluster using Pod Identity:

  • - disable with AmazonEFSCSIDriverPolicy: new access points have no cluster tag.
    - backfill with the tag-based and backfill policies: an existing access point gets the cluster tag, and an access point no PV references is left alone.
    - enforce with the tag-based policy only: new access points get the tag, an untagged access point is not reused, and a backfilled one is deleted.
  • Manual migration on the same cluster from v3.5.3 with the managed policies, following docs/cluster-tag-isolation.md:

  • - backfill tagged EFS and S3 Files access points, and both controller replicas logged cluster tag backfill complete.
    - enforce, then the tag-based node policy: tls,iam mounts work, and a file system tagged for another cluster is denied.
  • The Pod Identity controller, node and backfill policies were checked live on 2 EKS clusters (75/75 cases, with denies confirmed in CloudTrail) and with the IAM policy simulator (146/148; the other 2 are a simulator bug).

  • Unit tests, go vet, helm lint and the helm unit tests (66/66) pass.

  • Not tested live: the IRSA policies.
  • Diff: 401 lines (+300 / -101) across 5 files Reviewer: micahhausler Review duration: 11105m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 401 lines diff across 5 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.359
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #2003"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.7% (MEDIUM) · Higher = larger blast radius
    49.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 21.5% · Safe to merge
    21.5%