Skip to content

Complete importable SDK, explicit compatibility and authentication hooks - #4

Merged
vvbbnn00 merged 2 commits into
ShanghaitechGeekPie:devfrom
nanakusa-electronics:codex/geektrust-sdk-integration
Oct 5, 2026
Merged

vvbbnn00 merged 2 commits into
ShanghaitechGeekPie:devfrom
nanakusa-electronics:codex/geektrust-sdk-integration

Conversation

@2018wzh

@2018wzh 2018wzh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

The merged client package still uses the local geektrust module path, preventing downstream Go modules from importing a published revision. This updates the module and imports to github.com/ShanghaitechGeekPie/geektrust and completes the public SDK integration needed by FlexConnect 2.0.

Deployment-specific behavior is explicitly configured through deployment.Compatibility, with strict defaults and no hostname-based presets. This covers application/gateway fallbacks, TLS server name, gateway-group behavior, TCP-to-L3 fallback and optional process identity. Removing options also removes their behavior when restoring a session. Explicit gateway rejection remains terminal.

The public auth package provides cancellable, deadline-bound SMS challenges and a controller-login hook. SDK capabilities distinguish implementation support from server authorization. Options.CheckTarget lets an embedder reject a resolved TCP, UDP or ICMP destination before transport opens, without expanding controller policy or moving OS routing into the library.

Validation: go test ./... and go vet ./... pass on Windows; focused FlexConnect integration and race tests pass. ECNU Passkey login, gateway setup, UDP/TCP DNS and HTTPS 200 passed after rebasing onto v0.2.1-rc1. That live session did not require SMS; SMS interaction is covered by tests. No native three-platform TUN acceptance is claimed.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vvbbnn00

vvbbnn00 commented Oct 5, 2026

Copy link
Copy Markdown
Member

Thanks for the PR.
We’ll merge this PR into dev branch first and continue refining and validating the changes there.
The configuration format and public interfaces have accumulated some legacy design decisions, and some responsibilities and parameter boundaries are still unclear.
To make future maintenance easier, we may refactor both the configuration format and the public API. The current design should therefore be considered provisional.
When that happens, we’ll document the API differences relative to v0.2.0-rc1, along with the configuration and usage changes, to help downstream projects migrate. Please watch for further updates.

Thanks again for your contributions!

@vvbbnn00
vvbbnn00 changed the base branch from main to dev October 5, 2026 16:23
@vvbbnn00
vvbbnn00 merged commit 5bb65f9 into ShanghaitechGeekPie:dev Oct 5, 2026
5 checks passed
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