karmada icon indicating copy to clipboard operation
karmada copied to clipboard

add CRDs archive verification to enhance file system robustness

Open zhzhuang-zju opened this issue 4 months ago • 2 comments

What type of PR is this? /kind feature

What this PR does / why we need it: karmada-operator provides a custom download path for CRDs files. Before processing the files, it's necessary to validate the CRDs archive to enhance system robustness.

  • Check if its file name includes relative paths.

  • check if the CRDs archive has the expected directory structure.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer: karamdactl init has the same issue, and its enhancement is ongoing

Does this PR introduce a user-facing change?:


zhzhuang-zju avatar Oct 17 '24 03:10 zhzhuang-zju