Skip to content

Cert common name validation#992

Merged
sean-breen merged 3 commits intov3from
cert-common-name-validation
Feb 27, 2025
Merged

Cert common name validation#992
sean-breen merged 3 commits intov3from
cert-common-name-validation

Conversation

@sean-breen
Copy link
Contributor

@sean-breen sean-breen commented Feb 20, 2025

Proposed changes

Proto validation fails on X509 certificates when CommonName is empty. This is not a required field and we should ignore this case. SerialNumber also has a validation check but it is not useful since the minimum length is set to 0.

  • Remove the proto validation for the following fields in file proto messages:
    • CommonName
    • SerialNumber

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@sean-breen sean-breen requested a review from a team as a code owner February 20, 2025 14:25
@github-actions github-actions bot added the chore Pull requests for routine tasks label Feb 20, 2025
@sean-breen sean-breen merged commit cfc9f48 into v3 Feb 27, 2025
20 checks passed
@sean-breen sean-breen deleted the cert-common-name-validation branch February 27, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Pull requests for routine tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants