[Docs]: webhook.X509CertificateRequest and webhook.X509Certificate: is it safe to check only SANs, ignoring DNSNames, EmailAddresses, IPAddresses, URLs ?

Open
#2,612 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
documentation

Research direction

Start by reading the Go definitions and documentation for webhook.X509CertificateRequest and webhook.X509Certificate, focusing on SANs, DNSNames, EmailAddresses, IPAddresses, and URLs. Determine how these fields relate and whether checking only SANs is safe. Done means documenting a clear answer, including whether DNS entries must match across fields; the issue does not name files or tests.

Written by the indexing model from the issue text.

Description

needs triage

Hello!

I'm trying to write a webhook for x509 certificates, using
webhook.X509CertificateRequest and webhook.X509Certificate.

Is it safe to check only SANs field, ignoring DNSNames, EmailAddresses, IPAddresses, URLs ?
Do I need to check if all SANs with type dns are listed in DNSNames, and vice-versa?

Dominant language
Go
Stars
8.9k
Forks
599
Avg merge
21h 20m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/certificates

All issues in smallstep/certificates

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.