Skip to content

resources: support PVC sub paths deeper than one level#375

Open
twelho wants to merge 1 commit intosamba-in-kubernetes:masterfrom
twelho:share-subdir
Open

resources: support PVC sub paths deeper than one level#375
twelho wants to merge 1 commit intosamba-in-kubernetes:masterfrom
twelho:share-subdir

Conversation

@twelho
Copy link
Copy Markdown

@twelho twelho commented Mar 28, 2026

There does not seem to be a technical limitation for doing this, other than complexity involving path validation. This uses a defense-in-depth approach with an (admittedly somewhat complex) regex to prevent path escapes, coupled with a manual bounds check if the CR is applied without validation.

There does not seem to be a technical limitation for doing this, other than complexity involving path validation. This uses a defense-in-depth approach with an (admittedly somewhat complex) regex to prevent path escapes, coupled with a manual bounds check if the CR is applied without validation.
@twelho
Copy link
Copy Markdown
Author

twelho commented Mar 28, 2026

Simplified the validation regex since negative lookahead is not supported. This is not as extensive, but should still serve its purpose.

@mergify mergify Bot added the priority-review This PR deserves a look label Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority-review This PR deserves a look

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant