Its tough, costs a lot of money, it takes 18 months, and if they don't have a bunch of CUI or non-classified work you are worthless for that 18 months. Sometimes places will do secret, then upgrade to top-secret. But for software, almost nothing is done secret.
They're also not allowed to set requirements for you to work for them for a period of time once you're cleared. For them it's a potential investment with no guarantee of success, and no guarantee of return.