Skip to content

Commit 226bdde

Browse files
Merge branch 'develop' into release/1.1.0
2 parents a266bf0 + 1c23d06 commit 226bdde

File tree

5 files changed

+56
-29
lines changed

5 files changed

+56
-29
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
2121
- name: Build and Test
2222
id: buildAndTest
23-
run: mvn -B clean install
23+
run: mvn -B clean install -Pdependency-check
2424
- uses: actions/upload-artifact@v2
2525
with:
2626
name: artifacts

pom.xml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,21 @@
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39+
<project.jdk.version>17</project.jdk.version>
3940

4041
<!-- runtime dependencies -->
41-
<api.version>1.1.0-beta2</api.version>
42+
<api.version>1.1.0-rc1</api.version>
4243
<secret-service.version>1.7.0</secret-service.version>
4344
<kdewallet.version>1.2.6</kdewallet.version>
44-
<guava.version>31.0.1-jre</guava.version>
45+
<guava.version>31.1-jre</guava.version>
4546
<slf4j.version>1.7.36</slf4j.version>
4647

4748
<!-- test dependencies -->
4849
<junit.version>5.8.2</junit.version>
50+
51+
<!-- build plugin dependencies -->
52+
<dependency-check.version>7.0.0</dependency-check.version>
53+
<nexus-staging.version>1.6.8</nexus-staging.version>
4954
</properties>
5055

5156
<dependencies>
@@ -144,7 +149,7 @@
144149
</executions>
145150
<configuration>
146151
<quiet>true</quiet>
147-
<release>17</release>
152+
<release>${project.jdk.version}</release>
148153
<tags>
149154
<!-- workaround for "unknown tag: implNote", see https://blog.codefx.org/java/new-javadoc-tags/#Maven -->
150155
<tag>
@@ -191,6 +196,33 @@
191196

192197

193198
<profiles>
199+
<profile>
200+
<id>dependency-check</id>
201+
<build>
202+
<plugins>
203+
<plugin>
204+
<groupId>org.owasp</groupId>
205+
<artifactId>dependency-check-maven</artifactId>
206+
<version>${dependency-check.version}</version>
207+
<configuration>
208+
<cveValidForHours>24</cveValidForHours>
209+
<failBuildOnCVSS>0</failBuildOnCVSS>
210+
<skipTestScope>true</skipTestScope>
211+
<detail>true</detail>
212+
<suppressionFile>suppression.xml</suppressionFile>
213+
</configuration>
214+
<executions>
215+
<execution>
216+
<goals>
217+
<goal>check</goal>
218+
</goals>
219+
</execution>
220+
</executions>
221+
</plugin>
222+
</plugins>
223+
</build>
224+
</profile>
225+
194226
<profile>
195227
<id>sign</id>
196228
<build>

src/main/java/org/cryptomator/linux/keychain/KDEWalletKeychainAccess.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ public boolean isLocked() {
4545
return wallet.map(ConnectedWallet::isLocked).orElse(false);
4646
}
4747

48-
@Override
49-
@Deprecated
50-
public void storePassphrase(String key, CharSequence passphrase) throws KeychainAccessException {
51-
storePassphrase(key, null, passphrase);
52-
}
53-
5448
@Override
5549
public void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
5650
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");
@@ -69,12 +63,6 @@ public void deletePassphrase(String key) throws KeychainAccessException {
6963
wallet.get().deletePassphrase(key);
7064
}
7165

72-
@Override
73-
@Deprecated
74-
public void changePassphrase(String key, CharSequence passphrase) throws KeychainAccessException {
75-
changePassphrase(key, null, passphrase);
76-
}
77-
7866
@Override
7967
public void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
8068
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");

src/main/java/org/cryptomator/linux/keychain/SecretServiceKeychainAccess.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,14 @@ public boolean isLocked() {
3535
}
3636
}
3737

38-
@Override
39-
@Deprecated
40-
public void storePassphrase(String key, CharSequence passphrase) throws KeychainAccessException {
41-
storePassphrase(key, null, passphrase);
42-
}
43-
4438
@Override
4539
public void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
4640
try (SimpleCollection keyring = new SimpleCollection()) {
4741
List<String> list = keyring.getItems(createAttributes(key));
4842
if (list == null || list.isEmpty()) {
4943
keyring.createItem(LABEL_FOR_SECRET_IN_KEYRING, passphrase, createAttributes(key));
5044
} else {
51-
changePassphrase(key, passphrase);
45+
changePassphrase(key, displayName, passphrase);
5246
}
5347
} catch (IOException | SecurityException e) {
5448
throw new KeychainAccessException("Storing password failed.", e);
@@ -81,12 +75,6 @@ public void deletePassphrase(String key) throws KeychainAccessException {
8175
}
8276
}
8377

84-
@Override
85-
@Deprecated
86-
public void changePassphrase(String key, CharSequence passphrase) throws KeychainAccessException {
87-
changePassphrase(key, null, passphrase);
88-
}
89-
9078
@Override
9179
public void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
9280
try (SimpleCollection keyring = new SimpleCollection()) {

suppression.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
3+
<suppress>
4+
<notes><![CDATA[
5+
Incorrectly matched CPE, see https://github.com/jeremylong/DependencyCheck/issues/4177git
6+
]]></notes>
7+
<gav regex="true">^org\.cryptomator:.*$</gav>
8+
<cpe>cpe:/a:cryptomator:cryptomator</cpe>
9+
<cve>CVE-2022-25366</cve>
10+
</suppress>
11+
<suppress>
12+
<notes><![CDATA[
13+
False postive, because secret-service only accesses the external gnome-keyring service
14+
]]></notes>
15+
<gav regex="true">^de\.swiesend\:secret\-service:.*$</gav>
16+
<cve>CVE-2018-19358</cve>
17+
<cve>CVE-2018-20781</cve>
18+
</suppress>
19+
</suppressions>

0 commit comments

Comments
 (0)