-
Couldn't load subscription status.
- Fork 184
Loads firebase secret from Taskcluster #868
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
Loads firebase secret from Taskcluster #868
Conversation
automation/taskcluster/lib/tasks.py
Outdated
| command=command, | ||
| scopes=[ | ||
| "secrets:get:{}".format(sentry_secret) | ||
| "secrets:get:{}".format(secret_index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the scope here seems to be not correct. you will need a scope for every secret.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC, if you follow what Fenix does, you should have a single secret for reference-browser/nightly :)
automation/taskcluster/lib/tasks.py
Outdated
| 'python automation/taskcluster/helper/get-secret.py -s {} -k {} -f {}'.format( | ||
| sentry_secret, 'dsn', '.sentry_token' | ||
| ), | ||
| secret_index, key, target_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secrets (with multiple key/value pairs) needs to exist here:
https://tools.taskcluster.net/secrets
project/mobile/reference-browser/sentry exists. project/mobile/reference-browser is not a secret. Either we fetch multiple secrets here or we create a secret that holds multiple values. Let's just follow what Fenix does. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this automation Jon, sorry I couldn't get around to it sooner
|
@pocmo @mitchhentges taking a look at this again. I based it off the Fenix PR here. From what I understand, we do indeed have multiple secrets (firebase and sentry) but we don't have variants/ |
|
Since this draft PR was created, You'll want to change this PR to edit |
|
I was looking at the automation code in the old branch and didn't see taskgraph there, so I thought it was only in Fenix. Such a rookie mistake. 🤦♂ |
9e7a349 to
635f97f
Compare
|
That was pretty easy. ✅ It seems a bit different from Fenix which does it in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Your UI tests might need the Firebase credentials as well, but you'll be more familiar with that than me I believe :)
|
I think the QA team wrote those and iirc, that's a different Firebase key? |
|
Makes sense 👍 thanks for PR-ing this! |
Thought I'd take an attempt at loading the Firebase credentials @mitchhentges :) (needed for #865)
I think this might break sentry since the
secret_indexfor sentry probably needs/sentryor that secret is moved to the r-b base path.Pull Request checklist
Before merging checklist