Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): allow users to configure agents to connect to insecure control plane or skip ssl cert verification #3941

Merged
merged 6 commits into from
Jul 29, 2024

Conversation

schoren
Copy link
Contributor

@schoren schoren commented Jul 25, 2024

This PR adds the --insecure and --skip-verify flags for the agent command.

  • --insecure allows to connect to an unencrypted control plane connection (a.k.a HTTP instead of HTTP(S)).
  • --skip-verify allows the CLI to talk to an api endpoint with an invalid ssl cert, like a self signed one.

Example:

tracetest start --server-url https://tracetest.localdev:30000 --skip-verify

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

Add your loom video here if your work can be visualized

Copy link

vercel bot commented Jul 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 7:29pm

if cliConfig.SkipVerify {
skipVerify = true
}

// To avoid a ciruclar reference initialization when setting up the registry and its resources,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// To avoid a ciruclar reference initialization when setting up the registry and its resources,
// To avoid a circular reference initialization when setting up the registry and its resources,

cli/config/configurator.go Outdated Show resolved Hide resolved
@schoren schoren merged commit 9f319c5 into main Jul 29, 2024
38 checks passed
@schoren schoren deleted the allow-custom-domains-invalid-ssl branch July 29, 2024 19:46
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