Skip to content

feat: allow insecure grpc option for local testing#65

Open
anna-singleton-resolver wants to merge 5 commits into
mainfrom
feature/allow-insecure-cli-client
Open

feat: allow insecure grpc option for local testing#65
anna-singleton-resolver wants to merge 5 commits into
mainfrom
feature/allow-insecure-cli-client

Conversation

@anna-singleton-resolver
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

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

Adds an explicit “unsafe/insecure” toggle to the Athena gRPC client to support local development scenarios where TLS isn’t used, and wires that toggle through the example CLI.

Changes:

  • Introduces UnsafeAllowInsecure in AthenaApiClientConfiguration.
  • Switches gRPC channel credential setup to optionally use ChannelCredentials.Insecure and sets UnsafeUseInsecureChannelCallCredentials accordingly.
  • Adds --unsafe-insecure to the example CLI and passes it into client configuration for multiple commands.

Reviewed changes

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

Show a summary per file
File Description
src/Resolver.Athena.Client/ApiClient/AthenaApiClientConfiguration.cs Adds configuration flag to permit insecure connections (intended for local testing).
src/Resolver.Athena.Client/ApiClient/AthenaApiClient.cs Uses the new flag to choose secure vs insecure gRPC channel credentials and channel options.
examples/Resolver.Athena.CliClient/Program.cs Registers the new CLI option on the root command.
examples/Resolver.Athena.CliClient/CliUtilities.cs Defines the new --unsafe-insecure option.
examples/Resolver.Athena.CliClient/ListDeploymentsCommand.cs Passes the CLI insecure flag into AddAthenaClient configuration.
examples/Resolver.Athena.CliClient/ClassifySingleCommand.cs Passes the CLI insecure flag into AddAthenaClient configuration.
examples/Resolver.Athena.CliClient/ClassifyCommand.cs Passes the CLI insecure flag into AddAthenaClient configuration.
examples/Resolver.Athena.CliClient/ClassifyDataflowCommand.cs Passes the CLI insecure flag into AddAthenaDataflowClient configuration.

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

Comment thread src/Resolver.Athena.Client/ApiClient/AthenaApiClient.cs Outdated
Comment thread examples/Resolver.Athena.CliClient/CliUtilities.cs
Comment thread src/Resolver.Athena.Client/ApiClient/AthenaApiClient.cs
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.


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

Comment thread test/Resolver.Athena.Tests/Client/AthenaApiClientTests.cs
Comment thread src/Resolver.Athena.Client/ApiClient/AthenaApiClient.cs
Comment thread examples/Resolver.Athena.CliClient/CliUtilities.cs
@corpo-iwillspeak corpo-iwillspeak enabled auto-merge (squash) March 30, 2026 13:53
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