Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7c28038
Merge pull request #288 from eclipse-arrowhead/development
tsvetlin Mar 12, 2021
f809879
update start scripts
borditamas Apr 9, 2021
3b722a7
Merge pull request #293 from eistec/development
jenseliasson Apr 11, 2021
699acae
append #266 - fixed unit tests after Rajmunds suggestion
mzsilak Apr 12, 2021
f015050
append #266 - fixed issues during debian installation
mzsilak Apr 29, 2021
106256d
append #266 - removed unneeded comment in debian scripts
mzsilak Apr 29, 2021
c36560a
Docker update.
tsvetlin Apr 29, 2021
e0f17f2
Merge remote-tracking branch 'origin/master' into docker-update
tsvetlin Apr 29, 2021
e04ce26
Merge pull request #296 from mzsilak/bugfix-266
tsvetlin Apr 30, 2021
26f671f
Missing datamanager sql init script
tsvetlin May 6, 2021
b4b4de9
Merge pull request #306 from eclipse-arrowhead/docker-update-2021
tsvetlin May 6, 2021
f096cd2
expired cert changed
rbocsi May 19, 2021
b2e1ff7
Merge pull request #310 from rbocsi/updated-gateway-cert
borditamas May 25, 2021
8216b31
Merge pull request #299 from borditamas/start_script_update
tsvetlin May 25, 2021
2676d33
Added &useSSL=false flag to datasource.url
tsvetlin May 27, 2021
3770696
Merge pull request #314 from eclipse-arrowhead/docker-update-2021
tsvetlin May 27, 2021
3981fe8
Merge pull request #297 from eistec/configuration2
jenseliasson Jun 30, 2021
6494c5a
fixed intendation
jenseliasson Jul 6, 2021
a9c88c4
ws start
jenseliasson Jul 6, 2021
121ffb5
indentation cleanup
jenseliasson Jul 6, 2021
01ec096
code update
jenseliasson Jul 6, 2021
169967c
fixed indentation
jenseliasson Jul 6, 2021
88546e1
ws constants and code cleanup
jenseliasson Jul 6, 2021
55c485e
Merge pull request #324 from eclipse-arrowhead/datamanager
jenseliasson Jul 6, 2021
7d30571
websockets and TLS works (except getting CN)
jenseliasson Jul 7, 2021
ae0a34e
websockets works. Must add ACL control
jenseliasson Jul 7, 2021
9aea712
added delay printouts
jenseliasson Jul 7, 2021
ad0a2da
added ACL
jenseliasson Jul 7, 2021
e86fcef
updated debig msg
jenseliasson Jul 7, 2021
4302a62
moved methods to the driver
jenseliasson Jul 10, 2021
20c9d17
DM ACL works!
jenseliasson Jul 10, 2021
62d18a8
addign suport for ACL for WS
jenseliasson Jul 10, 2021
6f27578
ACL is working with Ws and REST
jenseliasson Jul 10, 2021
d44d062
code cleanup
jenseliasson Jul 10, 2021
1c8cbea
code cleanup
jenseliasson Jul 10, 2021
fd72fd4
code cleanup
jenseliasson Jul 11, 2021
479efe3
code cleanup
jenseliasson Jul 11, 2021
93d9a28
removed debug printouts
jenseliasson Jul 11, 2021
170742a
unit tests are ok
jenseliasson Jul 11, 2021
b6c9987
code cleanups
jenseliasson Jul 11, 2021
792401e
code cleanup
jenseliasson Jul 11, 2021
5dcccb0
final cleanup and testing
jenseliasson Jul 11, 2021
f5e2e65
code cleanup
jenseliasson Jul 11, 2021
4ab4c8a
code cleanup
jenseliasson Jul 11, 2021
aae0066
updated ACL example file
jenseliasson Jul 11, 2021
8334032
Merge pull request #326 from eclipse-arrowhead/datamanager
jenseliasson Jul 11, 2021
ca09ff3
Merge remote-tracking branch 'remotes/eclipse/development' into 4.4-m…
rbocsi Jul 13, 2021
3369157
adjustments to version 4.4
rbocsi Jul 13, 2021
7c646fd
datamanager refactor and minor bug fixes
rbocsi Jul 14, 2021
2cc3c7a
script modifications
rbocsi Jul 14, 2021
8c64347
rename extract jar
rbocsi Jul 14, 2021
4555327
fixing merge bug
rbocsi Jul 14, 2021
e517178
small fix in constants
rbocsi Jul 14, 2021
69e9684
fix extracted jar name (again)
rbocsi Jul 14, 2021
16a3c29
creating source jar for arrowhead-core-common-essentilas-java-spring …
borditamas Jul 15, 2021
9d0ff22
essentials deploy instructions
borditamas Jul 15, 2021
e40be82
add source jar plugin to core-common
borditamas Jul 15, 2021
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
.vscode/
wrapper
/target
/**/essentials-deploy/work
/**/target
/mvnw
/mvnw.cmd
Expand All @@ -44,3 +45,4 @@ wrapper
/deb-installer/.settings
deviceregistry/bin
/qos-monitor/bin
/**/.DS_Store
Binary file removed core-common/client-skeleton
Binary file not shown.
24 changes: 24 additions & 0 deletions core-common/essentials-deploy/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
1) Copy the arrowhead-core-common-essentials-java-spring.jar and its source jar into this folder and add the version to its names.
E.g.: arrowhead-core-common-essentials-java-spring-4.4.0.0.jar

