Check permission, size for keys in self-diagnostics