Are you maybe a privateer?
Privateers tended to obey a sovereign government and do all the pirate things, but directed it against the enemies of the country they were under the flag of rather than just at whoever. Privateers would sometimes become pirates, though. Basically, they'd just keep doing the same job, but for themselves.
The distinction is largely one of who gets to make the rules and do the finger pointing.