Skip to content

Commit

Permalink
fix: support secret names with dashes (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Jul 26, 2023
1 parent e5c56c7 commit 5d26936
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>io.camunda.connector</groupId>
<artifactId>connector-parent</artifactId>
<relativePath>../parent/pom.xml</relativePath>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</parent>

<name>connector-core</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class SecretUtil {

private static final Pattern SECRET_PATTERN_SECRETS =
Pattern.compile("secrets\\.(?<secret>[a-zA-Z_]*)");
Pattern.compile("secrets\\.(?<secret>[a-zA-Z_-]*)");

private static final Pattern SECRET_PATTERN_PARENTHESES =
Pattern.compile("\\{\\{\\s*secrets\\.(?<secret>\\S+?\\s*)}}");
Expand Down
8 changes: 4 additions & 4 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>io.camunda.connector</groupId>
<artifactId>connector-parent</artifactId>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Camunda Connector Parent</name>
Expand Down Expand Up @@ -114,19 +114,19 @@ limitations under the License.</license.inlineheader>
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-core</artifactId>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-test</artifactId>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>connector-validation</artifactId>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion secret-provider/gcp-secret-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>io.camunda.connector</groupId>
<artifactId>connector-parent</artifactId>
<relativePath>../../parent/pom.xml</relativePath>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</parent>

<name>connector-gcp-secret-provider</name>
Expand Down
2 changes: 1 addition & 1 deletion test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>io.camunda.connector</groupId>
<artifactId>connector-parent</artifactId>
<relativePath>../parent/pom.xml</relativePath>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</parent>

<name>connector-test</name>
Expand Down
2 changes: 1 addition & 1 deletion validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<groupId>io.camunda.connector</groupId>
<artifactId>connector-parent</artifactId>
<relativePath>../parent/pom.xml</relativePath>
<version>0.11.0-SNAPSHOT</version>
<version>0.12.0-SNAPSHOT</version>
</parent>

<name>connector-validation</name>
Expand Down

0 comments on commit 5d26936

Please sign in to comment.