Skip to content

Conversation

@SpencerMckayQ
Copy link

  • pulls the trusted certificates from env: TRUSTED_CERTIFICATES_URL

Copilot AI review requested due to automatic review settings January 15, 2026 22:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for fetching trusted X.509 certificates from a remote URL to configure the agent's X509Module. The certificates URL is read from an environment variable (TRUSTED_CERTIFICATES_URL) and used during agent initialization.

Changes:

  • Added new getAgentModulesWithCertificates function that fetches certificates from a URL before creating agent modules
  • Modified agent setup to conditionally include X509Module when trusted certificates are provided
  • Updated agent initialization in useBifoldAgentSetup to use the new async function

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/core/src/utils/agent.ts Adds certificate fetching logic, updates module configuration to support X509Module, exports new async function
packages/core/src/types/config.ts Adds trustedCertificatesUrl configuration field
packages/core/src/index.ts Exports new getAgentModulesWithCertificates function
packages/core/src/hooks/useBifoldAgentSetup.ts Updates agent initialization to fetch certificates and adds config dependency
packages/core/src/container-impl.ts Sets default value for trustedCertificatesUrl from environment variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@GrahamS-Quartech GrahamS-Quartech left a comment

Choose a reason for hiding this comment

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

Highlighted issue prevented build.

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.

3 participants