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
HostKeyAlgoSupportedandValidatedwill have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentPropertiesbean for the constraints: - If host key algo is supported Beans annotated withHostKeyAlgoSupportedandValidatedwill have the constraints applied.Beans annotated withHostKeyAndAlgoBothExistandValidatedwill have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentPropertiesbean 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 withHostKeyAndAlgoBothExistandValidatedwill have the constraints applied.Beans annotated withKnownHostsFileIsValidandValidatedwill have the constraints applied.JSR-303 Cross Field validator that ensures that aMultipleJGitEnvironmentPropertiesbean for the constraints: - Verifies that known hosts file existsBeans annotated withPrivateKeyValidatorandValidatedwill have the constraints applied.JSR-303 Cross Field validator that ensures that anMultipleJGitEnvironmentPropertiesbean for the constraints: - Private key is present and can be correctly parsed usingKeyPairBeans annotated withPrivateKeyValidatorandValidatedwill 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.