Repository contains mock implementations for eSignet. Only for non-production use.
- Set the kube config file of the Esignet K8 cluster having dependent services.
- Below are the dependent services required for Mock Identity Services deployment:
Chart Chart version Postgres 10.16.2 Postgres Init 12.0.1-B3 mock-identity-softhsm 12.0.1-B2
-
Install
kubectlandhelmutilities. -
Run
prereq.shto setup below mentioned pre-requisites for mock services.- Setup softhsm for mock-identity in
Softhsmnamespace. - Copy required
configmapsandsecretstomockidnamespace. - Initialise mock Identity DB.
- Create empty secret for
client-private-keyandjwe-userinfo-keyfor mock relying party service.
Note: When deploying multiple esignet plugins in the same cluster, a few manual changes are required in the deployment scripts:
- Update the namespace and mock relying party service name in the
mock-relying-party-service install.shscript according to the plugin being deployed. - Update the namespace, mock relying party ui service name, and mock relying party service name in the
mock-relying-party-ui install.shscript according to the plugin being deployed. - Update the namespace and mock relying party service name in the
partner-onboarderinstall script.- Example: Sunbird Plugin Deployment
- namespace: esignet-sunbird
- mock relying party service name: mock-relying-party-service-sunbird
- mock relying party ui service name: mock-relying-party-ui-sunbird
- Example: Sunbird Plugin Deployment
cd deploy ./prereq.sh - Setup softhsm for mock-identity in
-
Install
kubectlandhelmutilities. -
setup
KUBECONFIGvariable to point to esignet k8 cluster kubeconfig file.export KUBECONFIG=path/to/kubeconfig.config -
Execute installation script:
./install-mock.sh -
During installation of each module a prompt appears requesting information regarding the presence of a public domain and a valid SSL certificate on the server.
- Opt (y,Y) : In case the Domain is mapped publically and valid SSL certificate is present.
- Ops (n,N) : If the server lacks a public domain and a valid SSL certificate, it is advisable to select the
noption.- Opting it will enable the
init-containerwith anemptyDirvolume and include it in the deployment process. - The init-container will proceed to download the server's self-signed SSL certificate and mount it to the specified location within the container's Java keystore (i.e.,
cacerts) file. - This particular functionality caters to scenarios where the script needs to be employed on a server utilizing self-signed SSL certificates.
- Opting it will enable the
-
During Installation a prompt is there to confirm if prometheus service monitor is already deployed.
- Opt (y,Y) : In case Monitoring is installed with prometheus service monitor.
- Ops (n,N) : In case Monitoring is not installed or prometheus service monitor is not available.
- Run
delete-mock.shto remove esignet services.cd deploy ./delete-mock.sh
- Run
restart-mock.shto restart esignet services.cd deploy ./restart-mock.sh
- Perform Partner onboarding for esignet mock relying party using steps only if mosip-identity plugin is used.
This project is licensed under the terms of Mozilla Public License 2.0.