SOP: Make compliance publically available in any env
How to make CTK publically available?
Pre-req
Ensure that all the deployment steps are followed as given here
(mosip/mosip-compliance-toolkit (github.com).
add Ui readme link
Instructions to be followed in your deployment environment
DNS Mapping Changes:
onboarder.collab.mosip.net ----> public ip of nginx server
collab.mosip.net ----> public ip of nginx server
pmp.collab.mosip.net ----> public ip of nginx server
iam.collab.mosip.net ----> public ip of nginx server
Nginx Server changes:
Add below mentioned domains in server_name
section of pubic nginx server.
yourdomain.mosip.net
api.yourdomain.mosip.net
compliance.yourdomain.mosip.net
pmp.yourdomain.mosip.net
Note: replace “yourdomain” appropriately.
Istio changes
update the gateways for below mentioned modules to point to public:
pmp
compliance
iam
landing
Update the following virtual service to point to public ip:
partnermanager
policymanager
toolkit-service
Update istio gateway in compliance toolkit envoyFilter
compliance-toolkit-set-cookie-header
to public gateway.workloadSelector: labels: istio: ingressgateway
Config map changes for UI part
Update compliance-toolkit-ui.json to point to api.collab.mosip.net instead of api-internal.collab.mosip.net.
Update pmp config.json to point to api.collab.mosip.net instead of api-internal.collab.mosip.net.
Configuration changes for pmp ui and compliance UI:
https://github.com/mosip/mosip-config/commit/3282666bd7d8ffb855ee15d474a7b7033563f8b4
https://github.com/mosip/mosip-config/commit/3282666bd7d8ffb855ee15d474a7b7033563f8b4
https://github.com/mosip/mosip-config/commit/af284e4905374d44afa4f376507f9f078cec6396
https://github.com/mosip/mosip-config/commit/fee9071d28a17d18445495f2c55d7a328f8a560d
https://github.com/mosip/mosip-config/commit/962b89fa38b0232413b07fa7ece10407e67c194f