Remove checking for parent / grandparent process #299
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just a proposal, where is it needed to check for parent & grand parent process (for cache)?
This is is different than the standard
ssh-agent
process wheressh-add ~/.ssh/id_xxx
will adds the key to memory, and then it works in other terminals (I don't think it checks for parent process).I understand that perhaps this approach allows for more fine-grain control of prompting request. However, it doesn't quite works right most of the time. E.g.
ssh my_host
the cache works well. But as soon as there are jump-host the cache no longer works~/.ssh/config
has ahost_b
that jumps throughhost_a
, it prompts for approval every time (probably because it spawns another ssh process, which makesparentProcess
having different PID)host_c
viahost_b
viahost_a
, and so on.goldwarden
log it shows[INF] [...] [Goldwarden > SSH] >>> SSH Agent connection from fish>git>git
so perhaps the git is using some subprocess, which causes checking of parent process fails
goldwarden
the process shows[INF] [...] [Goldwarden > SSH] >>> SSH Agent connection from yadm>git>git
i.e., Checking for grandParentProcess will no longer cache the session.