‹ BackHN Continuity

Thread

SAML: A fractal of bad design

353 points · 190 comments · aray07

  1. ocdtrekkie · · focus · HN ↗
    Eh, if you don't have SAML support, I can find a product that does. Not a problem. \o/

    (Or to be more clear, it is mostly unacceptable for an enterprise product to have opinionated decisions about what authentication it works with. You either work with what we use or you are not viable as a product for our need. It's kinda simple. I would expect someone whose authentication was OIDC-based to be similarly dismissive if you told them you only would do SAML.)

    1. jeltz · · focus · HN ↗
      That mindset is indicative of security theatre to me. But as security theatre is common in entrprise IT that does not surprise me.
      1. jeroenhd · · focus · HN ↗
        Security is part of the story (beats keep track of different usernames+passwords for every tool), but convenience is also a major factor.

        Pretty much everything supports SAML. If you decide not to support one of the standard protocols for SSO, you'll lose out on customers. Your tool has to bring in a lot of benefit (and have no competition) to warrant upending a company's entire auth system for.

      2. foltik · · focus · HN ↗
        > I'm an IT consultant working for a private company

        Makes sense for GP locally, I guess, but globally we’re all worse off when nobody is motivated to break free from the path of least resistance.

    2. eximius · · focus · HN ↗
      This is only a reasonable stance at the very surface level.

      1. "You either work with what we use" - so whatever organization you represent isn't capable of evaluating and shifting to more secure technologies?

      2. "it is mostly unacceptable for an enterprise product to have opinionated decisions about what authentication it works with" - you think companies that care about security should not care about integrating with flawed protocols?

      A potential customer making bad choices does not obligate a business to make bad choices for their business.

      1. beachy · · focus · HN ↗
        It seems fair to me.

        As a SaaS vendor, interacting with our customers about SAML usually involves:

        a) them knowing what they want because they already have SAML-based SSO and it works for them; and

        b) our contact on their side being some unfortunate support dude who got given SAML as their subject area for whatever reason, and who knows very little about it, and who is 4 levels in the org away from anyone empowered to make decisions as significant as moving away from SAML.

        1. ocdtrekkie · · focus · HN ↗
          As a SaaS customer, interacting with SaaS vendors tends to entail:

          1. Finding out a company wants several grand to flip the "allow SAML" switch on the tenant config, and a few thousand a year in additional licensing to leave it on. (I had a vendor both tell me it "takes five minutes" to get it set up, and then quote me $4,800 to "implement" it.)

          2. Having to yell at the SaaS vendor for routing the identity connection between two or three other identity providers in different various clouds because, you know "modern stuff". (A vendor I am working with has not less than five different accounts to access various parts of their infrastructure, none of which are connected at all. I assume people there listened to "switch to OIDC" nonsense, completed half the job, and now have OIDC sites and SAML sites forever.)

          3. Discovering the SaaS vendor knows how Entra works, how Okta works, and how Google auth works, and having no idea how SAML works. Or OIDC or anything else for that matter.

          4. Eventually finding an engineer far enough from the sales and implementation teams who can answer how the product actually works. :D This point is reached after a lot of yelling.

          1. antonymoose · · focus · HN ↗
            > 1. Finding out a company wants several grand to flip the "allow SAML" switch on the tenant config, and a few thousand a year in additional licensing to leave it on. (I had a vendor both tell me it "takes five minutes" to get it set up, and then quote me $4,800 to "implement" it.)

            If I’m paying for at least one Senior to build and support this awful enterprise authentication pattern, I’m looking at around 200k per year in total cost - you damn well bet I’m billing you for it!

            1. beachy · · focus · HN ↗
              You do know about Keycloak right?
              1. antonymoose · · focus · HN ↗
                You do know that the “Total Cost of Ownership” is non-zero?
                1. beachy · · focus · HN ↗
                  I do but $200K per year actual cost is taking the piss.
                  1. antonymoose · · focus · HN ↗
                    The total cost to employee a Senior Software Engineer, and I mean a real one, not some kid with three years experience, including benefits, taxes, etc. easily gets up to 200K in a normal city at a non-FAANG job.

                    Im sorry if your UK salaries are much smaller, but I’m not P Diddy taking anyone’s piss out here m8!

                    1. beachy · · focus · HN ↗
                      Not denying that, but if its a full time job for that person to monitor the keycloak machines for a typical SaaS vendor then something's wrong at mill cobber (may have used that wrongly as not English)
      2. bigstrat2003 · · focus · HN ↗
        > A potential customer making bad choices does not obligate a business to make bad choices for their business.

        Indeed it does not. If you feel that strongly that you are willing to lose out on that customer, that's your right. But that does not mean the foregone customer is unreasonable for expecting you to work with their constraints in order to get their business.

    3. tomjen3 · · focus · HN ↗
      You use Entra. Entra can do jwt’s.

      Saml is just not reasonable in our modern security environment.

      1. ocdtrekkie · · focus · HN ↗
        Entra is just allowing the Chinese government in your environment. Why bother with authentication at all?

        <a href="https:&#x2F;&#x2F;www.war.gov&#x2F;News&#x2F;News-Stories&#x2F;Article&#x2F;Article&#x2F;4288992&#x2F;pentagon-halts-chinese-coders-affecting-dod-cloud-systems&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.war.gov&#x2F;News&#x2F;News-Stories&#x2F;Article&#x2F;Article&#x2F;428899... (Microsoft has solely discontinued this practice for the DoD tier. Commercial, GCC, and GCC High are still impacted because foreign labor is cheaper than the risk to your security.)

    4. clhodapp · · focus · HN ↗
      Honestly, it&#x27;s an addressable market versus development cost question... How many clients will you lose if you support OIDC but not SAML? Does the delta justify carrying a SAML implementation? If so, do it. But the post is still correct that SAML is a fractal of bad design either way. And it&#x27;s good to say this openly, and to run this calculus each time you are considering a new SAML implementation.
    5. iamjake648 · · focus · HN ↗
      Realistically, what modern IdP supports SAML but not OIDC though? To me, it seems like more of a case of &#x27;I know and am comfortable with SAML, why learn something new?&#x27;.
      1. ocdtrekkie · · focus · HN ↗
        Everything can stack onto everything else, sure. Most people&#x27;s SAML IdPs are... synced from their LDAP. =) But in particular SAML provides an SSO experience where signing in once in the browser will allow you to go to various integrated sites and apps without signing in again. That flow is not dissimilar from OIDC but it is separate. So I can have 10 apps with SAML and 1 with OIDC, and the OIDC one is gonna be an odd duck.

        And a key aspect that modern setups often forget: Every single different UI your users see makes them easier to phish. One of the reasons Entra is so easily phishable is Microsoft uses like 500 different domains for their cloud platform, so the one in the mix they don&#x27;t actually own isn&#x27;t obvious to the average user.

    6. badgersnake · · focus · HN ↗
      We took that exact stance, and it’s largely been a success. Most people asking for SAML can actually do OIDC and are happy to do so.
    7. TZubiri · · focus · HN ↗
      It&#x27;s a matter of perspective yes.

      If you are a vendor, you should have SAML support unless you are early (and can only support 1 standard), or you are highly opinionated.

      If you are a consumer instead, you will only be using one standard, so you HAVE to chose 1 and not the others.

    8. sgarland · · focus · HN ↗
      If a company said &quot;you must support DES,&quot; I would expect that their cybersecurity insurance provider would start asking them some questions, and if they became indignant that no one would do so, I would expect them to be publicly mocked.

      There is one valid excuse for why you must have support for an outdated protocol: embedded &#x2F; air-gapped systems. For anything else, just admit that you don&#x27;t want to make the change. That&#x27;s a business decision, nothing else.

      1. ocdtrekkie · · focus · HN ↗
        It&#x27;s outdated in the way that the author doesn&#x27;t like it, but SAML will probably outlive OIDC.
    9. bob1029 · · focus · HN ↗
      &gt; it is mostly unacceptable for an enterprise product to have opinionated decisions about what authentication it works with. You either work with what we use or you are not viable as a product for our need. It&#x27;s kinda simple.

      I think HN would do really well if we took this in the more general sense (any product).

      If the customer is asking really hard for something, maybe you should just take their money and move on. Forcing 100% of your customers to adopt or endure weird technological ideologies is not a path to happiness.

      If SAML is taking you so much effort to implement that its complicating your sales &amp; development process, you are either using the wrong tools or the wrong developers. It should not be this difficult if you make a genuine effort.

      I am often reminded of this particular meme template when it comes to HN and the customer: <a href="https:&#x2F;&#x2F;knowyourmeme.com&#x2F;memes&#x2F;baton-roue" rel="nofollow">https:&#x2F;&#x2F;knowyourmeme.com&#x2F;memes&#x2F;baton-roue

    10. bvrmn · · focus · HN ↗
      Oh boy. There were (and are) hordes of enterprises requiring us to support SAML and were quite amazed to know Entra and all big auth providers perfectly support OIDC.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.