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

Release 0.10.x #275

Merged
merged 31 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7b98fa7
ES-842 corrected the verified claims logi (#249)
ase-101 Sep 22, 2024
32012e2
modified getLanguageValuesList method (#250)
kaifk468 Sep 23, 2024
d0ce351
[ES-1678] Added a new error message for the ekyc failure in i18n.
gk-XL7 Sep 24, 2024
886e486
Updated readme and docker compose
ase-101 Sep 29, 2024
4fdb2d5
[MOSIP-35816] removed deployment script and updated chart
ckm007 Sep 20, 2024
49de1c1
[MOSIP-35816] corrected chart lint yaml
ckm007 Sep 20, 2024
bb017c2
[MOSIP-35816] moved deployment scripts to deploy
ckm007 Sep 21, 2024
4ce7417
[MOSIP-35816] updarted chart values for latest changes to remove arti…
ckm007 Sep 21, 2024
a851515
[MOSIP-35816] moved db-init scripts to deploy
ckm007 Sep 21, 2024
244ab53
[MOSIP-35816] added updated db-init scripts
ckm007 Sep 21, 2024
ab4aae3
[MOSIP-35816] added updated mock-identity-system scripts
ckm007 Sep 21, 2024
3c9bcae
[MOSIP-35816] added updated mock-relying-party-service scripts
ckm007 Sep 21, 2024
9d1b339
[MOSIP-35816] added updated mock-relying-party-ui scripts
ckm007 Sep 21, 2024
dd6a14e
[MOSIP-35816] added install-all.sh, delete-all.sh, restart-all.sh scr…
ckm007 Sep 21, 2024
e552da8
[MOSIP-35816] updated installation scripts
ckm007 Sep 24, 2024
584dbb0
[MOSIP-35816] updated README and installation scripts comments
ckm007 Sep 25, 2024
7583b5e
[MOSIP-35816] added changes for partner onboarder to store reports in…
ckm007 Sep 30, 2024
82dc0de
[MOSIP-35816] removed unused secret creation
ckm007 Sep 30, 2024
5eef65e
[INJICERT-434] optionally support using arbitrary field as PSUT value…
vharsh Oct 3, 2024
8eca2d9
[ES-1689] added test case (#259)
pvsaidurga Oct 3, 2024
897d307
moved tomcat and prometheus configuration to bootstrap.properties
ase-101 Oct 3, 2024
93b35b2
[MOSIP-35987] updated onboarder to support storing reports in nfs volume
ckm007 Oct 1, 2024
88359b0
Updated Readme and pom version
ase-101 Oct 4, 2024
3504b38
[DSD-6382] added prompt to install services
ckm007 Oct 4, 2024
abf1cec
[DSD-6382] removed unused clusterRolebinding
ckm007 Oct 4, 2024
4164da8
[DSD-6382] updated changes to fix dev testing issues
ckm007 Oct 4, 2024
240d118
[DSD-6382] updated correct onboarder chart version (#272)
ckm007 Oct 7, 2024
549062f
Added JsonIgnoreProperties for kyc auth and exchange requests (#269)
Piyush7034 Oct 4, 2024
fa7f71d
[DSD-6382] updated partner onboarder install script
ckm007 Oct 7, 2024
a00fc17
Merge branch 'develop' into release-0.10.x
ckm007 Oct 15, 2024
53579b2
resolved lint failures (#277)
ckm007 Oct 15, 2024
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
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
Loading