Archival work routinely involves complex issues of confidentiality and privacy. The International Council on Archives and the Society of American Archivists have published Codes of Ethics as guides for practicing archivists dealing with these issues. They are linked below:
International Council on Archives Code of Ethics
Society of American Archivists Code of Ethics for Archivists