Coder Social home page Coder Social logo

ebeigarts / efgs-federation-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eu-federation-gateway-service/efgs-federation-gateway

0.0 1.0 0.0 1.78 MB

The goal of this project is to develop the official European solution for the interoperability between national backend servers of decentralised contact tracing applications to combat COVID-19.

License: Apache License 2.0

JavaScript 0.16% Shell 1.23% Java 96.43% Dockerfile 0.09% C# 0.86% Batchfile 1.23%

efgs-federation-gateway's Introduction

EU Federation Gateway Service

DevelopmentDocumentationSupportContributeContributorsLicensing

The goal of this project is to develop the official European solution for the interoperability between national backend servers of decentralised contact tracing applications to combat COVID-19.

This repository contains the federation gateway service.

Status

ci quality gate coverage bugs

SonarCloud supports the EU Federation Gateway Service project! SonarCloud (www.sonarcloud.io) catches Bugs and Vulnerabilities in your repositories, and provides clear resolution guidance for any Code Quality or Security issue it detects. SonarCloud makes applications maintainable, reliable and safe!

Prerequisites

Build

Whether you cloned or downloaded the 'zipped' sources you will either find the sources in the chosen checkout-directory or get a zip file with the source code, which you can expand to a folder of your choice.

In either case open a terminal pointing to the directory you put the sources in. The local build process is described afterwards depending on the way you choose.

Maven based build

This is the recommended way for taking part in the development.
Please check, whether following prerequisites are installed on your machine:

Build Docker Image

This project also supports building a Docker image for local testing (Docker image should not be used for productive environments).

In order to run EFGS locally two certificates (in addition to your personal authentication and signing certificate) need to be created: TrustAnchor Certificate and Outbound Callback Certificate. To create them just execute the create_trustanchor and create_callback_client_certificate script from tools directory. These scripts will generate certifcates and pack them into a Java Key Store.

For testing purpose it is advised to not change the default parameters and answer all question of the script the the default value (just press enter) As a result you will have two files: efgs-ta.jks and efgs-cb-client.jks. We need these keystores later.

To build the Docker image enable the maven profile docker and build the project:

mvn clean install -P docker

A directory docker will be created in target directory. Create a directory certs within this directory and put the previously created keystores inside. Now open a shell with working directory within the created directory and execute

docker-compose up --build

The EFGS Docker image will be built. Also a MySQL database will be created. After that both start up and EFGS service is available on localhost port 8080.

To access your local EFGS instance you need to whitelist your personal authentication certificate. To do this execute the create_certificate_signature script from tools directory. The script will ask four your certificate (defaults to client.pem). Provide the full path to your certificate here. Please pay attention that your certificate does not contain a private key and has unix line endings. Otherwise the generated signature would not match. As an result the script will generate a insert.sql file. This file contains one prepared SQL insert statement. Execute this statement with a MySQL CLient of your choice sinside your Docker MySql database.

To also be able to upload keys repeat this step with your signing certificate.

API documentation

Along with the application there comes a swagger2 API documentation, which you can access in your web browser when the efgs-gateway-service applications runs:

<base-url>/swagger

Which results in the following URL on your local machine: http://localhost:8080/swagger

Documentation

Additional documentation can be found in the folder docs.

Support and feedback

The following channels are available for discussions, feedback, and support requests:

Type Channel
Federation gateway issues
Other requests

How to contribute

Contribution and feedback is encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines. By participating in this project, you agree to abide by its Code of Conduct at all times.

Contributors

Our commitment to open source means that we are enabling -in fact encouraging- all interested parties to contribute and become part of its developer community.

Licensing

Copyright (C) 2020 T-Systems International GmbH 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 https://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.

efgs-federation-gateway's People

Contributors

f11h avatar alstiefel avatar mschulte-tsi avatar maxl2287 avatar mlaue-tech-zz avatar dfischer-tech avatar daniel-eder avatar ascheibal avatar schulzesttsi avatar mikehelmick avatar bugbuster1701 avatar icesoft avatar ebeigarts avatar dirkx avatar artursbraucs avatar cascremers avatar ctsung avatar matishadow avatar mtra-nc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.