Unless a rescript of the Penitentiary provides otherwise, a dispensation from an occult impediment granted in the non-sacramental internal forum is to be noted in a book which must be kept in the secret archive of the curia; no other dispensation for the external forum is necessary if afterwards the occult impediment becomes public.
Source: Code of Canon Law (Vatican.va)