├── .circleci └── config.yml ├── .editorconfig ├── .gitattributes ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dco.yml ├── dependabot.yml └── workflows │ ├── deploy-docs.yml │ └── maven.yaml ├── .gitignore ├── .java-version ├── .mvn ├── jvm.config ├── maven.config └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── .sdkmanrc ├── .settings.xml ├── .springformat ├── Guardfile ├── LICENSE.txt ├── README.adoc ├── docs ├── antora-playbook.yml ├── antora.yml ├── modules │ └── ROOT │ │ ├── nav.adoc │ │ ├── pages │ │ ├── _configprops.adoc │ │ ├── client.adoc │ │ ├── configprops.adoc │ │ ├── index.adoc │ │ ├── intro.adoc │ │ ├── observability.adoc │ │ ├── quickstart.adoc │ │ ├── server.adoc │ │ ├── server │ │ │ ├── actuator-and-security.adoc │ │ │ ├── aot-and-native-image-support.adoc │ │ │ ├── creating-a-key-store-for-testing.adoc │ │ │ ├── embedding.adoc │ │ │ ├── encryption-and-decryption.adoc │ │ │ ├── environment-repository.adoc │ │ │ ├── environment-repository │ │ │ │ ├── accessing-backends-through-a-proxy.adoc │ │ │ │ ├── aws-parameter-store-backend.adoc │ │ │ │ ├── aws-parameter-store.adoc │ │ │ │ ├── aws-s3-backend.adoc │ │ │ │ ├── aws-secrets-manager-backend.adoc │ │ │ │ ├── aws-secrets-manager.adoc │ │ │ │ ├── composite-repositories.adoc │ │ │ │ ├── credhub-backend.adoc │ │ │ │ ├── custom-enviroment-repository.adoc │ │ │ │ ├── file-system-backend.adoc │ │ │ │ ├── git-backend.adoc │ │ │ │ ├── jdbc-backend.adoc │ │ │ │ ├── mongo-backend.adoc │ │ │ │ ├── overriding-properties-using-placeholders.adoc │ │ │ │ ├── overriding-properties-using-profiles.adoc │ │ │ │ ├── property-overrides.adoc │ │ │ │ ├── redis-backend.adoc │ │ │ │ ├── sharing-configuration-with-all-applications.adoc │ │ │ │ ├── using-bootstrap-to-override-properties.adoc │ │ │ │ ├── vault-backend.adoc │ │ │ │ └── version-control-backend-filesystem-use.adoc │ │ │ ├── health-indicator.adoc │ │ │ ├── key-management.adoc │ │ │ ├── push-notifications-and-bus.adoc │ │ │ ├── security.adoc │ │ │ ├── serving-alternative-formats.adoc │ │ │ ├── serving-binary-files.adoc │ │ │ ├── serving-encrypted-properties.adoc │ │ │ ├── serving-plain-text.adoc │ │ │ └── using-multiple-keys-and-key-rotation.adoc │ │ └── spring-cloud-config.adoc │ │ └── partials │ │ ├── _configprops.adoc │ │ ├── _conventions.adoc │ │ ├── _metrics.adoc │ │ └── _spans.adoc ├── package.json ├── pom.xml └── src │ └── main │ ├── antora │ └── resources │ │ └── antora-resources │ │ └── antora.yml │ └── asciidoc │ ├── README.adoc │ ├── ghpages.sh │ └── sagan-index.adoc ├── mvnw ├── mvnw.cmd ├── pom.xml ├── sample.groovy ├── spring-cloud-config-client-tls-tests ├── pom.xml └── src │ └── test │ ├── java │ └── org │ │ └── springframework │ │ └── cloud │ │ └── config │ │ └── client │ │ └── tls │ │ ├── AbstractTlsSetup.java │ │ ├── AppRunner.java │ │ ├── ConfigClientConfigDataTlsTests.java │ │ ├── ConfigClientTlsTests.java │ │ ├── KeyAndCert.java │ │ ├── KeyTool.java │ │ ├── TlsConfigClientRunner.java │ │ └── TlsConfigServerRunner.java │ └── resources │ └── test │ └── config │ └── application.properties ├── spring-cloud-config-client ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── springframework │ │ │ └── cloud │ │ │ └── config │ │ │ ├── client │ │ │ ├── ConfigClientAutoConfiguration.java │ │ │ ├── ConfigClientFailFastException.java │ │ │ ├── ConfigClientHealthProperties.java │ │ │ ├── ConfigClientProperties.java │ │ │ ├── ConfigClientRequestTemplateFactory.java │ │ │ ├── ConfigClientRetryBootstrapper.java │ │ │ ├── ConfigClientStateHolder.java │ │ │ ├── ConfigClientWatch.java │ │ │ ├── ConfigServerBootstrapper.java │ │ │ ├── ConfigServerConfigDataLoader.java │ │ │ ├── ConfigServerConfigDataLocationResolver.java │ │ │ ├── ConfigServerConfigDataMissingEnvironmentPostProcessor.java │ │ │ ├── ConfigServerConfigDataResource.java │ │ │ ├── ConfigServerHealthIndicator.java │ │ │ ├── ConfigServerInstanceMonitor.java │ │ │ ├── ConfigServerInstanceProvider.java │ │ │ ├── ConfigServiceBootstrapConfiguration.java │ │ │ ├── ConfigServicePropertySourceLocator.java │ │ │ ├── DiscoveryClientConfigServiceBootstrapConfiguration.java │ │ │ ├── RetryProperties.java │ │ │ ├── RetryTemplateFactory.java │ │ │ ├── aot │ │ │ │ └── ConfigClientHints.java │ │ │ ├── diagnostics │ │ │ │ └── analyzer │ │ │ │ │ └── InvalidApplicationNameExceptionFailureAnalyzer.java │ │ │ └── validation │ │ │ │ └── InvalidApplicationNameException.java │ │ │ └── environment │ │ │ ├── Environment.java │ │ │ ├── EnvironmentMediaType.java │ │ │ ├── PropertySource.java │ │ │ └── PropertyValueDescriptor.java │ └── resources │ │ └── META-INF │ │ ├── spring.factories │ │ └── spring │ │ ├── aot.factories │ │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports │ └── test │ ├── java │ └── org │ │ └── springframework │ │ └── cloud │ │ └── config │ │ ├── client │ │ ├── BaseDiscoveryClientConfigServiceBootstrapConfigurationTests.java │ │ ├── ConfigClientAutoConfigurationTests.java │ │ ├── ConfigClientConfigDataLoaderTest.java │ │ ├── ConfigClientPropertiesTests.java │ │ ├── ConfigClientWatchTests.java │ │ ├── ConfigServerBootstrapConfigurationTests.java │ │ ├── ConfigServerConfigDataCustomizationIntegrationTests.java │ │ ├── ConfigServerConfigDataLoaderTests.java │ │ ├── ConfigServerConfigDataLocationResolverTests.java │ │ ├── ConfigServerConfigDataMissingEnvironmentPostProcessorTests.java │ │ ├── ConfigServerConfigDataNoImportIntegrationTests.java │ │ ├── ConfigServerConfigDataResourceTests.java │ │ ├── ConfigServerHealthIndicatorTests.java │ │ ├── ConfigServiceBootstrapConfigurationRetryTest.java │ │ ├── ConfigServiceBootstrapConfigurationTest.java │ │ ├── ConfigServicePropertySourceLocatorTests.java │ │ ├── DiscoveryClientConfigDataConfigurationNoRetryTests.java │ │ ├── DiscoveryClientConfigDataConfigurationTests.java │ │ ├── DiscoveryClientConfigServiceBootstrapConfigurationNoSpringRetryTests.java │ │ └── DiscoveryClientConfigServiceBootstrapConfigurationTests.java │ │ └── environment │ │ └── EnvironmentTests.java │ └── resources │ └── applicationname.yaml ├── spring-cloud-config-dependencies └── pom.xml ├── spring-cloud-config-monitor ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── springframework │ │ │ └── cloud │ │ │ └── config │ │ │ └── monitor │ │ │ ├── BasePropertyPathNotificationExtractor.java │ │ │ ├── BitbucketPropertyPathNotificationExtractor.java │ │ │ ├── CompositePropertyPathNotificationExtractor.java │ │ │ ├── EnvironmentMonitorAutoConfiguration.java │ │ │ ├── FileMonitorConfiguration.java │ │ │ ├── GiteaPropertyPathNotificationExtractor.java │ │ │ ├── GiteePropertyPathNotificationExtractor.java │ │ │ ├── GithubPropertyPathNotificationExtractor.java │ │ │ ├── GitlabPropertyPathNotificationExtractor.java │ │ │ ├── GogsPropertyPathNotificationExtractor.java │ │ │ ├── PropertyPathEndpoint.java │ │ │ ├── PropertyPathNotification.java │ │ │ └── PropertyPathNotificationExtractor.java │ └── resources │ │ └── META-INF │ │ └── spring │ │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports │ └── test │ ├── java │ └── org │ │ └── springframework │ │ └── cloud │ │ └── config │ │ └── monitor │ │ ├── BitbucketPropertyPathNotificationExtractorTests.java │ │ ├── CompositePropertyPathNotificationExtractorTests.java │ │ ├── EnvironmentMonitorAutoConfigurationTests.java │ │ ├── FileMonitorConfigurationTest.java │ │ ├── GiteaPropertyPathNotificationExtractorTests.java │ │ ├── GiteePropertyPathNotificationExtractorTests.java │ │ ├── GithubPropertyPathNotificationExtractorTests.java │ │ ├── GitlabPropertyPathNotificationExtractorTests.java │ │ ├── GogsPropertyPathNotificationExtractorTests.java │ │ └── PropertyPathEndpointTests.java │ └── resources │ ├── gitea.json │ ├── gitee.json │ ├── gitlab.json │ └── pathsamples │ ├── bitbucket-invalid.json │ ├── bitbucket.json │ ├── bitbucketserver-invalid.json │ ├── bitbucketserver-prmerged.json │ ├── bitbucketserver.json │ ├── gitea.json │ ├── gitee.json │ ├── github.json │ ├── gitlab.json │ └── gogs.json ├── spring-cloud-config-sample ├── pom.xml └── src │ ├── main │ ├── java │ │ └── sample │ │ │ └── Application.java │ └── resources │ │ ├── application.yml │ │ ├── bootstrap.yml │ │ └── bootstrapservercomposite.yml │ └── test │ ├── java │ └── sample │ │ ├── ApplicationBootstrapTests.java │ │ ├── ApplicationFailFastTests.java │ │ ├── ApplicationTests.java │ │ ├── ConfigDataCustomMediaTypeIntegrationTests.java │ │ ├── ConfigDataIntegrationTests.java │ │ ├── ConfigDataOrderingIntegrationTests.java │ │ ├── ConfigDataOrderingVaultIntegrationTests.java │ │ ├── ConfigDataRetryIntegrationTests.java │ │ ├── ConfigServerAndClientMultiLabelTests.java │ │ └── ServerNativeApplicationTests.java │ └── resources │ ├── bad.yml │ ├── config-repo │ ├── application.yml │ ├── bar.properties │ └── git │ │ ├── COMMIT_EDITMSG │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── config │ │ ├── gitk.cache │ │ ├── index │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ ├── master │ │ │ └── raw │ │ ├── objects │ │ ├── 7a │ │ │ └── 68a4bbc80b44c287787e2306ff9fd7de35cc54 │ │ ├── a1 │ │ │ └── 9381f44efc80a21996b47adf012ef105ced909 │ │ ├── ae │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ ├── b5 │ │ │ └── 1bc19694589d21c06bab8a4f14660b3303d7b0 │ │ └── pack │ │ │ ├── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx │ │ │ └── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack │ │ └── refs │ │ ├── heads │ │ ├── master │ │ └── raw │ │ └── tags │ │ └── foo │ ├── config │ ├── label1 │ │ └── profilesample.yaml │ ├── label2 │ │ └── profilesample.yaml │ ├── profilesample-dev.yml │ └── profilesample.yml │ ├── logback-test.xml │ ├── orderingtest.yml │ ├── server.yml │ └── vaultordering │ ├── client-dev.yml │ ├── server.yml │ ├── vault-test-repo │ ├── client-app-dev.yml │ └── client-app.yml │ └── vault_test_policy.txt ├── spring-cloud-config-server ├── pom.xml └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── springframework │ │ │ └── cloud │ │ │ └── config │ │ │ └── server │ │ │ ├── ConfigServerApplication.java │ │ │ ├── EnableConfigServer.java │ │ │ ├── aot │ │ │ └── CompositeEnvironmentBeanFactoryInitializationAotProcessor.java │ │ │ ├── bootstrap │ │ │ ├── ConfigServerBootstrapApplicationListener.java │ │ │ ├── ConfigServerBootstrapConfiguration.java │ │ │ └── ConfigServerBootstrapOverridesAutoConfiguration.java │ │ │ ├── composite │ │ │ ├── CompositeEnvironmentBeanFactoryPostProcessor.java │ │ │ ├── CompositeUtils.java │ │ │ ├── ConditionalOnMissingSearchPathLocator.java │ │ │ ├── ConditionalOnSearchPathLocator.java │ │ │ └── OnSearchPathLocatorPresent.java │ │ │ ├── config │ │ │ ├── CompositeConfiguration.java │ │ │ ├── ConfigServerAutoConfiguration.java │ │ │ ├── ConfigServerConfiguration.java │ │ │ ├── ConfigServerEncryptionConfiguration.java │ │ │ ├── ConfigServerHealthIndicator.java │ │ │ ├── ConfigServerMvcConfiguration.java │ │ │ ├── ConfigServerProperties.java │ │ │ ├── ConfigServerRuntimeHints.java │ │ │ ├── CredhubConfiguration.java │ │ │ ├── DefaultTextEncryptionAutoConfiguration.java │ │ │ ├── EncryptionAutoConfiguration.java │ │ │ ├── EnvironmentRepositoryConfiguration.java │ │ │ ├── GoogleCloudSourceConfiguration.java │ │ │ ├── ResourceEncryptorConfiguration.java │ │ │ ├── ResourceRepositoryConfiguration.java │ │ │ ├── RsaEncryptionAutoConfiguration.java │ │ │ ├── VaultConfiguration.java │ │ │ └── VaultEncryptionAutoConfiguration.java │ │ │ ├── diagnostics │ │ │ └── GitUriFailureAnalyzer.java │ │ │ ├── encryption │ │ │ ├── AbstractCipherResourceEncryptor.java │ │ │ ├── CipherEnvironmentEncryptor.java │ │ │ ├── CipherResourceJsonEncryptor.java │ │ │ ├── CipherResourcePropertiesEncryptor.java │ │ │ ├── CipherResourceYamlEncryptor.java │ │ │ ├── EncryptionController.java │ │ │ ├── EnvironmentEncryptor.java │ │ │ ├── EnvironmentPrefixHelper.java │ │ │ ├── KeyStoreTextEncryptorLocator.java │ │ │ ├── LocatorTextEncryptor.java │ │ │ ├── PassthruSecretLocator.java │ │ │ ├── ResourceEncryptor.java │ │ │ ├── SecretLocator.java │ │ │ ├── SingleTextEncryptorLocator.java │ │ │ ├── TextEncryptorLocator.java │ │ │ └── vault │ │ │ │ └── VaultEnvironmentEncryptor.java │ │ │ ├── environment │ │ │ ├── AbstractScmEnvironmentRepository.java │ │ │ ├── AbstractVaultEnvironmentRepository.java │ │ │ ├── AwsClientBuilderConfigurer.java │ │ │ ├── AwsParameterStoreEnvironmentProperties.java │ │ │ ├── AwsParameterStoreEnvironmentRepository.java │ │ │ ├── AwsParameterStoreEnvironmentRepositoryFactory.java │ │ │ ├── AwsS3EnvironmentProperties.java │ │ │ ├── AwsS3EnvironmentRepository.java │ │ │ ├── AwsS3EnvironmentRepositoryFactory.java │ │ │ ├── AwsSecretsManagerEnvironmentProperties.java │ │ │ ├── AwsSecretsManagerEnvironmentRepository.java │ │ │ ├── AwsSecretsManagerEnvironmentRepositoryFactory.java │ │ │ ├── CompositeEnvironmentRepository.java │ │ │ ├── ConfigTokenProvider.java │ │ │ ├── ConfigurableHttpConnectionFactory.java │ │ │ ├── ConsulEnvironmentWatch.java │ │ │ ├── CredhubEnvironmentProperties.java │ │ │ ├── CredhubEnvironmentRepository.java │ │ │ ├── CredhubEnvironmentRepositoryFactory.java │ │ │ ├── DocumentedConfigObservation.java │ │ │ ├── EnvironmentCleaner.java │ │ │ ├── EnvironmentConfigTokenProvider.java │ │ │ ├── EnvironmentController.java │ │ │ ├── EnvironmentEncryptorEnvironmentRepository.java │ │ │ ├── EnvironmentException.java │ │ │ ├── EnvironmentNotFoundException.java │ │ │ ├── EnvironmentRepository.java │ │ │ ├── EnvironmentRepositoryFactory.java │ │ │ ├── EnvironmentRepositoryPropertySourceLocator.java │ │ │ ├── EnvironmentWatch.java │ │ │ ├── FailedToConstructEnvironmentException.java │ │ │ ├── GoogleSecretManagerEnvironmentProperties.java │ │ │ ├── GoogleSecretManagerEnvironmentRepository.java │ │ │ ├── GoogleSecretManagerEnvironmentRepositoryFactory.java │ │ │ ├── HttpClient4BuilderCustomizer.java │ │ │ ├── HttpClientConfigurableHttpConnectionFactory.java │ │ │ ├── HttpClientVaultRestTemplateFactory.java │ │ │ ├── HttpRequestConfigTokenProvider.java │ │ │ ├── InvalidEnvironmentRequestException.java │ │ │ ├── JGitEnvironmentProperties.java │ │ │ ├── JGitEnvironmentRepository.java │ │ │ ├── JdbcEnvironmentProperties.java │ │ │ ├── JdbcEnvironmentRepository.java │ │ │ ├── JdbcEnvironmentRepositoryFactory.java │ │ │ ├── MongoDbEnvironmentProperties.java │ │ │ ├── MongoDbEnvironmentRepository.java │ │ │ ├── MongoDbEnvironmentRepositoryFactory.java │ │ │ ├── MultipleJGitEnvironmentProperties.java │ │ │ ├── MultipleJGitEnvironmentRepository.java │ │ │ ├── MultipleJGitEnvironmentRepositoryFactory.java │ │ │ ├── NativeEnvironmentProperties.java │ │ │ ├── NativeEnvironmentRepository.java │ │ │ ├── NativeEnvironmentRepositoryFactory.java │ │ │ ├── NoSuchLabelException.java │ │ │ ├── NoSuchRepositoryException.java │ │ │ ├── ObservationEnvironmentRepositoryContext.java │ │ │ ├── ObservationEnvironmentRepositoryObservationConvention.java │ │ │ ├── ObservationEnvironmentRepositoryWrapper.java │ │ │ ├── PassthruEnvironmentRepository.java │ │ │ ├── RedisEnvironmentProperties.java │ │ │ ├── RedisEnvironmentRepository.java │ │ │ ├── RedisEnvironmentRepositoryFactory.java │ │ │ ├── RepositoryException.java │ │ │ ├── SearchPathCompositeEnvironmentRepository.java │ │ │ ├── SearchPathLocator.java │ │ │ ├── SerializableMapPropertySource.java │ │ │ ├── SvnEnvironmentRepositoryFactory.java │ │ │ ├── SvnKitEnvironmentProperties.java │ │ │ ├── SvnKitEnvironmentRepository.java │ │ │ ├── VaultEnvironmentProperties.java │ │ │ ├── VaultEnvironmentRepository.java │ │ │ ├── VaultEnvironmentRepositoryFactory.java │ │ │ ├── VaultKvAccessStrategy.java │ │ │ ├── VaultKvAccessStrategyFactory.java │ │ │ ├── VaultKvAccessStrategySupport.java │ │ │ ├── secretmanager │ │ │ │ ├── GoogleConfigProvider.java │ │ │ │ ├── GoogleSecretComparatorByVersion.java │ │ │ │ ├── GoogleSecretManagerAccessStrategy.java │ │ │ │ ├── GoogleSecretManagerAccessStrategyFactory.java │ │ │ │ ├── GoogleSecretManagerV1AccessStrategy.java │ │ │ │ └── HttpHeaderGoogleConfigProvider.java │ │ │ └── vault │ │ │ │ ├── SpringVaultClientAuthenticationProvider.java │ │ │ │ ├── SpringVaultClientConfiguration.java │ │ │ │ ├── SpringVaultEnvironmentRepository.java │ │ │ │ ├── SpringVaultEnvironmentRepositoryFactory.java │ │ │ │ ├── SpringVaultTemplateBuilder.java │ │ │ │ ├── StatelessSessionManager.java │ │ │ │ └── authentication │ │ │ │ ├── AppRoleClientAuthenticationProvider.java │ │ │ │ ├── AwsEc2ClientAuthenticationProvider.java │ │ │ │ ├── AwsIamClientAuthenticationProvider.java │ │ │ │ ├── AzureMsiClientAuthenticationProvider.java │ │ │ │ ├── CertificateClientAuthenticationProvider.java │ │ │ │ ├── CubbyholeClientAuthenticationProvider.java │ │ │ │ ├── GcpGceClientAuthenticationProvider.java │ │ │ │ ├── GcpIamClientAuthenticationProvider.java │ │ │ │ ├── KubernetesClientAuthenticationProvider.java │ │ │ │ ├── PcfClientAuthenticationProvider.java │ │ │ │ └── TokenClientAuthenticationProvider.java │ │ │ ├── proxy │ │ │ ├── ProxyHostCredentialsProvider.java │ │ │ ├── ProxyHostProperties.java │ │ │ └── SchemeBasedRoutePlanner.java │ │ │ ├── resource │ │ │ ├── GenericResourceRepository.java │ │ │ ├── NoSuchResourceException.java │ │ │ ├── ResourceController.java │ │ │ ├── ResourceControllerAdvice.java │ │ │ └── ResourceRepository.java │ │ │ ├── ssh │ │ │ ├── FileBasedSshSessionFactory.java │ │ │ ├── FileBasedSshTransportConfigCallback.java │ │ │ ├── HostKeyAlgoSupported.java │ │ │ ├── HostKeyAlgoSupportedValidator.java │ │ │ ├── HostKeyAndAlgoBothExist.java │ │ │ ├── HostKeyAndAlgoBothExistValidator.java │ │ │ ├── KeyPairUtils.java │ │ │ ├── KnownHostsFileIsValid.java │ │ │ ├── KnownHostsFileValidator.java │ │ │ ├── PrivateKeyIsValid.java │ │ │ ├── PrivateKeyValidator.java │ │ │ ├── PropertiesBasedSshTransportConfigCallback.java │ │ │ ├── PropertyBasedSshSessionFactory.java │ │ │ ├── SshPropertyValidator.java │ │ │ └── SshUriPropertyProcessor.java │ │ │ └── support │ │ │ ├── AbstractScmAccessor.java │ │ │ ├── AbstractScmAccessorProperties.java │ │ │ ├── AwsCodeCommitCredentialProvider.java │ │ │ ├── CredentialException.java │ │ │ ├── EnvironmentPropertySource.java │ │ │ ├── EnvironmentRepositoryProperties.java │ │ │ ├── GitCredentialsProviderFactory.java │ │ │ ├── GitSkipSslValidationCredentialsProvider.java │ │ │ ├── GoogleCloudSourceSupport.java │ │ │ ├── HttpClient4Support.java │ │ │ ├── HttpClientSupport.java │ │ │ ├── HttpEnvironmentRepositoryProperties.java │ │ │ ├── PassphraseCredentialsProvider.java │ │ │ ├── PathUtils.java │ │ │ └── TransportConfigCallbackFactory.java │ └── resources │ │ ├── META-INF │ │ ├── spring.factories │ │ └── spring │ │ │ ├── aot.factories │ │ │ └── org.springframework.boot.autoconfigure.AutoConfiguration.imports │ │ └── configserver.yml │ └── test │ ├── java │ └── org │ │ └── springframework │ │ └── cloud │ │ └── config │ │ └── server │ │ ├── AdhocTestSuite.java │ │ ├── AwsS3IntegrationTests.java │ │ ├── BootstrapConfigServerIntegrationTests.java │ │ ├── CompositeClasspathTests.java │ │ ├── CompositeIntegrationTests.java │ │ ├── ConfigClientBackwardsCompatibilityIntegrationTests.java │ │ ├── ConfigClientOffIntegrationTests.java │ │ ├── ConfigClientOnIntegrationTests.java │ │ ├── ConfigServerApplicationTests.java │ │ ├── CredhubCompositeConfigServerIntegrationTests.java │ │ ├── CredhubConfigServerIntegrationTests.java │ │ ├── CredhubIntegrationTest.java │ │ ├── NativeConfigServerIntegrationTests.java │ │ ├── ObservationIntegrationTests.java │ │ ├── RefreshableConfigServerIntegrationTests.java │ │ ├── SubversionConfigServerIntegrationTests.java │ │ ├── TransportConfigurationIntegrationTests.java │ │ ├── VanillaConfigServerIntegrationTests.java │ │ ├── aot │ │ └── CompositeEnvironmentBeanFactoryInitializationAotProcessorTests.java │ │ ├── composite │ │ └── CompositUtilsTests.java │ │ ├── config │ │ ├── ConfigServerHealthIndicatorTests.java │ │ ├── CustomCompositeEnvironmentRepositoryTests.java │ │ ├── CustomEnvironmentRepositoryTests.java │ │ ├── EnvironmentRepositoryConfigurationTests.java │ │ └── HttpClientVaultRestTemplateFactoryTest.java │ │ ├── credentials │ │ ├── AwsCodeCommitCredentialsProviderTests.java │ │ └── GitCredentialsProviderFactoryTests.java │ │ ├── encryption │ │ ├── CipherEnvironmentEncryptorTests.java │ │ ├── CipherResourceJsonEncryptorTests.java │ │ ├── CipherResourcePropertiesEncryptorTests.java │ │ ├── CipherResourceYamlEncryptorTests.java │ │ ├── EncryptionAutoConfigurationTests.java │ │ ├── EncryptionControllerMultiTextEncryptorTests.java │ │ ├── EncryptionControllerTests.java │ │ ├── EncryptionIntegrationTests.java │ │ ├── EnvironmentPrefixHelperTests.java │ │ ├── KeyStoreTextEncryptorLocatorTests.java │ │ └── vault │ │ │ └── VaultEnvironmentEncryptorTests.java │ │ ├── environment │ │ ├── AWSParameterStoreEnvironmentRepositoryUnitTest.java │ │ ├── AwsParameterStoreEnvironmentRepositoryTests.java │ │ ├── AwsS3EnvironmentRepositoryTests.java │ │ ├── AwsSecretsManagerEnvironmentRepositoryTests.java │ │ ├── CompositeEnvironmentRepositoryTests.java │ │ ├── ConfigurableHttpConnectionFactoryIntegrationTests.java │ │ ├── CredhubEnvironmentRepositoryTests.java │ │ ├── EnvironmentControllerIntegrationTests.java │ │ ├── EnvironmentControllerTests.java │ │ ├── EnvironmentEncryptorEnvironmentRepositoryTests.java │ │ ├── GoogleSecretManagerEnvironmentRepositoryTests.java │ │ ├── HttpClientConfigurableHttpConnectionFactoryTest.java │ │ ├── HttpRequestConfigTokenProviderTests.java │ │ ├── JGitConfigServerTestData.java │ │ ├── JGitEnvironmentRepositoryConcurrencyTests.java │ │ ├── JGitEnvironmentRepositoryIntegrationTests.java │ │ ├── JGitEnvironmentRepositorySslTests.java │ │ ├── JGitEnvironmentRepositoryTests.java │ │ ├── JdbcEnvironmentRepositoryConfigurationTests.java │ │ ├── JdbcEnvironmentRepositoryTests.java │ │ ├── MongoDbEnvironmentRepositoryConfigurationTests.java │ │ ├── MongoDbEnvironmentRepositoryTests.java │ │ ├── MultipleJGitEnvironmentApplicationPlaceholderRepositoryTests.java │ │ ├── MultipleJGitEnvironmentLabelPlaceholderRepositoryTests.java │ │ ├── MultipleJGitEnvironmentProfilePlaceholderRepositoryTests.java │ │ ├── MultipleJGitEnvironmentRepositoryFactoryTests.java │ │ ├── MultipleJGitEnvironmentRepositoryIntegrationTests.java │ │ ├── MultipleJGitEnvironmentRepositoryTests.java │ │ ├── NativeEnvironmentRepositoryFactoryTest.java │ │ ├── NativeEnvironmentRepositoryTests.java │ │ ├── ObservationEnvironmentRepositoryWrapperTests.java │ │ ├── PassthruEnvironmentRepositoryTests.java │ │ ├── RedisEnvironmentRepositoryIntegrationTests.java │ │ ├── SVNKitEnvironmentRepositoryIntegrationTests.java │ │ ├── SVNKitEnvironmentRepositoryTests.java │ │ ├── VaultEnvironmentRepositoryIntegrationTests.java │ │ ├── VaultEnvironmentRepositoryTests.java │ │ ├── VaultKvAccessStrategyFactoryTest.java │ │ ├── VaultKvAccessStrategyTest.java │ │ └── vault │ │ │ ├── SpringVaultClientConfigurationTests.java │ │ │ ├── SpringVaultEnvironmentRepositoryFactoryTests.java │ │ │ ├── SpringVaultEnvironmentRepositoryTests.java │ │ │ ├── SpringVaultTemplateBuilderTest.java │ │ │ ├── StatelessSessionManagerTests.java │ │ │ ├── VaultIntegrationTests.java │ │ │ └── authentication │ │ │ └── AppRoleClientAuthenticationProviderTests.java │ │ ├── proxy │ │ ├── ProxyHostCredentialsProviderTest.java │ │ ├── ProxyHostPropertiesTest.java │ │ └── SchemeBasedRoutePlannerTest.java │ │ ├── resource │ │ ├── GenericResourceRepositoryTests.java │ │ ├── ResourceControllerIntegrationTests.java │ │ └── ResourceControllerTests.java │ │ ├── ssh │ │ ├── FileBasedSshSessionFactoryTest.java │ │ ├── PropertyBasedSshSessionFactoryTest.java │ │ ├── SshPropertyValidatorTest.java │ │ └── SshUriPropertyProcessorTest.java │ │ ├── support │ │ ├── EnvironmentPropertySourceTest.java │ │ ├── GitSkipSslValidationCredentialsProviderTest.java │ │ ├── GoogleCloudSourceSupportTests.java │ │ └── HttpClient4SupportTest.java │ │ └── test │ │ ├── ConfigServerTestUtils.java │ │ └── TestConfigServerApplication.java │ └── resources │ ├── another-config-repo │ ├── bar.properties │ ├── git │ │ ├── COMMIT_EDITMSG │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── config │ │ ├── gitk.cache │ │ ├── index │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ ├── master │ │ │ │ └── raw │ │ ├── objects │ │ │ ├── 16 │ │ │ │ ├── 134a43183d280dc9bb3efce05c90c65d5c100a │ │ │ │ └── 33e23980f4b4dffab6e1d87b622afd9131515e │ │ │ ├── 27 │ │ │ │ └── d0b5b449f2e8326844a735220383bf16de28b5 │ │ │ ├── 37 │ │ │ │ └── 09aa0e4ed6d9c76fdf3a9980f2a7f84defd630 │ │ │ ├── 5f │ │ │ │ └── 72eaeb42ac3a2554e3cbc54291178a7c29be39 │ │ │ ├── ae │ │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ │ ├── c4 │ │ │ │ └── bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 │ │ │ ├── fa │ │ │ │ └── 7ee004088958d3c5e394d447fa2cb10b10f826 │ │ │ └── pack │ │ │ │ ├── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx │ │ │ │ └── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack │ │ └── refs │ │ │ ├── heads │ │ │ ├── master │ │ │ └── raw │ │ │ └── tags │ │ │ └── foo │ └── sub │ │ └── application.yml │ ├── awss3 │ ├── application-test1.yaml │ ├── application.yaml │ ├── foo-test1.yaml │ └── foo.yaml │ ├── bad.yml │ ├── branch-with-slash-repo │ ├── bar.yml │ └── git │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── index │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ ├── feature │ │ │ └── foo │ │ │ └── master │ │ ├── objects │ │ ├── 54 │ │ │ └── 8298f39d0c5a84a1ada7a2b03ef54aad1fffa2 │ │ ├── 91 │ │ │ └── 5bd24aaf815120f2755ef4fc66404f5d37b383 │ │ ├── 08 │ │ │ └── eb9e67a7225c302e3906a63cb9544e619fc804 │ │ ├── 0d │ │ │ └── 706a8f14e7ec2b9abf99c603f3f5467d2d38ff │ │ ├── 5c │ │ │ └── 19df95639519f2286fc6d39182f271ee8c0b6b │ │ ├── 6e │ │ │ └── 067728a52e959f60788121b4046e5b27793e61 │ │ ├── 7a │ │ │ └── 9804f8901709bdcf794c553805d5bc5188f821 │ │ ├── ae │ │ │ └── c5d43644133593483b7c243f851606aa2c0128 │ │ └── fa │ │ │ └── c65b3a4678430e2b86e3b28510b37c5a7942a7 │ │ └── refs │ │ ├── heads │ │ ├── feature │ │ │ └── foo │ │ └── master │ │ └── tags │ │ └── foo │ ├── compositeconfigserver.yml │ ├── config-repo │ ├── application.yml │ ├── bar.properties │ ├── git │ │ ├── COMMIT_EDITMSG │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── config │ │ ├── gitk.cache │ │ ├── index │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ ├── composite │ │ │ │ ├── master │ │ │ │ └── raw │ │ ├── objects │ │ │ ├── 29 │ │ │ │ └── 21d46f948329996d3eb4a3d11aaaff6ccda84f │ │ │ ├── 7a │ │ │ │ └── 68a4bbc80b44c287787e2306ff9fd7de35cc54 │ │ │ ├── 8f │ │ │ │ └── 263e4c6e65fd3fb975fddba84231fe95416b66 │ │ │ ├── a1 │ │ │ │ └── 9381f44efc80a21996b47adf012ef105ced909 │ │ │ ├── ae │ │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ │ ├── b5 │ │ │ │ └── 45f7dec7feab3006c2e73969ee704a9a4def78 │ │ │ ├── e4 │ │ │ │ └── 88193e654487b7f43e38f0865860529cb2ec79 │ │ │ └── pack │ │ │ │ ├── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx │ │ │ │ └── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack │ │ └── refs │ │ │ ├── heads │ │ │ ├── composite │ │ │ ├── master │ │ │ └── raw │ │ │ └── tags │ │ │ └── foo │ └── invalid.yaml │ ├── config │ └── configserver.yaml │ ├── configserver-subversion.yml │ ├── configserver-test.yml │ ├── configserver.yaml │ ├── data-jdbc.sql │ ├── data-mongo.json │ ├── enable-bootstrap.yml │ ├── encrypt-repo │ ├── application.yml │ ├── bar.properties │ ├── enable-bootstrap.yml │ └── git │ │ ├── COMMIT_EDITMSG │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── config │ │ ├── gitk.cache │ │ ├── index │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ ├── composite │ │ │ ├── main │ │ │ └── raw │ │ ├── objects │ │ ├── 13 │ │ │ └── b76fa2acbef52a002372071d08d7967fee9146 │ │ ├── 23 │ │ │ └── b743fe05412cf11975f0817ac8e12a13992dbe │ │ ├── 63 │ │ │ └── e43ddbda928b903e56f601409552bbfb7fdd99 │ │ ├── 1d │ │ │ └── 3ce3ac9e4a7557e95e990c264470237ddb9488 │ │ ├── 3c │ │ │ └── e2c946ed7061ec24f69061795b557c065d6688 │ │ ├── 5e │ │ │ └── 5ca6033619a9aa0524a408b1c6dc7e3c9f5b07 │ │ ├── ad │ │ │ └── 5e0cb7036ed11ddd4b7be6ed86ad3565c8a3fc │ │ ├── ae │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ ├── ba │ │ │ └── 97b023d1d0faa44cc337479d6a8ac1ebcdb00d │ │ ├── bd │ │ │ └── 414a6cc8653d7e282df0a257babc6283b83596 │ │ ├── e7 │ │ │ └── 7c14ccb5f9e49c11b6d4172b76b0d3cf4cef56 │ │ ├── fb │ │ │ └── 1a59a90f034288d14dc4b607f9f76697aa972d │ │ ├── fd │ │ │ └── 07d827993aaf6ed7ef1b979767ee9277d1d409 │ │ └── pack │ │ │ ├── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx │ │ │ └── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack │ │ └── refs │ │ ├── heads │ │ ├── composite │ │ ├── main │ │ └── raw │ │ └── tags │ │ └── foo │ ├── foo-cloud.properties │ ├── foo-development.properties │ ├── foo-local.txt │ ├── foo.properties │ ├── import.yml │ ├── keystore-bootstrap.yml │ ├── master-labeltest-config-repo │ ├── application.yml │ ├── git │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ │ ├── applypatch-msg.sample │ │ │ ├── commit-msg.sample │ │ │ ├── post-update.sample │ │ │ ├── pre-applypatch.sample │ │ │ ├── pre-commit.sample │ │ │ ├── pre-push.sample │ │ │ ├── pre-rebase.sample │ │ │ ├── prepare-commit-msg.sample │ │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ │ └── exclude │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ └── master │ │ ├── objects │ │ │ ├── 20 │ │ │ │ └── d30201572381d9dcaf164e1c7670557ece7257 │ │ │ ├── 53 │ │ │ │ └── 14629d4229558db9cc91fec7631833e03434b3 │ │ │ ├── 96 │ │ │ │ └── 403e4eca8ed1dc5672d4bd1f125c490a2a48f7 │ │ │ ├── 1a │ │ │ │ └── 138ced808f5fb3206283b292253d8ba7a99b31 │ │ │ ├── 4e │ │ │ │ └── 1f25bbdca5765e279b436b5b02d05b1654515c │ │ │ └── c9 │ │ │ │ └── 60eaa883ffafea56e5940baf1fc7d1b5d35b56 │ │ └── refs │ │ │ └── heads │ │ │ └── master │ └── test1-svc.properties │ ├── mockito-extensions │ └── org.mockito.plugins.MockMaker │ ├── nested-repo │ ├── application.yml │ ├── bar │ │ └── application.properties │ ├── foo │ │ └── application.properties │ └── git │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ ├── applypatch-msg.sample │ │ ├── commit-msg.sample │ │ ├── post-update.sample │ │ ├── pre-applypatch.sample │ │ ├── pre-commit.sample │ │ ├── pre-push.sample │ │ ├── pre-rebase.sample │ │ ├── prepare-commit-msg.sample │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ └── exclude │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ └── master │ │ ├── objects │ │ ├── 16 │ │ │ └── 134a43183d280dc9bb3efce05c90c65d5c100a │ │ ├── 87 │ │ │ └── 91c22849104e1c8795747ccb678879a7c16771 │ │ ├── 01 │ │ │ └── 2b8908f80e4d19436ffaabcd08bf32f43644ec │ │ ├── 04 │ │ │ └── fc9760cf5a7e9a9b3f83c02db2caf82f6489e2 │ │ ├── 06 │ │ │ └── 6ddc1017e77dc9da7e555d063eb8425653a289 │ │ ├── 0f │ │ │ └── 663b91a15a49bed0579dba6a38009d2546c313 │ │ ├── 3d │ │ │ └── ffcc3cddcc29e350c8ff1c11c53bf577057c56 │ │ ├── 7d │ │ │ └── aacd5db8d36bc6df962d1d01cb98d8713fe5c4 │ │ ├── 9a │ │ │ └── 9d30fda1553c5047d2f2f510accf6238b7c131 │ │ ├── 9d │ │ │ └── 6f44a27376f0dbe4722099e138904788ef561a │ │ ├── a4 │ │ │ └── 8e335bccdf3130a3b70a62e126ff580f370ac9 │ │ ├── ae │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ ├── c3 │ │ │ └── bb75b147f1435d96e10bbd83046e4d140c41e3 │ │ └── fa │ │ │ └── 6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0 │ │ └── refs │ │ └── heads │ │ └── master │ ├── ordering-repo │ ├── git │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── index │ │ ├── info │ │ │ └── exclude │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ └── master │ │ ├── objects │ │ │ ├── 82 │ │ │ │ └── 65220d6be7d73011cbc98382b499e5d7169fe7 │ │ │ ├── 02 │ │ │ │ └── 09d6d392d65f4ad734b9cb938889ddd40683f4 │ │ │ ├── 1c │ │ │ │ └── cddaee9468c2f249e75dc81e50877935955866 │ │ │ ├── 7a │ │ │ │ └── 68a4bbc80b44c287787e2306ff9fd7de35cc54 │ │ │ ├── ad │ │ │ │ └── bec8abd5dd965a0d9a62fc5bd457ce0dec5727 │ │ │ └── fc │ │ │ │ └── 4aeb82a374f50cae0654d8db79dda083eff3d7 │ │ └── refs │ │ │ └── heads │ │ │ └── master │ └── project │ │ ├── application.yml │ │ └── sub │ │ └── application-test.yml │ ├── resource-controller │ └── foo.txt │ ├── resource-encryptor │ ├── test.json │ ├── test.properties │ └── test.yml │ ├── schema-jdbc.sql │ ├── server.jks │ ├── ssh │ ├── key │ ├── key-with-passphrase │ ├── known_hosts │ ├── ssh-nested-settings-list.yml │ ├── ssh-nested-settings.yml │ ├── ssh-private-key-block-list.yml │ ├── ssh-private-key-block.yml │ ├── ssh-private-key-newline-list.yml │ └── ssh-private-key-newline.yml │ ├── ssl-test.jks │ ├── svn-config-repo │ ├── .svn │ │ ├── entries │ │ ├── format │ │ ├── pristine │ │ │ ├── 4b │ │ │ │ └── 4ba5f6a617dee5e5e8d382f6bbc07531d5f968c4.svn-base │ │ │ └── cb │ │ │ │ └── cbddbad2c491aab236e1025ad5b9ace129ea5667.svn-base │ │ ├── wc.db │ │ └── wc.db-journal │ ├── README.txt │ ├── conf │ │ ├── authz │ │ ├── hooks-env.tmpl │ │ ├── passwd │ │ └── svnserve.conf │ ├── db │ │ ├── current │ │ ├── format │ │ ├── fs-type │ │ ├── fsfs.conf │ │ ├── min-unpacked-rev │ │ ├── rep-cache.db │ │ ├── revprops │ │ │ └── 0 │ │ │ │ ├── 0 │ │ │ │ ├── 1 │ │ │ │ ├── 2 │ │ │ │ └── 3 │ │ ├── revs │ │ │ └── 0 │ │ │ │ ├── 0 │ │ │ │ ├── 1 │ │ │ │ ├── 2 │ │ │ │ └── 3 │ │ ├── transactions │ │ │ └── 2-4.txn │ │ │ │ └── node.0.0 │ │ ├── txn-current │ │ ├── txn-current-lock │ │ ├── uuid │ │ └── write-lock │ ├── format │ ├── hooks │ │ ├── post-commit.tmpl │ │ ├── post-lock.tmpl │ │ ├── post-revprop-change.tmpl │ │ ├── post-unlock.tmpl │ │ ├── pre-commit.tmpl │ │ ├── pre-lock.tmpl │ │ ├── pre-revprop-change.tmpl │ │ ├── pre-unlock.tmpl │ │ └── start-commit.tmpl │ ├── locks │ │ ├── db-logs.lock │ │ └── db.lock │ └── svn.ico │ ├── symmetric-key-bootstrap.properties │ ├── test │ ├── bad-syntax │ │ └── application.yml │ ├── bar.yml │ ├── baz.properties │ ├── dev │ │ ├── app │ │ │ └── application.properties │ │ ├── applicationxyz │ │ │ └── application.properties │ │ ├── foo │ │ ├── foo.properties │ │ ├── foo_enc │ │ ├── foo_enc.properties │ │ ├── ignore │ │ │ └── application.properties │ │ ├── placeholder.txt │ │ ├── spam │ │ │ └── foo.txt │ │ └── template.json │ ├── foo-development.properties │ ├── foo.properties │ ├── import.yml │ ├── import │ │ └── foo.yml │ ├── local │ │ └── foo.txt │ ├── mysql │ │ └── application.properties │ └── reactive │ │ └── application.properties │ ├── test1-config-repo │ ├── application.yml │ ├── git │ │ ├── COMMIT_EDITMSG │ │ ├── HEAD │ │ ├── config │ │ ├── description │ │ ├── hooks │ │ │ ├── applypatch-msg.sample │ │ │ ├── commit-msg.sample │ │ │ ├── post-update.sample │ │ │ ├── pre-applypatch.sample │ │ │ ├── pre-commit.sample │ │ │ ├── pre-push.sample │ │ │ ├── pre-rebase.sample │ │ │ ├── prepare-commit-msg.sample │ │ │ └── update.sample │ │ ├── index │ │ ├── info │ │ │ ├── exclude │ │ │ └── refs │ │ ├── logs │ │ │ ├── HEAD │ │ │ └── refs │ │ │ │ └── heads │ │ │ │ └── master │ │ ├── objects │ │ │ ├── 20 │ │ │ │ └── d30201572381d9dcaf164e1c7670557ece7257 │ │ │ ├── 53 │ │ │ │ └── 14629d4229558db9cc91fec7631833e03434b3 │ │ │ ├── 96 │ │ │ │ └── 403e4eca8ed1dc5672d4bd1f125c490a2a48f7 │ │ │ ├── 1a │ │ │ │ └── 138ced808f5fb3206283b292253d8ba7a99b31 │ │ │ ├── 4e │ │ │ │ └── 1f25bbdca5765e279b436b5b02d05b1654515c │ │ │ └── c9 │ │ │ │ └── 60eaa883ffafea56e5940baf1fc7d1b5d35b56 │ │ └── refs │ │ │ └── heads │ │ │ └── master │ └── test1-svc.properties │ ├── test2-config-repo │ ├── application.properties │ ├── bar.properties │ └── git │ │ ├── COMMIT_EDITMSG │ │ ├── FETCH_HEAD │ │ ├── HEAD │ │ ├── ORIG_HEAD │ │ ├── config │ │ ├── gitk.cache │ │ ├── index │ │ ├── logs │ │ ├── HEAD │ │ └── refs │ │ │ └── heads │ │ │ ├── master │ │ │ └── raw │ │ ├── objects │ │ ├── 16 │ │ │ └── 33e23980f4b4dffab6e1d87b622afd9131515e │ │ ├── 27 │ │ │ └── d0b5b449f2e8326844a735220383bf16de28b5 │ │ ├── 29 │ │ │ └── f2b1020f4b87e1de6aab368ff496cc4e99a959 │ │ ├── 6b │ │ │ └── b5d09918a49cdbea01ac50b8d56a334440d70e │ │ ├── ae │ │ │ └── 3cdf5b88ff281b7f087143289c72a5057a0278 │ │ ├── c4 │ │ │ └── bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 │ │ ├── d8 │ │ │ └── 67783f667d411e96384d5ae7d58314009fad5f │ │ ├── df │ │ │ ├── 6fc33edab5de1a6faaaa141de2ff0d99fb99e2 │ │ │ ├── d1f2f006c9ea71be688e3eeaf383ff640fd21a │ │ │ └── e21d586fc45ba72db173421c5139e26e50a7af │ │ ├── f2 │ │ │ └── 0f9f10d30cd99e8133aaf9ff587c6cff0a42e4 │ │ ├── fa │ │ │ └── 6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0 │ │ └── pack │ │ │ ├── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx │ │ │ └── pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack │ │ └── refs │ │ ├── heads │ │ ├── master │ │ └── raw │ │ └── tags │ │ └── foo │ └── vault │ └── vault_test_policy.txt ├── spring-cloud-starter-config └── pom.xml └── src └── checkstyle └── checkstyle-suppressions.xml /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = tab 8 | indent_size = 4 9 | end_of_line = lf 10 | insert_final_newline = true 11 | 12 | [*.yml] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | **/src/test/resources/*-repo/** eol=lf 2 | **/foo_enc.properties text working-tree-encoding=UTF-8 eol=LF 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: waiting-for-triage 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | Please provide details of the problem, including the version of Spring Cloud that you 12 | are using. 13 | 14 | **Sample** 15 | If possible, please provide a test case or sample application that reproduces 16 | the problem. This makes it much easier for us to diagnose the problem and to verify that 17 | we have fixed it. 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: waiting-for-triage 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/dco.yml: -------------------------------------------------------------------------------- 1 | require: 2 | members: false 3 | -------------------------------------------------------------------------------- /.github/workflows/deploy-docs.yml: -------------------------------------------------------------------------------- 1 | name: Deploy Docs 2 | on: 3 | push: 4 | branches-ignore: [ gh-pages ] 5 | tags: '**' 6 | repository_dispatch: 7 | types: request-build-reference # legacy 8 | #schedule: 9 | #- cron: '0 10 * * *' # Once per day at 10am UTC 10 | workflow_dispatch: 11 | permissions: 12 | actions: write 13 | jobs: 14 | build: 15 | runs-on: ubuntu-latest 16 | # if: github.repository_owner == 'spring-cloud' 17 | steps: 18 | - name: Checkout 19 | uses: actions/checkout@v4 20 | with: 21 | ref: docs-build 22 | fetch-depth: 1 23 | - name: Dispatch (partial build) 24 | if: github.ref_type == 'branch' 25 | env: 26 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 27 | run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) -f build-refname=${{ github.ref_name }} 28 | - name: Dispatch (full build) 29 | if: github.ref_type == 'tag' 30 | env: 31 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | run: gh workflow run deploy-docs.yml -r $(git rev-parse --abbrev-ref HEAD) 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /application.yml 2 | /application.properties 3 | asciidoctor.css 4 | *~ 5 | .#* 6 | *# 7 | target 8 | bin 9 | _site/ 10 | .classpath 11 | .project 12 | .settings 13 | .sts4-cache/ 14 | .attach_pid* 15 | .springBeans 16 | .DS_Store 17 | *.sw* 18 | *.iml 19 | .idea 20 | .factorypath 21 | .vscode/ 22 | .flattened-pom.xml 23 | IntelliJ_Spring_Boot_Java_Conventions.xml 24 | 25 | node 26 | node_modules 27 | build 28 | /package.json 29 | package-lock.json 30 | -------------------------------------------------------------------------------- /.java-version: -------------------------------------------------------------------------------- 1 | 17 2 | -------------------------------------------------------------------------------- /.mvn/jvm.config: -------------------------------------------------------------------------------- 1 | -Xmx1024m -XX:CICompilerCount=1 -XX:TieredStopAtLevel=1 -Djava.security.egd=file:/dev/./urandom -------------------------------------------------------------------------------- /.mvn/maven.config: -------------------------------------------------------------------------------- 1 | -DaltSnapshotDeploymentRepository=repo.spring.io::default::https://repo.spring.io/libs-snapshot-local 2 | -P spring 3 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip 18 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 19 | -------------------------------------------------------------------------------- /.sdkmanrc: -------------------------------------------------------------------------------- 1 | # Enable auto-env through the sdkman_auto_env config 2 | # Add key=value pairs of SDKs to use below 3 | java=17.0.1-tem 4 | -------------------------------------------------------------------------------- /.springformat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/.springformat -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- 1 | require 'asciidoctor' 2 | require 'erb' 3 | 4 | options = {:mkdirs => true, :safe => :unsafe, :attributes => ['linkcss', 'allow-uri-read'] } 5 | 6 | guard 'shell' do 7 | watch(/^docs\/[A-Za-z][^#]*\.adoc$/) {|m| 8 | Asciidoctor.load_file('docs/src/main/asciidoc/README.adoc', :to_file => './README.adoc', safe: :safe, parse: false, attributes: 'allow-uri-read') 9 | Asciidoctor.render_file('docs/src/main/asciidoc/spring-cloud-config.adoc', options.merge(:to_dir => './docs/target/generated-docs')) 10 | } 11 | end 12 | -------------------------------------------------------------------------------- /docs/antora-playbook.yml: -------------------------------------------------------------------------------- 1 | antora: 2 | extensions: 3 | - require: '@springio/antora-extensions' 4 | root_component_name: 'cloud-config' 5 | site: 6 | title: Spring Cloud Config 7 | url: https://docs.spring.io/spring-cloud-config/reference/ 8 | content: 9 | sources: 10 | - url: ./.. 11 | branches: HEAD 12 | start_path: docs 13 | worktrees: true 14 | asciidoc: 15 | attributes: 16 | page-stackoverflow-url: https://stackoverflow.com/tags/spring-cloud 17 | page-pagination: '' 18 | hide-uri-scheme: '@' 19 | tabs-sync-option: '@' 20 | chomp: 'all' 21 | extensions: 22 | - '@asciidoctor/tabs' 23 | - '@springio/asciidoctor-extensions' 24 | sourcemap: true 25 | urls: 26 | latest_version_segment: '' 27 | runtime: 28 | log: 29 | failure_level: warn 30 | format: pretty 31 | ui: 32 | bundle: 33 | url: https://github.com/spring-io/antora-ui-spring/releases/download/v0.4.15/ui-bundle.zip 34 | -------------------------------------------------------------------------------- /docs/antora.yml: -------------------------------------------------------------------------------- 1 | name: cloud-config 2 | version: true 3 | title: Spring Cloud Config 4 | nav: 5 | - modules/ROOT/nav.adoc 6 | ext: 7 | collector: 8 | run: 9 | command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests -DdisableConfigurationProperties 10 | local: true 11 | scan: 12 | dir: ./target/classes/antora-resources/ 13 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/_configprops.adoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/docs/modules/ROOT/pages/_configprops.adoc -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/configprops.adoc: -------------------------------------------------------------------------------- 1 | [[configuration-properties]] 2 | = Configuration Properties 3 | 4 | Below you can find a list of configuration properties. 5 | 6 | include::partial$_configprops.adoc[] 7 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/index.adoc: -------------------------------------------------------------------------------- 1 | include::intro.adoc[Introduction] -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/intro.adoc: -------------------------------------------------------------------------------- 1 | [[spring-cloud-config]] 2 | = Spring Cloud Config 3 | 4 | Spring Cloud Config provides server-side and client-side support for externalized configuration in a distributed system. With the Config Server, you have a central place to manage external properties for applications across all environments. 5 | The concepts on both client and server map identically to the Spring `Environment` and `PropertySource` abstractions, so they fit very well with Spring applications but can be used with any application running in any language. 6 | As an application moves through the deployment pipeline from dev to test and into production, you can manage the configuration between those environments and be certain that applications have everything they need to run when they migrate. 7 | The default implementation of the server storage backend uses git, so it easily supports labelled versions of configuration environments as well as being accessible to a wide range of tooling for managing the content. 8 | It is easy to add alternative implementations and plug them in with Spring configuration. 9 | 10 | *{spring-cloud-version}* -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/observability.adoc: -------------------------------------------------------------------------------- 1 | [[observability]] 2 | == Observability metadata 3 | 4 | include::partial$_metrics.adoc[] 5 | 6 | include::partial$_spans.adoc[] 7 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/actuator-and-security.adoc: -------------------------------------------------------------------------------- 1 | [[actuator-and-security]] 2 | = Actuator and Security 3 | :page-section-summary-toc: 1 4 | 5 | IMPORTANT: Some platforms configure health checks or something similar and point to `/actuator/health` or other actuator endpoints. If actuator is not a dependency of config server, requests to `/actuator/**` would match the config server API `/\{application}/\{label}` possibly leaking secure information. Remember to add the `spring-boot-starter-actuator` dependency in this case and configure the users such that the user that makes calls to `/actuator/**` does not have access to the config server API at `/\{application}/\{label}`. 6 | 7 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/creating-a-key-store-for-testing.adoc: -------------------------------------------------------------------------------- 1 | [[creating-a-key-store-for-testing]] 2 | = Creating a Key Store for Testing 3 | 4 | To create a keystore for testing, you can use a command resembling the following: 5 | 6 | ---- 7 | $ keytool -genkeypair -alias mytestkey -keyalg RSA \ 8 | -dname "CN=Web Server,OU=Unit,O=Organization,L=City,S=State,C=US" \ 9 | -keypass changeme -keystore server.jks -storepass letmein 10 | ---- 11 | 12 | NOTE: When using JDK 11 or above you may get the following warning when using the command above. In this case 13 | you probably want to make sure the `keypass` and `storepass` values match. 14 | ---- 15 | Warning: Different store and key passwords not supported for PKCS12 KeyStores. Ignoring user-specified -keypass value. 16 | ---- 17 | 18 | Put the `server.jks` file in the classpath (for instance) and then, in 19 | your `bootstrap.yml`, for the Config Server, create the following settings: 20 | 21 | [source,yaml] 22 | ---- 23 | encrypt: 24 | keyStore: 25 | location: classpath:/server.jks 26 | password: letmein 27 | alias: mytestkey 28 | secret: changeme 29 | ---- 30 | 31 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/environment-repository/aws-parameter-store.adoc: -------------------------------------------------------------------------------- 1 | [[aws-parameter-store]] 2 | = AWS Parameter Store 3 | :page-section-summary-toc: 1 4 | 5 | When using AWS Parameter Store as a backend, you can share configuration with all applications by placing properties within the `/application` hierarchy. 6 | 7 | For example, if you add parameters with the following names, all applications using the config server will have the properties `foo.bar` and `fred.baz` available to them: 8 | 9 | [source] 10 | ---- 11 | /config/application/foo.bar 12 | /config/application-default/fred.baz 13 | ---- 14 | 15 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/environment-repository/overriding-properties-using-placeholders.adoc: -------------------------------------------------------------------------------- 1 | [[overriding-properties-using-placeholders]] 2 | = Overriding Properties Using Placeholders 3 | :page-section-summary-toc: 1 4 | 5 | A cleaner way to override properties without enabling config first bootstrap is to use property placeholders in the configuration coming from the config server. 6 | 7 | For example if the configuration coming from the config server contains the following property 8 | 9 | [source,properties] 10 | ---- 11 | hello=${app.hello:Hello From Config Server!} 12 | ---- 13 | 14 | You can override the value of `hello` coming from the config server by setting `app.hello` in your local application configuration 15 | 16 | [source,properties] 17 | ---- 18 | app.hello=Hello From Application! 19 | ---- 20 | 21 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/environment-repository/overriding-properties-using-profiles.adoc: -------------------------------------------------------------------------------- 1 | [[overriding-properties-using-profiles]] 2 | = Overriding Properties Using Profiles 3 | :page-section-summary-toc: 1 4 | 5 | The final way to override properties coming from the config server is to specify them in profile specific configuration file within the client 6 | application. 7 | 8 | For example, if you have the following configuration from the config server 9 | 10 | [source,properties] 11 | ---- 12 | hello="Hello From Config Server!" 13 | ---- 14 | 15 | You can override the value of `hello` in the client application by setting `hello` in a profile specific configuration file and 16 | then enabling that profile. 17 | 18 | .application-overrides.properties 19 | [source,properties] 20 | ---- 21 | hello="Hello From Application!" 22 | ---- 23 | 24 | In the above example you would have to enable the `overrides` profile. 25 | 26 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/environment-repository/using-bootstrap-to-override-properties.adoc: -------------------------------------------------------------------------------- 1 | [[using-bootstrap-to-override-properties]] 2 | = Using Bootstrap To Override Properties 3 | :page-section-summary-toc: 1 4 | 5 | If you enable xref:client.adoc#config-first-bootstrap[config first bootstrap], you can let client settings override configuration from the config server by placing two properties within 6 | the application's configuration that reside in the external environment repository (for example, Git, Vault, SVN, and others) used by the config server. 7 | 8 | [source,properties] 9 | ---- 10 | spring.cloud.config.allowOverride=true 11 | spring.cloud.config.overrideNone=true 12 | ---- 13 | 14 | With Bootstrap enabled and these two properties set to true you will be able to override configuration from the config server 15 | within the clients application configuration. 16 | 17 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/environment-repository/version-control-backend-filesystem-use.adoc: -------------------------------------------------------------------------------- 1 | [[version-control-backend-filesystem-use]] 2 | = Version Control Backend Filesystem Use 3 | :page-section-summary-toc: 1 4 | 5 | WARNING: With VCS-based backends (git, svn), files are checked out or cloned to the local filesystem. 6 | By default, they are put in the system temporary directory with a prefix of `config-repo-`. 7 | On linux, for example, it could be `/tmp/config-repo-`. 8 | Some operating systems https://serverfault.com/questions/377348/when-does-tmp-get-cleared/377349#377349[routinely clean out] temporary directories. 9 | This can lead to unexpected behavior, such as missing properties. 10 | To avoid this problem, change the directory that Config Server uses by setting `spring.cloud.config.server.git.basedir` or `spring.cloud.config.server.svn.basedir` to a directory that does not reside in the system temp structure. 11 | 12 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/health-indicator.adoc: -------------------------------------------------------------------------------- 1 | [[health-indicator]] 2 | = Health Indicator 3 | 4 | Config Server comes with a Health Indicator that checks whether the configured `EnvironmentRepository` is working. 5 | By default, it asks the `EnvironmentRepository` for an application named `app`, the `default` profile, and the default label provided by the `EnvironmentRepository` implementation. 6 | 7 | You can configure the Health Indicator to check more applications along with custom profiles and custom labels, as shown in the following example: 8 | 9 | [source,yaml] 10 | ---- 11 | spring: 12 | cloud: 13 | config: 14 | server: 15 | health: 16 | repositories: 17 | myservice: 18 | label: mylabel 19 | myservice-dev: 20 | name: myservice 21 | profiles: development 22 | ---- 23 | 24 | You can disable the Health Indicator by setting `management.health.config.enabled=false`. 25 | 26 | Also, you can provide a custom `down` status of your own by setting property `spring.cloud.config.server.health.down-health-status` (valued to `"DOWN'` by default). 27 | 28 | NOTE: If `spring.cloud.config.server.accept-empty` is `false` and the health indicator check returns 29 | does not return any repository data the health indicator will return `DOWN` status. 30 | 31 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/security.adoc: -------------------------------------------------------------------------------- 1 | [[security]] 2 | = Security 3 | :page-section-summary-toc: 1 4 | 5 | You can secure your Config Server in any way that makes sense to you (from physical network security to OAuth2 bearer tokens), because Spring Security and Spring Boot offer support for many security arrangements. 6 | 7 | To use the default Spring Boot-configured HTTP Basic security, include Spring Security on the classpath (for example, through `spring-boot-starter-security`). 8 | The default is a username of `user` and a randomly generated password. A random password is not useful in practice, so we recommend you configure the password (by setting `spring.security.user.password`) and encrypt it (see below for instructions on how to do that). 9 | 10 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/server/serving-encrypted-properties.adoc: -------------------------------------------------------------------------------- 1 | [[serving-encrypted-properties]] 2 | = Serving Encrypted Properties 3 | :page-section-summary-toc: 1 4 | 5 | Sometimes you want the clients to decrypt the configuration locally, instead of doing it in the server. 6 | In that case, if you provide the `encrypt.*` configuration to locate a key, you can still have `/encrypt` and `/decrypt` endpoints, but you need to explicitly switch off the decryption of outgoing properties by placing `spring.cloud.config.server.encrypt.enabled=false` in `bootstrap.[yml|properties]`. 7 | If you do not care about the endpoints, it should work if you do not configure either the key or the enabled flag. 8 | 9 | -------------------------------------------------------------------------------- /docs/modules/ROOT/pages/spring-cloud-config.adoc: -------------------------------------------------------------------------------- 1 | [[spring-cloud-config]] 2 | = Spring Cloud Config 3 | :page-section-summary-toc: 1 4 | :github: https://github.com/spring-cloud/spring-cloud-config 5 | :githubmaster: {github}/tree/master 6 | :docslink: {githubmaster}/docs/src/main/asciidoc 7 | :nofooter: 8 | :special-string: _ 9 | 10 | *{spring-cloud-version}* 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/_conventions.adoc: -------------------------------------------------------------------------------- 1 | [[observability-conventions]] 2 | === Observability - Conventions 3 | 4 | Below you can find a list of all `GlobalObservationConvention` and `ObservationConvention` declared by this project. 5 | 6 | .ObservationConvention implementations 7 | |=== 8 | |ObservationConvention Class Name | Applicable ObservationContext Class Name 9 | |`org.springframework.cloud.config.server.environment.ObservationEnvironmentRepositoryObservationConvention`|`ObservationEnvironmentRepositoryContext` 10 | |=== 11 | -------------------------------------------------------------------------------- /docs/modules/ROOT/partials/_spans.adoc: -------------------------------------------------------------------------------- 1 | [[observability-spans]] 2 | === Observability - Spans 3 | 4 | Below you can find a list of all spans declared by this project. 5 | 6 | [[observability-spans-environment-repository]] 7 | ==== Environment Repository Span 8 | 9 | > Observation created around an EnvironmentRepository. 10 | 11 | **Span name** `spring.cloud.config.environment.find` (defined by convention class `org.springframework.cloud.config.server.environment.ObservationEnvironmentRepositoryObservationConvention`). 12 | 13 | Fully qualified name of the enclosing class `org.springframework.cloud.config.server.environment.DocumentedConfigObservation`. 14 | 15 | IMPORTANT: All tags must be prefixed with `spring.cloud.config.environment` prefix! 16 | 17 | .Tag Keys 18 | |=== 19 | |Name | Description 20 | |`spring.cloud.config.environment.application` _(required)_|Application name for which properties are being queried for. 21 | |`spring.cloud.config.environment.class` _(required)_|Implementation of the EnvironmentRepository. 22 | |`spring.cloud.config.environment.label` _(required)_|Label for which properties are being queried for. 23 | |`spring.cloud.config.environment.profile` _(required)_|Application name for which properties are being queried for. 24 | |=== 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "antora": "3.2.0-alpha.8", 4 | "@antora/atlas-extension": "1.0.0-alpha.2", 5 | "@antora/collector-extension": "1.0.1", 6 | "@asciidoctor/tabs": "1.0.0-beta.6", 7 | "@springio/antora-extensions": "1.14.4", 8 | "@springio/asciidoctor-extensions": "1.0.0-alpha.17" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /docs/src/main/antora/resources/antora-resources/antora.yml: -------------------------------------------------------------------------------- 1 | version: @antora-component.version@ 2 | prerelease: @antora-component.prerelease@ 3 | 4 | asciidoc: 5 | attributes: 6 | attribute-missing: 'warn' 7 | chomp: 'all' 8 | project-root: @maven.multiModuleProjectDirectory@ 9 | github-repo: @docs.main@ 10 | github-raw: https://raw.githubusercontent.com/spring-cloud/@docs.main@/@github-tag@ 11 | github-code: https://github.com/spring-cloud/@docs.main@/tree/@github-tag@ 12 | github-issues: https://github.com/spring-cloud/@docs.main@/issues/ 13 | github-wiki: https://github.com/spring-cloud/@docs.main@/wiki 14 | spring-cloud-version: @project.version@ 15 | github-tag: @github-tag@ 16 | version-type: @version-type@ 17 | docs-url: https://docs.spring.io/@docs.main@/docs/@project.version@ 18 | raw-docs-url: https://raw.githubusercontent.com/spring-cloud/@docs.main@/@github-tag@ 19 | project-version: @project.version@ 20 | project-name: @docs.main@ 21 | -------------------------------------------------------------------------------- /sample.groovy: -------------------------------------------------------------------------------- 1 | package demo 2 | 3 | @Grab('spring-cloud-starter') 4 | @RestController 5 | class Application { 6 | @RequestMapping("/") 7 | String home() { 8 | "Hello World" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /spring-cloud-config-client-tls-tests/src/test/resources/test/config/application.properties: -------------------------------------------------------------------------------- 1 | dumb.key=dumb-value 2 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/ConfigClientFailFastException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2021 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.client; 18 | 19 | public class ConfigClientFailFastException extends IllegalStateException { 20 | 21 | public ConfigClientFailFastException(String message, Exception error) { 22 | super(message, error); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/java/org/springframework/cloud/config/client/RetryTemplateFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.client; 18 | 19 | import org.apache.commons.logging.Log; 20 | 21 | import org.springframework.retry.support.RetryTemplate; 22 | 23 | public final class RetryTemplateFactory { 24 | 25 | private RetryTemplateFactory() { 26 | 27 | } 28 | 29 | public static RetryTemplate create(RetryProperties properties, Log log) { 30 | return RetryTemplate.builder() 31 | .maxAttempts(properties.getMaxAttempts()) 32 | .exponentialBackoff(properties.getInitialInterval(), properties.getMultiplier(), 33 | properties.getMaxInterval(), properties.isUseRandomPolicy()) 34 | .withLogger(log) 35 | .build(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/java/org/springframework/cloud/config/environment/EnvironmentMediaType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012-2017 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.environment; 18 | 19 | /** 20 | * Media types that can be consumed and produced by Environment endpoints. 21 | * 22 | * @author Spencer Gibb 23 | * @since 2.0.0 24 | */ 25 | public final class EnvironmentMediaType { 26 | 27 | /** 28 | * Constant for the Config Server V1 media type. 29 | */ 30 | public static final String V1_JSON = "application/vnd.spring-cloud.config-server.v1+json"; 31 | 32 | /** 33 | * Constant for the Config Server V2 media type. 34 | */ 35 | public static final String V2_JSON = "application/vnd.spring-cloud.config-server.v2+json"; 36 | 37 | private EnvironmentMediaType() { 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | # Bootstrap components 2 | org.springframework.cloud.bootstrap.BootstrapConfiguration=\ 3 | org.springframework.cloud.config.client.ConfigServiceBootstrapConfiguration,\ 4 | org.springframework.cloud.config.client.DiscoveryClientConfigServiceBootstrapConfiguration 5 | 6 | # Environment PostProcessor 7 | org.springframework.boot.env.EnvironmentPostProcessor=\ 8 | org.springframework.cloud.config.client.ConfigServerConfigDataMissingEnvironmentPostProcessor 9 | 10 | org.springframework.boot.diagnostics.FailureAnalyzer=\ 11 | org.springframework.cloud.config.client.ConfigServerConfigDataMissingEnvironmentPostProcessor.ImportExceptionFailureAnalyzer,\ 12 | org.springframework.cloud.config.client.diagnostics.analyzer.InvalidApplicationNameExceptionFailureAnalyzer 13 | 14 | # ConfigData Location Resolvers 15 | org.springframework.boot.context.config.ConfigDataLocationResolver=\ 16 | org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver 17 | 18 | # ConfigData Loaders 19 | org.springframework.boot.context.config.ConfigDataLoader=\ 20 | org.springframework.cloud.config.client.ConfigServerConfigDataLoader 21 | 22 | # Spring Boot BootstrapRegistryInitializers 23 | org.springframework.boot.BootstrapRegistryInitializer=\ 24 | org.springframework.cloud.config.client.ConfigClientRetryBootstrapper 25 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/resources/META-INF/spring/aot.factories: -------------------------------------------------------------------------------- 1 | org.springframework.aot.hint.RuntimeHintsRegistrar=\ 2 | org.springframework.cloud.config.client.aot.ConfigClientHints 3 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- 1 | org.springframework.cloud.config.client.ConfigClientAutoConfiguration 2 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/test/java/org/springframework/cloud/config/client/ConfigClientWatchTests.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.client; 18 | 19 | import org.junit.jupiter.api.Test; 20 | 21 | import static org.assertj.core.api.Assertions.assertThat; 22 | 23 | /** 24 | * @author Spencer Gibb 25 | */ 26 | public class ConfigClientWatchTests { 27 | 28 | @Test 29 | public void stateChangedWorks() { 30 | ConfigClientWatch watch = new ConfigClientWatch(null); 31 | assertThat(watch.stateChanged(null, "1")).isTrue(); 32 | assertThat(watch.stateChanged("1", "2")).isTrue(); 33 | assertThat(watch.stateChanged("1", null)).isTrue(); 34 | assertThat(watch.stateChanged("1", "1")).isFalse(); 35 | watch.close(); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /spring-cloud-config-client/src/test/resources/applicationname.yaml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: foo 4 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/main/java/org/springframework/cloud/config/monitor/GithubPropertyPathNotificationExtractor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.monitor; 18 | 19 | import org.springframework.core.Ordered; 20 | import org.springframework.core.annotation.Order; 21 | import org.springframework.util.MultiValueMap; 22 | 23 | /** 24 | * @author Dave Syer 25 | * 26 | */ 27 | @Order(Ordered.LOWEST_PRECEDENCE - 300) 28 | public class GithubPropertyPathNotificationExtractor extends BasePropertyPathNotificationExtractor { 29 | 30 | @Override 31 | protected boolean requestBelongsToGitRepoManager(MultiValueMap headers) { 32 | return "push".equals(headers.getFirst("X-Github-Event")); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/main/java/org/springframework/cloud/config/monitor/GitlabPropertyPathNotificationExtractor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.monitor; 18 | 19 | import org.springframework.core.Ordered; 20 | import org.springframework.core.annotation.Order; 21 | import org.springframework.util.MultiValueMap; 22 | 23 | /** 24 | * @author Dave Syer 25 | * 26 | */ 27 | @Order(Ordered.LOWEST_PRECEDENCE - 100) 28 | public class GitlabPropertyPathNotificationExtractor extends BasePropertyPathNotificationExtractor { 29 | 30 | @Override 31 | protected boolean requestBelongsToGitRepoManager(MultiValueMap headers) { 32 | return "Push Hook".equals(headers.getFirst("X-Gitlab-Event")); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/main/java/org/springframework/cloud/config/monitor/PropertyPathNotificationExtractor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.monitor; 18 | 19 | import java.util.Map; 20 | 21 | import org.springframework.util.MultiValueMap; 22 | 23 | /** 24 | * Strategy for extracting a {@link PropertyPathNotification} from an incoming, 25 | * unstructured request. Different providers of notifications have different payloads for 26 | * their events, and different headers (e.g. HTTP headers for a webhook). 27 | * 28 | * @author Dave Syer 29 | * 30 | */ 31 | public interface PropertyPathNotificationExtractor { 32 | 33 | PropertyPathNotification extract(MultiValueMap headers, Map payload); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- 1 | org.springframework.cloud.config.monitor.EnvironmentMonitorAutoConfiguration 2 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/test/resources/pathsamples/bitbucket-invalid.json: -------------------------------------------------------------------------------- 1 | { 2 | "actor": { 3 | "username": "emmap1", 4 | "display_name": "Emma", 5 | "uuid": "{a54f16da-24e9-4d7f-a3a7-b1ba2cd98aa3}", 6 | "links": { 7 | "self": { 8 | "href": "https://api.bitbucket.org/api/2.0/users/emmap1" 9 | }, 10 | "html": { 11 | "href": "https://api.bitbucket.org/emmap1" 12 | }, 13 | "avatar": { 14 | "href": "https://bitbucket-api-assetroot.s3.amazonaws.com/c/photos/2015/Feb/26/3613917261-0-emmap1-avatar_avatar.png" 15 | } 16 | } 17 | }, 18 | "repository": { 19 | "links": { 20 | "self": { 21 | "href": "https://api.bitbucket.org/api/2.0/repositories/bitbucket/bitbucket" 22 | }, 23 | "html": { 24 | "href": "https://api.bitbucket.org/bitbucket/bitbucket" 25 | }, 26 | "avatar": { 27 | "href": "https://api-staging-assetroot.s3.amazonaws.com/c/photos/2014/Aug/01/bitbucket-logo-2629490769-3_avatar.png" 28 | } 29 | }, 30 | "uuid": "{673a6070-3421-46c9-9d48-90745f7bfe8e}", 31 | "full_name": "team_name/repo_name", 32 | "name": "repo_name", 33 | "scm": "git", 34 | "is_private": true 35 | }, 36 | "push": { 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/test/resources/pathsamples/bitbucketserver-invalid.json: -------------------------------------------------------------------------------- 1 | { 2 | "eventKey": "repo:refs_changed", 3 | "date": "2017-09-19T09:45:32+1000", 4 | "actor": { 5 | "name": "admin", 6 | "emailAddress": "admin@example.com", 7 | "id": 1, 8 | "displayName": "Administrator", 9 | "active": true, 10 | "slug": "admin", 11 | "type": "NORMAL" 12 | }, 13 | "repository": { 14 | "slug": "repository", 15 | "id": 84, 16 | "name": "repository", 17 | "scmId": "git", 18 | "state": "AVAILABLE", 19 | "statusMessage": "Available", 20 | "forkable": true, 21 | "project": { 22 | "key": "PROJ", 23 | "id": 84, 24 | "name": "project", 25 | "public": false, 26 | "type": "NORMAL" 27 | }, 28 | "public": false 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /spring-cloud-config-monitor/src/test/resources/pathsamples/bitbucketserver.json: -------------------------------------------------------------------------------- 1 | { 2 | "eventKey": "repo:refs_changed", 3 | "date": "2017-09-19T09:45:32+1000", 4 | "actor": { 5 | "name": "admin", 6 | "emailAddress": "admin@example.com", 7 | "id": 1, 8 | "displayName": "Administrator", 9 | "active": true, 10 | "slug": "admin", 11 | "type": "NORMAL" 12 | }, 13 | "repository": { 14 | "slug": "repository", 15 | "id": 84, 16 | "name": "repository", 17 | "scmId": "git", 18 | "state": "AVAILABLE", 19 | "statusMessage": "Available", 20 | "forkable": true, 21 | "project": { 22 | "key": "PROJ", 23 | "id": 84, 24 | "name": "project", 25 | "public": false, 26 | "type": "NORMAL" 27 | }, 28 | "public": false 29 | }, 30 | "changes": [ 31 | { 32 | "ref": { 33 | "id": "refs/heads/master", 34 | "displayId": "master", 35 | "type": "BRANCH" 36 | }, 37 | "refId": "refs/heads/master", 38 | "fromHash": "ecddabb624f6f5ba43816f5926e580a5f680a932", 39 | "toHash": "178864a7d521b6f5e720b386b2c2b0ef8563e0dc", 40 | "type": "UPDATE" 41 | } 42 | ] 43 | } 44 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | component: Config Samples 3 | endpoints: 4 | restart: 5 | enabled: true 6 | logging: 7 | levels: 8 | org.springframework.boot.env.PropertySourcesLoader: TRACE 9 | org.springframework.web: DEBUG 10 | spring: 11 | application: 12 | name: bar 13 | config: 14 | import: "optional:configserver:" 15 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: bar 4 | cloud: 5 | config: 6 | uri: http://localhost:${config.port:8888} 7 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/main/resources/bootstrapservercomposite.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | composite: 6 | - type: git 7 | uri: ${repo1} 8 | - type: git 9 | uri: ${repo1} 10 | bootstrap: true 11 | profiles: 12 | active: composite 13 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/bad.yml: -------------------------------------------------------------------------------- 1 | foo: 2 | # whitespace error! 3 | bar: spam 4 | bucket: wham 5 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | raw: true 4 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/bar.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge branch 'raw' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge tag 'foo' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 3 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/raw 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | [branch "raw"] 6 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 3 | 1 4 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f b51bc19694589d21c06bab8a4f14660b3303d7b0 Marcin Grzejszczak 1549359437 +0100 commit: Updated 3 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 Dave Syer 1406860776 -0700 branch: Created from 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/logs/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f b51bc19694589d21c06bab8a4f14660b3303d7b0 Marcin Grzejszczak 1549359437 +0100 commit: Updated 3 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54 -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/a1/9381f44efc80a21996b47adf012ef105ced909: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/a1/9381f44efc80a21996b47adf012ef105ced909 -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/b5/1bc19694589d21c06bab8a4f14660b3303d7b0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/b5/1bc19694589d21c06bab8a4f14660b3303d7b0 -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-sample/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/refs/heads/raw: -------------------------------------------------------------------------------- 1 | b51bc19694589d21c06bab8a4f14660b3303d7b0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config/label1/profilesample.yaml: -------------------------------------------------------------------------------- 1 | my.prop.label1: my value from config server label1 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config/label2/profilesample.yaml: -------------------------------------------------------------------------------- 1 | my.prop.label2: my value from config server label2 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config/profilesample-dev.yml: -------------------------------------------------------------------------------- 1 | my.prop: my value from config server dev profile -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/config/profilesample.yml: -------------------------------------------------------------------------------- 1 | my.prop: my value from config server default profile -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | 7 | 8 | 9 | 10 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/orderingtest.yml: -------------------------------------------------------------------------------- 1 | spring.config.import: "configserver:" 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/server.yml: -------------------------------------------------------------------------------- 1 | info: 2 | component: Config Server 3 | spring: 4 | cloud: 5 | config: 6 | server: 7 | git: 8 | basedir: target/config 9 | application: 10 | name: configserver 11 | jmx: 12 | default_domain: cloud.config.server 13 | server: 14 | port: 8888 15 | management: 16 | contextPath: /admin 17 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/vaultordering/client-dev.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | config: 3 | import: configserver:http://localhost:${config.server.port} 4 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/vaultordering/server.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | profiles: 3 | active: native, vault 4 | cloud: 5 | config: 6 | server: 7 | vault: 8 | order: 10 9 | token: my-root-token 10 | kv-version: 2 11 | native: 12 | order: 20 13 | searchLocations: classpath:/vault-test-repo 14 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/vaultordering/vault-test-repo/client-app-dev.yml: -------------------------------------------------------------------------------- 1 | my.prop: nativedev 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/vaultordering/vault-test-repo/client-app.yml: -------------------------------------------------------------------------------- 1 | my.prop: native 2 | -------------------------------------------------------------------------------- /spring-cloud-config-sample/src/test/resources/vaultordering/vault_test_policy.txt: -------------------------------------------------------------------------------- 1 | path "secret/metadata/" { 2 | capabilities = ["list"] 3 | } 4 | path "secret/data/client-app,*" { 5 | capabilities = ["read", "list"] 6 | } 7 | path "secret/data/client-app" { 8 | capabilities = ["read", "list"] 9 | } 10 | path "secret/data/application,*" { 11 | capabilities = ["read", "list"] 12 | } 13 | path "secret/data/application*" { 14 | capabilities = ["read", "list"] 15 | } 16 | 17 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/EnableConfigServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server; 18 | 19 | import java.lang.annotation.Documented; 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | import org.springframework.cloud.config.server.config.ConfigServerConfiguration; 26 | import org.springframework.context.annotation.Import; 27 | 28 | /** 29 | * @author Dave Syer 30 | */ 31 | @Target(ElementType.TYPE) 32 | @Retention(RetentionPolicy.RUNTIME) 33 | @Documented 34 | @Import(ConfigServerConfiguration.class) 35 | public @interface EnableConfigServer { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/composite/ConditionalOnMissingSearchPathLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.composite; 18 | 19 | import java.lang.annotation.Documented; 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | import org.springframework.context.annotation.Conditional; 26 | 27 | /** 28 | * @author Dylan Roberts 29 | */ 30 | @Target({ ElementType.TYPE, ElementType.METHOD }) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | @Documented 33 | @Conditional(OnSearchPathLocatorPresent.class) 34 | public @interface ConditionalOnMissingSearchPathLocator { 35 | 36 | } 37 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/composite/ConditionalOnSearchPathLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.composite; 18 | 19 | import java.lang.annotation.Documented; 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | import org.springframework.context.annotation.Conditional; 26 | 27 | /** 28 | * @author Dylan Roberts 29 | */ 30 | @Target({ ElementType.TYPE, ElementType.METHOD }) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | @Documented 33 | @Conditional(OnSearchPathLocatorPresent.class) 34 | public @interface ConditionalOnSearchPathLocator { 35 | 36 | } 37 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/config/ConfigServerConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.config; 18 | 19 | import org.springframework.context.annotation.Bean; 20 | import org.springframework.context.annotation.Configuration; 21 | 22 | /** 23 | * @author Spencer Gibb 24 | */ 25 | @Configuration(proxyBeanMethods = false) 26 | public class ConfigServerConfiguration { 27 | 28 | @Bean 29 | public Marker enableConfigServerMarker() { 30 | return new Marker(); 31 | } 32 | 33 | class Marker { 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/encryption/EnvironmentEncryptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.encryption; 18 | 19 | import org.springframework.cloud.config.environment.Environment; 20 | 21 | /** 22 | * Service interface for decrypting properties in Environment object. 23 | * 24 | * @author Bartosz Wojtkiewicz 25 | * @author Rafal Zukowski 26 | * 27 | */ 28 | public interface EnvironmentEncryptor { 29 | 30 | Environment decrypt(Environment environment); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/encryption/PassthruSecretLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.encryption; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | public class PassthruSecretLocator implements SecretLocator { 24 | 25 | @Override 26 | public char[] locate(String secret) { 27 | return secret == null ? new char[0] : secret.toCharArray(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/encryption/ResourceEncryptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.encryption; 18 | 19 | import java.io.IOException; 20 | import java.util.List; 21 | 22 | import org.springframework.cloud.config.environment.Environment; 23 | 24 | /** 25 | * Interface for decrypting values in plain text files served through 26 | * {@link org.springframework.cloud.config.server.resource.ResourceController}. 27 | * 28 | * @author Sean Stiglitz 29 | */ 30 | public interface ResourceEncryptor { 31 | 32 | List getSupportedExtensions(); 33 | 34 | String decrypt(String text, Environment environment) throws IOException; 35 | 36 | } 37 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/encryption/SecretLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.encryption; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | public interface SecretLocator { 24 | 25 | char[] locate(String secret); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/encryption/TextEncryptorLocator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.encryption; 18 | 19 | import java.util.Map; 20 | 21 | import org.springframework.security.crypto.encrypt.TextEncryptor; 22 | 23 | /** 24 | * @author Dave Syer 25 | * @author Bartosz Wojtkiewicz 26 | * 27 | */ 28 | public interface TextEncryptorLocator { 29 | 30 | TextEncryptor locate(Map keys); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/ConfigTokenProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Scott Frederick 21 | */ 22 | public interface ConfigTokenProvider { 23 | 24 | String getToken(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Nicolas Homble 21 | */ 22 | @SuppressWarnings("serial") 23 | public class EnvironmentException extends RuntimeException { 24 | 25 | public EnvironmentException(String string) { 26 | super(string); 27 | } 28 | 29 | public EnvironmentException(String message, Throwable cause) { 30 | super(message, cause); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.springframework.http.HttpStatus; 20 | import org.springframework.web.bind.annotation.ResponseStatus; 21 | 22 | /** 23 | * @author Chidambaram Sundaram 24 | */ 25 | @SuppressWarnings("serial") 26 | @ResponseStatus(code = HttpStatus.NOT_FOUND, reason = "Application Not Found") 27 | public class EnvironmentNotFoundException extends RuntimeException { 28 | 29 | public EnvironmentNotFoundException(String string) { 30 | super(string); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.springframework.cloud.config.environment.Environment; 20 | 21 | /** 22 | * @author Dave Syer 23 | * @author Roy Clarkson 24 | */ 25 | public interface EnvironmentRepository { 26 | 27 | Environment findOne(String application, String profile, String label); 28 | 29 | default Environment findOne(String application, String profile, String label, boolean includeOrigin) { 30 | return findOne(application, profile, label); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentRepositoryFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.springframework.cloud.config.server.support.EnvironmentRepositoryProperties; 20 | 21 | /** 22 | * @param {@link EnvironmentRepository} type 23 | * @param

{@link EnvironmentRepositoryProperties} type 24 | * @author Dylan Roberts 25 | */ 26 | public interface EnvironmentRepositoryFactory { 27 | 28 | T build(P environmentProperties) throws Exception; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/EnvironmentWatch.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Spencer Gibb 21 | */ 22 | public interface EnvironmentWatch { 23 | 24 | String watch(String state); 25 | 26 | /** 27 | * Default implementation of the {@link EnvironmentWatch}. 28 | */ 29 | class Default implements EnvironmentWatch { 30 | 31 | @Override 32 | public String watch(String state) { 33 | return null; 34 | } 35 | 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/FailedToConstructEnvironmentException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Nicolas Homble 21 | * 22 | */ 23 | @SuppressWarnings("serial") 24 | public class FailedToConstructEnvironmentException extends EnvironmentException { 25 | 26 | public FailedToConstructEnvironmentException(String string) { 27 | super(string); 28 | } 29 | 30 | public FailedToConstructEnvironmentException(String message, Throwable cause) { 31 | super(message, cause); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/HttpClient4BuilderCustomizer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2024 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.apache.http.impl.client.HttpClientBuilder; 20 | 21 | /** 22 | * @author Ryan Baxter 23 | */ 24 | public interface HttpClient4BuilderCustomizer { 25 | 26 | /** 27 | * Allows for customization of the HttpClientBuilder before it is created. 28 | * @param httpClientBuilder the HttpClientBuilder to customize 29 | */ 30 | void customize(HttpClientBuilder httpClientBuilder); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/InvalidEnvironmentRequestException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.springframework.http.HttpStatus; 20 | import org.springframework.web.bind.annotation.ResponseStatus; 21 | 22 | /** 23 | * @author Chidambaram Sundaram 24 | */ 25 | @SuppressWarnings("serial") 26 | @ResponseStatus(code = HttpStatus.BAD_REQUEST, reason = "Invalid Request") 27 | public class InvalidEnvironmentRequestException extends RuntimeException { 28 | 29 | public InvalidEnvironmentRequestException(String string) { 30 | super(string); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NoSuchLabelException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | @SuppressWarnings("serial") 24 | public class NoSuchLabelException extends RepositoryException { 25 | 26 | public NoSuchLabelException(String string) { 27 | super(string); 28 | } 29 | 30 | public NoSuchLabelException(String string, Exception e) { 31 | super(string, e); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/NoSuchRepositoryException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | @SuppressWarnings("serial") 24 | public class NoSuchRepositoryException extends RepositoryException { 25 | 26 | public NoSuchRepositoryException(String string) { 27 | super(string); 28 | } 29 | 30 | public NoSuchRepositoryException(String string, Exception e) { 31 | super(string, e); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/RepositoryException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | @SuppressWarnings("serial") 24 | public class RepositoryException extends RuntimeException { 25 | 26 | public RepositoryException(String string) { 27 | super(string); 28 | } 29 | 30 | public RepositoryException(String message, Throwable cause) { 31 | super(message, cause); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/SerializableMapPropertySource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import java.util.Map; 20 | 21 | class SerializableMapPropertySource { 22 | 23 | private String name; 24 | 25 | private Map source; 26 | 27 | SerializableMapPropertySource(String name, Map source) { 28 | this.name = name; 29 | this.source = source; 30 | } 31 | 32 | public String getName() { 33 | return this.name; 34 | } 35 | 36 | public Map getSource() { 37 | return this.source; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/SvnKitEnvironmentProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment; 18 | 19 | import org.springframework.boot.context.properties.ConfigurationProperties; 20 | import org.springframework.cloud.config.server.support.AbstractScmAccessorProperties; 21 | 22 | /** 23 | * @author Dylan Roberts 24 | */ 25 | @ConfigurationProperties("spring.cloud.config.server.svn") 26 | public class SvnKitEnvironmentProperties extends AbstractScmAccessorProperties { 27 | 28 | private static final String DEFAULT_LABEL = "trunk"; 29 | 30 | public SvnKitEnvironmentProperties() { 31 | super(); 32 | setDefaultLabel(DEFAULT_LABEL); 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/secretmanager/GoogleConfigProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2020 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment.secretmanager; 18 | 19 | public interface GoogleConfigProvider { 20 | 21 | String getValue(String key, Boolean mandatory); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/secretmanager/GoogleSecretManagerAccessStrategy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2020 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.environment.secretmanager; 18 | 19 | import java.util.Comparator; 20 | 21 | import com.google.cloud.secretmanager.v1.Secret; 22 | import com.google.cloud.secretmanager.v1.SecretVersion; 23 | 24 | public interface GoogleSecretManagerAccessStrategy { 25 | 26 | Iterable getSecrets(); 27 | 28 | String getSecretValue(Secret secret, Comparator comparator); 29 | 30 | String getSecretName(Secret secret); 31 | 32 | Boolean checkRemotePermissions(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/NoSuchResourceException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.resource; 18 | 19 | /** 20 | * @author Dave Syer 21 | * 22 | */ 23 | public class NoSuchResourceException extends RuntimeException { 24 | 25 | public NoSuchResourceException(String string) { 26 | super(string); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/resource/ResourceRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.resource; 18 | 19 | import org.springframework.core.io.Resource; 20 | 21 | /** 22 | * @author Dave Syer 23 | * 24 | */ 25 | public interface ResourceRepository { 26 | 27 | Resource findOne(String name, String profile, String label, String path); 28 | 29 | } 30 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/CredentialException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.support; 18 | 19 | /** 20 | * @author Don Laidlaw 21 | * 22 | */ 23 | @SuppressWarnings("serial") 24 | public class CredentialException extends RuntimeException { 25 | 26 | public CredentialException(String message, Throwable cause) { 27 | super(message, cause); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/EnvironmentRepositoryProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.support; 18 | 19 | import org.springframework.core.Ordered; 20 | 21 | /** 22 | * @author Dylan Roberts 23 | */ 24 | public interface EnvironmentRepositoryProperties { 25 | 26 | /** 27 | * Default order value. 28 | */ 29 | int DEFAULT_ORDER = Ordered.LOWEST_PRECEDENCE; 30 | 31 | void setOrder(int order); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/HttpEnvironmentRepositoryProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2019 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.support; 18 | 19 | import java.util.Map; 20 | 21 | import org.springframework.cloud.config.server.proxy.ProxyHostProperties; 22 | 23 | /** 24 | * @author Dylan Roberts 25 | */ 26 | public interface HttpEnvironmentRepositoryProperties extends EnvironmentRepositoryProperties { 27 | 28 | Map getProxy(); 29 | 30 | boolean isSkipSslValidation(); 31 | 32 | int getTimeout(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | # Bootstrap components 2 | org.springframework.cloud.bootstrap.BootstrapConfiguration=\ 3 | org.springframework.cloud.config.server.bootstrap.ConfigServerBootstrapConfiguration,\ 4 | org.springframework.cloud.config.server.config.RsaEncryptionAutoConfiguration,\ 5 | org.springframework.cloud.config.server.config.DefaultTextEncryptionAutoConfiguration,\ 6 | org.springframework.cloud.config.server.config.EncryptionAutoConfiguration 7 | 8 | # Environment PostProcessor 9 | org.springframework.boot.env.EnvironmentPostProcessor=\ 10 | org.springframework.cloud.config.server.bootstrap.ConfigServerBootstrapApplicationListener 11 | 12 | org.springframework.boot.diagnostics.FailureAnalyzer=\ 13 | org.springframework.cloud.config.server.diagnostics.GitUriFailureAnalyzer 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/resources/META-INF/spring/aot.factories: -------------------------------------------------------------------------------- 1 | org.springframework.aot.hint.RuntimeHintsRegistrar=\ 2 | org.springframework.cloud.config.server.config.ConfigServerRuntimeHints 3 | 4 | org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor= \ 5 | org.springframework.cloud.config.server.aot.CompositeEnvironmentBeanFactoryInitializationAotProcessor 6 | 7 | org.springframework.beans.factory.aot.BeanRegistrationExcludeFilter=\ 8 | org.springframework.cloud.config.server.aot.CompositeEnvironmentBeanFactoryInitializationAotProcessor 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: -------------------------------------------------------------------------------- 1 | org.springframework.cloud.config.server.bootstrap.ConfigServerBootstrapOverridesAutoConfiguration 2 | org.springframework.cloud.config.server.config.ConfigServerAutoConfiguration 3 | org.springframework.cloud.config.server.config.RsaEncryptionAutoConfiguration 4 | org.springframework.cloud.config.server.config.DefaultTextEncryptionAutoConfiguration 5 | org.springframework.cloud.config.server.config.EncryptionAutoConfiguration 6 | org.springframework.cloud.config.server.config.VaultEncryptionAutoConfiguration 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/main/resources/configserver.yml: -------------------------------------------------------------------------------- 1 | info: 2 | component: Config Server 3 | 4 | spring: 5 | application: 6 | name: configserver 7 | autoconfigure.exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration 8 | jmx: 9 | default_domain: cloud.config.server 10 | cloud: 11 | config: 12 | server: 13 | git: 14 | uri: https://github.com/spring-cloud-samples/config-repo 15 | repos: 16 | - patterns: multi-repo-demo-* 17 | uri: https://github.com/spring-cloud-samples/config-repo 18 | server: 19 | port: 8888 20 | management: 21 | endpoints: 22 | web: 23 | base-path: /admin 24 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/test/TestConfigServerApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013-2022 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.springframework.cloud.config.server.test; 18 | 19 | import org.springframework.boot.autoconfigure.SpringBootApplication; 20 | import org.springframework.boot.builder.SpringApplicationBuilder; 21 | import org.springframework.cloud.config.server.EnableConfigServer; 22 | 23 | @EnableConfigServer 24 | @SpringBootApplication 25 | public class TestConfigServerApplication { 26 | 27 | public static void main(String[] args) { 28 | new SpringApplicationBuilder(TestConfigServerApplication.class).properties("spring.config.name=configserver") 29 | .run(args); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/bar.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge branch 'raw' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge tag 'foo' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | [branch "raw"] 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 3 | 1 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 Dave Syer 1415902155 +0000 checkout: moving from raw to master 3 | 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 Dave Syer 1415902338 +0000 commit: Move application.yml to subdir 4 | c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 3709aa0e4ed6d9c76fdf3a9980f2a7f84defd630 Marcin Grzejszczak 1549357674 +0100 commit: Updated 5 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 Dave Syer 1406860776 -0700 branch: Created from 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 Dave Syer 1415902338 +0000 commit: Move application.yml to subdir 3 | c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 3709aa0e4ed6d9c76fdf3a9980f2a7f84defd630 Marcin Grzejszczak 1549357674 +0100 commit: Updated 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/logs/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/16/134a43183d280dc9bb3efce05c90c65d5c100a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/16/134a43183d280dc9bb3efce05c90c65d5c100a -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/16/33e23980f4b4dffab6e1d87b622afd9131515e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/16/33e23980f4b4dffab6e1d87b622afd9131515e -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/27/d0b5b449f2e8326844a735220383bf16de28b5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/27/d0b5b449f2e8326844a735220383bf16de28b5 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/37/09aa0e4ed6d9c76fdf3a9980f2a7f84defd630: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/37/09aa0e4ed6d9c76fdf3a9980f2a7f84defd630 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/5f/72eaeb42ac3a2554e3cbc54291178a7c29be39: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/5f/72eaeb42ac3a2554e3cbc54291178a7c29be39 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/c4/bd92016dc14b9fe376d9c3f7af1c9d22d44ee4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/c4/bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/fa/7ee004088958d3c5e394d447fa2cb10b10f826: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/fa/7ee004088958d3c5e394d447fa2cb10b10f826 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/another-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 3709aa0e4ed6d9c76fdf3a9980f2a7f84defd630 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/another-config-repo/sub/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/awss3/application-test1.yaml: -------------------------------------------------------------------------------- 1 | app: test1-yaml 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/awss3/application.yaml: -------------------------------------------------------------------------------- 1 | app: yaml 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/awss3/foo-test1.yaml: -------------------------------------------------------------------------------- 1 | app: test-test1-yaml 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/awss3/foo.yaml: -------------------------------------------------------------------------------- 1 | a: 0 2 | --- 3 | spring: 4 | config: 5 | activate: 6 | onProfile: test1 7 | a: 1 8 | --- 9 | spring: 10 | config: 11 | activate: 12 | on-profile: test2 13 | a: 2 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/bad.yml: -------------------------------------------------------------------------------- 1 | foo: 2 | # whitespace error! 3 | bar: spam 4 | bucket: wham 5 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/bar.yml: -------------------------------------------------------------------------------- 1 | key: value from master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | bare = false 5 | logallrefupdates = true 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7a9804f8901709bdcf794c553805d5bc5188f821 woshikid 1663579538 +0800 commit (initial): tag 2 | 7a9804f8901709bdcf794c553805d5bc5188f821 915bd24aaf815120f2755ef4fc66404f5d37b383 woshikid 1663579645 +0800 commit: branch 3 | 915bd24aaf815120f2755ef4fc66404f5d37b383 08eb9e67a7225c302e3906a63cb9544e619fc804 woshikid 1663579718 +0800 commit: master 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/logs/refs/heads/feature/foo: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 915bd24aaf815120f2755ef4fc66404f5d37b383 woshikid 1663579678 +0800 branch: Created from master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7a9804f8901709bdcf794c553805d5bc5188f821 woshikid 1663579538 +0800 commit (initial): tag 2 | 7a9804f8901709bdcf794c553805d5bc5188f821 915bd24aaf815120f2755ef4fc66404f5d37b383 woshikid 1663579645 +0800 commit: branch 3 | 915bd24aaf815120f2755ef4fc66404f5d37b383 08eb9e67a7225c302e3906a63cb9544e619fc804 woshikid 1663579718 +0800 commit: master 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/08/eb9e67a7225c302e3906a63cb9544e619fc804: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/08/eb9e67a7225c302e3906a63cb9544e619fc804 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/0d/706a8f14e7ec2b9abf99c603f3f5467d2d38ff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/0d/706a8f14e7ec2b9abf99c603f3f5467d2d38ff -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/54/8298f39d0c5a84a1ada7a2b03ef54aad1fffa2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/54/8298f39d0c5a84a1ada7a2b03ef54aad1fffa2 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/5c/19df95639519f2286fc6d39182f271ee8c0b6b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/5c/19df95639519f2286fc6d39182f271ee8c0b6b -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/6e/067728a52e959f60788121b4046e5b27793e61: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/6e/067728a52e959f60788121b4046e5b27793e61 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/7a/9804f8901709bdcf794c553805d5bc5188f821: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/7a/9804f8901709bdcf794c553805d5bc5188f821 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/91/5bd24aaf815120f2755ef4fc66404f5d37b383: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/91/5bd24aaf815120f2755ef4fc66404f5d37b383 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/ae/c5d43644133593483b7c243f851606aa2c0128: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/ae/c5d43644133593483b7c243f851606aa2c0128 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/fa/c65b3a4678430e2b86e3b28510b37c5a7942a7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/objects/fa/c65b3a4678430e2b86e3b28510b37c5a7942a7 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/refs/heads/feature/foo: -------------------------------------------------------------------------------- 1 | 915bd24aaf815120f2755ef4fc66404f5d37b383 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 08eb9e67a7225c302e3906a63cb9544e619fc804 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/branch-with-slash-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7a9804f8901709bdcf794c553805d5bc5188f821 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/compositeconfigserver.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | overrides: 6 | spring: 7 | cloud: 8 | config: 9 | enabled: true 10 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | raw: true 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/bar.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | updating bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge branch 'raw' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge tag 'foo' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/raw 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | [branch "raw"] 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 3 | 1 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/logs/refs/heads/composite: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Ryan Baxter 1481905474 -0500 branch: Created from raw 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f e488193e654487b7f43e38f0865860529cb2ec79 Ryan Baxter 1617653500 -0400 commit: updating bar 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 Dave Syer 1406860776 -0700 branch: Created from 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/logs/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2921d46f948329996d3eb4a3d11aaaff6ccda84f Marcin Grzejszczak 1549357696 +0100 commit: Updated 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/29/21d46f948329996d3eb4a3d11aaaff6ccda84f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/29/21d46f948329996d3eb4a3d11aaaff6ccda84f -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/8f/263e4c6e65fd3fb975fddba84231fe95416b66: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/8f/263e4c6e65fd3fb975fddba84231fe95416b66 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/a1/9381f44efc80a21996b47adf012ef105ced909: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/a1/9381f44efc80a21996b47adf012ef105ced909 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/b5/45f7dec7feab3006c2e73969ee704a9a4def78: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/b5/45f7dec7feab3006c2e73969ee704a9a4def78 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/e4/88193e654487b7f43e38f0865860529cb2ec79: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/e4/88193e654487b7f43e38f0865860529cb2ec79 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/refs/heads/composite: -------------------------------------------------------------------------------- 1 | e488193e654487b7f43e38f0865860529cb2ec79 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 2921d46f948329996d3eb4a3d11aaaff6ccda84f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config-repo/invalid.yaml: -------------------------------------------------------------------------------- 1 | spring: 2 | flyway: 3 | url: jdbc:mariadb://${db.host}/${db.name} 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/config/configserver.yaml: -------------------------------------------------------------------------------- 1 | config: config 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/configserver-subversion.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | defaultLabel: trunk 6 | overrides: 7 | spring: 8 | cloud: 9 | config: 10 | enabled: true 11 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/configserver-test.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | git: 6 | basedir: target/config 7 | overrides: 8 | spring.cloud.config.enabled: true 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/configserver.yaml: -------------------------------------------------------------------------------- 1 | root: config 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/data-mongo.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "application": "foo", 4 | "profile": "bar", 5 | "label": "master", 6 | "properties": { 7 | "a_b_c": "foo-bar" 8 | } 9 | }, 10 | { 11 | "application": "foo", 12 | "profile": "default", 13 | "label": "master", 14 | "properties": { 15 | "a_b_c": "foo-default" 16 | } 17 | }, 18 | { 19 | "application": "foo", 20 | "profile": null, 21 | "label": "master", 22 | "properties": { 23 | "a_b_c": "foo-null" 24 | } 25 | }, 26 | { 27 | "application": "application", 28 | "profile": "bar", 29 | "label": "master", 30 | "properties": { 31 | "a_b_c": "application-bar" 32 | } 33 | }, 34 | { 35 | "application": "application", 36 | "profile": "default", 37 | "label": "master", 38 | "properties": { 39 | "a_b_c": "application-default" 40 | } 41 | }, 42 | { 43 | "application": "application", 44 | "profile": null, 45 | "label": "master", 46 | "properties": { 47 | "a_b_c": "application-null" 48 | } 49 | }, 50 | { 51 | "application": "foo", 52 | "profile": "bar", 53 | "label": "main", 54 | "properties": { 55 | "a_b_c": "foo-bar" 56 | } 57 | }, 58 | { 59 | "application": "application", 60 | "profile": "bar", 61 | "label": "main", 62 | "properties": { 63 | "a_b_c": "application-bar" 64 | } 65 | } 66 | ] 67 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/enable-bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: enable-bootstrap 4 | cloud: 5 | config: 6 | server: 7 | git: 8 | uri: file:./target/repos/encrypt-repo 9 | bootstrap: true 10 | encrypt: 11 | key-store: 12 | location: classpath:server.jks 13 | password: letmein 14 | secret: changeme 15 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | 4 | --- 5 | spring.config.activate.on-profile: encrypt 6 | config: 7 | foo: '{cipher}{key:mytestkey}AQCohs2V6P8/UiG6a4TF/CZTCBdt5Q7wvNvcyf6vs2ByK2ZYSM77Nu0sOAduxUpMbVwJ/syecmkIXR+hU3EfT2uqPieA7/v5n33ppqIQ9JAt5JggdYIGe+wX25zU3DTXOOJdAAMzNX+zjOVyCh0QtmJf/kFslg6NqQq0E+kSg3zBi3AnkKj5BLnLIxkjxzKA4mnDXpSm7ekLZZP2iQSYSW/82AC7UOLLzTqwInMI3tJLW1e9Ne+LDsjmSxA+nkK9zhidtXPwb/SPaNF74cJCEf9mgzzKYwJlwqChLzJt8UQ1jHwRc8B6FufmizUHSp27nxdtVB4HMqh3nNsMCy137Ces58T09ZS/y/cYNRxcFbp78MHFHUqAgbC0B/p5t6h4XbQ=' 8 | 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/bar.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/enable-bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | overrides: 6 | bar: foo 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | changed spring.profiles to spring.config.activate.on-profile 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge branch 'raw' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge tag 'foo' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/main 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | [branch "raw"] 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 3 | 1 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/logs/refs/heads/composite: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Ryan Baxter 1481905474 -0500 branch: Created from raw 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/logs/refs/heads/main: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 fd07d827993aaf6ed7ef1b979767ee9277d1d409 Ryan Baxter 1636990355 -0500 branch: Created from HEAD 2 | fd07d827993aaf6ed7ef1b979767ee9277d1d409 fb1a59a90f034288d14dc4b607f9f76697aa972d spencergibb 1652114959 -0400 commit: changed spring.profiles to spring.config.activate.on-profile 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/logs/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/13/b76fa2acbef52a002372071d08d7967fee9146: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/13/b76fa2acbef52a002372071d08d7967fee9146 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/1d/3ce3ac9e4a7557e95e990c264470237ddb9488: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/1d/3ce3ac9e4a7557e95e990c264470237ddb9488 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/23/b743fe05412cf11975f0817ac8e12a13992dbe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/23/b743fe05412cf11975f0817ac8e12a13992dbe -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/3c/e2c946ed7061ec24f69061795b557c065d6688: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/3c/e2c946ed7061ec24f69061795b557c065d6688 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/5e/5ca6033619a9aa0524a408b1c6dc7e3c9f5b07: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/5e/5ca6033619a9aa0524a408b1c6dc7e3c9f5b07 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/63/e43ddbda928b903e56f601409552bbfb7fdd99: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/63/e43ddbda928b903e56f601409552bbfb7fdd99 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ad/5e0cb7036ed11ddd4b7be6ed86ad3565c8a3fc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ad/5e0cb7036ed11ddd4b7be6ed86ad3565c8a3fc -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ba/97b023d1d0faa44cc337479d6a8ac1ebcdb00d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/ba/97b023d1d0faa44cc337479d6a8ac1ebcdb00d -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/bd/414a6cc8653d7e282df0a257babc6283b83596: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/bd/414a6cc8653d7e282df0a257babc6283b83596 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/e7/7c14ccb5f9e49c11b6d4172b76b0d3cf4cef56: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/e7/7c14ccb5f9e49c11b6d4172b76b0d3cf4cef56 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/fb/1a59a90f034288d14dc4b607f9f76697aa972d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/fb/1a59a90f034288d14dc4b607f9f76697aa972d -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/fd/07d827993aaf6ed7ef1b979767ee9277d1d409: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/fd/07d827993aaf6ed7ef1b979767ee9277d1d409 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/encrypt-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/refs/heads/composite: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/refs/heads/main: -------------------------------------------------------------------------------- 1 | fb1a59a90f034288d14dc4b607f9f76697aa972d 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/encrypt-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/foo-cloud.properties: -------------------------------------------------------------------------------- 1 | bar:cloud 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/foo-development.properties: -------------------------------------------------------------------------------- 1 | bar:spam 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/foo-local.txt: -------------------------------------------------------------------------------- 1 | foo: local 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/foo.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/import.yml: -------------------------------------------------------------------------------- 1 | foo: importing 2 | 3 | spring.config.import: 4 | - configserver-test.yml 5 | - test/import/foo.yml 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/keystore-bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | config: 4 | server: 5 | git: 6 | uri: file:./target/repos/encrypt-repo 7 | bootstrap: true 8 | encrypt: 9 | keyStore: 10 | location: classpath:server.jks 11 | password: letmein 12 | alias: myKey 13 | 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/application.yml: -------------------------------------------------------------------------------- 1 | my: 2 | app: 3 | name: appname 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by "git commit" with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git update-server-info 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/info/exclude: -------------------------------------------------------------------------------- 1 | # git ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 c960eaa883ffafea56e5940baf1fc7d1b5d35b56 Andy Chan 1423230131 -0800 commit (initial): test case 2 | c960eaa883ffafea56e5940baf1fc7d1b5d35b56 4e1f25bbdca5765e279b436b5b02d05b1654515c Andy Chan 1423230216 -0800 commit: test case 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 c960eaa883ffafea56e5940baf1fc7d1b5d35b56 Andy Chan 1423230131 -0800 commit (initial): test case 2 | c960eaa883ffafea56e5940baf1fc7d1b5d35b56 4e1f25bbdca5765e279b436b5b02d05b1654515c Andy Chan 1423230216 -0800 commit: test case 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/1a/138ced808f5fb3206283b292253d8ba7a99b31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/1a/138ced808f5fb3206283b292253d8ba7a99b31 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/20/d30201572381d9dcaf164e1c7670557ece7257: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/20/d30201572381d9dcaf164e1c7670557ece7257 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/4e/1f25bbdca5765e279b436b5b02d05b1654515c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/4e/1f25bbdca5765e279b436b5b02d05b1654515c -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/53/14629d4229558db9cc91fec7631833e03434b3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/53/14629d4229558db9cc91fec7631833e03434b3 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/96/403e4eca8ed1dc5672d4bd1f125c490a2a48f7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/96/403e4eca8ed1dc5672d4bd1f125c490a2a48f7 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/c9/60eaa883ffafea56e5940baf1fc7d1b5d35b56: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/objects/c9/60eaa883ffafea56e5940baf1fc7d1b5d35b56 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 4e1f25bbdca5765e279b436b5b02d05b1654515c 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/master-labeltest-config-repo/test1-svc.properties: -------------------------------------------------------------------------------- 1 | username=foobar 2 | password=password 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker: -------------------------------------------------------------------------------- 1 | mock-maker-inline 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/bar/application.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/foo/application.properties: -------------------------------------------------------------------------------- 1 | foo:foo 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | bare = false 5 | logallrefupdates = true 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by "git commit" with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git update-server-info 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/info/exclude: -------------------------------------------------------------------------------- 1 | # git ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 012b8908f80e4d19436ffaabcd08bf32f43644ec Dave Syer 1456246639 +0000 commit (initial): Two nested dirs 2 | 012b8908f80e4d19436ffaabcd08bf32f43644ec 9d6f44a27376f0dbe4722099e138904788ef561a Marcin Grzejszczak 1549357722 +0100 commit: Updated 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 012b8908f80e4d19436ffaabcd08bf32f43644ec Dave Syer 1456246639 +0000 commit (initial): Two nested dirs 2 | 012b8908f80e4d19436ffaabcd08bf32f43644ec 9d6f44a27376f0dbe4722099e138904788ef561a Marcin Grzejszczak 1549357722 +0100 commit: Updated 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/01/2b8908f80e4d19436ffaabcd08bf32f43644ec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/01/2b8908f80e4d19436ffaabcd08bf32f43644ec -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/04/fc9760cf5a7e9a9b3f83c02db2caf82f6489e2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/04/fc9760cf5a7e9a9b3f83c02db2caf82f6489e2 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/06/6ddc1017e77dc9da7e555d063eb8425653a289: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/06/6ddc1017e77dc9da7e555d063eb8425653a289 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/0f/663b91a15a49bed0579dba6a38009d2546c313: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/0f/663b91a15a49bed0579dba6a38009d2546c313 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/16/134a43183d280dc9bb3efce05c90c65d5c100a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/16/134a43183d280dc9bb3efce05c90c65d5c100a -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/3d/ffcc3cddcc29e350c8ff1c11c53bf577057c56: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/3d/ffcc3cddcc29e350c8ff1c11c53bf577057c56 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/7d/aacd5db8d36bc6df962d1d01cb98d8713fe5c4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/7d/aacd5db8d36bc6df962d1d01cb98d8713fe5c4 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/87/91c22849104e1c8795747ccb678879a7c16771: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/87/91c22849104e1c8795747ccb678879a7c16771 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/9a/9d30fda1553c5047d2f2f510accf6238b7c131: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/9a/9d30fda1553c5047d2f2f510accf6238b7c131 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/9d/6f44a27376f0dbe4722099e138904788ef561a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/9d/6f44a27376f0dbe4722099e138904788ef561a -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/a4/8e335bccdf3130a3b70a62e126ff580f370ac9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/a4/8e335bccdf3130a3b70a62e126ff580f370ac9 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/c3/bb75b147f1435d96e10bbd83046e4d140c41e3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/c3/bb75b147f1435d96e10bbd83046e4d140c41e3 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/objects/fa/6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/nested-repo/git/objects/fa/6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/nested-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 9d6f44a27376f0dbe4722099e138904788ef561a 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | initial commit 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | bare = false 5 | logallrefupdates = true 6 | ignorecase = true 7 | precomposeunicode = true 8 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/info/exclude: -------------------------------------------------------------------------------- 1 | # git ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 8265220d6be7d73011cbc98382b499e5d7169fe7 Ryan Baxter 1623269485 -0400 commit (initial): initial commit 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 8265220d6be7d73011cbc98382b499e5d7169fe7 Ryan Baxter 1623269485 -0400 commit (initial): initial commit 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/02/09d6d392d65f4ad734b9cb938889ddd40683f4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/02/09d6d392d65f4ad734b9cb938889ddd40683f4 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/1c/cddaee9468c2f249e75dc81e50877935955866: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/1c/cddaee9468c2f249e75dc81e50877935955866 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/7a/68a4bbc80b44c287787e2306ff9fd7de35cc54 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/82/65220d6be7d73011cbc98382b499e5d7169fe7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/82/65220d6be7d73011cbc98382b499e5d7169fe7 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/ad/bec8abd5dd965a0d9a62fc5bd457ce0dec5727: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/ad/bec8abd5dd965a0d9a62fc5bd457ce0dec5727 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/fc/4aeb82a374f50cae0654d8db79dda083eff3d7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ordering-repo/git/objects/fc/4aeb82a374f50cae0654d8db79dda083eff3d7 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 8265220d6be7d73011cbc98382b499e5d7169fe7 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/project/application.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | raw: true 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ordering-repo/project/sub/application-test.yml: -------------------------------------------------------------------------------- 1 | info: 2 | foo: profile 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/resource-controller/foo.txt: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/resource-encryptor/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "spring": { 3 | "profiles": "encrypt" 4 | }, 5 | "config": { 6 | "foo": "{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46", 7 | "null-value": null, 8 | "array": ["{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46","{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46"], 9 | "key-password": "{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46" 10 | } 11 | } -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/resource-encryptor/test.properties: -------------------------------------------------------------------------------- 1 | spring.profiles=encrypt 2 | config.foo={cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 3 | config.null-value=null 4 | config.array.password[0]={cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 5 | config.array.password[1]={cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 6 | config.key-password={cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/resource-encryptor/test.yml: -------------------------------------------------------------------------------- 1 | --- 2 | spring: 3 | profiles: encrypt 4 | config: 5 | foo: '{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 6 | null-value: null 7 | array: 8 | - first-password: '{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 9 | second-password: '{cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 10 | pipe-block-text-password: | 11 | {cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 12 | greater-than-block-text-password: > 13 | {cipher}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46 14 | --- 15 | spring: 16 | profiles: encryptkey 17 | config: 18 | foo: '{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 19 | array: 20 | - first-password: '{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 21 | second-password: '{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 22 | pipe-block-text-password: | 23 | '{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 24 | greater-than-block-text-password: > 25 | '{cipher}{key:mytestkey}d1b2458ccede07c856ff952bd841638ff4dd12ed1d36812663c3c7262d57bf46' 26 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/schema-jdbc.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE PROPERTIES ( 2 | "KEY" VARCHAR(2048), 3 | "VALUE" VARCHAR(4096), 4 | APPLICATION VARCHAR(128), 5 | PROFILE VARCHAR(128), 6 | LABEL VARCHAR(128) 7 | ); 8 | 9 | CREATE TABLE MY_PROPERTIES ( 10 | MY_KEY VARCHAR(2048), 11 | MY_VALUE VARCHAR(4096), 12 | APPLICATION VARCHAR(128), 13 | PROFILE VARCHAR(128), 14 | LABEL VARCHAR(128) 15 | ); -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/server.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/server.jks -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ssh/known_hosts: -------------------------------------------------------------------------------- 1 | gitlab.example.local ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMzCa0AcNbahUFjFYJHIilhJOhKFHuDOOuY+/HqV9kALftitwNYo6dQ+tC9IK5JVZCZfqKfDWVMxspcPDf9eMoE= 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/ssl-test.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/ssl-test.jks -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/entries: -------------------------------------------------------------------------------- 1 | 12 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/format: -------------------------------------------------------------------------------- 1 | 12 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/pristine/4b/4ba5f6a617dee5e5e8d382f6bbc07531d5f968c4.svn-base: -------------------------------------------------------------------------------- 1 | info: 2 | foo: bar 3 | raw: true 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/pristine/cb/cbddbad2c491aab236e1025ad5b9ace129ea5667.svn-base: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/wc.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/wc.db -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/wc.db-journal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/.svn/wc.db-journal -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/README.txt: -------------------------------------------------------------------------------- 1 | This is a Subversion repository; use the 'svnadmin' and 'svnlook' 2 | tools to examine it. Do not add, delete, or modify files here 3 | unless you know how to avoid corrupting the repository. 4 | 5 | Visit https://subversion.apache.org/ for more information. 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/conf/authz: -------------------------------------------------------------------------------- 1 | ### This file is an example authorization file for svnserve. 2 | ### Its format is identical to that of mod_authz_svn authorization 3 | ### files. 4 | ### As shown below each section defines authorizations for the path and 5 | ### (optional) repository specified by the section name. 6 | ### The authorizations follow. An authorization line can refer to: 7 | ### - a single user, 8 | ### - a group of users defined in a special [groups] section, 9 | ### - an alias defined in a special [aliases] section, 10 | ### - all authenticated users, using the '$authenticated' token, 11 | ### - only anonymous users, using the '$anonymous' token, 12 | ### - anyone, using the '*' wildcard. 13 | ### 14 | ### A match can be inverted by prefixing the rule with '~'. Rules can 15 | ### grant read ('r') access, read-write ('rw') access, or no access 16 | ### (''). 17 | 18 | [aliases] 19 | # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average 20 | 21 | [groups] 22 | # harry_and_sally = harry,sally 23 | # harry_sally_and_joe = harry,sally,&joe 24 | 25 | # [/foo/bar] 26 | # harry = rw 27 | # &joe = r 28 | # * = 29 | 30 | # [repository:/baz/fuz] 31 | # @harry_and_sally = rw 32 | # * = r 33 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/conf/hooks-env.tmpl: -------------------------------------------------------------------------------- 1 | ### This file is an example hook script environment configuration file. 2 | ### Hook scripts run in an empty environment by default. 3 | ### As shown below each section defines environment variables for a 4 | ### particular hook script. The [default] section defines environment 5 | ### variables for all hook scripts, unless overridden by a hook-specific 6 | ### section. 7 | 8 | ### This example configures a UTF-8 locale for all hook scripts, so that 9 | ### special characters, such as umlauts, may be printed to stderr. 10 | ### If UTF-8 is used with a mod_dav_svn server, the SVNUseUTF8 option must 11 | ### also be set to 'yes' in httpd.conf. 12 | ### With svnserve, the LANG environment variable of the svnserve process 13 | ### must be set to the same value as given here. 14 | [default] 15 | LANG = en_US.UTF-8 16 | 17 | ### This sets the PATH environment variable for the pre-commit hook. 18 | [pre-commit] 19 | PATH = /usr/local/bin:/usr/bin:/usr/sbin 20 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/conf/passwd: -------------------------------------------------------------------------------- 1 | ### This file is an example password file for svnserve. 2 | ### Its format is similar to that of svnserve.conf. As shown in the 3 | ### example below it contains one section labelled [users]. 4 | ### The name and password for each user follow, one account per line. 5 | 6 | [users] 7 | # harry = harryssecret 8 | # sally = sallyssecret 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/current: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/format: -------------------------------------------------------------------------------- 1 | 6 2 | layout sharded 1000 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/fs-type: -------------------------------------------------------------------------------- 1 | fsfs 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/min-unpacked-rev: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/rep-cache.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/db/rep-cache.db -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revprops/0/0: -------------------------------------------------------------------------------- 1 | K 8 2 | svn:date 3 | V 27 4 | 2015-02-01T16:16:43.445604Z 5 | END 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revprops/0/1: -------------------------------------------------------------------------------- 1 | K 10 2 | svn:author 3 | V 7 4 | Michael 5 | K 8 6 | svn:date 7 | V 27 8 | 2015-02-01T16:21:33.720207Z 9 | K 7 10 | svn:log 11 | V 14 12 | add properties 13 | END 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revprops/0/2: -------------------------------------------------------------------------------- 1 | K 10 2 | svn:author 3 | V 7 4 | Michael 5 | K 8 6 | svn:date 7 | V 27 8 | 2015-02-01T20:51:56.036661Z 9 | K 7 10 | svn:log 11 | V 0 12 | 13 | END 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revprops/0/3: -------------------------------------------------------------------------------- 1 | K 10 2 | svn:author 3 | V 11 4 | ryanjbaxter 5 | K 8 6 | svn:date 7 | V 27 8 | 2016-12-16T16:51:59.468533Z 9 | K 7 10 | svn:log 11 | V 23 12 | adding composite branch 13 | END 14 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revs/0/0: -------------------------------------------------------------------------------- 1 | PLAIN 2 | END 3 | ENDREP 4 | id: 0.0.r0/17 5 | type: dir 6 | count: 0 7 | text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e 8 | cpath: / 9 | 10 | 11 | 17 107 12 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revs/0/1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/db/revs/0/1 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/revs/0/3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/db/revs/0/3 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/transactions/2-4.txn/node.0.0: -------------------------------------------------------------------------------- 1 | id: 0.0.t2-4 2 | type: dir 3 | pred: 0.0.r2/1211 4 | count: 3 5 | text: 2 1126 72 0 a8927d430ec09518c534d157c6e49580 6 | cpath: / 7 | copyroot: 0 / 8 | is-fresh-txn-root: y 9 | 10 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/txn-current: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/txn-current-lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/db/txn-current-lock -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/uuid: -------------------------------------------------------------------------------- 1 | f6a79cb7-4270-194d-8be4-17f24dfac039 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/db/write-lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/db/write-lock -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/format: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/locks/db-logs.lock: -------------------------------------------------------------------------------- 1 | This file is not used by Subversion 1.3.x or later. 2 | However, its existence is required for compatibility with 3 | Subversion 1.2.x or earlier. 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/locks/db.lock: -------------------------------------------------------------------------------- 1 | This file is not used by Subversion 1.3.x or later. 2 | However, its existence is required for compatibility with 3 | Subversion 1.2.x or earlier. 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/svn-config-repo/svn.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/svn-config-repo/svn.ico -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/symmetric-key-bootstrap.properties: -------------------------------------------------------------------------------- 1 | encrypt.key=foobar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/bad-syntax/application.yml: -------------------------------------------------------------------------------- 1 | key: value 2 | key: value -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/bar.yml: -------------------------------------------------------------------------------- 1 | client: 2 | test: Default 3 | 4 | --- 5 | 6 | spring: 7 | config: 8 | activate: 9 | on-profile: development 10 | 11 | client: 12 | test: Development 13 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/baz.properties: -------------------------------------------------------------------------------- 1 | client.test=Default 2 | 3 | #--- 4 | spring.config.activate.on-profile=development 5 | client.test=Development 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/app/application.properties: -------------------------------------------------------------------------------- 1 | foo:app 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/applicationxyz/application.properties: -------------------------------------------------------------------------------- 1 | foo:default-app 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/foo: -------------------------------------------------------------------------------- 1 | foo: dev_bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/foo.properties: -------------------------------------------------------------------------------- 1 | foo:dev_bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/foo_enc: -------------------------------------------------------------------------------- 1 | foo: üäö 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/foo_enc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test/dev/foo_enc.properties -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/ignore/application.properties: -------------------------------------------------------------------------------- 1 | foo:app 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/placeholder.txt: -------------------------------------------------------------------------------- 1 | foo: \${foo} 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/spam/foo.txt: -------------------------------------------------------------------------------- 1 | foo: dev_bar/spam 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/dev/template.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "${foo}" 3 | } 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/foo-development.properties: -------------------------------------------------------------------------------- 1 | bar:spam 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/foo.properties: -------------------------------------------------------------------------------- 1 | foo:test_bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/import.yml: -------------------------------------------------------------------------------- 1 | foo: importing 2 | 3 | spring.config.import: 4 | - bar.yml 5 | - import/foo.yml 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/import/foo.yml: -------------------------------------------------------------------------------- 1 | foo: imported 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/local/foo.txt: -------------------------------------------------------------------------------- 1 | foo=bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/mysql/application.properties: -------------------------------------------------------------------------------- 1 | foo:mysql 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test/reactive/application.properties: -------------------------------------------------------------------------------- 1 | # Weird thing to put in a config server file, but there's no legislating against it: 2 | spring.main.web-application-type:reactive 3 | foo:reactive 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/application.yml: -------------------------------------------------------------------------------- 1 | my: 2 | app: 3 | name: appname 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/description: -------------------------------------------------------------------------------- 1 | Unnamed repository; edit this file 'description' to name the repository. 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/hooks/applypatch-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message taken by 4 | # applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. The hook is 8 | # allowed to edit the commit message file. 9 | # 10 | # To enable this hook, rename this file to "applypatch-msg". 11 | 12 | . git-sh-setup 13 | test -x "$GIT_DIR/hooks/commit-msg" && 14 | exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} 15 | : 16 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/hooks/commit-msg.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to check the commit log message. 4 | # Called by "git commit" with one argument, the name of the file 5 | # that has the commit message. The hook should exit with non-zero 6 | # status after issuing an appropriate message if it wants to stop the 7 | # commit. The hook is allowed to edit the commit message file. 8 | # 9 | # To enable this hook, rename this file to "commit-msg". 10 | 11 | # Uncomment the below to add a Signed-off-by line to the message. 12 | # Doing this in a hook is a bad idea in general, but the prepare-commit-msg 13 | # hook is more suited to it. 14 | # 15 | # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') 16 | # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" 17 | 18 | # This example catches duplicate Signed-off-by lines. 19 | 20 | test "" = "$(grep '^Signed-off-by: ' "$1" | 21 | sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { 22 | echo >&2 Duplicate Signed-off-by lines. 23 | exit 1 24 | } 25 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/hooks/post-update.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to prepare a packed repository for use over 4 | # dumb transports. 5 | # 6 | # To enable this hook, rename this file to "post-update". 7 | 8 | exec git update-server-info 9 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/hooks/pre-applypatch.sample: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # An example hook script to verify what is about to be committed 4 | # by applypatch from an e-mail message. 5 | # 6 | # The hook should exit with non-zero status after issuing an 7 | # appropriate message if it wants to stop the commit. 8 | # 9 | # To enable this hook, rename this file to "pre-applypatch". 10 | 11 | . git-sh-setup 12 | test -x "$GIT_DIR/hooks/pre-commit" && 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} 14 | : 15 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/info/exclude: -------------------------------------------------------------------------------- 1 | # git ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | # For a project mostly in C, the following would be a good set of 4 | # exclude patterns (uncomment them if you want to use them): 5 | # *.[oa] 6 | # *~ 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/info/refs: -------------------------------------------------------------------------------- 1 | 4e1f25bbdca5765e279b436b5b02d05b1654515c refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/logs/HEAD: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 c960eaa883ffafea56e5940baf1fc7d1b5d35b56 Andy Chan 1423230131 -0800 commit (initial): test case 2 | c960eaa883ffafea56e5940baf1fc7d1b5d35b56 4e1f25bbdca5765e279b436b5b02d05b1654515c Andy Chan 1423230216 -0800 commit: test case 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 c960eaa883ffafea56e5940baf1fc7d1b5d35b56 Andy Chan 1423230131 -0800 commit (initial): test case 2 | c960eaa883ffafea56e5940baf1fc7d1b5d35b56 4e1f25bbdca5765e279b436b5b02d05b1654515c Andy Chan 1423230216 -0800 commit: test case 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/1a/138ced808f5fb3206283b292253d8ba7a99b31: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/1a/138ced808f5fb3206283b292253d8ba7a99b31 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/20/d30201572381d9dcaf164e1c7670557ece7257: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/20/d30201572381d9dcaf164e1c7670557ece7257 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/4e/1f25bbdca5765e279b436b5b02d05b1654515c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/4e/1f25bbdca5765e279b436b5b02d05b1654515c -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/53/14629d4229558db9cc91fec7631833e03434b3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/53/14629d4229558db9cc91fec7631833e03434b3 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/96/403e4eca8ed1dc5672d4bd1f125c490a2a48f7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/96/403e4eca8ed1dc5672d4bd1f125c490a2a48f7 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/c9/60eaa883ffafea56e5940baf1fc7d1b5d35b56: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test1-config-repo/git/objects/c9/60eaa883ffafea56e5940baf1fc7d1b5d35b56 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | 4e1f25bbdca5765e279b436b5b02d05b1654515c 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test1-config-repo/test1-svc.properties: -------------------------------------------------------------------------------- 1 | username=foobar 2 | password=password 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/application.properties: -------------------------------------------------------------------------------- 1 | foo:foo 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/bar.properties: -------------------------------------------------------------------------------- 1 | foo:bar 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/COMMIT_EDITMSG: -------------------------------------------------------------------------------- 1 | Updated 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/FETCH_HEAD: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge branch 'raw' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f not-for-merge tag 'foo' of dsyer@localhost:/home/dsyer/dev/platform/config/spring-platform-config-server/target/test-classes/config-repo 3 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/HEAD: -------------------------------------------------------------------------------- 1 | ref: refs/heads/master 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/ORIG_HEAD: -------------------------------------------------------------------------------- 1 | dfd1f2f006c9ea71be688e3eeaf383ff640fd21a 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/config: -------------------------------------------------------------------------------- 1 | [core] 2 | repositoryformatversion = 0 3 | filemode = true 4 | logallrefupdates = true 5 | [branch "raw"] 6 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/gitk.cache: -------------------------------------------------------------------------------- 1 | 1 1 2 | 7df4a26d5437d9d4090cd5809967f870444cde8f 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 3 | 1 4 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/index -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/logs/refs/heads/master: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 Dave Syer 1406860776 -0700 branch: Created from 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 2 | 9f01fb972bc9617e4ea59f5c8ee3ceb5ff515cd0 c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 Dave Syer 1415902338 +0000 commit: Move application.yml to subdir 3 | c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 dfd1f2f006c9ea71be688e3eeaf383ff640fd21a Dave Syer 1449047214 +0000 commit: Fix 4 | dfd1f2f006c9ea71be688e3eeaf383ff640fd21a dfe21d586fc45ba72db173421c5139e26e50a7af Dave Syer 1449047243 +0000 rebase -i (finish): refs/heads/master onto c4bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 5 | dfe21d586fc45ba72db173421c5139e26e50a7af 29f2b1020f4b87e1de6aab368ff496cc4e99a959 Dave Syer 1449047248 +0000 commit (amend): Add application.properties 6 | 29f2b1020f4b87e1de6aab368ff496cc4e99a959 df6fc33edab5de1a6faaaa141de2ff0d99fb99e2 Marcin Grzejszczak 1549357756 +0100 commit: Updated 7 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/logs/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000 7df4a26d5437d9d4090cd5809967f870444cde8f Dave Syer 1406860717 -0700 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/16/33e23980f4b4dffab6e1d87b622afd9131515e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/16/33e23980f4b4dffab6e1d87b622afd9131515e -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/27/d0b5b449f2e8326844a735220383bf16de28b5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/27/d0b5b449f2e8326844a735220383bf16de28b5 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/29/f2b1020f4b87e1de6aab368ff496cc4e99a959: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/29/f2b1020f4b87e1de6aab368ff496cc4e99a959 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/6b/b5d09918a49cdbea01ac50b8d56a334440d70e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/6b/b5d09918a49cdbea01ac50b8d56a334440d70e -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/ae/3cdf5b88ff281b7f087143289c72a5057a0278 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/c4/bd92016dc14b9fe376d9c3f7af1c9d22d44ee4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/c4/bd92016dc14b9fe376d9c3f7af1c9d22d44ee4 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/d8/67783f667d411e96384d5ae7d58314009fad5f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/d8/67783f667d411e96384d5ae7d58314009fad5f -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/6fc33edab5de1a6faaaa141de2ff0d99fb99e2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/6fc33edab5de1a6faaaa141de2ff0d99fb99e2 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/d1f2f006c9ea71be688e3eeaf383ff640fd21a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/d1f2f006c9ea71be688e3eeaf383ff640fd21a -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/e21d586fc45ba72db173421c5139e26e50a7af: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/df/e21d586fc45ba72db173421c5139e26e50a7af -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/f2/0f9f10d30cd99e8133aaf9ff587c6cff0a42e4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/f2/0f9f10d30cd99e8133aaf9ff587c6cff0a42e4 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/fa/6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/fa/6aef940fd8b36ee6b0f1e3b1324c31fef6eaa0 -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.idx -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-cloud/spring-cloud-config/fc1cf153dc5f4ead89a75584a685480a264c8bd5/spring-cloud-config-server/src/test/resources/test2-config-repo/git/objects/pack/pack-d4edd2290fa647beaa1255881228dc90c1d53fce.pack -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/refs/heads/master: -------------------------------------------------------------------------------- 1 | df6fc33edab5de1a6faaaa141de2ff0d99fb99e2 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/refs/heads/raw: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/test2-config-repo/git/refs/tags/foo: -------------------------------------------------------------------------------- 1 | 7df4a26d5437d9d4090cd5809967f870444cde8f 2 | -------------------------------------------------------------------------------- /spring-cloud-config-server/src/test/resources/vault/vault_test_policy.txt: -------------------------------------------------------------------------------- 1 | path "secret/metadata/" { 2 | capabilities = ["list"] 3 | } 4 | path "secret/data/application,*" { 5 | capabilities = ["read", "list"] 6 | } 7 | path "secret/data/application*" { 8 | capabilities = ["read", "list"] 9 | } 10 | path "secret/data/myapp*" { 11 | capabilities = ["read", "list"] 12 | } 13 | path "secret/data/myapp,*" { 14 | capabilities = ["read", "list"] 15 | } 16 | 17 | -------------------------------------------------------------------------------- /spring-cloud-starter-config/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.springframework.cloud 8 | spring-cloud-config 9 | 4.3.1-SNAPSHOT 10 | 11 | spring-cloud-starter-config 12 | 4.3.1-SNAPSHOT 13 | spring-cloud-starter-config 14 | Spring Cloud Starter 15 | https://projects.spring.io/spring-cloud 16 | 17 | Pivotal Software, Inc. 18 | https://www.spring.io 19 | 20 | 21 | ${basedir}/../.. 22 | 23 | 24 | 25 | org.springframework.cloud 26 | spring-cloud-starter 27 | 28 | 29 | org.springframework.cloud 30 | spring-cloud-config-client 31 | 32 | 33 | com.fasterxml.jackson.core 34 | jackson-databind 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/checkstyle/checkstyle-suppressions.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | --------------------------------------------------------------------------------