Skip to content

Commit d1e2026

Browse files
Update environment configuration for MN Service credentials in n8n (#108)
- Added new environment variables for Sembly and Google Service Account credentials. - Updated configuration files to include new MN Service environment variables for seamless integration. These changes improve the n8n service by providing required credentials for MN Service integration. ## Additional descriptions: I created this PR to enable **Domain-Wide Delegation (DWD)** in Google Workspace, allowing **n8n** to update event descriptions across all users in the company calendar. This setup is required to automatically insert the **Meeting Resources** section into event descriptions for every scheduled call. **Changes made:** - Added a new environment variable containing the **Google Service Account JSON** credentials. **Task:** [#65518 MN Service. Investigate Google Calendar Event Update for Meeting Resources (All Attendees)](https://redmine.gluzdov.com/issues/65518) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added Sembly service credentials to configuration files. * Added Google Service Account credential variables for the MN service to Docker Compose and environment setup. * Updated both development and production Docker Compose configurations and example environment files with new credential variables. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6d2b90e commit d1e2026

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.env.example

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,21 @@ N8N_SMTP_PASS=
7777
N8N_SMTP_SENDER=
7878
N8N_SMTP_SSL=false
7979
N8N_SMTP_TLS=true
80+
81+
# MN Service credentials
82+
## Sembly credentials
83+
SEMBLY_USER=sembly_user
84+
SEMBLY_PASS=sembly_pass
85+
86+
## MN Service — Google Service Account (SA)
87+
MN_SERVICE_SA_GOOGLE_TYPE=service_account
88+
MN_SERVICE_SA_GOOGLE_PROJECT_ID=mock-project-id
89+
MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID=mock-private-key-id
90+
MN_SERVICE_SA_GOOGLE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\nMOCK_PRIVATE_KEY_CONTENT\n-----END PRIVATE KEY-----\n"
91+
MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL=mock-service-account@mock-project-id.iam.gserviceaccount.com
92+
MN_SERVICE_SA_GOOGLE_CLIENT_ID=000000000000000000000
93+
MN_SERVICE_SA_GOOGLE_AUTH_URI=https://accounts.google.com/o/oauth2/auth
94+
MN_SERVICE_SA_GOOGLE_TOKEN_URI=https://oauth2.googleapis.com/token
95+
MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL=https://www.googleapis.com/oauth2/v1/certs
96+
MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL=https://www.googleapis.com/robot/v1/metadata/x509/mock-service-account%40mock-project-id.iam.gserviceaccount.com
97+
MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN=googleapis.com

docker-compose.prod.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ services:
2424
- N8N_BINARY_DATA_STORAGE_PATH=/data/n8n/binaryData
2525
- SEMBLY_USER=${SEMBLY_USER:?SEMBLY_USER is required}
2626
- SEMBLY_PASS=${SEMBLY_PASS:?SEMBLY_PASS is required}
27+
# Google Service Account variables
28+
- MN_SERVICE_SA_GOOGLE_TYPE=${MN_SERVICE_SA_GOOGLE_TYPE:?MN_SERVICE_SA_GOOGLE_TYPE is required}
29+
- MN_SERVICE_SA_GOOGLE_PROJECT_ID=${MN_SERVICE_SA_GOOGLE_PROJECT_ID:?MN_SERVICE_SA_GOOGLE_PROJECT_ID is required}
30+
- MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID=${MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID:?MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID is required}
31+
- MN_SERVICE_SA_GOOGLE_PRIVATE_KEY=${MN_SERVICE_SA_GOOGLE_PRIVATE_KEY:?MN_SERVICE_SA_GOOGLE_PRIVATE_KEY is required}
32+
- MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL=${MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL:?MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL is required}
33+
- MN_SERVICE_SA_GOOGLE_CLIENT_ID=${MN_SERVICE_SA_GOOGLE_CLIENT_ID:?MN_SERVICE_SA_GOOGLE_CLIENT_ID is required}
34+
- MN_SERVICE_SA_GOOGLE_AUTH_URI=${MN_SERVICE_SA_GOOGLE_AUTH_URI:?MN_SERVICE_SA_GOOGLE_AUTH_URI is required}
35+
- MN_SERVICE_SA_GOOGLE_TOKEN_URI=${MN_SERVICE_SA_GOOGLE_TOKEN_URI:?MN_SERVICE_SA_GOOGLE_TOKEN_URI is required}
36+
- MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL=${MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL:?MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL is required}
37+
- MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL=${MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL:?MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL is required}
38+
- MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN=${MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN:?MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN is required}
2739
volumes:
2840
- n8n_data:/data/n8n
2941
postgresql: !reset null

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ services:
3434
- N8N_LOG_LEVEL=debug
3535
- N8N_LOG_OUTPUT=console
3636
- TZ=${TZ:-America/New_York}
37+
- MN_SERVICE_SA_GOOGLE_TYPE=${MN_SERVICE_SA_GOOGLE_TYPE:-GOOGLE_TYPE}
38+
- MN_SERVICE_SA_GOOGLE_PROJECT_ID=${MN_SERVICE_SA_GOOGLE_PROJECT_ID:-PROJECT_ID}
39+
- MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID=${MN_SERVICE_SA_GOOGLE_PRIVATE_KEY_ID:-PRIVATE_KEY_ID}
40+
- MN_SERVICE_SA_GOOGLE_PRIVATE_KEY=${MN_SERVICE_SA_GOOGLE_PRIVATE_KEY:-PRIVATE_KEY}
41+
- MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL=${MN_SERVICE_SA_GOOGLE_CLIENT_EMAIL:-CLIENT_EMAIL}
42+
- MN_SERVICE_SA_GOOGLE_CLIENT_ID=${MN_SERVICE_SA_GOOGLE_CLIENT_ID:-CLIENT_ID}
43+
- MN_SERVICE_SA_GOOGLE_AUTH_URI=${MN_SERVICE_SA_GOOGLE_AUTH_URI:-AUTH_URI}
44+
- MN_SERVICE_SA_GOOGLE_TOKEN_URI=${MN_SERVICE_SA_GOOGLE_TOKEN_URI:-TOKEN_URI}
45+
- MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL=${MN_SERVICE_SA_GOOGLE_AUTH_PROVIDER_X509_CERT_URL:-CERT_URL}
46+
- MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL=${MN_SERVICE_SA_GOOGLE_CLIENT_X509_CERT_URL:-CLIENT_CERT_URL}
47+
- MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN=${MN_SERVICE_SA_GOOGLE_UNIVERSE_DOMAIN:-UNIVERSE_DOMAIN}
3748
volumes:
3849
- n8n_data:/home/node/.n8n
3950
- ./scripts:/home/node/scripts

0 commit comments

Comments
 (0)