Package org.springframework.cloud.config.server.ssh
package org.springframework.cloud.config.server.ssh
-
ClassDescriptionConfigure JGit transport command to use a default SSH session factory based on local machines SSH config.Beans annotated with
HostKeyAlgoSupported
andValidated
will have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentProperties
bean for the constraints: - If host key algo is supported Beans annotated withHostKeyAlgoSupported
andValidated
will have the constraints applied.Beans annotated withHostKeyAndAlgoBothExist
andValidated
will have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentProperties
bean for the constraints: - If host key is set then host key algo must also be set - If host key algo is set then host key must also be set Beans annotated withHostKeyAndAlgoBothExist
andValidated
will have the constraints applied.Beans annotated withKnownHostsFileIsValid
andValidated
will have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentProperties
bean for the constraints: - Verifies that known hosts file existsBeans annotated withPrivateKeyValidator
andValidated
will have the constraints applied.JSR-303 Cross Field validator that ensures that anMultipleJGitEnvironmentProperties
bean for the constraints: - Private key is present and can be correctly parsed usingKeyPair
Beans annotated withPrivateKeyValidator
andValidated
will have the constraints applied.Configure JGit transport command to use a SSH session factory that is configured using properties defined inMultipleJGitEnvironmentProperties
.In a cloud environment local SSH config files such as `.known_hosts` may not be suitable for providing configuration settings due to ephemeral filesystems.Validate SSH related properties.Check if Git repo properties refer to an SSH based transport then filter and extract the properties.