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

Feature/auth0 #127

Open
wants to merge 54 commits into
base: feature/demo
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
f308d06
auth0 changes added
sfdevops Sep 23, 2024
0591a68
auth0 changes added
sfdevops Sep 24, 2024
6125551
varibles.tf modified
sfdevops Sep 26, 2024
c77cd42
auth0 changes updated
sfdevops Sep 26, 2024
8859496
Merge pull request #126 from sourcefuse/feature/demo
HarshitSF Sep 26, 2024
86dc074
buildspec.yaml updated
sfdevops Sep 26, 2024
9e9762f
buildspec.yaml updated
sfdevops Sep 26, 2024
8e0a24b
variables.tf updated
sfdevops Sep 26, 2024
1ad29a8
variables.tf updated
sfdevops Sep 26, 2024
642bafa
variables.tf updated
sfdevops Sep 26, 2024
e500da4
variables.tf updated
sfdevops Sep 26, 2024
148d02a
variables.tf updated
sfdevops Sep 26, 2024
11330b1
variables.tf updated
sfdevops Sep 26, 2024
84c2618
variables.tf updated
sfdevops Sep 26, 2024
399030d
variables.tf updated
sfdevops Sep 26, 2024
2a4fe62
variables.tf updated
sfdevops Sep 26, 2024
184c8fb
variables.tf updated
sfdevops Sep 26, 2024
11899a0
variables.tf updated
sfdevops Sep 26, 2024
73278cd
variables.tf updated
sfdevops Sep 26, 2024
102202d
variables.tf updated
sfdevops Sep 26, 2024
caca1d7
variables.tf updated
sfdevops Sep 26, 2024
85fcf08
variables.tf updated
sfdevops Sep 26, 2024
2d94613
variables.tf updated
sfdevops Sep 26, 2024
f3d50c1
variables.tf updated
sfdevops Sep 26, 2024
a08afe1
variables.tf updated
sfdevops Sep 26, 2024
33a2168
auth0 changes updated
sfdevops Sep 30, 2024
857518e
auth0 changes added
sfdevops Oct 1, 2024
bb0f858
auth0 changes added
sfdevops Oct 1, 2024
b6e9e70
env updated
sfdevops Oct 4, 2024
0070b90
env added
sfdevops Oct 4, 2024
16c5e68
env added
sfdevops Oct 4, 2024
d93cd3f
env added
sfdevops Oct 4, 2024
fd9f2a4
env added
sfdevops Oct 4, 2024
a3ddeb7
fixed auth0 env name
sfdevops Oct 7, 2024
87de5e4
frontend image updated
sfdevops Oct 8, 2024
42c3a66
frontend image updated
sfdevops Oct 8, 2024
3a2ba9d
env added
sfdevops Oct 8, 2024
9a672ca
env added
sfdevops Oct 8, 2024
fed8a0d
removed cpu & memory limit
sfdevops Oct 10, 2024
355911e
tenant mgmt service tag updated
sfdevops Oct 10, 2024
b2900e9
tenant mgmt service tag updated
sfdevops Oct 10, 2024
2dfdb2e
payment gateway details updated
sfdevops Oct 10, 2024
c47abe5
payment gateway details updated
sfdevops Oct 10, 2024
fd705aa
tags added and keycloak related changes added
sfdevops Oct 16, 2024
afc9b94
cognito related changes updated
sfdevops Oct 17, 2024
2104633
cognito related changes updated
sfdevops Oct 17, 2024
fa98ff9
cognito related changes updated
sfdevops Oct 17, 2024
aa155cb
cognito related changes updated
sfdevops Oct 17, 2024
3b6e5cb
cognito related changes updated
sfdevops Oct 17, 2024
8861aa3
cognito related changes updated
sfdevops Oct 17, 2024
ee26aa1
cognito related changes updated
sfdevops Oct 17, 2024
14b5320
cognito related changes updated
sfdevops Oct 17, 2024
eb66517
auth0 related changes updated
sfdevops Oct 17, 2024
1543e6f
auth0 related changes updated
sfdevops Oct 17, 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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data:
BASE_PATH: '{{ .Values.subscriptionService.base_path }}'
SITE: '{{ .Values.subscriptionService.site }}'
API_KEY: '{{ .Values.subscriptionService.api_key }}'
PAYMENT_GATEWAY_ID: '{{ .Values.subscriptionService.payment_gateway_id }}'
WEBHOOK_USERNAME: '{{ .Values.tenantMgmtFacade.webhook_user }}'
WEBHOOK_PASSWORD: '{{ .Values.tenantMgmtFacade.webhook_password }}'
{{- end}}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ data:
GATEWAY_ACCOUNT_ID: '{{ .Values.tenantMgmtFacade.gateway_id }}'
WEBHOOK_USERNAME: '{{ .Values.tenantMgmtFacade.webhook_user }}'
WEBHOOK_PASSWORD: '{{ .Values.tenantMgmtFacade.webhook_password }}'
AUTH0_DOMAIN: '{{ .Values.tenantMgmtService.auth0_domain }}'
AUTH0_CLIENT_ID: '{{ .Values.tenantMgmtService.auth0_client_id }}'
{{- end}}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ data:
SYSTEM_USER_ID: '{{ .Values.adminUserTenantId }}'
EVENT_BUS_NAME: '{{ .Values.projectName }}-{{ .Values.environment }}-DecouplingEventBus'
EVENT_BUS_REGION: '{{ .Values.region }}'
AUTH0_DOMAIN: '{{ .Values.tenantMgmtService.auth0_domain }}'
AUTH0_CLIENT_ID: '{{ .Values.tenantMgmtService.auth0_client_id }}'
WEBHOOK_SECRET_EXPIRY: '{{ .Values.tenantMgmtService.webhookSecretExpiry }}'
{{- end}}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ spec:
key: PRIVATE_KEY
- objectName: public_key
key: PUBLIC_KEY
- objectName: auth0_client_secret
key: AUTH0_CLIENT_SECRET
{{- if .Values.ses.enabled }}
- objectName: ses_access_key
key: SMTP_USER
Expand Down Expand Up @@ -148,6 +150,9 @@ spec:
- objectName: {{ .Values.publicKey }}
objectType: ssmparameter
objectAlias: public_key
- objectName: {{ .Values.auth0ClientSecret }}
objectType: ssmparameter
objectAlias: auth0_client_secret
{{- if .Values.ses.enabled }}
- objectName: "/{{ .Values.projectName }}/ses_access_key"
objectType: ssmparameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ spec:
secretKeyRef:
name: api-token
key: PUBLIC_KEY
- name: AUTH0_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: api-token
key: AUTH0_CLIENT_SECRET
{{- if .Values.imagePullSecret.enabled }}
imagePullSecrets:
- name: {{ .Values.imagePullSecret.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ spec:
secretKeyRef:
name: api-token
key: JWT_ISSUER
- name: AUTH0_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: api-token
key: AUTH0_CLIENT_SECRET

{{- if .Values.imagePullSecret.enabled }}
imagePullSecrets:
Expand Down
28 changes: 13 additions & 15 deletions files/control-plane/control-plane-helm-chart/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frontend:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-ui
pullPolicy: Always
tag: "0.0.6"
tag: "0.0.11"
log_level: "info"
home_path: "/main/home"
replicaCount: 1
Expand Down Expand Up @@ -62,7 +62,7 @@ tenantMgmtFacade:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-tenant-management-facade
pullPolicy: Always
tag: "0.0.4"
tag: "0.0.6"
replicaCount: 1
port: 3000
node_env: "production"
Expand Down Expand Up @@ -138,7 +138,7 @@ authenticationService:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-authentication-service
pullPolicy: Always
tag: "0.0.1"
tag: "0.0.3"
replicaCount: 1
port: 3000
node_env: "production"
Expand Down Expand Up @@ -211,13 +211,14 @@ subscriptionService:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-subscription-service
pullPolicy: Always
tag: "0.0.3"
tag: "0.0.4"
replicaCount: 1
port: 3000
node_env: "production"
log_level: "info"
site: "sunnytyagiplus6-test"
api_key: "test_dw4pcuXuEqQ1cufcdg6GfeRUZpCSRHxOW37"
site: "sourcefuse-arc-test"
api_key: "test_U3Ac7r41QHHc54O7SZucdndPmaJVBFcuNn"
payment_gateway_id: "gw_16CcLPUQmL1KGV41"
affinity: {}
allowed_origins: "*"
imagePullPolicy:
Expand Down Expand Up @@ -283,26 +284,22 @@ tenantMgmtService:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-tenant-management-service
pullPolicy: Always
tag: "0.0.4"
tag: "0.0.6"
replicaCount: 1
port: 3000
node_env: "production"
log_level: "info"
from_email: ${FROM_EMAIL}
system_user_id: ""
app_login_url: ""
auth0_domain: "dev-db7dz4wg6ccbguer.us.auth0.com"
auth0_client_id: "pluqd6RqaLilAn7p1kUFkNo20bxuwUK5"
webhookSecretExpiry: "86400000"
affinity: {}
allowed_origins: "*"
imagePullPolicy:
enabled: "yes"
name: regcred
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "2048Mi"
cpu: "1"
service:
type: NodePort
port: 3000
Expand All @@ -323,7 +320,7 @@ migrationJob:
enabled: true
repository: public.ecr.aws/p1a1c8p2/sourcefuse-arc-saas-control-plane-migration
pullPolicy: Always
tag: "0.0.3"
tag: "0.0.4"
replicaCount: 1
affinity: {}
allowed_origins: "*"
Expand Down Expand Up @@ -460,3 +457,4 @@ cognitoid: ${COGNITO_ID}
cognitosecret: ${COGNITO_SECRET}
privateKey: ${PRIVATE_KEY}
publicKey: ${PUBLIC_KEY}
auth0ClientSecret: ${AUTH0_CLIENT_SECRET}
7 changes: 5 additions & 2 deletions files/tenant-samples/bridge/buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ phases:
- export TENANT_ADMIN_EMAIL=$(echo $tenant | jq -r '.contacts[] | select(.isPrimary == true) | .email')
- export USERNAME=$(echo $tenant | jq -r '.key')
- export KEY=$(echo $tenant | jq -r '.key')
- export IdP=$(echo $tenant | jq -r '.identityProvider')
#- export IdP="cognito"
- export TIER=$(echo "${tier}" | tr '[:upper:]' '[:lower:]')

# Webhook Envs
Expand Down Expand Up @@ -75,6 +77,7 @@ phases:
- export TF_VAR_karpenter_role="${KARPENTER_ROLE}"
- export TF_VAR_tenant_host_domain="${KEY}.${DOMAIN_NAME}"
- export TF_VAR_jwt_issuer="${KEY}"
- export TF_VAR_IdP="${IdP}"
- export TF_VAR_rds_instance_allocated_storage="${POSTGRES_SIZE}"
- export TF_VAR_tenant_client_id="${KEY}"-$(echo "$TENANT_ID" | cut -c 10-)-"${TENANT_CLIENT_ID}"
- export TF_VAR_tenant_client_secret=$(echo "$TENANT_ID" | cut -c 10-)-"${TENANT_CLIENT_SECRET}"
Expand Down Expand Up @@ -117,8 +120,8 @@ phases:
- ./push-values.sh
- kubectl apply -f ${TIER}-argo-workflow.yaml --namespace argo-workflows || true
- kubectl apply -f argocd-application.yaml --namespace argocd || true
- sleep 240 # waiting time to spin up tenant pods
- terraform apply -auto-approve --refresh=false # refresh is false to avoid unnecessary API hitting
- sleep 300 # waiting time to spin up tenant pods
#- terraform apply -auto-approve --refresh=false # refresh is false to avoid unnecessary API hitting
- kubectl apply -f argo-workflow.yaml --namespace argo-workflows || true


Expand Down
Loading