This repository contains the source code MOSIP Partner Management module. For an overview refer here. The module exposes API endpoints. For a reference front-end UI implementation refer to Partner-management UI GitHub repo
Partner management module contains following services:
- Partner management service
- Policy management service
Refer to SQL scripts.
The project requires JDK 21.0.3 and mvn version - 3.9.6
- Build and install:
$ cd partner $ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
mosip.datasource.authdevice.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
mosip.datasource.regdevice.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
For Spring-boot 3.x we need to specify the ANT Path Matcher for using the existing ANT path patterns.
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
management.endpoint.env.show-values=ALWAYS
- Build Docker for a service:
$ cd <service folder> $ docker build -f Dockerfile
partner-management-default.properties
application-default.properties
defined here.
These properties control the availability of features in the PMS system, depending on the Keymanager version. Features are enabled or disabled based on the specific Keymanager version in use. Please refer here for more details
mosip.pms.ca.signed.partner.certificate.available=true
mosip.pms.oidc.client.available=true
mosip.pms.root.and.intermediate.certificates.available=true
<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-auth-adapter</artifactId>
<version>${kernel.auth.adapter.version}</version>
</dependency>
- Set KUBECONFIG variable to point to existing K8 cluster kubeconfig file:
export KUBECONFIG=~/.kube/<k8s-cluster.config>
$ cd deploy
$ ./install.sh
$ cd deploy
$ ./delete.sh
$ cd deploy
$ ./restart.sh
Automated functional tests available in Functional Tests.
API documentation is available here.
This project is licensed under the terms of Mozilla Public License 2.0