Skip to content

[CLS-83939] charts: inject custom CA cert into Fargate injected agent#323

Open
DorEdelman wants to merge 1 commit intomasterfrom
dore-fargate-custom-ca
Open

[CLS-83939] charts: inject custom CA cert into Fargate injected agent#323
DorEdelman wants to merge 1 commit intomasterfrom
dore-fargate-custom-ca

Conversation

@DorEdelman
Copy link
Copy Markdown
Contributor

@DorEdelman DorEdelman commented May 6, 2026

Summary

  • Mount the custom CA secret as a volume in the injection ConfigMap so injected agents on EKS Fargate can trust a private console CA
  • Add S1_CUSTOM_CA_SECRET_NAME env var to the helper statefulset (only when the chart creates the secret, not when the customer provides one via custom_ca_name) so the helper can propagate the secret to target namespaces synchronously during webhook injection

Test plan

  • Deploy with configuration.custom_ca=true + a PEM file on EKS Fargate; verify injected agent pod mounts ca-certs volume and reaches Running state
  • Verify S1_CUSTOM_CA_SECRET_NAME env var is present on helper pod when chart creates the secret
  • Deploy with configuration.custom_ca_name=my-existing-ca; verify S1_CUSTOM_CA_SECRET_NAME is NOT set on helper pod (customer-managed secret case)
  • Deploy with configuration.custom_ca=false; verify no ca-certs volume or mount appears anywhere

@DorEdelman DorEdelman requested a review from natishauli May 6, 2026 12:00
value: {{ include "helper.rbac.name" . }}
{{- end }}
{{- end }}
{{- if include "custom_ca.secret.create" . }}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to {{- define "helper.config" -}} in _helper.tpl under {{- if .Values.configuration.env.injection.enabled -}}

Mount the custom CA secret as a volume in the injection ConfigMap so
injected agents on EKS Fargate can trust a private console CA. Add
S1_CUSTOM_CA_SECRET_NAME env var to the helper (only when the chart
creates the secret) so the helper can propagate it to target namespaces
during webhook injection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DorEdelman DorEdelman force-pushed the dore-fargate-custom-ca branch from 3ac89b0 to a1f98f2 Compare May 6, 2026 14:17
@DorEdelman DorEdelman requested a review from natishauli May 7, 2026 10:02
@DorEdelman DorEdelman changed the title charts: inject custom CA cert into Fargate injected agent [CLS-83939] charts: inject custom CA cert into Fargate injected agent May 7, 2026
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.

2 participants