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

Clean up interops #296

Merged
Merged
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.config;

import org.dpppt.backend.sdk.interops.config.configbeans.ActuatorSecurityConfig;
Expand Down Expand Up @@ -29,7 +39,7 @@ public class ActuatorSecurity extends WebSecurityConfigurerAdapter {

private static final String PROMETHEUS_ROLE = "PROMETHEUS";

@Value("${ws.monitor.prometheus.user}")
@Value("${interops.monitor.prometheus.user}")
private String user;

@Autowired Environment environment;
Expand Down Expand Up @@ -67,7 +77,7 @@ ActuatorSecurityConfig passwordProdAbn() {
@ConditionalOnMissingBean
ActuatorSecurityConfig passwordDefault() {
return new ActuatorSecurityConfig(
user, environment.getProperty("ws.monitor.prometheus.password"));
user, environment.getProperty("interops.monitor.prometheus.password"));
}
// ----------------------------------------------------------------------------------------------------------------------------------
// endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
@Configuration
public abstract class WSBaseConfig implements WebMvcConfigurer {

@Value("${ws.retentiondays: 14}")
@Value("${interops.retentiondays: 14}")
int retentionDays;

@Value("${ws.exposedlist.releaseBucketDuration: 7200000}")
@Value("${interops.releaseBucketDuration: 7200000}")
long releaseBucketDuration;

@Value("${ws.app.gaen.key_size: 16}")
@Value("${interops.gaen.key_size: 16}")
int gaenKeySizeBytes;

@Value("${ws.app.gaen.timeskew:PT2h}")
@Value("${interops.gaen.timeskew:PT2h}")
Duration timeSkew;

@Value("${ws.origin.country}")
@Value("${interops.origin.country}")
String originCountry;

@Value("${interops.efgs.dsosfilter.enabled: true}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ public class WSProdConfig extends WSBaseConfig {
@Value("${datasource.connectionTimeout}")
String dataSourceConnectionTimeout;

@Value("${ws.ecdsa.credentials.privateKey:}")
private String privateKey;

@Value("${ws.ecdsa.credentials.publicKey:}")
public String publicKey;

@Bean(destroyMethod = "close")
public DataSource dataSource() {
HikariConfig config = new HikariConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public WSSchedulingBaseConfig(EfgsHubSyncer efgsHubSyncer) {
this.efgsHubSyncer = efgsHubSyncer;
}

@Scheduled(cron = "${ws.interops.efgs.syncCron: 0 0/10 * * * ?}")
@Scheduled(cron = "${interops.efgs.syncCron: 0 0/10 * * * ?}")
public void efgsHubSync() {
efgsHubSyncer.sync();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.config.configbeans;

public class ActuatorSecurityConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionfilters;

import java.util.Base64;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionfilters;

import java.time.Duration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionfilters;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionfilters;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionfilters;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.insertmanager.insertionmodifier;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.model;

import static java.util.Collections.emptyList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.model;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.model;

import java.time.LocalDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.backend.sdk.interops.model;

import java.util.List;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading