Skip to content

Commit

Permalink
Release 0.10.x (#275)
Browse files Browse the repository at this point in the history
* ES-842 corrected the verified claims logi (#249)

Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* modified getLanguageValuesList method (#250)

Signed-off-by: Mohd Kaif Siddique <[email protected]>
Co-authored-by: Mohd Kaif Siddique <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [ES-1678] Added a new error message for the ekyc failure in i18n.

Signed-off-by: GurukiranP <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* Updated readme and docker compose

Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] removed deployment script and updated chart

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] corrected chart lint yaml

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] moved deployment scripts to deploy

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] updarted chart values for latest changes to remove artifactory and config server dependency

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] moved db-init scripts to deploy

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added updated db-init scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added updated mock-identity-system scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added updated mock-relying-party-service scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added updated mock-relying-party-ui scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added install-all.sh, delete-all.sh, restart-all.sh scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] updated installation scripts

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] updated README and installation scripts comments

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] added changes for partner onboarder to store reports in volume

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35816] removed unused secret creation

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [INJICERT-434] optionally support using arbitrary field as PSUT value (#258)

* [INJICERT-434] optionally support using individualID as PSUT

Purpose: to break Certify <--> Mock DataProviderPlugin dependency wrt
         OIDCTransaction object stored in Redis

Config changes required:
* Introduces a config but does not break existing default behaviour, so
  no explicit change required

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJICERT-434] allow PSUT to set to any configured field

* by default the kycAuth response will have the psut field, but this can
  be configured to have some other user data in the clear if required

