6 ms·
If this is interesting to you but you're iffy about setting up another directory service or having AWS be your central list of identities for all your apps, we'
by tptacek 9y ago
If this is interesting to you but you're iffy about setting up another directory service or having AWS be your central list of identities for all your apps, we're open sourcing The Identity Mutilator, a Golang SAML IdP, in a couple weeks. It's self-contained (for now) so doesn't depend on AD or LDAP --- just Postgres --- and runs just fine in a tiny Docker container.
- angersock 9y agoWhat's the advantage of your thing over, say, LDAP?
- tptacek 9y agoIt's an SSO system, so think LDAP plus a "universal login page" for all your applications. Ours is a stripped down, carefully audited Golang application that does TOTP and U2F. But, like all modern SSO systems, we (unfortunately) speak SAML --- a godawful protocol, but one we did a from-scratch implementation of to avoid crazy deps.
- eximius 9y agoOut of curiosity (and ignorance), why SAML vs JWT or some less awful protocol?
- jvoorhis 9y agoThere is a massive amount of enterprise software on the market which predates JWT, and enough inertia that vendors keep implementing SAML support for new products. It's not going away soon.
- tptacek 9y agoJWT is also an awful protocol, and it's also not an SSO standard. There's still time for us not to bet the farm on JWT, and I urge clients to avoid it.
- gridscomputing 9y agoJust Say No to JWT
- whatusername 9y agoWhy not OIDC? (which is a SSO standard)
- lvh 9y agoOpenID Connect is significantly less popular, especially among enterprise on-site apps, than SAML.
- ak217 9y agoCan you please elaborate on what's awful about JWT/OIDC? I ask because I've implemented SAML-based IdPs and SPs before, and SAML is a serious trainwreck of a protocol. Now I'm looking at implementing OIDC and at first glance it seems a lot more reasonable.
- tptacek 9y agoThey're basically the same protocol, but: * SAML has no alg=none. * JWT doesn't have "signature smuggling" problems. * SAML has schema validation. * SAML has more de-facto-required protective metadata (like audience restrictions). They are both truly terrible. Perhaps even a coinflip decision. But SAML is an actual real-world standard; it's how applications implement SSO. JWT is still floundering around trying to find a place to be essential. Let's hope it fails. Part of the point of implementing SAML was to implement a stripped-down version of it with none of the flexibility offered by libxmlsec1, which is the kernel for basically every SAML implementation.
- ak217 9y agoThanks. Can't say I agree on the basis of this list that JWT/OIDC is equally bad to SAML. SAML is an outdated, ill-designed piece of crap that is a ticking time bomb of an implementation nightmare, in large part because almost nobody truly understands the standard or the security implications of the underlying XML Security standards (having written https://github.com/XML-Security/signxml https://github.com/XML-Security/signxml for much the same reasons you cite, I can say it's a minefield). Reading the JWT and OIDC standards so far, they appear much more comprehensible and reasonable in their implementation options.
- awalton 9y agoThe Enterprise SSO market is close to defacto standardizing around SAML AFAICT. Either your product supports it, or the very large enterprises with very large budgets can't use it, and your competitor that does support SAML gets the dollars instead.
- thiht 9y agoOn a side note, is it necesary to use cryptic acronyms like "AFAICT"? If you don't want to write "as far a I can tell", why do you? It's kinda annoying to have to google for abbreviations like that all the time
- lvh 9y agoI started talking about this elsewhere in the thread where someone suggests SAML's awful (agree) and OIDC is a better choice (disagree): https://news.ycombinator.com/item?id=15914881 https://news.ycombinator.com/item?id=15914881 I think it answers the question of why SAML nicely, but the TL;DR is: you can pare SAML down to a sane subset, and crushing market penetration.
- deleted 9y ago[deleted]
- jf 9y ago> SAML --- a godawful protocol, but one we did a from-scratch implementation of to avoid crazy deps. Agree that SAML is godawful (to put it lightly) and also very curious about your from-scratch implementation. I assume that by "crazy deps" you're referring to xmlsec1 (which, disturbingly, nearly every non Java/.NET library uses) Did you implement XML-DSig yourself? (!) I'd be very interested in comparing notes on test cases. I wrote a SAML testing tool [1][2] inspired by the "On Breaking SAML" paper [3] but the tool is incomplete and essentially abandoned because I hoped that people would stop implementing SAML. Would you be open to comparing notes on test suites for SAML implementations? Footnotes: 1: http://saml.oktadev.com/ http://saml.oktadev.com/ 2: https://bitbucket.org/jfranusic/saml-messenger https://bitbucket.org/jfranusic/saml-messenger 3: https://www.usenix.org/system/files/conference/usenixsecurity12/sec12-final91-8-23-12.pdf https://www.usenix.org/system/files/conference/usenixsecurit...
- tptacek 9y agoYes, we implemented our own dsig. In fact, I wrote the kernel of the IdP after writing my own SAML test suite (after being horrified by the quality of SAML client libraries). I'm very happy to compare notes!
- w8rbt 9y agoIs your Golang source code public? Great 2FA methods BTW, the only two I trust. Long live OATH and FIDO. Edit: Never mind... I read further up. Looking forward to seeing it!
- mankash666 9y agoIn your own words, you're a SAML IdP, not an SSO manger, like AWS SSO. I believe you're more akin to AWS Cognito than to AWS SSO. Unless I'm missing something in your description
- ownagefool 9y agoWhat's the difference?
- actualanswer 9y agoSAML IdP is the entity that stores the identities (source of truth), SSO provider can be the same IdP or a 3rd party entity that can federate this identity to different service providers (apps).
- tptacek 9y agoYeah, I don't care about these terms at all. I'm happy to get directory integration working, or to proxy SAML from elsewhere (as long as it conforms to the minimal SAML I'm willing to speak).
- mankash666 9y agoYou should care about these terms while building and marketing software in the space. I'm not saying you're being deceitful, however, almost anyone who read your description assumed your offering to have feature parity with AWS SSO, but the feature list probably is closer to AWS Cognito. An open alternative to Cognito might be sufficient for most, but is still not the same as a comprehensive SSO manger
- tptacek 9y agoI think we're just going to put it on Github for now and say "here's this thing and here's what it can do" and not worry too much about an Eric and Al Ries-approved Positioning marketing strategy. Not giving a shit about stuff is pretty liberating. :)
- arekkas 9y agoAs the author of a pluggable OAuth2 & OIDC Provider ( https://github.com/ory/hydra https://github.com/ory/hydra ) I am looking for an OSS IDP that solves just ID management. Is there a URL where I can expect this to land?
- tptacek 9y agoThat's a good question, but for now you can just email me.
- LudoA 9y agoWhat about Keycloak (http://www.keycloak.org/ http://www.keycloak.org/)?
- lvh 9y agoI want to be careful not to confuse between Keycloak and a few other suites like FreeIPA we (Latacora) tried because this was a while ago, way back when we started writing the IdP and I don't accidentally want to throw shade at another project, so mistakes mine... But the built artifact size is like, 10-100x larger. And that's a Go binary, so no cheating with e.g. grabbing an XML parser from the stdlib or something. You can much more plausibly audit the living daylights out of the Latacora IdP because it's tiny.
- tptacek 9y agoThe Identity Mutilator is microscopic compared to Keycloak. It just does the two things it's supposed to do: let users log themselves in with 2FA, and then log them in to the applications they've been allowed to use. My take is, if you were going to use Keycloak (or Shib or FreeIPA), you'd already be using Keycloak.
- actualanswer 9y agoSounds interesting! But AWS SSO doesn't integrate with 3rd party SAML IdP's yet and can only integrate with AD. How can I use this with AWS SSO?
- tptacek 9y agoI have no idea. I don't really grok AWS SSO or Cogito as products, except that they make a lot of sense if you're trying to make your entire application footprint just a set of lambdas. When first-class Golang support for lambdas arrives (it's on the roadmap apparently), I'm probably going to take a crack at getting the IdP to work as a set of lambdas as well. I wish I could say that was my idea, but someone DM'd it to me after I mentioned The Identity Mutilator on Twitter, and so now I'm stealing it. But anyways that's why I'm chattering about it now, in case other people have ideas.
- niteshade 9y agoI believe they announced Go support for Lambda at re:Invent this year.