Code Monkey home page Code Monkey logo

Comments (10)

Blackbaud-BobbyEarl avatar Blackbaud-BobbyEarl commented on May 11, 2024

I believe this is related. travis-ci/travis-ci#6435

from savage.

bobholt avatar bobholt commented on May 11, 2024

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.

Blackbaud-BobbyEarl avatar Blackbaud-BobbyEarl commented on May 11, 2024

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.

cvrebert avatar cvrebert commented on May 11, 2024

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.

Blackbaud-BobbyEarl avatar Blackbaud-BobbyEarl commented on May 11, 2024

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.

cvrebert avatar cvrebert commented on May 11, 2024

Yeah, PRs welcomed. I'm happy to translate to Scala from Java if necessary.

from savage.

bobholt avatar bobholt commented on May 11, 2024

I also have no Scala knowledge (yet), but am willing to put a few hours into it.

from savage.

bobholt avatar bobholt commented on May 11, 2024

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.

cvrebert avatar cvrebert commented on May 11, 2024

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.

cvrebert avatar cvrebert commented on May 11, 2024

Okay, think I've got the crypto part all figured out now. PR incoming.

from savage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.