@@ -10,7 +10,7 @@ The five folders *data-hub*, *message-broker*, *rest-gateway*, *transaction-hub-
...
@@ -10,7 +10,7 @@ The five folders *data-hub*, *message-broker*, *rest-gateway*, *transaction-hub-
The *modules* folder contains various Python modules used by multiple microservices to improve code-reuse. When building the Docker images this folder is copied into the app path.
The *modules* folder contains various Python modules used by multiple microservices to improve code-reuse. When building the Docker images this folder is copied into the app path.
### Deployment scripts in *bin/*
### Deployment scripts in *bin/*
The scripts *build.py* and *deploy.py* are used to create Docker images and deploy these images with Kubernetes respectively.
The scripts *build.py* and *deploy.py* are used to create Docker images and deploy these images with Kubernetes respectively on the cluster.
@@ -68,4 +68,4 @@ Each microservice keeps track of valid tokens. If it encounters a token that has
...
@@ -68,4 +68,4 @@ Each microservice keeps track of valid tokens. If it encounters a token that has
There are scenarios where microservices must call each other. For this case, a helper class is implemented, which performs the necessary steps automatically. This class can be found at ```src/modules/security/token_manager.py```. The class is a singleton, so the ```getInstance()``` method gives access to the only available instance of ```TokenManager```, where the method ```getToken()``` can be used to retrieve a JWT token for internal requests. The roll of this user has regular User permissions.
There are scenarios where microservices must call each other. For this case, a helper class is implemented, which performs the necessary steps automatically. This class can be found at ```src/modules/security/token_manager.py```. The class is a singleton, so the ```getInstance()``` method gives access to the only available instance of ```TokenManager```, where the method ```getToken()``` can be used to retrieve a JWT token for internal requests. The roll of this user has regular User permissions.
```TokenManager``` uses the credentials stored in ```regular_user_credentials```.json to authenticate at the rest-gateway and caches the returned token, such that multiple requests to ```getToken()``` return the same one, which reduces traffic.
```TokenManager``` uses the credentials stored in ```regular_user_credentials.json``` to authenticate at the rest-gateway and caches the returned token, such that multiple requests to ```getToken()``` return the same one, which reduces traffic.