medic / cht-android

A native Android container for Community Health Toolkit (CHT) applications
GNU Affero General Public License v3.0
25 stars 49 forks source link

Cannot add Togo flavour - "Failed to add secret, you've reached the 100 secret limit" #344

Closed kennsippell closed 7 months ago

kennsippell commented 7 months ago

Describe the bug Adding the Togo flavour of cht-android is currently blocked because of the CHT-Android repository maximum number of secrets.

Screenshots image

kennsippell commented 7 months ago

Hoping to work around this by deleting four keys - starting a thread with Asia team about some unused keys.

Could similar apps for a single project share a signing key? For example, there are 12 secrets are for MoH Mali CHW training instances like { 4 secrets per app * 3 apps }. (eg. ANDROID_SECRETS_KEY_MOH_MALI_CHW_TRAINING_THREE)

kennsippell commented 7 months ago

There are also 12 secrets with _ALIAS_ + 12 with _KEYSTORE_PATH_ information which are unused and just always evaluates to a constant string. I believe it would be safe to remove all of these and this would free up 24 secrets.

kennsippell commented 7 months ago

I have worked around this issue by deleting 4 unused secrets, but the issue is likely to resurface without some secret gardening.

kennsippell commented 7 months ago

Tracking long-term fix via https://github.com/medic/cht-android/issues/345