Apple’s (AAPL) famous secrecy may have just gotten it into some legal trouble. Bloomberg (News) reports that San Jose-based U.S. Magistrate Judge Paul S. Grewal has issued a scathing ruling in a privacy suit involving the company in which he questions Apple’s integrity and says that he will no longer take what the company says and face value.

At issue is Apple’s alleged refusal to comply with Grewal’s three-month-old order that the company turn over some sensitive documents that Bloomberg says could “reveal inner workings that the company normally goes to great lengths to hide.”

The plaintiffs in the privacy suit are accusing Apple of collecting customers’ location data on their iPhones even when they have their geo-location services switched off and of giving third parties access to customers’ location data without their consent.

Apple has tried to withhold revealing some documents requested in the case by arguing that their release could jeopardize customer privacy. Grewal, however, still ordered Apple to produce the documents and became upset when the company allegedly took over three months to verify whether it had complied with his order.