Comments (10)
I believe this is related. travis-ci/travis-ci#6435
from savage.
On August 31 Travis announced that they would be dropping support for the Authorization header and instead using the Signature header as described here.
I don't see an accompanying change to Savage. Is it no longer working anywhere?
from savage.
Looking at twbs/bootstrap#21736, as an example, we can see that the statuses from Savage are not being updated prior to merging. :-(
from savage.
Your analysis is correct. I haven't had much time for Savage lately, and so the Authorization header logic is outdated relative to Travis's awesome bugfix.
from savage.
Certainly not your burden to carry alone @cvrebert. I took a rough stab at implementing the update authorization technique, but ultimately ran out of time due to my lack of Scala knowledge.
from savage.
Yeah, PRs welcomed. I'm happy to translate to Scala from Java if necessary.
from savage.
I also have no Scala knowledge (yet), but am willing to put a few hours into it.
from savage.
I've waded out about as far as I can, I think. I opened a WIP PR against my own branch that makes the changes that were obvious to me and lays out TODOs for what I think is left. Anybody is welcome to try to take it from there (no guarantees that Base64 stuff works), but I'll keep plugging away at it as I get time if no one else does: https://github.com/bobholt/savage/pull/1/files
from savage.
Assuming we pull in BouncyCastle for the public-key crypto, the verification part should start with doing Signature.getInstance("SHA1WithRSA", "BC")
(based on Travis's code samples, they're using SHA-1 + RSA) and then you follow the dance explained in https://docs.oracle.com/javase/tutorial/security/apisign/vstep4.html
I am less clear on how to read Travis's public key into a PublicKey
object.
from savage.
Okay, think I've got the crypto part all figured out now. PR incoming.
from savage.
Related Issues (20)
- Have Savage also set GitHub build status HOT 10
- Add relevant CONTRIBUTING link to GitHub comments
- Add option to serve robots.txt
- Upgrade egit-github version HOT 1
- Temp branches should be deleted after some max timeout has elapsed
- Include SHA in branch name to avoid failures when user force pushes
- Eclipse egit-github => jcabi-github HOT 6
- Document health check endpoint
- jcabi-github inefficiency HOT 4
- Timeout GitHub API requests
- Local conflicts causing tests to hang HOT 2
- Add setting for list of trusted base branches instead of hardcoding `master`
- Ignore exception when deleting nonexistent .git/refs/remotes
- Retry requires user to be public member of trusted organization HOT 4
- Allow members to bypass whitelist HOT 1
- Stop making closed-world assumption for pull request actions HOT 1
- Investigate possibility of using a bare git repo
- Migrate from Spray to Akka HTTP
- Update to Scala 2.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from savage.