You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(backend): add Google Cloud Translation API with EU data residency support (#406)
Implement GDPR-compliant Google Cloud Translation API integration with
configurable regional endpoints to ensure data residency requirements.
Changes:
- Add GOOGLE_CLOUD_TRANSLATION_ENDPOINT config parameter to support
regional API endpoints (e.g., translate-eu.googleapis.com)
- Set EU defaults: europe-west1 location and translate-eu.googleapis.com
endpoint for GDPR compliance by default
- Update googleCloudAuth.ts to pass apiEndpoint option to
TranslationServiceClient constructor
- Configure docker-compose-production.yml to mount Google Cloud service
account credentials via volume (./<name of service account>.json)
- Update both api and math-updater services to initialize translation
client with endpoint configuration
- Add comprehensive documentation in env.example for new configuration
options
The translation service is optional and only enabled when credentials
are provided. Both endpoint and location can be overridden via
environment variables if different regions are needed.
Technical details:
- Uses Google Cloud Translation Advanced API (v3)
- Supports both AWS Secrets Manager (production) and local file
(development) authentication methods
- Credentials mounted read-only for security
- Enhanced logging to display active endpoint configuration
0 commit comments