Skip to content

Add core_agent_ca_cert config option to pass --ca-cert to the Core Agent - #146

Merged
jrothrock merged 1 commit into
masterfrom
add-core-agent-ca-cert
Oct 19, 2026
Merged

jrothrock merged 1 commit into
masterfrom
add-core-agent-ca-cert

Conversation

@jrothrock

Copy link
Copy Markdown
Collaborator

Add core_agent_ca_cert config option to pass --ca-cert to the Core Agent

Adds a core_agent_ca_cert configuration option that is passed to the Core Agent as --ca-cert <path> when it is launched. This lets the Core Agent trust an additional CA certificate (e.g. a private/self-signed CA presented by a corporate TLS-terminating proxy) when reporting over HTTPS.

Port of scout_apm_python#855.

Wiring

Mirrors the existing --log-file / --config-file argv handling in AgentManager:

  • lib/scout_apm/config/defaults.ex — register core_agent_ca_cert (default nil).
  • lib/scout_apm/core/agent_manager.ex — new private maybe_add_ca_cert/1 returns args ++ ["--ca-cert", path] when configured (else args), appended to the launch args in run/1.
  • lib/scout_apm/application.ex — include the key in the debug config log.

Behavior

When unset, no flag is added. When set, the path is forwarded verbatim to the Core Agent, which adds it as an extra trusted root.

🤖 Generated with Claude Code

Adds a `core_agent_ca_cert` configuration option that is passed to the
Core Agent as `--ca-cert <path>` when it is launched. This lets the Core
Agent trust an additional CA certificate (e.g. a private/self-signed CA
presented by a corporate TLS-terminating proxy) when reporting over HTTPS.

Mirrors the existing --log-file / --config-file argv handling in
AgentManager via a new maybe_add_ca_cert/1 helper appended to the launch
args. When unset, no flag is added; when set, the path is forwarded
verbatim to the Core Agent.

Ports scout_apm_python#855.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Sep 21, 2026
@jrothrock
jrothrock merged commit 807c5db into master Oct 19, 2026
2 checks passed
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