Handle not existing or invalid secrets