2) Duplicate the source jar and change "source" to "javadoc"

2) Set the same version in the pom file and change the file name accordingly

4) You have to have these files with the actual version:

arrowhead-core-common-essentials-java-spring-4.4.0.0.jar
arrowhead-core-common-essentials-java-spring-4.4.0.0.pom
arrowhead-core-common-essentials-java-spring-4.4.0.0-sources.pom
arrowhead-core-common-essentials-java-spring-4.4.0.0-javadoc.pom

5) Make sure you have ossrh server is added to your maven settings.xml file

6) Make sure you have gpg installed, key pair generated and your public key is uploded to the keyserver.
see: https://central.sonatype.org/publish/requirements/gpg/#installing-gnupg

7) run: mvn gpg:sign-and-deploy-file -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=arrowhead-core-common-essentials-java-spring-4.4.0.0.pom -Dfile=arrowhead-core-common-essentials-java-spring-4.4.0.0.jar

8) run: mvn gpg:sign-and-deploy-file -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=arrowhead-core-common-essentials-java-spring-4.4.0.0.pom -Dfile=arrowhead-core-common-essentials-java-spring-4.4.0.0-sources.jar -Dclassifier=sources

9) run: mvn gpg:sign-and-deploy-file -Durl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=ossrh -DpomFile=arrowhead-core-common-essentials-java-spring-4.4.0.0.pom -Dfile=arrowhead-core-common-essentials-java-spring-4.4.0.0-javadoc.jar -Dclassifier=javadoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<groupId>ai.aitia</groupId>
<artifactId>arrowhead-core-common-essentials-java-spring</artifactId>
<version>VERSION</version>

<name>Arrowhead Core Common Essentials for Java Spring</name>
<description>Extracted components from Arrowhead Core Common for apllication systems</description>
<url>https://github.com/eclipse-arrowhead/core-java-spring</url>

<licenses>
<license>
<name>Eclipse Public License - v 2.0</name>
<url>https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<name>Tamas Bordi</name>
<email>tbordi@aitia.ai</email>
<organization>AITIA International Inc.</organization>
<organizationUrl>http://www.aitia.ai/</organizationUrl>
</developer>
<developer>
<name>Gabor Majoros</name>
<email>gmajoros@aitia.ai</email>
<organization>AITIA International Inc.</organization>
<organizationUrl>http://www.aitia.ai/</organizationUrl>
</developer>
<developer>
<name>Rajmund Bocsi</name>
<email>rbocsi@aitia.ai</email>
<organization>AITIA International Inc.</organization>
<organizationUrl>http://www.aitia.ai/</organizationUrl>
</developer>
<developer>
<name>Szvetlin Tanyi</name>
<email>szvetlin@aitia.ai</email>
<organization>AITIA International Inc.</organization>
<organizationUrl>http://www.aitia.ai/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/eclipse-arrowhead/core-java-spring.git</connection>
<developerConnection>scm:git:ssh://github.com:eclipse-arrowhead/core-java-spring.git</developerConnection>
<url>https://github.com/eclipse-arrowhead/core-java-spring/tree/master</url>
</scm>
</project>
22 changes: 19 additions & 3 deletions core-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
<description>Common resources for the Arrowhead core services</description>

<properties>
<client.skeleton>core-client-skeleton</client.skeleton>
<core.common.essentials>arrowhead-core-common-essentials-java-spring</core.common.essentials>
<bouncy.castle.version>1.65</bouncy.castle.version>
</properties>