Breaking changes: None. The changes are backwards compatible

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [ES-1689] added test case (#259)

Signed-off-by: Venkata Saidurga Polamraju <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* moved tomcat and prometheus configuration to bootstrap.properties

Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [MOSIP-35987] updated onboarder to support storing reports in nfs volume

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* Updated Readme and pom version

Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [DSD-6382] added prompt to install services

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [DSD-6382] removed unused clusterRolebinding

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [DSD-6382] updated changes to fix dev testing issues

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [DSD-6382] updated correct onboarder chart version (#272)

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* Added JsonIgnoreProperties for kyc auth and exchange requests (#269)

Signed-off-by: piyush-shukla03_infosys <[email protected]>
Co-authored-by: piyush-shukla03_infosys <[email protected]>
Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* [DSD-6382] updated partner onboarder install script

Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>

* resolved lint failures (#277)

Signed-off-by: Chandra Keshav Mishra <[email protected]>

---------

Signed-off-by: ase-101 <[email protected]>
Signed-off-by: Chandra Keshav Mishra <[email protected]>
Signed-off-by: Mohd Kaif Siddique <[email protected]>
Signed-off-by: GurukiranP <[email protected]>
Signed-off-by: ckm007 <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: Venkata Saidurga Polamraju <[email protected]>
Signed-off-by: piyush-shukla03_infosys <[email protected]>
Co-authored-by: ase-101 <[email protected]>
Co-authored-by: Kaif Siddique <[email protected]>
Co-authored-by: Mohd Kaif Siddique <[email protected]>
Co-authored-by: GurukiranP <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>
Co-authored-by: pvsaidurga <[email protected]>
Co-authored-by: Piyush7034 <[email protected]>
Co-authored-by: piyush-shukla03_infosys <[email protected]>
  • Loading branch information
9 people authored Oct 15, 2024
1 parent aa0a8cc commit a6cde7c
Show file tree
Hide file tree
Showing 20 changed files with 129 additions and 158 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Repository contains mock implementations for eSignet. Only for non-production us
|[Postgres Init](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/postgres) | 12.0.1-B3 |
|[mock-identity-softhsm](https://github.com/mosip/esignet/blob/v1.0.0/helm/install-all.sh) | 12.0.1-B2 |

### Install Pe-req for mock identity service

### Install Pe-req for mock services
* Install `kubectl` and `helm` utilities.
* Run `prereq.sh` to setup below mentioned pre-requisites for mock services.
* Setup softhsm for mock-identity in `Softhsm` namespace.
Expand Down Expand Up @@ -57,7 +58,7 @@ Repository contains mock implementations for eSignet. Only for non-production us
```

## Partner onboarder
* Perform Partner onboarding for esignet mock using [steps](partner-onboarder/README.md).
* Perform Partner onboarding for esignet mock relying party using [steps](partner-onboarder/README.md) only if mosip-identity plugin is used.

## License
This project is licensed under the terms of [Mozilla Public License 2.0](LICENSE).
This project is licensed under the terms of [Mozilla Public License 2.0](LICENSE).
38 changes: 21 additions & 17 deletions deploy/delete-mock.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
#!/bin/bash
# Uninstalls esignet mock services.
## Usage: ./delete.sh [kubeconfig]
# Uninstalls all esignet mock service helm charts
## Usage: ./delete-mock.sh [kubeconfig]

if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi

Deleting_All() {
MOCK_NS=mockid
NS=esignet
while true; do
read -p "Are you sure you want to delete esignet mock service helm charts?(Y/n) " yn
if [[ $yn = "Y" ]] || [[ $yn = "y" ]];
then
helm -n $NS delete mock-relying-party-service || true
helm -n $NS delete mock-relying-party-ui || true
helm -n $MOCK_NS delete mock-identity-system || true
break
else
break
fi
ROOT_DIR=`pwd`

function deleting_mock() {

declare -a module=("mock-identity-system"
"mock-relying-party-service"
"mock-relying-party-ui"
)

echo Installing esignet mock services

for i in "${module[@]}"
do
cd $ROOT_DIR/"$i"
./delete.sh
done

echo All esignet mock services deleted sucessfully.
return 0
}

Expand All @@ -30,4 +33,5 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
Deleting_All # calling function
deleting_mock # calling function

2 changes: 1 addition & 1 deletion deploy/mock-identity-system/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=mockid
CHART_VERSION=0.0.1-develop
CHART_VERSION=0.10.0-develop

echo Create $NS namespace
kubectl create ns $NS
Expand Down
36 changes: 25 additions & 11 deletions deploy/mock-relying-party-service/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,28 @@ if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi

NS=esignet
CHART_VERSION=0.0.1-develop
function installing_mock-relying-party-service() {

echo Create $NS namespace
kubectl create ns $NS
while true; do
read -p "Do you want to install mock relying party service? (y/n): " response
if [[ "$response" == "y" || "$response" == "Y" ]]; then
break
elif [[ "$response" == "n" || "$response" == "N" ]]; then
exit
else
echo "Not a correct response. Please respond with y (yes) or n (no)."
fi
done

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

NS=esignet
CHART_VERSION=0.10.0-develop

echo Create $NS namespace
kubectl create ns $NS || true

function installing_mock-relying-party-service() {
echo Istio label
kubectl label ns $NS istio-injection=enabled --overwrite

Expand All @@ -36,12 +51,11 @@ function installing_mock-relying-party-service() {
ESIGNET_SERVICE_URL=${USER_PROVIDED_ESIGNET_SERVICE_URL:-$DEFAULT_ESIGNET_SERVICE_URL}

echo Installing Mock Relying Party Service
# helm -n $NS install mock-relying-party-service mosip/mock-relying-party-service \
helm -n $NS install mock-relying-party-service ../../helm/mock-relying-party-service/ \
--set mock_relying_party_service.ESIGNET_SERVICE_URL="$ESIGNET_SERVICE_URL" \
--set mock_relying_party_service.ESIGNET_AUD_URL="https://$ESIGNET_HOST/v1/esignet/oauth/v2/token" \
--version $CHART_VERSION $ENABLE_INSECURE \
-f values.yaml --wait
helm -n $NS install mock-relying-party-service mosip/mock-relying-party-service \
--set mock_relying_party_service.ESIGNET_SERVICE_URL="$ESIGNET_SERVICE_URL" \
--set mock_relying_party_service.ESIGNET_AUD_URL="https://$ESIGNET_HOST/v1/esignet/oauth/v2/token" \
--version $CHART_VERSION $ENABLE_INSECURE \
-f values.yaml --wait

kubectl -n $NS get deploy mock-relying-party-service -o name | xargs -n1 -t kubectl -n $NS rollout status

Expand Down
44 changes: 29 additions & 15 deletions deploy/mock-relying-party-ui/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,40 @@ if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi

NS=esignet
CHART_VERSION=0.0.1-develop
function installing_mock-relying-party-ui() {

read -p "Please provide mock relying party ui domain (eg: healthservices.sandbox.xyz.net ) : " MOCK_UI_HOST
while true; do
read -p "Do you want to install mock relying party ui? (y/n): " response
if [[ "$response" == "y" || "$response" == "Y" ]]; then
break
elif [[ "$response" == "n" || "$response" == "N" ]]; then
exit
else
echo "Not a correct response. Please respond with y (yes) or n (no)."
fi
done

if [ -z "$MOCK_UI_HOST" ]; then
echo "Mock relying party UI Host not provided; EXITING;"
exit 0;
fi
helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update

CHK_MOCK_UI_HOST=$( nslookup "$MOCK_UI_HOST" )
if [ $? -gt 0 ]; then
echo "Mock relying party UI Host does not exists; EXITING;"
exit 0;
fi
NS=esignet
CHART_VERSION=0.10.0-develop

echo Create $NS namespace
kubectl create ns $NS
read -p "Please provide mock relying party ui domain (eg: healthservices.sandbox.xyz.net ) : " MOCK_UI_HOST
if [ -z "$MOCK_UI_HOST" ]; then
echo "Mock relying party UI Host not provided; EXITING;"
exit 1;
fi

CHK_MOCK_UI_HOST=$( nslookup "$MOCK_UI_HOST" )
if [ $? -gt 0 ]; then
echo "Mock relying party UI Host does not exists; EXITING;"
exit 1;
fi

echo Create $NS namespace
kubectl create ns $NS || true

function installing_mock-relying-party-ui() {
echo Istio label
kubectl label ns $NS istio-injection=enabled --overwrite

Expand Down
11 changes: 7 additions & 4 deletions deploy/prereq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ fi

ROOT_DIR=`pwd`
NS=mockid
ESIGNET_NS=esignet
SOFTHSM_NS=softhsm
SOFTHSM_CHART_VERSION=12.0.1

kubectl create ns $NS || true
kubectl create ns $ESIGNET_NS || true

function prereq_mockid () {
echo Create $SOFTHSM_NS namespace
Expand Down Expand Up @@ -38,10 +41,10 @@ function prereq_mockid () {

function prereq_mockrp () {
echo "Create secret for mock-relying-party-service-secrets and jwe-userinfo-private-key delete if exists"
kubectl -n $NS delete --ignore-not-found=true secrets mock-relying-party-private-key-jwk
kubectl -n $NS delete --ignore-not-found=true secrets jwe-userinfo-service-secrets
kubectl -n $NS create secret generic mock-relying-party-private-key-jwk --from-literal=client-private-key='' --dry-run=client -o yaml | kubectl apply -f -
kubectl -n $NS create secret generic jwe-userinfo-service-secrets --from-literal=JWE_USERINFO_PRIVATE_KEY='' --dry-run=client -o yaml | kubectl apply -f -
kubectl -n $ESIGNET_NS delete --ignore-not-found=true secrets mock-relying-party-private-key-jwk
kubectl -n $ESIGNET_NS delete --ignore-not-found=true secrets jwe-userinfo-service-secrets
kubectl -n $ESIGNET_NS create secret generic mock-relying-party-private-key-jwk --from-literal=client-private-key='' --dry-run=client -o yaml | kubectl apply -f -
kubectl -n $ESIGNET_NS create secret generic jwe-userinfo-service-secrets --from-literal=jwe-userinfo-private-key='' --dry-run=client -o yaml | kubectl apply -f -
return 0
}

Expand Down
2 changes: 2 additions & 0 deletions helm/mock-identity-system/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
charts/
Chart.lock
2 changes: 1 addition & 1 deletion helm/mock-identity-system/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mock-identity-system
description: A Helm chart for MOSIP mock-identity-system module
type: application
version: 0.0.1-develop
version: 0.10.0-develop
appVersion: ""
dependencies:
- name: common
Expand Down
19 changes: 0 additions & 19 deletions helm/mock-identity-system/templates/clusterrolebinding.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion helm/mock-identity-system/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ service:
image:
registry: docker.io
repository: mosipdev/mock-identity-system
tag: develop
tag: release-0.10.x
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down
2 changes: 2 additions & 0 deletions helm/mock-relying-party-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
chart/
Chart.lock
2 changes: 1 addition & 1 deletion helm/mock-relying-party-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mock-relying-party-service
description: A Helm chart to file server application.
type: application
version: 0.0.1-develop
version: 0.10.0-develop
appVersion: ""
dependencies:
- name: common
Expand Down
19 changes: 0 additions & 19 deletions helm/mock-relying-party-service/templates/clusterrolebinding.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions helm/mock-relying-party-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ service:

image:
registry: docker.io
repository: mosipqa/mock-relying-party-service
tag: develop
repository: mosipdev/mock-relying-party-service
tag: release-0.10.x
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down
2 changes: 2 additions & 0 deletions helm/mock-relying-party-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
charts/
Chart.lock
2 changes: 1 addition & 1 deletion helm/mock-relying-party-ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mock-relying-party-ui
description: A Helm chart for MOSIP OIDC UI module
type: application
version: 0.0.1-develop
version: 0.10.0-develop
appVersion: ""
dependencies:
- name: common
Expand Down
19 changes: 0 additions & 19 deletions helm/mock-relying-party-ui/templates/clusterrolebinding.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions helm/mock-relying-party-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ service:

image:
registry: docker.io
repository: mosipqa/mock-relying-party-ui
tag: develop
repository: mosipdev/mock-relying-party-ui
tag: release-0.10.x

## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
Expand Down
18 changes: 8 additions & 10 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Onboards mock relying party OIDC helm
# Installs mock relying party onboarder OIDC helm
## Usage: ./install.sh [kubeconfig]

if [ $# -ge 1 ] ; then
Expand All @@ -21,7 +21,7 @@ if [ "$flag" = "n" ]; then
fi

NS=esignet
CHART_VERSION=0.0.1-develop
CHART_VERSION=1.5.0-es-develop

echo Create $NS namespace
kubectl create ns $NS || true
Expand Down Expand Up @@ -91,7 +91,7 @@ function installing_onboarder() {

echo "Istio label"
kubectl label ns $NS istio-injection=disabled --overwrite
# helm repo update
helm repo update

echo "Copy configmaps"
COPY_UTIL=../deploy/copy_cm_func.sh
Expand All @@ -101,12 +101,8 @@ function installing_onboarder() {
$COPY_UTIL secret keycloak keycloak $NS
$COPY_UTIL secret keycloak-client-secrets keycloak $NS

echo $NFS_OPTION
echo $S3_OPTION
echo $push_reports_to_s3

echo "Onboarding Mock Relying Party OIDC client"
helm -n $NS install esignet-mock-rp-onboarder ../../mosip-onboarding/helm/partner-onboarder/ \
helm -n $NS install esignet-mock-rp-onboarder mosip/partner-onboarder \
$NFS_OPTION \
$S3_OPTION \
--set onboarding.variables.push_reports_to_s3=$push_reports_to_s3 \
Expand All @@ -115,8 +111,10 @@ function installing_onboarder() {
--set extraEnvVarsCM[2]=keycloak-host \
$ENABLE_INSECURE \
-f values.yaml \
--debug --wait --wait-for-jobs
echo "Partner onboarded successfully and reports are moved to S3 or NFS"
--version $CHART_VERSION \
--wait --wait-for-jobs
echo "Partner onboarder executed and reports are moved to S3 or NFS please check the same to make sure partner was onboarded sucessfully."
kubectl rollout restart deployment mock-relying-party-service -n esignet
return 0
fi
}
Expand Down
Loading

0 comments on commit a6cde7c

Please sign in to comment.