Skip to content

Commit 643060f

Browse files
committed
Support Git-style searchPaths with wildcards in AWS S3 buckets (#2812)
Fixes #2812 - ListObjectsV2 + AntPathMatcher based matching for *, **, ?, dot-wildcard - auto-ext lookup order (.properties → .json → .yml/.yaml) - directory scan, deduplication, prefix extraction - only active when searchPaths non-empty Signed-off-by: Geonwook Ham <tomy8964@naver.com> Signed-off-by: ham <tomy8964@naver.com>
1 parent 79edde1 commit 643060f

4 files changed

Lines changed: 679 additions & 18 deletions

File tree

spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/AwsS3EnvironmentProperties.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
package org.springframework.cloud.config.server.environment;
1818

19+
import java.util.ArrayList;
20+
import java.util.List;
21+
1922
import org.springframework.boot.context.properties.ConfigurationProperties;
2023
import org.springframework.cloud.config.server.support.EnvironmentRepositoryProperties;
2124

2225
/**
2326
* @author Clay McCoy
27+
* @author Geonwook Ham
2428
*/
2529
@ConfigurationProperties("spring.cloud.config.server.awss3")
2630
public class AwsS3EnvironmentProperties implements EnvironmentRepositoryProperties {
@@ -48,6 +52,16 @@ public class AwsS3EnvironmentProperties implements EnvironmentRepositoryProperti
4852

4953
private int order = DEFAULT_ORDER;
5054

55+
private List<String> searchPaths = new ArrayList<>();
56+
57+
public List<String> getSearchPaths() {
58+
return searchPaths;
59+
}
60+
61+
public void setSearchPaths(List<String> searchPaths) {
62+
this.searchPaths = searchPaths;
63+
}
64+
5165
public String getRegion() {
5266
return region;
5367
}

0 commit comments

Comments
 (0)