Removing credentials from custom resource.