-
Notifications
You must be signed in to change notification settings - Fork 56
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-39656] added google client secret as env variables #587
Open
ckm007
wants to merge
2
commits into
develop
Choose a base branch
from
MOSIP-39656
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,10 @@ function installing_mimoto() { | |
echo "Do you have public domain & valid SSL? (Y/n) " | ||
echo "Y: if you have public domain & valid ssl certificate" | ||
echo "n: If you don't have a public domain and a valid SSL certificate. Note: It is recommended to use this option only in development environments." | ||
read -p "" flag | ||
read -p -r "" flag | ||
|
||
if [ -z "$flag" ]; then | ||
echo "'flag' was provided; EXITING;" | ||
echo "'flag' was not provided; EXITING;" | ||
exit 1; | ||
fi | ||
ENABLE_INSECURE='' | ||
|
@@ -55,8 +55,26 @@ function installing_mimoto() { | |
kubectl -n config-server rollout restart deployment config-server | ||
kubectl -n config-server rollout status deployment config-server | ||
|
||
echo "Please share relevant google client id "> | ||
read -p -r "" clientId | ||
|
||
if [ -z "$clientId" ]; then | ||
echo "'clientId' was not provided; EXITING;" | ||
exit 1; | ||
fi | ||
echo "Please share relevant google secret key" | ||
read -p -r "" secretKey | ||
|
||
if [ -z "$secretKey" ]; then | ||
echo "'secretKey' was not provided; EXITING;" | ||
exit 1; | ||
fi | ||
|
||
|
||
echo Installing mimoto | ||
helm -n $NS install mimoto mosip/mimoto --version $MIMOTO_CHART_VERSION $ENABLE_INSECURE | ||
helm -n $NS install mimoto mosip/mimoto --version $MIMOTO_CHART_VERSION $ENABLE_INSECURE \ | ||
--set mimoto.secrets.googleClient.MOSIP_INJIWEB_GOOGLE_CLIENT_ID="$clientId" \ | ||
--set mimoto.secrets.googleClient.MOSIP_INJIWEB_GOOGLE_CLIENT_SECRET="$secretKey" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of MOSIP_INJIWEB_GOOGLE_CLIENT_SECRET, can we use just MOSIP_INJI_GOOGLE_CLIENT_SECRET as it will be applicable for both wallets |
||
|
||
kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if .Values.mimoto.secrets }} | ||
{{- range $secret_name, $secret_value := .Values.mimoto.secrets }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ $secret_name }} | ||
namespace: {{ $.Release.Namespace }} | ||
labels: | ||
{{- include "common.labels.standard" $ | nindent 4 }} | ||
{{- if $.Values.commonLabels }} | ||
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if $.Values.commonAnnotations }} | ||
annotations: | ||
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
type: Opaque | ||
data: | ||
{{- range $key, $value := $secret_value }} | ||
{{ $key }}: {{ $value | b64enc | quote }} | ||
{{- end }} | ||
--- | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of MOSIP_INJIWEB_GOOGLE_CLIENT_ID, can we use just MOSIP_INJI_GOOGLE_CLIENT_ID as it will be applicable for both wallets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swatigoel For mobile and injiweb we can have separate google client id and secret, considering origin and redirect uri will be different