Skip to content

Commit

Permalink
env added
Browse files Browse the repository at this point in the history
  • Loading branch information
sfdevops committed Oct 4, 2024
1 parent 0070b90 commit 16c5e68
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,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:
- name: {{ .Values.imagePullSecret.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ data:
LOG_LEVEL: '{{ .Values.authenticationService.log_level }}'
BASE_PATH: '{{ .Values.authenticationService.base_path }}'
DB_SSL: '{{ .Values.authenticationService.db_ssl }}'
AUTH0_DOMAIN: "dev-db7dz4wg6ccbguer.us.auth0.com"
AUTH0_CLIENT_ID: "pluqd6RqaLilAn7p1kUFkNo20bxuwUK5"
AUTH0_CALLBACK_URL: "https://{{ .Values.hostname }}/authentication-service/auth/auth0-auth-redirect"
{{- end}}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ spec:
key: PUBNUB_SUB_KEY
- objectName: pubnub-secret-key
key: PUBNUB_SECRET_KEY
- objectName: auth0-client-secret
key: AUTH0_CLIENT_SECRET
parameters:
# region: us-west-2
objects: |
Expand Down Expand Up @@ -115,4 +117,7 @@ spec:
objectAlias: pubnub-sub-key
- objectName: {{ .Values.pubnubSecretKey }}
objectType: ssmparameter
objectAlias: pubnub-secret-key
objectAlias: pubnub-secret-key
- objectName: {{ .Values.auth0ClientSecret }}
objectType: ssmparameter
objectAlias: auth0-client-secret
Original file line number Diff line number Diff line change
Expand Up @@ -368,4 +368,5 @@ instance_category: ${INSTANCE_CATEGORY}
vonageSecret: /pubnub/vonage-api-key-secret
pubnubPubKey: /pubnub/public-key
pubnubSubKey: /pubnub/subscribe-key
pubnubSecretKey: /pubnub/secret-key
pubnubSecretKey: /pubnub/secret-key
auth0ClientSecret: /sf-arc-saas/dev/auth0-client-secret
1 change: 1 addition & 0 deletions files/tenant-samples/silo/terraform/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ data "aws_iam_policy_document" "ssm_policy" {
]
resources = ["arn:aws:ssm:${var.region}:${local.sts_caller_arn}:parameter/${var.namespace}/${var.environment}/${var.tenant_tier}/${var.tenant}/*",
"arn:aws:ssm:${var.region}:${local.sts_caller_arn}:parameter/pubnub/*",
"arn:aws:ssm:${var.region}:${local.sts_caller_arn}:parameter/${var.namespace}/${var.environment}/auth0-client-secret"
"arn:aws:cognito-idp:${var.region}:${local.sts_caller_arn}:*"]
}
}
Expand Down

0 comments on commit 16c5e68

Please sign in to comment.