<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.65</version>
<version>${bouncy.castle.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand All @@ -40,6 +41,19 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -51,9 +65,11 @@
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<finalName>${client.skeleton}</finalName>
<finalName>${core.common.essentials}</finalName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>false</minimizeJar>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<artifactSet>
<includes>
<include>eu.arrowhead:arrowhead-core-common</include>
Expand Down
Binary file removed core-common/skeleton
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class CommonConstants {
public static final String CORE_SYSTEM_ORCHESTRATOR = "Orchestrator";
public static final String CORE_SYSTEM_SERVICEREGISTRY = "Service Registry";
public static final String CORE_SYSTEM_QOSMONITOR = "Quality of Service Monitor";
public static final String CORE_SYSTEM_TRANSLATOR = "Translator";
public static final String CORE_SYSTEM_TRANSLATOR = "Translator";

public static final String CORE_SYSTEM_SYSTEMREGISTRY = "System Registry";
public static final String CORE_SYSTEM_DEVICEREGISTRY = "Device Registry";
Expand Down Expand Up @@ -140,11 +140,16 @@ public class CommonConstants {

public static final String HTTPS = "https";
public static final String HTTP = "http";
public static final String WSS = "wss";
public static final String WS = "ws";
public static final String JSON = "JSON";
public static final String XML = "XML";
public static final String CBOR = "CBOR";
public static final String BINARY = "BINARY";
public static final String HTTP_SECURE_JSON = HTTP.toUpperCase() + SECURE_INTF + JSON;
public static final String HTTP_INSECURE_JSON = HTTP.toUpperCase() + INSECURE_INTF + JSON;
public static final String WS_SECURE_JSON = WS.toUpperCase() + SECURE_INTF + JSON;
public static final String WS_INSECURE_JSON = WS.toUpperCase() + INSECURE_INTF + JSON;
public static final String UNKNOWN_ORIGIN = "<unknown>";

public static final String SERVICEREGISTRY_ADDRESS = "sr_address";
Expand Down Expand Up @@ -272,9 +277,9 @@ public class CommonConstants {
public static final String OP_DATAMANAGER_PROXY = "/proxy";
public static final String OP_DATAMANAGER_HISTORIAN = "/historian";

public static final String TRANSLATOR_URI = "/translator";
public static final String OP_TRANSLATOR_FIWARE_URI = "/v2";
public static final String OP_TRANSLATOR_PLUGIN_URI = "/plugin";
public static final String TRANSLATOR_URI = "/translator";
public static final String OP_TRANSLATOR_FIWARE_URI = "/v2";
public static final String OP_TRANSLATOR_PLUGIN_URI = "/plugin";

public static final String SWAGGER_COMMON_PACKAGE = "eu.arrowhead.common.swagger";
public static final String SWAGGER_UI_URI = "/swagger-ui.html";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class CoreDefaults {

public static final boolean DEFAULT_LOG_ALL_REQUEST_AND_RESPONSE = false;
public static final boolean DEFAULT_USE_STRICT_SERVICE_INTF_NAME_VERIFIER = false;
public static final boolean DEFAULT_USE_STRICT_SERVICE_DEFINITION_VERIFIER = true;
public static final boolean DEFAULT_USE_STRICT_SERVICE_DEFINITION_VERIFIER = false;
public static final boolean DEFAULT_USE_NETWORK_ADDRESS_DETECTOR = false;
public static final String DEFAULT_FILTER_PROXY_ADDRESSES = "";
public static final boolean DEFAULT_ALLOW_SELF_ADDRESSING = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
import org.springframework.util.Assert;
import org.springframework.util.Base64Utils;
import org.springframework.util.StringUtils;
import org.springframework.http.server.ServletServerHttpRequest;

@Component
public class SecurityUtilities {
Expand Down Expand Up @@ -112,6 +113,14 @@ public static String getCertificateCNFromRequest(final HttpServletRequest reques
return null;
}

//-------------------------------------------------------------------------------------------------
public static String getCertificateCNFromServerRequest(final ServletServerHttpRequest request) {
Assert.notNull(request, "request must not be null");
final HttpServletRequest servletRequest = request.getServletRequest();

return getCertificateCNFromRequest(servletRequest);
}

//-------------------------------------------------------------------------------------------------
private static String getCommonNameFromCloudCertificate(final Principal principal) {
Assert.notNull(principal, "Principal must not be null");
Expand Down
1 change: 1 addition & 0 deletions datamanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<includes>
<include>application.properties</include>
<include>log4j2.xml</include>
<include>accesslist.acl</include>
</includes>
</resource>
</resources>
Expand Down
Loading