Ensure key_size is set for the secret key

Closes #3563141

Merge request reports

Loading