Comments (8)
This may work for you sous-chefs/jenkins#258 But yes, it does break currently.
from jenkins-chef-dsl.
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.
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.
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.
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.
@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.
@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.
I also grabbed the chef-jenkins
user! ;)
from jenkins-chef-dsl.
Related Issues (4)
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 jenkins-chef-dsl.