Is it even legal? Yes.
It sounds like you went on a short rant that makes the management look bad in front of everyone: this was a mistake.
Next time if you have an issue with the program like this bring it up privately with your manager or save your feedback until it is solicited.