-
Notifications
You must be signed in to change notification settings - Fork 5
Adding client authentication with public key fuction. #181
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
itouri
wants to merge
66
commits into
master
Choose a base branch
from
console_auth
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
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
20f480b
Adding parameter for authentication method.
itouri 67629e3
Adding CI test code for authentication parameters.
itouri ba21474
Merge branch 'master' into console_auth
itouri e9ce98c
Add function that validate ssh_public_key of vm/lxc template parameter
itouri 8329e18
Merge branch 'master' into console_auth
itouri e56737c
Modify lxc.go to can convert authentication_type and ssh_public_key p…
itouri a8e918f
Merge branch 'master' into console_auth
itouri b72ff81
Remove processing read file of ssh public key.
itouri 7398602
Adding lxc_auth_ssh.json
itouri fd9df89
Merge branch 'master' into console_auth
itouri 7d92ca6
Change MergeJSON to use common function of ParseTemplate.
itouri dc86ac5
Modify validation process of LxcTemplate.
itouri 8714d18
Divided validation authentication_type functions into common functions.
itouri 11a63f7
Modify that common the validation to the authentication_type and ssh_…
itouri 186568b
Modify Qemu test contents
itouri da2d781
Made SSH server to can authentication with public key.
itouri e6e0984
Add authentication_type and ssh_public_key to MergeArgs() as parameters.
itouri 2de4fcc
Changed the return type of validatePublicKey([]byte) to error.
itouri f7b44e9
Modify the SSH server to authenticate the client.
itouri eb79945
Delete extra line of code about authentification.
itouri 7519521
Adding parameter of Auth to ClientConfig
itouri fdc200e
Modify arg that is passed to NewSshConsole
itouri 3171355
Delete if section of parse and set indentifyFile
itouri 187827d
Modify ssh.ClientConfig and PublicKeyCallback
itouri 065295b
Modify authenticate process.
itouri 9d4d667
Removed old comment and extra code.
itouri 088e8f5
Delete extra comment.
itouri 9a565bd
Add console with public key test to cmd_console_test.
itouri 76a563c
Fix deleting variable of info.
itouri c47e357
Modify test command.
itouri 1329d57
Add if process that using api.ConsoleReply.
itouri de2b220
Add forggten folder.
itouri b586669
Add authentication type test.
itouri 8d3282d
Modify args of RunCmd.
itouri b88f005
Modify test code.
itouri 8fd82e0
Add trimming \n from public_key.
itouri 08c9355
Delete extra code.
itouri 819e639
Modify if process.
itouri 4de652d
Modify logic of authType’s switch.
itouri a0ba12b
Adding show option test to TestCmdConsole_AuthenticationNone.
itouri 5e76df6
Merge branch 'master' into console_auth
itouri c68c7c0
Merge branch 'fix-jenkins-local-merge' into console_auth
fe940a5
Upgrade golang.org/x/crypto/ssh
3d94237
Merge branch 'master' into console_auth
d036635
Host key callback became mandate parameter.
ff7a886
Apply same ssh client host key check to acceptance test binary
299e1ac
Same ssh host key change with d036635
1596b50
Adding incorrect private key console test.
itouri 853ffa6
Modify the test of console with public key.
itouri bb8bca2
Merge branch 'master' into console_auth
533c3d0
Move console auth methods to new interface
8456dd5
Cast to ConsoleAuthAttributes type instead InstanceResource type
6554021
Merge branch 'master' into console_auth
d386fad
Merge branch 'fix-connection-status' into console_auth
343c305
Merge branch 'master' into console_auth
itouri f4782d3
Modified the separated function to two lines
itouri e4a0ecd
Add AuthenticationType to EsxiTmplate
itouri bc537e3
Modified TestLXCCmdConsole_AuthenticationPubkey
itouri 733384b
Added HostKeyCallback to needed place
itouri ee4c4ad
Modified none auth type sshd.go logic
itouri b78fbdc
Added auth password method to ssh config
itouri 3f9bed5
Added ssh.Password("")
itouri 508f170
Added json_name field of authType
itouri 4155a3c
Modified identify typo and change to local variable from global
itouri f9112cf
Added validation of authtication_type to lxc.go and qemu.go
itouri 6b769a9
Modified lxc and qemu AuthenticationType validation.
itouri 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
ci/citest/acceptance-test/tests/fixtures/lxc_auth_ssh.json
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,14 @@ | ||
{ | ||
"title": "CentOS7", | ||
"template": { | ||
"type": "vm/lxc", | ||
"lxc_template": { | ||
"openvdc": { | ||
"distro": "centos", | ||
"release": "7" | ||
} | ||
}, | ||
"authentication_type": "none" | ||
} | ||
} | ||
|
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
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
Oops, something went wrong.
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.
Why is the password authentication enabled? Just
NONE
andPUB_KEY
are listed inmodel.proto
.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.
Library of SSH can't call PublickeyCallBack if does not designate public key. Therefore if client don't designate public key then server authenticate client by using PasswordCallback without password.