I don't know how much of a moat this constitutes for vendors like Elastic, though. Those markets are inherently smaller than what they hoped to get out of managed Elastic cloud, and more labor-intensive to service. It's more of a moat for the big five defense contractors and why Raytheon is still writing all the software for spy satellites rather than Google and Lockheed does all the hardware rather than SpaceX. Of course, they're not open source, but the contracts usually specify the government owns your code, not you, and they can share it with any other contractor they choose if they want to replace you.
The entire codebase will be open-sourced a few years after a version is released.
You can use the old version and fix security vulnerabilities yourself. If you really want the latest features, you pay.
If they ever decide to enter your specific business they have an automatic kill switch on you.