-
Notifications
You must be signed in to change notification settings - Fork 51
New Features #32
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
Open
hasechris
wants to merge
20
commits into
joaojacome:master
Choose a base branch
from
hasechris:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
New Features #32
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c56b704
fix encoding & add session param
fc5a20f
updadte README
1c75f01
Merge pull request #1 from Weidows/master
hasechris a806e2b
feature: use password field as ssh key password
hasechris 8d93978
feature: remove bitwarden ssh keys from ssh-agent
hasechris 411221f
Merge pull request #3 from hasechris/feature_remove_from_agent
hasechris d2c9b22
Merge branch 'dev' into feature_password_field
hasechris db3eb9a
Merge pull request #2 from hasechris/feature_password_field
hasechris a9ba9a8
help for debugging in vs code
hasechris 63a824d
Merge pull request #4 from hasechris/feature_dev_visual_studio
hasechris e5dd90a
add vscode launch.json to gitignore, so local changes (for session ke…
hasechris 52a5634
syntax problem?
hasechris 47f7800
found another method to ignore future changes to vscode/launch.json
hasechris b6eba01
arguments were out of order
hasechris 4d3b14b
first working version of keyentry searching via entryname
hasechris 0982222
line not needed
hasechris cad0072
Merge pull request #5 from hasechris/feature_specify_keyentry
hasechris ad5605e
Merge pull request #6 from hasechris/dev
hasechris 811992a
.gitignore
hasechris 3d56277
upload local working version - using it since some months
hasechris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Python: Aktuelle Datei", | ||
| "type": "python", | ||
| "request": "launch", | ||
| "program": "${file}", | ||
| "console": "integratedTerminal", | ||
| "args": [ | ||
| "--remove", | ||
| "--session", | ||
| "<redacted>", | ||
| "-c", | ||
| "keyname", | ||
| "-f", | ||
| "ssh-keys" | ||
| ], | ||
| "justMyCode": true | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Currently, we don't have any external dependencies (besides bitwarden-cli and ssh-agent, of course). Adding an external library as dependency would make this tool harder to install.
We might need to rethink if that's the direction we'd like to go, but for now I'd say we better avoid requiring extra libs.
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.
Hi @joaojacome,
Basically I agree with you, a new library is of course always a problem.
But I still decided to go this way, because at the moment the user has to manually remove the just added keys from the ssh-agent. From the user's point of view, I find this very inconvenient, so I decided to add the "Key Removal" function. Therefore the library is "required".
Additionally, due to your concerns, I tried to read up a bit about this library. Basically this library seems to be relatively well known, has thousands of downloads on pypi.org and a clean release management. I also checked the default package lists of Debian and Manjaro (desktop OS of my choice). In both operating systems this package (python-cryptography) is included in the default lists. So the coverage should be relatively wide.
Maybe you could also start a poll among users of the tool?
But it's your choice, of course. Feel free to reject the PR as is.
Greetings
hasechris :-)
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.
Might be a compromise to leverage the ssh-agent timeout, to have simple way to restrict the maximum time a key is active?
We could simply pass a
-targument to the subprocess call. That's straight forward, needs no additional libraries, but would prevent keys from staying in memory indefinitely.