This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add hostname verification (#473) * Add CSP header (#492) * Remove use of ForkJoinPool in SubmissionController (#399) (#518) * Fix http client connection pool size (#519) * Update android app versions (#520) * Add "ssl-client-verification-verify-hostname" profile (#521) * Introduce new version 1.0.2 Co-authored-by: Pit Humke <[email protected]> Co-authored-by: MKusber <[email protected]> Co-authored-by: Michael Burwig <[email protected]>
- Loading branch information
1 parent
445f273
commit b5a83c4
Showing
10 changed files
with
158 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-Drevision=1.0.1 | ||
-Drevision=1.0.2 | ||
-Dlicense.projectName=Corona-Warn-App | ||
-Dlicense.inceptionYear=2020 | ||
-Dlicense.licenseName=apache_v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ ios: | |
android: | ||
latest: | ||
major: 0 | ||
minor: 8 | ||
patch: 3 | ||
minor: 9 | ||
patch: 1 | ||
min: | ||
major: 0 | ||
minor: 8 | ||
minor: 9 | ||
patch: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...p/coronawarn/server/services/submission/verification/DefaultHostnameVerifierProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* ---license-start | ||
* Corona-Warn-App | ||
* --- | ||
* Copyright (C) 2020 SAP SE and all other contributors | ||
* --- | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* ---license-end | ||
*/ | ||
|
||
package app.coronawarn.server.services.submission.verification; | ||
|
||
import javax.net.ssl.HostnameVerifier; | ||
import org.apache.http.conn.ssl.DefaultHostnameVerifier; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Profile("ssl-client-verification-verify-hostname") | ||
public class DefaultHostnameVerifierProvider implements HostnameVerifierProvider { | ||
|
||
@Override | ||
public HostnameVerifier createHostnameVerifier() { | ||
return new DefaultHostnameVerifier(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...java/app/coronawarn/server/services/submission/verification/HostnameVerifierProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* ---license-start | ||
* Corona-Warn-App | ||
* --- | ||
* Copyright (C) 2020 SAP SE and all other contributors | ||
* --- | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* ---license-end | ||
*/ | ||
|
||
package app.coronawarn.server.services.submission.verification; | ||
|
||
import javax.net.ssl.HostnameVerifier; | ||
|
||
public interface HostnameVerifierProvider { | ||
|
||
HostnameVerifier createHostnameVerifier(); | ||
} |
36 changes: 36 additions & 0 deletions
36
.../app/coronawarn/server/services/submission/verification/NoopHostnameVerifierProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* ---license-start | ||
* Corona-Warn-App | ||
* --- | ||
* Copyright (C) 2020 SAP SE and all other contributors | ||
* --- | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* ---license-end | ||
*/ | ||
|
||
package app.coronawarn.server.services.submission.verification; | ||
|
||
import javax.net.ssl.HostnameVerifier; | ||
import org.apache.http.conn.ssl.NoopHostnameVerifier; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@Profile("!ssl-client-verification-verify-hostname") | ||
public class NoopHostnameVerifierProvider implements HostnameVerifierProvider { | ||
|
||
@Override | ||
public HostnameVerifier createHostnameVerifier() { | ||
return new NoopHostnameVerifier(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,8 @@ management: | |
health: | ||
probes: | ||
enabled: true | ||
|
||
feign: | ||
httpclient: | ||
maxConnections: 200 | ||
maxConnectionsPerRoute: 200 |