-
Notifications
You must be signed in to change notification settings - Fork 102
Clean up snapshot temp directory during initialization #869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@shreyas-s-rao Labels area/todo, kind/todo do not exist. |
@shreyas-s-rao please resolve the merge conflicts. |
d441c08
to
2fcbadd
Compare
@ishan16696 done. PTAL |
/assign |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks good, I have only 1 doubt @shreyas-s-rao
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
How to categorize this PR?
/area security compliance
/kind task cleanup
What this PR does / why we need it:
Clean up snapshot temp directory during initialization, to ensure any previously created temp files for snapshot upload will be cleaned up, which helps in two ways (a) to remove unnecessary files which may not have been properly cleaned up in a previous run of etcdbr and (b) these older files might have old file permissions before umask of 0077 was set, which might violate DISA STIG standards, hence cleaning up these files is beneficial from a security perspective as well.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: