-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHT Android repository needs to find way around 100 secret/repo limitation #345
Comments
There are 24 secrets for |
@craig-landry or @garethbowen - I can't see the secrets (not the values obviously, but the number of them and their names). I think you're both busy right now (this week?), but when you're "back in the office", can you look into a basic audit of the secrets we have in the repo? Maybe getting rid of the 24 Kenn mentioned is enough to wrap this ticket up? |
Another option is to use the 1pass API to store them there. We could have a vault dedicated to this.
I did a quick search on the code and I think those are referenced, eg: Lines 173 to 174 in 5e64289
However why this would ever be set to anything other than the default I don't know. @kennsippell Any ideas? I'm guessing these secrets all have the same value so it'd be safe to delete? |
Yes. Those two are used but the app specific ones I believe are unused and safe to delete. I think the keygen script outputs 6 secret values but only 4 of them are used. |
The lines I quoted are the app specific ones, specifically |
@mrjones-plip I think the way forward is...
Can you prioritise this with Allies other work? |
@garethbowen - yeah - sounds good! Can you give me access to view secrets in CHT Android repo? While I know I can't retrieve the values here, I'll need to know which ones we've defined. Do we know of the next CHT Android app that we'll need to create in terms of how pressing this is? (it's pressing I know, but HOW pressing ; ) |
My mistake |
@mrjones-plip I've made you a full admin on this repo. |
Thanks for the perms @garethbowen! Confirmed I can now audit secrets. There are currently 97 secrets and currently we need 4 per new app as I understand it:
@garethbowen - This seems like we need to drop everything and fix this ASAP, if only to find a stop gap solution for the next APK or two, if not a holistic long term solution. That sound about right? |
@mrjones-plip It's one of those things that's not going to matter at all, until it matters a great deal. But the fix should be easy enough, right? The basic version is just replacing the lines in the makefile with hardcoded strings. I don't think we need to "drop everything" unless you know of some project that's blocked on this (or soon will be). But getting it done this quarter would be good. |
Awesome - thanks for the confirmation @garethbowen ! |
`ANDROID_KEYSTORE_PATH` in make command `check-env`
Example of how to use 1pass in gh-actions with a service account in case it's useful to anyone |
`ANDROID_KEYSTORE_PATH` in make command `check-env`
`ANDROID_KEYSTORE_PATH` in make command `check-env`
…D_KEYSTORE_PATH` in make command `check-env`
@sugat009 I'm just going to keep this issue open to track actual deletion of the unneeded secrets in GitHub |
@kennsippell @binokaryg @eljhkrr and @paulpascal - can you please audit these to see if any are not needed? @eljhkrr - you mentioned PIH is not needed, but I don't see listed here?
@binokaryg - you think it's too optimistic to assume we're going to do less hosting over (eg Muso Mali is trying to self host) and that eventually we won't be building more apps, but less apps? Honest question! |
Oh - maybe we collapse the 3 secrets into a serialized JSON string that we store as 1 secret and then un-serialize it to use it?! |
|
Thanks so much @kennsippell ! Removing the secrets will buy some more time which is super handy.
Can you explicitly confirm which 16 you mean? With some wildcard searching, I only come up with 12 from
I want to be sure of what I'm deleting before doing so! (I know you're out this week, happy to wait 'til next week!) |
Ya good to be careful. I confirmed that I just miscounted. Sorry |
Thanks @kennsippell ! I've deleted those 12 which brings us down to 87 total. I'll dig into this this week to see what makes sense on how to solve this long term! |
Describe the issue
MoH Togo can not publish their APK because this cht-android repo has hit the 100 secret/repo limit. They're looking for an immediate term work around for this:
Describe the improvement you'd like
A long term solution so that future deployments have an easy way to publish their APKs. This might include:
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: