Cal. Penal Code § 936.7
(a) In a county of the eighth class, as defined by Sections 28020 and 28029 of the Government Code, upon a request by the grand jury, the presiding judge of the superior court may retain, in the name of the county, a special counsel to the grand jury. The request shall be presented to the presiding judge in camera, by an affidavit, executed by the foreperson of the grand jury, which specifies the reason for the request and the nature of the services sought, and which certifies that the appointment of the special counsel is reasonably necessary to aid the work of the grand jury. The affidavit shall be confidential and its contents may not be made public except by order of the presiding judge upon a showing of good cause. The special counsel shall be selected by the presiding judge following submission of the name of the nominee to the board of supervisors for comment.
The special counsel shall be retained under a contract executed by the presiding judge in the name of the county. The contract shall contain the following terms:
(c) The contract shall constitute a public record and shall be subject to public inspection and copying pursuant to the provisions of the California Public Records Act (Division 10 (commencing with Section 7920.000) of Title 1 of the Government Code). However, at the sole discretion of the board of supervisors, any or all of the following steps may be taken: