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
Inject secrets into the services [azuredevops bintray drone jenkins jira npm sonar symfony teamcity wheelmap] #3652
Conversation
…handler Cherry-picked from #3410; should simplify reworking it.
|
Know this is still a WIP, but I just finished a quick browse through the current set of changes and wanted to say it's looking good! |
nock.enableNetConnect() | ||
nock.activate() | ||
}) | ||
} |
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.
💯
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>
I'm ready to approve and excited about this change! Are you working on those lint errors already? If not I'll fix and add a commit |
That nexus test timeout is unrelated (it's one of more more notoriously slow tests), so i'm going to remove it from the title |
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 the review! This was a big one 😄 |
Continues the work of #3652. There’s more to do here with other parts of the GitHub config, though I’d rather merge this first and circle back to that.
Continues the work of #3652. Since Bitbucket is the only service to use two sets of credentials like this, it seems to make the most sense to build a very local solution.
Continues the work of #3652.
This is a reworking of #3410 based on some feedback @calebcartwright left on that PR.
The goals of injecting the secrets are threefold:
config
and injects them intoBaseService.register()
which passes them toinvoke()
.invoke()
the service's auth configuration is checked (static get auth()
, much likestatic get route()
).this.authHelper.basicAuth
and passed tothis._requestJson()
and friends.invoke()
in.spec
files instead of mocking global state in the service tests as was done before. See the new Jira spec files for a good example of this.Ref #3393
Need adding in this PR:
I've deferred a few odds and ends to a later PR:
suggest
(Refactor auth config checks within tests #3694), and various other places in the server where the secrets are used