drbrain changed the topic of #rubygems to: RubyGems 2.1.5: http://bit.ly/rubygems-2-1-5 CVE-2013-4363: http://bit.ly/CVE-2013-4363 - Latest status: http://twitter.com/rubygems_status and http://status.rubygems.org
arthurnn has joined #rubygems
jonahR has joined #rubygems
antichatter has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
arthurnn has quit [Remote host closed the connection]
arthurnn has joined #rubygems
luislavena has joined #rubygems
luislavena has quit [Remote host closed the connection]
Sc0rp10n has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
havenwood has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
huoxito has quit [Quit: Leaving]
havenwood has joined #rubygems
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #rubygems
jonahR has left #rubygems [#rubygems]
havenwood has quit [Remote host closed the connection]
havenwood has joined #rubygems
havenn has joined #rubygems
havenwood has quit [Ping timeout: 240 seconds]
tjbiddle has joined #rubygems
TheComrade has quit [Quit: TheComrade]
jfoy has quit [Quit: jfoy]
havenn has quit [Remote host closed the connection]
havenwood has joined #rubygems
havenwood has quit [Ping timeout: 264 seconds]
huoxito has joined #rubygems
tjbiddle has quit [Ping timeout: 245 seconds]
TheComrade has joined #rubygems
kanobe has joined #rubygems
<kanobe> Hey all
<kanobe> I'm fairly new to rubygems, but I wanted to package up an application as a gem
TheComrade has quit [Quit: TheComrade]
<kanobe> But the application requires some non-ruby files (css, etc) that my app needs to refer to.
<kanobe> How do I add that stuff to the gem and then get the paths to those things inside my code?
mdst3 has quit [Read error: Connection reset by peer]
mdst3 has joined #rubygems
jonahR has joined #rubygems
TheComrade has joined #rubygems
sbeam has quit [Remote host closed the connection]
TheComrade has quit [Ping timeout: 260 seconds]
TheComrade has joined #rubygems
TheComrade has quit [Quit: TheComrade]
luislavena has joined #rubygems
jonahR has quit [Ping timeout: 252 seconds]
arthurnn has quit [Remote host closed the connection]
arthurnn has joined #rubygems
jonahR has joined #rubygems
arthurnn has quit [Ping timeout: 264 seconds]
TheComrade has joined #rubygems
TheComrade has quit [Client Quit]
jonahR has quit [Quit: jonahR]
<mpapis> kanobe, you can do relative paths to __FILE__
<mpapis> I think in new ruby there should be also __dir__
huoxito has quit [Remote host closed the connection]
arthurnn has joined #rubygems
arthurnn has quit [Ping timeout: 240 seconds]
tbuehlmann has joined #rubygems
Elhu has joined #rubygems
Elhu has quit [Quit: Computer has gone to sleep.]
luislavena has quit [Remote host closed the connection]
imperator has quit [Quit: This computer has gone to sleep]
Elhu has joined #rubygems
kgrz_ has joined #rubygems
DanKnox is now known as DanKnox_away
workmad3 has joined #rubygems
mattwynne has joined #rubygems
kgrz_ has quit [Ping timeout: 256 seconds]
adambeynon has joined #rubygems
adambeynon has quit [Read error: No route to host]
adambeynon has joined #rubygems
Boohbah has quit [Ping timeout: 240 seconds]
Boohbah has joined #rubygems
imperator has joined #rubygems
tcopeland has quit [Quit: Leaving.]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #rubygems
priyam__ is now known as yeban
jcaudle has joined #rubygems
sbeam has joined #rubygems
dvu has joined #rubygems
huoxito has joined #rubygems
tcopeland has joined #rubygems
arthurnn has joined #rubygems
huoxito has quit [Remote host closed the connection]
almostwhitehat has joined #rubygems
headius has joined #rubygems
<headius> hiyas
<qrush> yo headius
<headius> so… we have some users getting "bad_record_mac" errors when downloading gems, usually when bundling but I don't think that's important
<headius> information on that error is spotty
<headius> basically seems to mean that crypto has failed in some way
<headius> I'm hoping to have someone look at the rg.org logs to see if there's anything of interest there
<headius> there's a dump of the SSL session here: https://gist.github.com/nirvdrum/6825710
<headius> many of the posts talked about a problem with TLS versus SSLv3 negotiation and that turning TLS off would fix it, but turning it off in net/http did not seem to help
<headius> this only seems to have started within the last few weeks
<qrush> i haven't seen this...does it happen only with jruby?
<headius> I'm not sure
<qrush> what OS?
<headius> OS X
<qrush> yeesh
<qrush> is this just a normal `gem install` with jruby?
<qrush> wondering how we can try to reproduce it
<qrush> what gem was it?
<headius> yeah it's hard to reproduce here too
<headius> it's intermittent
<headius> nirvdrum on #jruby seems to get it fairly often… I've only seen it once ever
<headius> Sorry, he's on Linux
<headius> I think I've seen it on OS X but unsure
<samkottler> hey, I'm around for a while if you want help debugging this
<samkottler> qrush: ^^
<headius> samkottler: I'd really like to know if there's any sign of this on the server side
<headius> I have client side logs but feel like it's only half of the story
<samkottler> headius: I can check
<samkottler> headius: the problem is that we terminate some much SSL traffic that it's hard to debug because of the pure volume
<headius> yeah I understand
nirvdrum has joined #rubygems
<nirvdrum> Howdy.
<headius> nirvdrum: hi there
<headius> nirvdrum: this has only started happening recently for you too, right?
<samkottler> nirvdrum: hey! which OS and version of it are you using?
<headius> like, within the last month
<headius> ?
<nirvdrum> headius: No, it's been going on a while. I just started hitting it more frequently because I keep testing JRuby 1.7.5 builds and having to bundle from scratch.
<headius> nirvdrum: like how long? trying to figure out if there was a triggering event
<nirvdrum> samkottler: On my servers, it's Ubuntu 12.04 amd64.
<nirvdrum> On my laptop, it's LinuxMint 15, an Ubuntu 13.04 derivative.
<samkottler> headius: nirvdrum: we replaced a load balancer about a month ago which is the only change we'd have made recently
<samkottler> nirvdrum: that should have a recent enough version of ca-certificates
<samkottler> hmmm
<nirvdrum> headius: Hard to say. I'd peg it at several months at least. But I couldn't say if it was more than 4.
<nirvdrum> rubygems.org was having problems a while back so I always attributed the problem to that.
<headius> can you trigger one right now?
<headius> when I saw it I shrugged it off as being rg.org issues too, or a dropped connection
<nirvdrum> samkottler: Well, if I retry it'll eventually succeed. So I don't think my root certs are to blame.
<samkottler> nirvdrum: what region of the world are you in?
<headius> I have been wholly unsuccessful in reproducing it
<nirvdrum> samkottler: Suburban Boston.
<nirvdrum> My servers are in Atlanta.
<samkottler> nirvdrum: ha, that's funny, I'm outside boston, too :)
<nirvdrum> Previously they were on EC2, in Virginia.
<headius> no releases correspond to 4 months ago
<headius> hmm
<nirvdrum> headius: That's about the time JRuby 1.7.4 came *shrug*
<samkottler> nirvdrum: it's not related to handshake times, then
<nirvdrum> I really can't say if that was the cause though. And I had to skip 1.7.3 entirely because of that Fiber bug.
<headius> nirvdrum: yeah I guess so…4-5 months ago
<nirvdrum> Let me blow away my gems and start over. I'm bound to hit it.
<headius> I'm going to bring up a linux box and see if I can trigger it there
<headius> fwiw we've only had a handful of reports of this
<nirvdrum> samkottler: I live in Holliston.
<headius> so it's weird
<nirvdrum> headius: I've hit it sometimes with honeybadger.io, too. But I hit it a lot with rubygems.org. It could very well just be a numbers game though.
<nirvdrum> I've wondered if bundler might just be opening too many connections and rg.org is rejecting one, too.
<samkottler> I've been thinking about replacing nginx for SSL termination because it's so unreliable
<samkottler> and you might just be running into nginx problems
<samkottler> but it's hard to verify
<nirvdrum> Well, that's a first. I just got: "Could not verify the SSL certificate for https://rubygems.org/.
<nirvdrum> There is a chance you are experiencing a man-in-the-middle attack, ..."
<samkottler> nirvdrum: are you going through a proxy?
<nirvdrum> Nope. Not unless my route tables are screwed up running through a VPN link to my datacenter. I can check that.
<nirvdrum> Just re-ran bundler and it's going now.
<samkottler> the really odd part is that some people seem to bear the brunt of the issues
<samkottler> some are completely fine and others have issues a lot of the time
<nirvdrum> Maybe only one of the nginx boxes is screwed and I just luck out with round-robin?
<Rotonen> s3 has new certs at least
<headius> I set up a script earlier today to repeatedly reinstall gems and bundle a new app and was unable to trigger it
<Rotonen> triple sure your certs are state of art?
<headius> but this is a different env than nirvdrum
<nirvdrum> Rotonen: The distro I'm using right now is only 4.5 months old.
<Rotonen> and that your rubygems uses the cert store you update?
<nirvdrum> And I'm using a JVM that was only released like 2 weeks ago. I believe that has its own root store on top of that.
<headius> I'm certainly willing to accept if it's a JRuby issue but I don't know of anything that would have changed in this timeframe to cause it
<nirvdrum> samkottler: Just hit the problem.
<nirvdrum> Gem::RemoteFetcher::FetchError: Received fatal alert: bad_record_mac (https://rubygems.org/gems/actionpack-3.2.13.gem)
<Rotonen> a broken cou, ram or routing/switching issues?
<Rotonen> *cpu
<samkottler> this might be a bug in rubygems itself, though
<samkottler> when it gets forced up to sslv3
<nirvdrum> Rotonen: I mean, it's possible. But I hit it at home and I hit it at my datacenter across 20 machines or so.
<Rotonen> ssl implementation issues? what could have a wider impact
<nirvdrum> And I hit it pretty regularly when I was on EC2, too. So that would bring it up to 3 different locations.
<samkottler> yeah, I highly, highly doubt it's a bum CPU or memory corruption
<Rotonen> depending on what acts as the terminating point
<samkottler> Rotonen: have you actually seen this in the wild or are you just hypothesizing?
<nirvdrum> samkottler: I don't suppose you could see the error logs and see what happened on your end?
<samkottler> nirvdrum: it's a client-side verification issue, not a rubygems.org termination problem
<Rotonen> wildly hypothesizing and also stepping out of the way here
<samkottler> I don't see anything printed in the logs related to SSL issues
<Rotonen> but frame corruption list of suspects for me would be that
enebo has joined #rubygems
<nirvdrum> samkottler: Well, I'm wondering if the response just got truncated or something, causing the bad mac.
<headius> samkottler: some of the posts I read did talk about renegotiation
<samkottler> headius: that's possible
<headius> I trieed having nirvdrum force it to SSLv3 and he still got it
<headius> enebo: hi
<samkottler> headius: we might also need to tune the kernel on our end to change how we deal with retransmits under high TCP load
<samkottler> we use eth0 on the instances pretty heavily and have a decently high error rate sometimes
<qrush> samkottler: thanks for helping out. sorry buried in stuff today
<qrush> keeping kicking ass everyone :)
<qrush> *Keep. !
<samkottler> qrush: :D
* samkottler starts digging around /proc
<samkottler> crap, I have a conf call in 3 minutes
<headius> samkottler: see anything interesting on your end corresponding with nirvdrum's error?
<headius> ahh well I'll be here
<samkottler> headius: nirvdrum: you going to be around in an hour?
<nirvdrum> samkottler: That'll severely cut into my sandwich eating time, but yeah.
<nirvdrum> I'm around all day. I have a meeting around 1:30. But otherwise, I'm here.
<samkottler> nirvdrum: no problem, I'll just ping when I'm done
<samkottler> or during depending on the level of boring this call reachs ;)
<kanobe> mpapis: Cool, thanks!
luislavena has joined #rubygems
DanKnox_away is now known as DanKnox
marpaia has joined #rubygems
neo_ has joined #rubygems
Boohbah has quit [Remote host closed the connection]
Boohbah has joined #rubygems
jfoy has joined #rubygems
arthurnn has quit [Remote host closed the connection]
arthurnn has joined #rubygems
neo_ has quit [Quit: This computer has gone to sleep]
arthurnn has quit [Ping timeout: 264 seconds]
luislavena has quit [Remote host closed the connection]
luislavena has joined #rubygems
Elhu has quit [Quit: Computer has gone to sleep.]
DanKnox is now known as DanKnox_away
Elhu has joined #rubygems
Elhu has quit [Client Quit]
luislavena has quit [Ping timeout: 240 seconds]
jaimef has quit [Excess Flood]
jaimef has joined #rubygems
havenwood has joined #rubygems
DanKnox_away is now known as DanKnox
arthurnn has joined #rubygems
marpaia has quit [Quit: WeeChat 0.4.1]
marpaia has joined #rubygems
luislavena has joined #rubygems
luislavena has quit [Read error: Connection reset by peer]
luislavena has joined #rubygems
TheComrade has joined #rubygems
tjbiddle has joined #rubygems
arthurnn has quit [Remote host closed the connection]
shvelo has joined #rubygems
arthurnn has joined #rubygems
arthurnn has quit [Read error: No route to host]
arthurnn has joined #rubygems
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arthurnn has quit [Remote host closed the connection]
arthurnn has joined #rubygems
stevenharman has joined #rubygems
workmad3 has quit [Ping timeout: 248 seconds]
arthurnn_ has joined #rubygems
arthurnn_ has quit [Read error: No route to host]
arthurnn_ has joined #rubygems
arthurnn has quit [Ping timeout: 245 seconds]
arthurnn_ has quit [Remote host closed the connection]
arthurnn has joined #rubygems
arthurnn has quit [Ping timeout: 256 seconds]
huoxito has joined #rubygems
TheComrade has quit [Quit: TheComrade]
havenwood has quit [Remote host closed the connection]
<headius> samkottler: one suggestion on several posts is just disabling TLS, forcing everything to be straight-up SSL
<headius> this doesn't seem to be specifically a Java or JVM issue
<headius> I'm trying to find out more…there are mentions of buggy OpenSSL impls that could be affecting server
<headius> 8.0.3 is one buggy version listed
<headius> OpenSSL needs to die
headius has quit [Quit: headius]
headius has joined #rubygems
<headius> samkottler: where are the gems sourced from?
stevenharman has quit [Read error: Connection reset by peer]
<drbrain> headius: the .gem files? S3
<headius> that's what I thought
imperator has quit [Quit: This computer has gone to sleep]
TheComrade has joined #rubygems
<samkottler> headius: it could also be related to an SSL thing on amazon's end
<samkottler> headius: let me email a friend at AWS about that
<headius> ok
samkottler has left #rubygems ["http://quassel-irc.org - Chat comfortably. Anywhere."]
samkottler has joined #rubygems
<samkottler> whoops
<headius> I'm trying some suggestions on my end that involve limiting protocol to just SSLv3 again
<samkottler> headius: I don't think that'll fix the issue, just mask it on some implementations
<nirvdrum> samkottler: Well, it looks like it's failing when connecting to rg.org to get the gem. IIRC, you receive the request and then do a 302.
ged__ is now known as ged
<nirvdrum> I write to S3 over https a lot and don't recall ever hitting that issue, at least.
<headius> samkottler: yeah definitely not fix
<samkottler> nirvdrum: yep, we just issue a 302 via nginx
<headius> well it's always that first hit to RG that blows up for me
<headius> (I did manage to reproduce with Oracle JDK on Linux, same setup as nirvdrum)
<nirvdrum> headius: Not the first hit for me, but it almost always blows up at some point in the process of bundling.
<headius> I mean the first of the two SSL sessions for a given gem
<headius> based on SSL logging
<nirvdrum> Ahh.
<headius> it's never the larger second one where it's fetching
<headius> nirvdrum: I've had three full bundles of your Gemfile without failure with my SSLv3-only patch
<drbrain> headius: are you using ruby 2.0's net/http?
<headius> no, still 1.9 by default with 1.9 stdlib
<drbrain> ok
<nirvdrum> headius: The patch you had me apply earlier?
<headius> no, one inside SSLContext.java
<drbrain> ruby 2.0's has SSL session resumption to save negotiation time (50-100ms)
<nirvdrum> Ahh.
<nirvdrum> If you have a tarball, I can try on my end. But it sounds like you were finally seeing what I was seeing anyway.
<nirvdrum> I wonder what the differences are between OpenJDK and Oracle.
<nirvdrum> If only we knew someone at RedHat :-)
<headius> hah
* drbrain chuckled
<headius> ahh scratch that, 4th time's the charm
<headius> bad_record_mac back again
<nirvdrum> Shut it down.
TheComrade has quit [Quit: TheComrade]
DanKnox is now known as DanKnox_away
arthurnn has joined #rubygems
jnimety has joined #rubygems
jnimety has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
tbuehlmann has quit [Remote host closed the connection]
tcopeland has quit [Quit: Leaving.]
jcaudle has quit [Quit: jcaudle]
jnimety has joined #rubygems
jnimety has quit [Client Quit]
almostwhitehat has quit [Ping timeout: 264 seconds]
arthurnn has quit [Remote host closed the connection]
almostwhitehat has joined #rubygems
arthurnn has joined #rubygems
ZachBeta has joined #rubygems
DanKnox_away is now known as DanKnox
arthurnn has quit [Ping timeout: 240 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
TheMoonMaster has quit [Remote host closed the connection]
huoxito has quit [Remote host closed the connection]
workmad3 has joined #rubygems
huoxito has joined #rubygems
enebo has quit [Quit: enebo]
huoxito has quit [Ping timeout: 260 seconds]
marpaia has quit [Quit: WeeChat 0.4.1]
luislavena has quit [Remote host closed the connection]
tcopeland has joined #rubygems
arthurnn has joined #rubygems
jaimef has quit [Excess Flood]
huoxito has joined #rubygems
jaimef has joined #rubygems
huoxito has quit [Ping timeout: 256 seconds]
shvelo has quit [Ping timeout: 245 seconds]
fromonesrc has joined #rubygems
imperator has joined #rubygems
fromonesrc has quit [Client Quit]
workmad3 has quit [Read error: Operation timed out]
arthurnn has quit [Remote host closed the connection]
arthurnn has joined #rubygems
huoxito_ has joined #rubygems
arthurnn has quit [Ping timeout: 252 seconds]
huoxito_ has quit [Remote host closed the connection]
huoxito_ has joined #rubygems
huoxito_ has quit [Ping timeout: 264 seconds]
<drbrain> ha, sweet!
<drbrain> aww, dang
<drbrain> almost
<drbrain> … have on-demand extension building working
jnimety has joined #rubygems
<jnimety> hello all. I tried to do a cap deploy this afternoon and received the following error "Could not verify the SSL certificate for https://rubygems.org/" using Fedora 18, capistrano, rvm, latest fedora packages are installed. looking for advice. thanks.
<drbrain> jnimety: install an updated certificate bundle
<jnimety> drbrain I have the latest provided by fedora
<mpapis> drbrain, on-demand this sounds great, is it on a branch?
<drbrain> jnimety: S3's certificates changed, and we don't bundle the updated certificate
<drbrain> mpapis: yes, on a branch
<drbrain> I'm trying to figure out why the off-platform install is failing
<mpapis> I would love to see it, maybe I could help a bit
<jnimety> drbrain should I bug fedora to update their cert bundle?
<drbrain> jnimety: we haven't figured out which certificate we need to update in rubygems yet :/
<drbrain> but, others have reported success updating the certificates
<drbrain> the less-secure option is to disable HTTPS :/
<jnimety> yeah, I'm looking to avoid that
<jnimety> odd that the latest fedora has to offer has issues with s3
<jnimety> drbrain thanks for the help, I'll see what the fedora folks have to say
<drbrain> sorry I don't have more to offer yet ☹
<drbrain> I've been sick and haven't had the time to investigate yet
<imperator> drbrain, any chance of building a command into rubygems to update certs?
<imperator> or is that outside of rg's scope?
<jnimety> no worries, I'll pass along any info I find
<drbrain> imperator: updating all the certificates is out of scope
<drbrain> imperator: updating the built-in certificates might be possible
<imperator> i think whatever we can do would be good
huoxito_ has joined #rubygems