-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor: Remove file system bindings #516
Conversation
… key management is not pure dart with it)
Trunk test is failing because of the breaking change caused by adding the -i option, this makes me wonder if we even need the trunk test, or if it should be disabled by default like the backward tests. |
final String rootDomain; | ||
final int localSshdPort; | ||
final String ephemeralPermissions; | ||
final SupportedSSHAlgorithm sshAlgorithm; |
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.
Remove late from all of these, which means I had to change how they get set below
@@ -4,8 +4,6 @@ import 'package:noports_core/src/sshrv/sshrv_impl.dart'; | |||
import 'package:socket_connector/socket_connector.dart'; | |||
import 'package:noports_core/src/common/default_args.dart'; | |||
|
|||
typedef SSHRVGenerator = SSHRV Function(String, int, {int localSshdPort}); |
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.
Moved this to src/common/types.dart
@@ -0,0 +1,3 @@ | |||
library noports_core_sshnp_core; | |||
|
|||
export 'src/sshnp/sshnp_core.dart'; |
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.
Exported this so it can implemented in a flutter library 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.
If we want to optimize down the road
at_utils: ^3.0.15 | ||
crypton: ^2.1.0 | ||
cryptography: ^2.7.0 |
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.
Cryptography is used for generating ed25519 keys in pure dart
meta: ^1.9.1 | ||
openssh_ed25519: ^1.1.0 |
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.
openssh_ed25519 is used for converting the generated ed25519 keys to openssh format
path: ^1.8.3 | ||
posix: ^5.0.0 |
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.
posix is used for calling chmod to modify the written ephemeral keys
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.
We will have to assess if this method works on windows, I have yet to test it
- What I did
-i
just like ssh,-s
is now a bool which sends the public key associated with-i
SSHNPImpl
toSSHNPCore
since it is abstract, it isn't really an implementationAtSSHKeyPair
which holds a set of ssh keysLocalSSHKeyUtil
andDartSSHKeyUtil
to manage keys depending on what is available to store / create SSH KeysSSHNPDLocalSSHKeyHandler
(a mixin onSSHNPCore
) which exposesLocalSSHKeyUtil
safelySSHNPDDartSSHKeyHandler
(a mixin onSSHNPForwardDart
) which exposesDartSSHKeyUtil
safelySSHClient
SSHClient
so it is not suitable for use in sshnp_guiSeveral Action items come out of these changes:
-i
,-s
,-r
- How to verify it
NB - Ignore the failed client-trunk test, it is being provided the
-i
arg and doesn't know how to handle it.- Description for the changelog
refactor: Remove file system bindings