-
Notifications
You must be signed in to change notification settings - Fork 630
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
Fix the cleanup of local secret file #5061
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
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.
I have added deleteOnExit()
also for when the path is preexisting.
This makes the behaviour retroactive, for tmp files with matching hash.
What do you think?
Umm, not sure anymore it should be deleted 😄 |
Why are you not convinced? If not deleted, I expect the impact on users still to be quite limited: the only ones experiencing inconsistencies would be those using a literal $ symbol in the secret. And the workaround for them is simply a one-off manual deletion of those temporary files. |
The point that file could be deleted during a by a run while a concurrent execution is running. I think the temp file is removed, then the file name should be unique i.e. using a random uuid |
See now - added a random UUID to the filename. (oops closed by accident - reopened!) |
modules/nextflow/src/main/groovy/nextflow/secret/LocalSecretsProvider.groovy
Outdated
Show resolved
Hide resolved
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
7ee60e8
to
905000e
Compare
Signed-off-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
Ouch got messed with unrelated commits |
unrelated commits should be fine now, see changelog |
(still showing extra commits in commit list, as I rebased to sign off one commit) |
This PR fixes the cleanup of secret files created by the local provider