Skip to content
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

Generalized rotating token pool #1736

Merged
merged 4 commits into from
Jul 12, 2018
Merged

Generalized rotating token pool #1736

merged 4 commits into from
Jul 12, 2018

Conversation

paulmelnikow
Copy link
Member

This was designed as part of a rewrite of the Github auth code in #1205 which is stalled because I don't want to deploy it without access to server logs. The need for token rotation came up recently in #541, so I picked up this code, removed the github-specific bits, and pulled it in. Ordinarily I wouldn't merge helper code without a use, though sadly it seems like the best way to move forward this rewrite.

@paulmelnikow paulmelnikow added the core Server, BaseService, GitHub auth label Jun 16, 2018
@shields-ci
Copy link

shields-ci commented Jun 16, 2018

Warnings
⚠️

Found 'assert' statement added in lib/token-provider.spec.js. Please ensure tests are written using Chai expect syntax

Messages
📖

✨ Thanks for your contribution to Shields, @paulmelnikow!

Generated by 🚫 dangerJS

Copy link
Member

@RedSparr0w RedSparr0w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.
I'm not quite 100% how this is all working though.
Would the badges just show their own standard error response when the tokens are exhausted?

@paulmelnikow
Copy link
Member Author

paulmelnikow commented Jul 12, 2018

Going to merge it then to unblock #541.

Would the badges just show their own standard error response when the tokens are exhausted?

Yea, that would be a great way to handle it. When the badges are down, it would help give us confidence whether quota is to blame.

Thanks!

@paulmelnikow paulmelnikow merged commit b3ec3e7 into badges:master Jul 12, 2018
@shields-deployment
Copy link

This pull request was merged to master branch. Now this change is waiting for deployment.
Deploys usually happen every few weeks. After deployment changes are copied to gh-pages branch.

This badge displays deployment status:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Server, BaseService, GitHub auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants