• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 24985384679 / 6
82%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1377-remove-api-v1-briefcase-endpoints
DEFAULT BRANCH: master
Ran 27 Apr 2026 08:53AM UTC
Files 908
Run time 26s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2026 08:46AM UTC coverage: 60.257% (+7.5%) from 52.717%
24985384679.6

push

github

web-flow
fix(constance): remove environment variable fallbacks from Google NLP Constance settings DEV-2017 (#6965)

### 📖 Description
We previously introduced `CONSTANCE_`-prefixed environment variable
fallbacks (using `env.str()`) for the Google NLP settings
(`ASR_MT_GOOGLE_*`) within the `CONSTANCE_CONFIG` dictionary in
`base.py` ([#6933](https://github.com/kobotoolbox/kpi/pull/6933)).

The Sysadmin team has since identified that injecting these
configurations especially complex JSON credentials via environment
variables leads to escaping issues in Kubernetes deployments.

To improve stability and security, the team is transitioning to securely
mounted files (e.g., Kubernetes Secrets) and relying on native Google
library mechanisms (such as the `GOOGLE_APPLICATION_CREDENTIALS`
environment variable) for NLP authentication and configuration.

This PR removes the custom environment variable fallback logic from the
codebase.

The following four settings in base.py have been reverted to their
original values to support this pattern:
* `CONSTANCE_ASR_MT_GOOGLE_PROJECT_ID` →`'kobo-asr-mt'`
* `CONSTANCE_ASR_MT_GOOGLE_STORAGE_BUCKET_PREFIX` →`'kobo-asr-mt-tmp'`
* `CONSTANCE_ASR_MT_GOOGLE_TRANSLATION_LOCATION` →`'us-central1'`
* `CONSTANCE_ASR_MT_GOOGLE_CREDENTIALS` → `""`

4652 of 11888 branches covered (39.13%)

21658 of 35943 relevant lines covered (60.26%)

0.6 hits per line

Source Files on job 24985384679.6
  • Tree
  • List 908
  • Changed 140
  • Source Changed 0
  • Coverage Changed 140
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24985384679
  • 1a494d5c on github
  • Prev Job for on release/2.026.12 (#24983934715.1)
  • Next Job for on release/2.026.12 (#24993281612.10)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc