I read in Williams' book on truth that during the inquisition priests were eager to apply Kantian ethics under torture, and that this proved difficult because lies - and arguably secrets - were immoral.
Prima facie or indeed according to the literature may we keep a secret if we disagree with the methods of someone obtaining it? If so, may we promise to keep it, and would that mean we are obliged to? Finally, is that independent of any consequences of telling it?