Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/dat 249 bring back swagger #270

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ hs_err_pid*
# node.js / frontend
node_modules/
dist/
.angular/
main.js.map
package-lock.json


2 changes: 1 addition & 1 deletion datasafe-business/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>

<artifactId>datasafe-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-directory-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/datasafe-directory-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-directory</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-directory-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-directory/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-encryption/datasafe-encryption-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-encryption</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-encryption-api</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,32 @@ public static class SecretKeyCreationCfg {
public static class EncryptingKeyCreationCfg {

@Builder.Default
private final String algo = "RSA";
private final String algo = "ECDH";

@Builder.Default
private final int size = 2048;
private final int size = 256;

@Builder.Default
private final String sigAlgo = "SHA256withECDSA";

@Builder.Default
private final String sigAlgo = "SHA256withRSA";
private final String customNamedCurve = "Curve25519";
}

@Getter
@Builder
public static class SigningKeyCreationCfg {

@Builder.Default
private final String algo = "RSA";
private final String algo = "ECDH";

@Builder.Default
private final int size = 256;

@Builder.Default
private final int size = 2048;
private final String sigAlgo = "SHA256withECDSA";

@Builder.Default
private final String sigAlgo = "SHA256withRSA";
private final String customNamedCurve = "Curve25519";
}
}
2 changes: 1 addition & 1 deletion datasafe-encryption/datasafe-encryption-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-encryption</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-encryption-impl</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* Cryptographic message syntax document encoder/decoder - see
*
* @see <a href=https://en.wikipedia.org/wiki/Cryptographic_Message_Syntax">CMS
* @see <a href="https://en.wikipedia.org/wiki/Cryptographic_Message_Syntax">CMS
* wiki</a>
*/
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import de.adorsys.keymanagement.api.types.template.generated.Secret;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.crypto.ec.CustomNamedCurves;
import org.bouncycastle.jcajce.provider.asymmetric.util.EC5Util;

import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
Expand Down Expand Up @@ -89,6 +91,7 @@ public KeyStore createKeyStore(KeyStoreAuth keyStoreAuth,
.keySize(encConf.getSize())
.prefix("ENC")
.password(passSupplier)
.paramSpec(EC5Util.convertToSpec(CustomNamedCurves.getByName(encConf.getCustomNamedCurve())))
.build()
.repeat(keyConfig.getEncKeyNumber())
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* It means that path/to/file is encrypted to cipher(path)/cipher(to)/cipher(file) and each invocation of example:
* cipher(path) will yield same string, but cipher(path)/cipher(path) will not yield same segments -
* it will be more like abc/cde and not like abc/abc.
* Additionally each segment is authenticated against its parent path hash, so attacker can't
* Additionally, each segment is authenticated against its parent path hash, so attacker can't
* move a/file to b/file without being detected.
*/
@Slf4j
Expand Down
2 changes: 1 addition & 1 deletion datasafe-encryption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-business/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-business</artifactId>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-customize-dagger</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-multidfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-multidfs</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/datasafe-examples-versioned-s3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-examples</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-examples-versioned-s3</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/datasafe-inbox-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-inbox</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-inbox-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/datasafe-inbox-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-inbox</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-inbox-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-inbox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
<parent>
<artifactId>datasafe-long-run-tests</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>datasafe-business-tests-random-actions</artifactId>

<properties>
<maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
</properties>

<dependencies>
<dependency>
<groupId>de.adorsys</groupId>
Expand Down Expand Up @@ -185,9 +181,8 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<version>${surefire.version}</version>
<configuration>
<forkMode>once</forkMode>
<argLine>${testArgs}</argLine>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-long-run-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/datasafe-metainfo-version-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-metainfo</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-metainfo-version-api</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/datasafe-metainfo-version-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-metainfo</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<artifactId>datasafe-metainfo-version-impl</artifactId>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion datasafe-metainfo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/datasafe-privatestore-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-privatestore</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/datasafe-privatestore-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe-privatestore</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion datasafe-privatestore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
9 changes: 7 additions & 2 deletions datasafe-rest-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<artifactId>datasafe</artifactId>
<groupId>de.adorsys</groupId>
<version>2.0.0</version>
<version>2.0.2</version>
</parent>

<artifactId>datasafe-rest-impl</artifactId>
<version>2.0.0</version>
<version>2.0.2</version>
<name>datasafe-rest-impl</name>
<description>Spring Boot DataSafe Application</description>

Expand All @@ -24,6 +24,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>de.adorsys</groupId>
<artifactId>datasafe-business</artifactId>
Expand Down
Loading
Loading