Skip to content

About

contains services for partner management

Resources

Stars

8 stars

Watchers

11 watching

Forks

Repository files navigation

Partner Management Services (PMS)

Maven Package upon a push Quality Gate Status

Overview

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:

  1. Partner management service
  2. Policy management service

Databases

Refer to SQL scripts.

Build & run (for developers)

The project requires JDK 21.0.3 and mvn version - 3.9.6

  1. Build and install:
    $ cd partner
    $ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
    

Remove the version-specific suffix (PostgreSQL95Dialect) from the Hibernate dialect configuration

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

Spring boot 3.x onwards we need to specify the below property to unmask values in actuator env url

management.endpoint.env.show-values=ALWAYS

  1. Build Docker for a service:
    $ cd <service folder>
    $ docker build -f Dockerfile
    

Configuration

partner-management-default.properties

application-default.properties

defined here.

Configuration for PMS Revamp with different Keymanager versions

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

Add auth-adapter in a class-path to run a services

<dependency>
    <groupId>io.mosip.kernel</groupId>
    <artifactId>kernel-auth-adapter</artifactId>
    <version>${kernel.auth.adapter.version}</version>
</dependency>

Deployment in K8 cluster with other MOSIP services:

Pre-requisites

  • Set KUBECONFIG variable to point to existing K8 cluster kubeconfig file:
    export KUBECONFIG=~/.kube/<k8s-cluster.config>
    

Install

  $ cd deploy
  $ ./install.sh

Delete

  $ cd deploy
  $ ./delete.sh

Restart

  $ cd deploy
  $ ./restart.sh

Test

Automated functional tests available in Functional Tests.

APIs

API documentation is available here.

License

This project is licensed under the terms of Mozilla Public License 2.0

About

contains services for partner management

Resources

Stars

8 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages