8000 Clean up snapshot temp directory during initialization by shreyas-s-rao · Pull Request #869 · gardener/etcd-backup-restore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

shreyas-s-rao
Copy link
Collaborator
@shreyas-s-rao shreyas-s-rao commented Apr 24, 2025

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:

Clean up snapshot temp directory during initialization.

@shreyas-s-rao shreyas-s-rao added this to the v0.36.0 milestone Apr 24, 2025
@shreyas-s-rao shreyas-s-rao requested a review from a team as a code owner April 24, 2025 06:39
@gardener-robot gardener-robot added the needs/review Needs review label Apr 24, 2025
@gardener-robot
Copy link

@shreyas-s-rao Labels area/todo, kind/todo do not exist.

@gardener-robot gardener-robot added the size/s Size of pull request is small (see gardener-robot robot/bots/size.py) label Apr 24, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 24, 2025
@gardener-robot gardener-robot added area/compliance Compliance related area/security Security related kind/cleanup Something that is not needed anymore and can be cleaned up kind/task General task labels Apr 24, 2025
@gardener-robot-ci-1 gardener-robot-ci-1 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 24, 2025
@shreyas-s-rao shreyas-s-rao added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 24, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 24, 2025
@shreyas-s-rao shreyas-s-rao added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 24, 2025
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 24, 2025
@ishan16696
Copy link
Member

@shreyas-s-rao please resolve the merge conflicts.

@shreyas-s-rao
Copy link
Collaborator Author

@ishan16696 done. PTAL

@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 28, 2025
@ishan16696
Copy link
Member

/assign

Copy link
Member
@ishan16696 ishan16696 left a 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

Copy link
Member
@ishan16696 ishan16696 left a comment

Choose a reason for hiding this comment

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

LGTM!!

@shreyas-s-rao shreyas-s-rao merged commit a4f20c2 into gardener:master Apr 29, 2025
10 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compliance Compliance related area/security Security related kind/cleanup Something that is not needed anymore and can be cleaned up kind/task General task needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0