Commit Graph

312 Commits (karthik/powershell_encoding)

Author SHA1 Message Date
Megan Marsh 8f3313d81e Create new docker communicator for windows containers
7 years ago
Adrien Delorme 7737458d17 fix log output
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme 025fc87278 StepConnectSSH: show connection address in debug output
7 years ago
Adrien Delorme c214f6735b make everything a uint
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Megan Marsh 3dc1dafe58
Merge pull request #7287 from stephen-fox/ephemeral-ssh-key-pair-issue-7225
7 years ago
Stephen Fox d51e300fcd Clarified comment for 'defaultRsaBits' constant.
7 years ago
Stephen Fox 7e1cbc6d89 Rename references to key pair name to comment.
7 years ago
Stephen Fox 094c87e395 Remove 'SSHPublicKeyUrlEncoded', use 'urlquery' instead.
7 years ago
Stephen Fox 856810e82e Coalesce private key type switch cases per review feedback.
7 years ago
Stephen Fox 672b22bd13 Move 'CreateKeyPairConfig' closer to callers.
7 years ago
Stephen Fox 302828905d Move 'FromPrivateKeyConfig' closer to caller.
7 years ago
Stephen Fox ed06656613 Update 'authorizedKeysLine' doc per review feedback.
7 years ago
Stephen Fox 415ef26768 Removed TODO about key pair description per review feedback.
7 years ago
Megan Marsh 9db844a807 move pause to after connection can be established.
7 years ago
Stephen Fox 2ef6b9247d Initial take on code review feedback from @azr.
7 years ago
Megan Marsh 31c8acc5bc add a configurable pause before step_connect to work around bootstrap race conditions
7 years ago
Stephen Fox 2ab2ea6ef1 Fixed interface documentation typo.
7 years ago
Stephen Fox ed1d224b97 Remove defaultKeyPair type. Be more specific in errors.
7 years ago
chris marget 97268b3041 .
7 years ago
chris marget 3515afa994 better variable names in test function
7 years ago
chris marget 75bd3c6951 constants don't need to be [P]ublic
7 years ago
chris marget b476e54db1 whitespace
7 years ago
chris marget be01ca70f4 on error return empty defaultKeyPair{} rather than nil
7 years ago
chris marget 484aa4768f Remove unused keyheader data type
7 years ago
chris marget 13cc73d600 keypair parsing and testing
7 years ago
Stephen Fox 72b7d63a6a Restructured the SSH key pair's description.
7 years ago
Stephen Fox 4b649f7ce4 Use individual key pair implementations.
7 years ago
Stephen Fox d7510ecdf7 Tweaked 'PublicKeyAuthorizedKeysLine()' comment.
7 years ago
Stephen Fox 58c692a587 Get bits from private key rather than user input.
7 years ago
Stephen Fox f3128143fa Simplified building of authorized_keys public key.
7 years ago
Stephen Fox f2c11b55be Renamed authorized_keys public key function.
7 years ago
Stephen Fox d465231e63 Fixed bad curve ecdsa curve bug.
7 years ago
Stephen Fox 9328c9f9e0 Renamed "new*" SSH key pair methods.
7 years ago
Stephen Fox f8db84334d Alias 'golang.org/x/crypto/ssh' as 'gossh'.
7 years ago
Stephen Fox 9a9bc18fab Renamed SSH key pair source files per pattern.
7 years ago
Stephen Fox 7f6b307dd6 Remove 'Ssh' suffix from 'KeyPairType' constants.
7 years ago
Stephen Fox c6ae8654d9 Moved SSH key pair code into 'helper/ssh'.
7 years ago
Stephen Fox 7b857929ab Added 'SSHPublicKeyUrlEncoded()' to comm.Config.
7 years ago
Megan Marsh c63b54a1e7 move http with proxy call into a helper function
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Ali Rizvi-Santiago b0af406e08 gofmt using v1.11.2 instead of disro's outdated v1.10.5.
7 years ago
Ali Rizvi-Santiago 040a33567e Trying again one more time to prevent import cycles.. Moved common.ExpandUser into packer.ExpandUser..
7 years ago
Ali Rizvi-Santiago 79b68fb89c Replaced the previous incorrect logic with an re-implementation of common.ExpandUser.
7 years ago
Ali Rizvi-Santiago e04986659a Changed the logic for when to actually prefix a path with a u.HomeDir so that it's only done when a non-absolute path is specified.
7 years ago
Ali Rizvi-Santiago 1a3c3f2ffc Replaced all instances of mitchellh/go-homedir with an implementation based on os/user.
7 years ago
Mikhail Ushanov ee0bff6451 communicator/ssh: proper error message
8 years ago
Mikhail Ushanov 45925657fc communicator/ssh: make ssh keys payload internal
8 years ago
Mikhail Ushanov 1c503b86d9 communicator/ssh: expand user path for bastion private key
8 years ago
Mikhail Ushanov 6d2a0ab0df communicator/ssh: expand user path for private key
8 years ago
Mikhail Ushanov da0bad8441 communicator/ssh: add private key file read helper
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Adrien Delorme b0c09087a2 move SSHInterface/SSHIPVersion fields to communitator.Config struct
8 years ago
Adrien Delorme 1d219cecaf add SSHTemporaryKeyPairName to communicator.Config
8 years ago
Adrien Delorme 9a9b82715b config.Comm.SSHKeyPair => SSHKeyPairName
8 years ago
Adrien Delorme 77a57f0354 communicator.Config: `mapstructure:"ssh_key_pair"` => ssh_keypair_name
8 years ago
Adrien Delorme 69dfe2565b SSHBastionPrivateKey => SSHBastionPrivateKeyFile
8 years ago
Adrien Delorme 5369c15459 helper: communicator.SSHFileSigner => ssh.FileSigner
8 years ago
Adrien Delorme b83c72fd54 more private keys in config
8 years ago
Adrien Delorme 663c8134ef GCP: put ssh public/private key in config
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Matthew Hooker e41e99954d
go 1.11 format rules
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Adrien Delorme fa44a4546f use ssh.ParsePrivateKey where we can
8 years ago
Adrien Delorme bacfb02182 doc better SSHConfigFunc
8 years ago
Adrien Delorme ab7f998862 SSHConfigFunc: use struct fields instead of copying them locally
8 years ago
Adrien Delorme 0ff7c1da87 SSHConfigFunc: append the ssh auth ways
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Ali Rizvi-Santiago a3cec4f274 Emit both the host and the communicator to the user during StepConnect.
8 years ago
Megan Marsh 3afb243f11 use build name to ensure that winrm password and other shared state is not overwritten if two builders need the password in the same packer run.
8 years ago
Seth Vargo b193b96f76
Include arch and os
8 years ago
Seth Vargo b17b333e29
Add a common package for specifying useragent and adopt that everywhere
8 years ago
Megan Marsh 4e32d0da24 stricter permissions on shared state file since it now contains a password
8 years ago
Megan Marsh 4d19f4f8b6 add all the new files
8 years ago
Josh Soref 64aae1c781 spelling: occurring
8 years ago
Josh Soref 5e167e3b6d spelling: accumulates
8 years ago
SwampDragons 5af42ee9e2
Revert "Add `winrm_no_proxy` option."
8 years ago
Matthew Hooker 22666153f9
Add `winrm_no_proxy` option.
8 years ago
Matthew Hooker 63f1673909
ssh deadlines
8 years ago
Matthew Hooker cab52872f4
add session level keep-alives for ssh communicator
8 years ago
Matthew Hooker 3e2895afec
comments
8 years ago
Matthew Hooker 2afd81741c
use correct context
8 years ago
Matthew Hooker ce4f30c5ae
fix tests
8 years ago
Matthew Hooker 8cd403425e
test fixes WIP
8 years ago
Matthew Hooker 5d48d658b4
Wire context through misc steps
8 years ago
Matthew Hooker 7a189a83a1
fix imports
8 years ago
Matthew Hooker a831d522be
change run signatures
8 years ago
Matthew Hooker a0c625ea44
Revert "working with opt-in"
8 years ago
Matthew Hooker e98f201602
working with opt-in
8 years ago
Matthew Hooker 62e3d1362f
pass context through step.run again
8 years ago
Matthew Hooker 030b5fd4f0
WIP add context to state bag
8 years ago
Matthew Hooker 07a5af66f8
remove ctx arg from step.run
8 years ago
Matthew Hooker 366dc3da0a
move multistep imports to helper.
8 years ago
Matthew Hooker 89d43256bb
pass context into step.run
8 years ago
Matthew Hooker 807e88245b
trying to add context to state bag
8 years ago
Pawel Kilar 17beb1d7ad Check if both SSH proxy and basiton are configured
9 years ago
Paul Kilar d9b404fa00 SOCKS5 proxy support
9 years ago
Megan Marsh 959db1ac16 add echo test to winrm connection.
9 years ago
Rickard von Essen 4f6010aa26
ssh: Renamed ssh_disable_agent to ssh_disable_agent_forwarding
9 years ago
Lee Spottiswood 8473a1148c Add 'winrm_use_ntlm' configuration directive for NTLM authentication support
9 years ago
Rickard von Essen d4ecf4acb3
Add InsecureIgnoreHostKey to bastion connection
9 years ago
Rickard von Essen 2164700162
comm/ssh: Add support for using SSH Agent auth towards a bastion host.
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker aaba5286a6 Revert "Use SSH agent when enabled for bastion step"
9 years ago
David Campbell 6c7e3b70a9
- use xanzy/ssh-agent for windows compatibility
9 years ago
David Campbell b598baa5e3
Use SSH agent when enabled for bastion step
9 years ago
Eike Verdenhalven 7ad77b9e93 integrate new winrm transport interface
9 years ago
Taliesin Sisson 335615408a Run go fmt on files
9 years ago
Taliesin Sisson bd0b1190f6 When redirecting local ports to hyper visor ports we need to configure WinRM ports as well as SSH ports.
9 years ago
Rickard von Essen 96e9a8e6e9 Removed default value for ssh_username
10 years ago
James Nugent 7425fef2c7 builder/amazon: Allow use of local SSH Agent
10 years ago
Orivej Desh 639bf356aa Fail on unknown values of -on-error
10 years ago
Gonzalo Peci 9c9f8cd451 Add winrm functionality to null provisioner (#2525)
10 years ago
Christopher Boumenot b57ed27352 Add support for NTLM the WinRM communicator.
10 years ago
Ilias Bertsimas 918c88ac38 Add 4 testing scenarios for WinRM helper communicator config.
10 years ago
Ilias Bertsimas 85e4865368 Make communicator's WinRM defaults more intuitive when using SSL.
10 years ago
Chris Bednarski 569e6cc464 go fmt
10 years ago
Chris Bednarski 3d9410f176 Merge branch 'sftp' of https://github.com/2opremio/packer into f-sftp
10 years ago
Chris Bednarski 6587926a2b Merge pull request #2848 from epowell/master
10 years ago
Ben Goodwin 64152e4a64 Implement WinRM-over-HTTPS
10 years ago
Evan Powell bb8ced8cc9 Implement a null-object communicator for 'none'
11 years ago
Mark Peek 268ce81dd3 helper/communicator: allow docker custom communicator
11 years ago
Mark Peek 2306f4a4e4 Fixes #2699: catch invalid communicator types
11 years ago
Alfonso Acosta a59c82d7a6 Add sftp file transfer support
11 years ago
Gonzalo Peci 88ebc2f7e8 Add s.SSHPort variable as the port WinRM uses to connect. This is needed on any builder where the port used to connect is not the guest winrm port but a nated port on the host.
11 years ago
Chris Bednarski 7a6eb966c0 We actually use PACKER_ACC not TF_ACC
11 years ago
Mitchell Hashimoto ac444accb1 helper/config: tests
11 years ago
Mitchell Hashimoto fd2d44c212 helper/config: copy buildname/buildtype properly
11 years ago
Chris Bednarski eee066371a Support -flag=var1,var2,var3 to fix #2332
11 years ago
Mitchell Hashimoto a019575026 helper/communicator: support disabling SSH agent
11 years ago
Mitchell Hashimoto 6cdc17dda4 helper/communicator: default bastion PK to normal PK
11 years ago
Mitchell Hashimoto cbaaf0da52 communicator/ssh: support for bastion SSH
11 years ago
Mitchell Hashimoto dc067b3f10 Merge pull request #2244 from mitchellh/f-docker-ssh
11 years ago
Mitchell Hashimoto dbbf10472b Merge branch 'b-config-handshake'
11 years ago
Mitchell Hashimoto 723b91ccf3 Merge pull request #2232 from mitchellh/f-build-name
11 years ago
Clint 8fca582278 Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
11 years ago
Mitchell Hashimoto cab2665119 builder/docker: support custom communicators
11 years ago
Mitchell Hashimoto 8f6ecfd9e3 builder/amazon: various fixes (minor) to get things going
11 years ago
Mitchell Hashimoto dc8c94890a helper/config: copy template path properly
11 years ago
Mitchell Hashimoto 4be10b428a helper/communicator: hook up WinRM
11 years ago
Mitchell Hashimoto 7a39758054 helper/communicator: WinRM stuff
11 years ago
Mitchell Hashimoto 8d0904e296 helper/communicator: configurable handshake attempts [GH-1988]
11 years ago
Mitchell Hashimoto c3cc9e844e helper/communicator: fix vet
11 years ago
Mitchell Hashimoto 115d583cff helper/communicator: make host more generic
11 years ago
Mitchell Hashimoto 68e4734caf builder/null: pass unit tests
11 years ago
Mitchell Hashimoto 5d630bf5fb helper/communicator: validate ssh keys
11 years ago
Mitchell Hashimoto 90581899a4 helper/config: decode time durations
11 years ago
Mitchell Hashimoto 60081c323a helper/communicator: ssh settings aren't required if type is none
11 years ago
Mitchell Hashimoto 4b4fe2280d helper/communicator: can be disabled
11 years ago
Mitchell Hashimoto 4b3ed5d7e2 helper/communicator
11 years ago
Mitchell Hashimoto 472b060394 packer: build_name and build_type work + tests
11 years ago
Clint Shryock bec59b535d builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts
11 years ago
Mitchell Hashimoto 639e63fd7c packer: test for template path
11 years ago
Mitchell Hashimoto 931f3eb7bc helper/config: support outputting metadata
11 years ago
Mitchell Hashimoto bdb9bd7dc5 helper/config: error if unused keys
11 years ago
Mitchell Hashimoto 241f76b5b1 helper/config: decoder
11 years ago
Mitchell Hashimoto 49e29d5a6b builder/testing: delete artifacts
11 years ago
Mitchell Hashimoto 485825fe12 helper/builder/testing for acceptance tests
11 years ago
Mitchell Hashimoto 7f78a2c5d9 helper/flag-kv: can parse JSON files
11 years ago
Mitchell Hashimoto 9d89ca8e07 command: build should be converted to new API, compiles
11 years ago