Expose `SecretParts` in the JSON output (#5073)