-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add certSANs template function to extract Subject Alternative Names from certificates #6057
Copy link
Copy link
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/pending-triageThis issue was not triaged.This issue was not triaged.
Description
Is your feature request related to a problem? Please describe.
When external-secrets syncs certificates from providers (e.g. Vault PKI), users often need to extract the Subject Alternative Names (SANs) — the DNS names, IP addresses, email addresses or URIs that a certificate covers. Today there is no way to do this within ESO templating. Users have to run external scripts or add sidecar containers to parse PEM certificates and extract SANs, which adds operational complexity and breaks the declarative model.
Describe the solution you'd like
Add a new certSANs template function that accepts a PEM-encoded certificate string and returns a []string of all SANs. It should:
- Parse a single PEM certificate and return DNS names, IP addresses, email addresses, and URIs.
- Compose naturally with existing functions like
filterPEM,filterCertChain,join,index, andtoJson.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.triage/pending-triageThis issue was not triaged.This issue was not triaged.
Type
Projects
Status
Done