diff --git a/kork-artifacts/src/main/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorer.java b/kork-artifacts/src/main/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorer.java index d89828b7d..553060bb1 100644 --- a/kork-artifacts/src/main/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorer.java +++ b/kork-artifacts/src/main/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorer.java @@ -59,7 +59,9 @@ public S3ArtifactStoreStorer( this.bucket = bucket; this.uriBuilder = uriBuilder; this.applicationsPattern = - (applicationsRegex != null) ? Pattern.compile(applicationsRegex) : null; + (applicationsRegex != null) + ? Pattern.compile(applicationsRegex, Pattern.CASE_INSENSITIVE) + : null; } /** diff --git a/kork-artifacts/src/test/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorerTest.java b/kork-artifacts/src/test/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorerTest.java index 4d2b119df..5f13d290f 100644 --- a/kork-artifacts/src/test/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorerTest.java +++ b/kork-artifacts/src/test/java/com/netflix/spinnaker/kork/artifacts/artifactstore/s3/S3ArtifactStoreStorerTest.java @@ -99,6 +99,8 @@ private static Stream applicationsRegexArgs() { Arguments.of("any", null, true), Arguments.of("app-one", allowRegex, true), Arguments.of("app-four", allowRegex, false), + Arguments.of("APP-One", allowRegex, true), + Arguments.of("APP-FOUR", allowRegex, false), Arguments.of("one", allowRegex, false), Arguments.of("app-one-more", allowRegex, false), Arguments.of("app-five", allowRegex, true),