Skip to content

deprecate allow-inline-volume-key-access-with-identity flag (no-op) - #3148

Open
srranjan-sri wants to merge 2 commits into
kubernetes-sigs:masterfrom
srranjan-sri:srranjan/deprecate-allow-inline-volume-key
Open

deprecate allow-inline-volume-key-access-with-identity flag (no-op)#3148
srranjan-sri wants to merge 2 commits into
kubernetes-sigs:masterfrom
srranjan-sri:srranjan/deprecate-allow-inline-volume-key

Conversation

@srranjan-sri

@srranjan-sri srranjan-sri commented May 11, 2026

Copy link
Copy Markdown

What type of PR is this?

What this PR does / why we need it:
This PR adds a warning to inform users that the allow-inline-volume-key-access-with-identity flag will be deprecated in a future release when it is set to true.
image

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 11, 2026
@k8s-ci-robot
k8s-ci-robot requested review from cvvz and gnufied May 11, 2026 16:50
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 11, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

Hi @srranjan-sri. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 11, 2026
@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from d440778 to 5cf0a61 Compare May 11, 2026 17:07
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 11, 2026
@landreasyan

Copy link
Copy Markdown

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 11, 2026
@landreasyan
landreasyan requested a review from Copilot May 11, 2026 17:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Deprecates the --allow-inline-volume-key-access-with-identity flag by making it a no-op and ensuring inline/ephemeral volume behavior no longer depends on this setting, while updating Helm chart documentation and templates to reflect the deprecation.

Changes:

  • Remove the allowInlineVolumeKeyAccessWithIdentity field from the runtime Driver and stop using it in inline/ephemeral volume logic.
  • Emit a warning at startup if the deprecated flag is set to true, clarifying it has no effect.
  • Update Helm values, templates, and chart README to mark the setting as deprecated/no-op.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/azurefile/nodeserver.go Removes conditional behavior tied to the deprecated flag for ephemeral volume handling.
pkg/azurefile/azurefile.go Drops the Driver field and adds a deprecation warning when the option is enabled.
pkg/azurefile/azurefile_options.go Updates the CLI flag help text to clearly indicate deprecation and no-op behavior.
charts/README.md Marks the Helm value as deprecated/no-op in the configuration table.
charts/latest/azurefile-csi-driver/values.yaml Adds an inline deprecation note for the Helm value.
charts/latest/azurefile-csi-driver/templates/csi-azurefile-node.yaml Annotates the node argument as deprecated/no-op.
charts/latest/azurefile-csi-driver/templates/csi-azurefile-node-windows.yaml Annotates the windows node argument as deprecated/no-op.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mittachaitu mittachaitu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mittachaitu, srranjan-sri
Once this PR has been reviewed and has the lgtm label, please assign andyzhangx for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from 5cf0a61 to 60fb68b Compare May 11, 2026 19:46
@landreasyan
landreasyan requested review from andyzhangx May 11, 2026 20:56
@landreasyan

Copy link
Copy Markdown

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 11, 2026
Comment thread pkg/azurefile/azurefile.go

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from 60fb68b to 7a49fb4 Compare May 13, 2026 04:45
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 13, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 13, 2026
@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from 7a49fb4 to 24a1562 Compare May 13, 2026 04:51
Comment thread pkg/azurefile/nodeserver.go Outdated
@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch 2 times, most recently from f54191d to 452adcb Compare May 13, 2026 08:44
@srranjan-sri

Copy link
Copy Markdown
Author

/retest

@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from 452adcb to b1b31c3 Compare May 13, 2026 18:45
Comment thread charts/latest/azurefile-csi-driver/templates/csi-azurefile-node-windows.yaml Outdated
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 19, 2026
@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch 2 times, most recently from 7c4c574 to 133026b Compare May 19, 2026 06:15

@mittachaitu mittachaitu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In template let's add a check and print that this option will be depricated in future release, so that this will get notified to user as part of upgrades/new installations

{{- if values.node.allowInlineVolumeKeyAccessWithIdentity }}
{{- printf "WARNING: 'allowInlineVolumeKeyAccessWithIdentity' will be deprecated in future releases." | quote | indent 0 }}
{{- end }}

@srranjan-sri
srranjan-sri force-pushed the srranjan/deprecate-allow-inline-volume-key branch from 133026b to e9f2611 Compare May 19, 2026 10:29
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 19, 2026

@andyzhangx andyzhangx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should leave the allow-inline-volume-key-access-with-identity flag as it is now since only open source admin user can enable this feature, there is no impact on AKS managed csi driver.

The original inline volume with managed identity auth mount is already non supported.

@mittachaitu

mittachaitu commented May 20, 2026

Copy link
Copy Markdown
Contributor

we should leave the allow-inline-volume-key-access-with-identity flag as it is now since only open source admin user can enable this feature, there is no impact on AKS managed csi driver.

The original inline volume with managed identity auth mount is already non supported.

Here the issue is little different even admin enables this flag they will not have control on pods which uses inline volume. If admin enables this flag and some arbitrary pod shouldn't access fileshare (without right set of permissions/authorization). So, irrespective of flag enablement this PR does right thing from security point for OpenSource users.

@andyzhangx

Copy link
Copy Markdown
Member

we should leave the allow-inline-volume-key-access-with-identity flag as it is now since only open source admin user can enable this feature, there is no impact on AKS managed csi driver.
The original inline volume with managed identity auth mount is already non supported.

Here the issue is little different even admin enables this flag they will not have control on pods which uses inline volume. If admin enables this flag and some arbitrary pod shouldn't access fileshare (without right set of permissions/authorization). So, irrespective of flag enablement this PR does right thing from security point for OpenSource users.

@srranjan-sri we could add some notes about the usage of this flag, leaving this flag as disabled by default should be ok.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants