Page MenuHomePhabricator

Don't leave temporary files around when trying to use credentials with destroyed secrets
ClosedPublic

Authored by epriestley on Aug 21 2014, 6:21 PM.
Tags
None
Referenced Files
F14765764: D10328.id24863.diff
Thu, Jan 23, 3:50 PM
F14765763: D10328.id24859.diff
Thu, Jan 23, 3:50 PM
F14765761: D10328.id.diff
Thu, Jan 23, 3:50 PM
F14765760: D10328.diff
Thu, Jan 23, 3:50 PM
Unknown Object (File)
Wed, Jan 22, 12:17 AM
Unknown Object (File)
Tue, Jan 21, 9:30 PM
Unknown Object (File)
Thu, Jan 16, 8:12 AM
Unknown Object (File)
Fri, Jan 3, 5:54 PM
Subscribers

Details

Summary

Ref T4284. This fixes at least one problem which can cause the observed behavior.

Test Plan
  • Before applying patch, used PHABRICATOR_CREDENTIAL=PHID-CDTL-... bin/ssh-connect + debugging prints to verify the keyfile was written and cleaned up normally.
  • Destroyed the credental, verified the temporary file was not cleand up correctly.
  • Applied patch, verified temporary file was not written and command exited with sensible error.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Don't leave temporary files around when trying to use credentials with destroyed secrets.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Aug 21 2014, 6:24 PM
epriestley updated this revision to Diff 24863.

Closed by commit rP241cfc2e8312 (authored by @epriestley).