GithubHelp home page GithubHelp logo

Comments (8)

erichelgeson avatar erichelgeson commented on May 28, 2024

This may work for you sous-chefs/jenkins#258 But yes, it does break currently.

from jenkins-chef-dsl.

martinb3 avatar martinb3 commented on May 28, 2024

I already used OpenSSL::PKey::RSA to read the keys every time, so I think the extra \n was already being appended. I guess I just can't use github-oauth with the CLI :(

Looks like mocleiri/github-oauth-plugin#12 is the same issue. jenkinsci/github-oauth-plugin#19 should have been a fix, but doesn't appear to work for everyone.

from jenkins-chef-dsl.

erichelgeson avatar erichelgeson commented on May 28, 2024

Actually are you on Jenkins 1.555 or below? SSH auth has been broken for a while unless you pin to 1.555 (and it only works on yum or war, apt doesnt have old packages)

from jenkins-chef-dsl.

martinb3 avatar martinb3 commented on May 28, 2024

Unfortunately, yes, I've already pinned that back, or I couldn't get the CLI to repeat-ably work at all.

from jenkins-chef-dsl.

schisamo avatar schisamo commented on May 28, 2024

This appears to be working as expected with the latest version of Jenkins (1.590). I wanted to share the snippet of recipe code that make all the magic happen:
https://gist.github.com/schisamo/a82cdc42af74baa0cedb

The chef-jenkins user we create is added to the Github Admin usernames BUT is not actually a GitHub account.

from jenkins-chef-dsl.

martinb3 avatar martinb3 commented on May 28, 2024

@schisamo I think the solution you posted requires (a) giving Jenkins admin access to whatever Github user owns the chef-jenkins account? (It's currently unregistered) and (b) anonymous read and any authenticated github user read access to the Jenkins instance. Aren't those big security holes?

I know the whole point of our group using github-oauth is to ensure anonymous read and all-github read are denied. I had a solution just like yours, but those two items were deal breakers (basically opening up the repo to all github users plus whoever registers chef-jenkins first).

from jenkins-chef-dsl.

schisamo avatar schisamo commented on May 28, 2024

@martinb3 Good points. Our Jenkins instances are currently internal, accessed by VPN only. I've yet to deploy the GitHub OAuth code but will revisit this implementation before things go live.

from jenkins-chef-dsl.

schisamo avatar schisamo commented on May 28, 2024

I also grabbed the chef-jenkins user! ;)

from jenkins-chef-dsl.

Related Issues (4)

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.