Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ MOSIP-26666 ] updated README.md (#177) #181

Merged
merged 2 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release_chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
with:
token: ${{ secrets.ACTION_PAT }}
charts_dir: ./helm
charts_url: https://github.com/mosip
charts_url: https://mosip.github.io/mosip-helm
repository: mosip-helm
branch: gh-pages
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,58 @@ The project requires JDK 11.
$ docker build -f Dockerfile
```

## Installing in k8s cluster using helm
### Pre-requisites
1. Set the kube config file of the Mosip cluster having dependent services is set correctly in PC.
1. Make sure [DB setup](db_scripts/README.md#install-in-existing-mosip-k8-cluster) is done.
1. Add / merge below mentioned properties files into existing config branch:
* [esignet-default.properties](https://github.com/mosip/mosip-config/blob/v1.2.0.1-B3/esignet-default.properties)
* [application-default.properties](https://github.com/mosip/mosip-config/blob/v1.2.0.1-B3/application-default.properties)
1. Below are the dependent services required for esignet service:
| Chart | Chart version |
|---|---|
|[Keycloak](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/iam) | 7.1.18 |
|[Keycloak-init](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/iam) | 12.0.1-B3 |
|[Postgres](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/postgres) | 10.16.2 |
|[Postgres Init](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/postgres) | 12.0.1-B3 |
|[Minio](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/object-store) | 10.1.6 |
|[Kafka](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/kafka) | 0.4.2 |
|[Config-server](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/mosip/config-server) | 12.0.1-B3 |
|[Websub](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/mosip/websub) | 12.0.1-B2 |
|[Artifactory server](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/mosip/artifactory) | 12.0.1-B3 |
|[Keymanager service](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/keymanager) | 12.0.1-B2 |
|[Kernel services](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/kernel) | 12.0.1-B2 |
|[Biosdk service](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/mosip/biosdk) | 12.0.1-B3 |
|[Idrepo services](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/idrepo) | 12.0.1-B2 |
|[Pms services](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/pms) | 12.0.1-B3 |
|[IDA services](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/ida) | 12.0.1-B3 |

### Install
* Install `kubectl` and `helm` utilities.
* Run `install-all.sh` to deploy esignet services.
```
cd helm
./install-all.sh
```

### Delete
* Run `delete-all.sh` to remove esignet services.
```
cd helm
./delete-all.sh
```

### Restart
* Run `restart-all.sh` to restart esignet services.
```
cd helm
./restart-all.sh
```

## Onboard esignet
* Run onboarder's [install.sh](https://github.com/mosip/mosip-infra/blob/v1.2.0.1-B3/deployment/v3/mosip/partner-onboarder) script to exchange jwk certificates.


## APIs
API documentation is available [here](https://mosip.stoplight.io/docs/identity-provider/branches/main/6f1syzijynu40-identity-provider).

Expand Down
29 changes: 24 additions & 5 deletions db_scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
# e-Signet
# e-Signet Database
Open ID based Identity provider for large scale authentication.

## Overview
This folder containers various SQL scripts to create database and tables in postgres.
The tables are described under `<db name>/ddl/`.
Default data that's populated in the tables is present under `<db name>/dml` folder.

## Prerequisites
* Make sure DB changes for IDA and PMS are up to date.
* If not upgraded, IDA DB using the [release script](https://github.com/mosip/id-authentication/tree/develop/db_release_scripts).
* If not upgraded, PMS DB using the [release script](https://github.com/mosip/partner-management-services/tree/develop/db_release_scripts).

## Initialize esignet DB
* To initialize esignet DB, run below script.
* Command line utilities:
- kubectl
- helm
* Helm repos:
```sh
./init_db.sh
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add mosip https://mosip.github.io/mosip-helm
```

## Install in existing MOSIP K8 Cluster
These scripts are automatically run with below mentioned script in existing k8 cluster with Postgres installed.
### Install
* Set your kube_config file or kube_config variable on PC.
* Update `init_values.yaml` with db-common-password from the postgres namespace in the required field `dbUserPasswords.dbuserPassword` and ensure `databases.mosip_esignet` is enabled.
```
./init_db.sh`
```

## Install for developers
Developers may run the SQLs using `<db name>/deploy.sh` script.
2 changes: 1 addition & 1 deletion helm/esignet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: esignet
description: A Helm chart for MOSIP esignet module
type: application
version: 0.0.1
version: 1.0.1
appVersion: ""
dependencies:
- name: common
Expand Down
6 changes: 3 additions & 3 deletions helm/esignet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ helm install my-release mosip/esignet

## Introduction

esignet is part of the esignet modules, but has a separate Helm chart so as to install and manage it in a completely indepedent namespace.
esignet is part of the esignet modules, but has a separate Helm chart so as to install and manage it in a completely independent namespace.

## Prerequisites

Expand All @@ -23,8 +23,8 @@ esignet is part of the esignet modules, but has a separate Helm chart so as to i
## Overview
Refer [Commons](https://docs.mosip.io/1.2.0/modules/commons).

## Initialize keycloak for IDP
* To initialize keycloak for IDP, run below script.
## Initialize keycloak for esignet
* To initialize keycloak for esignet, run below script.
```sh
./keycloak-init.sh
```
Expand Down
4 changes: 2 additions & 2 deletions helm/esignet/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ if [ $# -ge 1 ] ; then
fi

NS=esignet
CHART_VERSION=0.0.1
CHART_VERSION=1.0.1

./keycloak-init.sh

echo Copy configmaps
./copy_cm.sh

echo Installing esignet
helm -n $NS install esignet . --version $CHART_VERSION
helm -n $NS install esignet mosip/esignet --version $CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status

Expand Down
2 changes: 1 addition & 1 deletion helm/oidc-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: oidc-ui
description: A Helm chart for MOSIP OIDC UI module
type: application
version: 12.0.2
version: 1.0.1
appVersion: ""
dependencies:
- name: common
Expand Down
8 changes: 5 additions & 3 deletions helm/oidc-ui/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ if [ $# -ge 1 ] ; then
fi

NS=esignet
CHART_VERSION=0.0.1
CHART_VERSION=1.0.1

echo Create $NS namespace
kubectl create ns $NS

echo Istio label
kubectl label ns $NS istio-injection=enabled --overwrite
helm dependency build

helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update

echo Copy configmaps
./copy_cm.sh
Expand All @@ -26,7 +28,7 @@ kubectl -n $NS delete --ignore-not-found=true configmap oidc-ui-cm
kubectl -n $NS create configmap oidc-ui-cm --from-literal="REACT_APP_API_BASE_URL=http://esignet.$NS/v1/esignet" --from-literal="REACT_APP_SBI_DOMAIN_URI=http://esignet.$NS"

echo Installing OIDC UI
helm -n $NS install oidc-ui . --set istio.hosts\[0\]=$ESIGNET_HOST
helm -n $NS install oidc-ui mosip/oidc-ui --set istio.hosts\[0\]=$ESIGNET_HOST

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status

Expand Down
2 changes: 1 addition & 1 deletion helm/redis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ helm repo update
echo Installing redis
helm -n $NS install redis bitnami/redis --wait --version $CHART_VERSION

./copy_cm_func.sh secret redis redis config-server
../copy_cm_func.sh secret redis redis config-server

kubectl -n config-server set env --keys=redis-password --from secret/redis deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_

Expand Down