Repository navigation
Add core_agent_ca_cert config option to pass --ca-cert to the Core Agent - #146
Merged
Merged
Conversation
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
Merged
mitchh456
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
core_agent_ca_certconfig option to pass--ca-certto the Core AgentAdds a
core_agent_ca_certconfiguration 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-fileargv handling inAgentManager:lib/scout_apm/config/defaults.ex— registercore_agent_ca_cert(defaultnil).lib/scout_apm/core/agent_manager.ex— new privatemaybe_add_ca_cert/1returnsargs ++ ["--ca-cert", path]when configured (elseargs), appended to the launch args inrun/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