Skip to content

Commit

Permalink
Merge pull request #167 from zalando/release-3.1.1-2
Browse files Browse the repository at this point in the history
Release 3.1.1
  • Loading branch information
danielrohe authored Apr 4, 2024
2 parents 79e02c1 + 9ce76ec commit c5eb3f3
Show file tree
Hide file tree
Showing 22 changed files with 94 additions and 48 deletions.
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

44 changes: 40 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<relativePath/><!-- lookup parent from repository -->
</parent>

<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Zalando Cloud AWS</name>
Expand Down Expand Up @@ -59,12 +59,13 @@

<distributionManagement>
<downloadUrl>https://github.com/zalando/spring-cloud-config-aws-kms</downloadUrl>
<!--
<repository>
<id>github</id>
<name> GitHub Packages</name>
<url>https://maven.pkg.github.com/zalando/spring-cloud-config-aws-kms</url>
</repository>
<!--
-->
<repository>
<id>ossrh</id>
<name>Nexus Release Repository</name>
Expand All @@ -75,7 +76,6 @@
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
-->
<site>
<id>zalando-cloud-aws-docs</id>
<url>https://github.com/zalando/spring-cloud-config-aws-kms</url>
Expand Down Expand Up @@ -113,4 +113,40 @@
</license>
</licenses>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
10 changes: 5 additions & 5 deletions zalando-cloud-aws-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
</parent>

<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-autoconfigure</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Zalando Cloud AWS Autoconfigure</name>

Expand Down Expand Up @@ -47,7 +47,7 @@
</dependency>

<dependency>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-kms</artifactId>
<version>${project.version}</version>
<optional>true</optional>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.autoconfigure.kms;
package org.zalando.awsspring.cloud.autoconfigure.kms;

import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.autoconfigure.kms;
package org.zalando.awsspring.cloud.autoconfigure.kms;

import org.springframework.boot.context.properties.ConfigurationProperties;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.encrypt.TextEncryptor;
import org.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor;

import software.amazon.awssdk.services.kms.KmsClient;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import org.springframework.boot.context.properties.ConfigurationProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ org.springframework.cloud.bootstrap.BootstrapConfiguration=\
io.awspring.cloud.autoconfigure.core.AwsAutoConfiguration,\
io.awspring.cloud.autoconfigure.core.CredentialsProviderAutoConfiguration,\
io.awspring.cloud.autoconfigure.core.RegionProviderAutoConfiguration,\
com.zalando.awsspring.cloud.autoconfigure.kms.KmsAutoConfiguration,\
com.zalando.awsspring.cloud.bootstrap.encrypt.KmsEncryptConfiguration
org.zalando.awsspring.cloud.autoconfigure.kms.KmsAutoConfiguration,\
org.zalando.awsspring.cloud.bootstrap.encrypt.KmsEncryptConfiguration
Original file line number Diff line number Diff line change
@@ -1 +1 @@
com.zalando.awsspring.cloud.autoconfigure.kms.KmsAutoConfiguration
org.zalando.awsspring.cloud.autoconfigure.kms.KmsAutoConfiguration
8 changes: 4 additions & 4 deletions zalando-cloud-aws-kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
</parent>

<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-kms</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Zalando Cloud AWS KMS Integration</name>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import java.util.Base64;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import java.util.Base64;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package org.zalando.awsspring.cloud.bootstrap.encrypt;

public enum OutputMode {

PLAIN, BASE64;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import java.util.Base64;
import java.util.Collections;
Expand All @@ -10,6 +10,9 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.zalando.awsspring.cloud.bootstrap.encrypt.EncryptedToken;
import org.zalando.awsspring.cloud.bootstrap.encrypt.EncryptedTokenOptions;
import org.zalando.awsspring.cloud.bootstrap.encrypt.OutputMode;

public class EncryptedTokenTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.cloud.bootstrap.encrypt;
package org.zalando.awsspring.cloud.bootstrap.encrypt;

import java.nio.charset.StandardCharsets;
import java.util.Base64;
Expand All @@ -11,6 +11,7 @@
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.utility.DockerImageName;
import org.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor;

import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The application will print out confirmation that the secret was decrypted to the
```
2024-03-14T10:09:23.638+01:00  INFO 1174881 --- [ main] c.z.a.c.b.encrypt.KmsTextEncryptor  : decrypting NGJlZDYyNzEtNjRhOS00OTRhLWJhMGItZjk2MmIyMmIyYWM1rHhX2gJ7okYuE5VvxT0mN0ZkatF+b3AdmNGYdj21/hfd5oFm3DBaTvHHPJppbXTX as part of stack.
[java.base/java.lang.Thread.getStackTrace(Thread.java:1610),
com.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor.decrypt(KmsTextEncryptor.java:70),
org.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor.decrypt(KmsTextEncryptor.java:70),
org.springframework.cloud.bootstrap.encrypt.AbstractEnvironmentDecrypt.decrypt(AbstractEnvironmentDecrypt.java:143),
org.springframework.cloud.bootstrap.encrypt.AbstractEnvironmentDecrypt.lambda$decrypt$0(AbstractEnvironmentDecrypt.java:136),
java.base/java.util.LinkedHashMap.replaceAll(LinkedHashMap.java:731),
Expand All @@ -57,10 +57,10 @@ The application will print out confirmation that the secret was decrypted to the
org.springframework.boot.SpringApplication.run(SpringApplication.java:333),
org.springframework.boot.SpringApplication.run(SpringApplication.java:1354),
org.springframework.boot.SpringApplication.run(SpringApplication.java:1343),
com.zalando.awsspring.samples.bootstrap.BootstrapApplication.main(BootstrapApplication.java:10)]
org.zalando.awsspring.samples.bootstrap.BootstrapApplication.main(BootstrapApplication.java:10)]
2024-03-14T10:09:23.801+01:00  INFO 1174881 --- [ main] c.z.a.c.b.encrypt.KmsTextEncryptor  : decrypting NGJlZDYyNzEtNjRhOS00OTRhLWJhMGItZjk2MmIyMmIyYWM1rHhX2gJ7okYuE5VvxT0mN0ZkatF+b3AdmNGYdj21/hfd5oFm3DBaTvHHPJppbXTX as part of stack.
[java.base/java.lang.Thread.getStackTrace(Thread.java:1610),
com.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor.decrypt(KmsTextEncryptor.java:70),
org.zalando.awsspring.cloud.bootstrap.encrypt.KmsTextEncryptor.decrypt(KmsTextEncryptor.java:70),
org.springframework.cloud.bootstrap.encrypt.AbstractEnvironmentDecrypt.decrypt(AbstractEnvironmentDecrypt.java:143),
org.springframework.cloud.bootstrap.encrypt.AbstractEnvironmentDecrypt.lambda$decrypt$0(AbstractEnvironmentDecrypt.java:136),
java.base/java.util.LinkedHashMap.replaceAll(LinkedHashMap.java:731),
Expand All @@ -72,6 +72,6 @@ The application will print out confirmation that the secret was decrypted to the
org.springframework.boot.SpringApplication.run(SpringApplication.java:333),
org.springframework.boot.SpringApplication.run(SpringApplication.java:1354),
org.springframework.boot.SpringApplication.run(SpringApplication.java:1343),
com.zalando.awsspring.samples.bootstrap.BootstrapApplication.main(BootstrapApplication.java:10)]
org.zalando.awsspring.samples.bootstrap.BootstrapApplication.main(BootstrapApplication.java:10)]
```

16 changes: 12 additions & 4 deletions zalando-cloud-aws-samples/zalando-cloud-aws-kms-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>

<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-kms-sample</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Zalando Cloud AWS KMS Sample</name>

Expand Down Expand Up @@ -53,12 +53,12 @@
</dependency>

<dependency>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-kms</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-autoconfigure</artifactId>
<version>${project.version}</version>
</dependency>
Expand Down Expand Up @@ -108,6 +108,14 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.samples.bootstrap;
package org.zalando.awsspring.samples.bootstrap;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zalando.awsspring.samples.bootstrap.api;
package org.zalando.awsspring.samples.bootstrap.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

<parent>
<artifactId>zalando-cloud-aws</artifactId>
<groupId>com.zalando.awspring.cloud</groupId>
<version>3.1.1-SNAPSHOT</version>
<groupId>org.zalando.awspring.cloud</groupId>
<version>3.1.2-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-starter-kms</artifactId>
<name>Zalando Cloud AWS KMS Starter</name>
<description>Zalando Cloud AWS Key Management Service Starter</description>
Expand All @@ -23,7 +24,7 @@
<artifactId>spring-cloud-aws-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zalando.awspring.cloud</groupId>
<groupId>org.zalando.awspring.cloud</groupId>
<artifactId>zalando-cloud-aws-kms</artifactId>
<version>${project.version}</version>
</dependency>
Expand Down

0 comments on commit c5eb3f3

Please sign in to comment.