feat(sdk/go): add gateway client, auth, and fakes (2/3)#2226
Draft
rhuss wants to merge 1 commit into
Draft
Conversation
Add gateway auto-discovery client, OIDC authentication flows, and fake implementations for testing. Key additions: - Gateway client with CLI config file parsing and auto-discovery - OIDC auth code and device code token flows - Fake client implementations mirroring real validation behavior - Edge client for WebSocket-based gateway connections - Additional converter and type coverage Builds on PR 1/3 (foundation and core clients). Merge PR 1/3 first. Resolves NVIDIA#2044 Signed-off-by: Roland Huß <roland@jolokia.org> Assisted-By: 🤖 Claude Code
This was referenced Jul 11, 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.
Summary
Add gateway auto-discovery client, OIDC authentication flows, and fake implementations for testing.
Part 2 of 3 for #2044. Depends on PR #2225 (1/3, foundation). Please merge that first.
What's included
gateway/): Reads~/.config/openshell/CLI config, resolves gateway address and auth automatically. This is the main entry point most users will use.oidc/): OpenID Connect discovery, device-code flow, auth-code flow, token management with automatic refresh.edge/): Cloudflare tunnel integration for edge API access via WebSocket transport.fake/): In-memory fakes that mirror real client validation behavior. Consumers can write tests againstClientInterfacewithout a gRPC server.70 files | Resolves #2044