Skip to content

Conversation

@blakepettersson
Copy link
Member

With argoproj/argo-cd#15394 it has been possible to use custom certs from argocd-tls-certs-cm. This works as intended for any notification that is based on HTTP, but not for emails (since the email doesn't make use of http.Transport).

This commit fixes that by extracting out the TLS config to a separate function which can be called by the email service. The functionality which creates an email has been extracted from the library which was previously used since there's no support for setting custom TLS configs.

This also means we can get rid of the gomodules.xyz/notify library.

With argoproj/argo-cd#15394 it has been possible to use custom certs from
`argocd-tls-certs-cm`. This works as intended for any notification that
is based on HTTP, but _not_ for emails (since the email doesn't make use
of `http.Transport`).

This commit fixes that by extracting out the TLS config to a separate
function which can be called by the email service. The functionality
which creates an email has been extracted from the library which was
previously used since there's no support for setting custom TLS configs.

This also means we can get rid of the `gomodules.xyz/notify` library.

Signed-off-by: Blake Pettersson <[email protected]>
@blakepettersson blakepettersson force-pushed the feat/use-cert-resolver-for-email-service branch from 18d0976 to dc37e52 Compare May 19, 2025 10:29
@blakepettersson blakepettersson changed the title feat: add ability to use custom certs for email feat: add ability to use self-signed certs for email Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant