AnyConnect: endpoint hangs in connecting forever after SubmitOpenConnectAuthResponse(form)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- go, grpc
- Domain
- backend-api-design, networking
Research direction
Start at daemon.StartedService/SubmitOpenConnectAuthResponse and trace the response case form through the authentication reply and connection state handling. Reproduce with the reported sing-box 1.14.3 and sing-openconnect v0.1.1-2975728 setup, then inspect the logs around form submission. Done when a valid form either establishes the tunnel or reports a client termination reason instead of hanging in connecting.
Written by the indexing model from the issue text.
Description
Problem
When the ASA presents a login form challenge (waiting for authentication, fields username/password/group_list), submitting it via the API (daemon.StartedService/SubmitOpenConnectAuthResponse, response case form) is accepted (grpc OK, no error), but the endpoint then stays in connecting state forever — no further log output, no established, no client terminated, no retry. Observed with both CSD-protected (VIP) and plain (OUTSIDE) tunnel groups.
Repro (sing-box 1.14.3 + sing-openconnect v0.1.1-2975728)
- Config: openconnect endpoint, username/password set, csd wrapper present.
- Endpoint reaches
waiting for authentication(form challenge with submission keys likemain:username:2, selectmain:group_list:1whose value must be the tunnel-group name, e.g.TG-...-OUTSIDE). - Submit the form (correct keys/values; wrong keys produce explicit grpc errors, so the encoding is verified):
unknown openconnect authentication submission key: username→ fixed keysinvalid openconnect authentication selection ...→ fixed value- correct submit → grpc OK
- Result: endpoint
connectingindefinitely; CSD wrapper (if the group demands hostscan) runs once before the form and never again; the server side does not complete either. A restart is required to get a new challenge.
Expected
After a form submission the auth-reply is sent and the endpoint either connects (anyconnect tunnel established) or fails with client terminated: <reason>.
Note
The interactive dashboard shows the same behavior (Continue clicked manually → connected once in ~30 attempts, sessions usually dropped seconds later; often the accept simply hangs).
- Dominant language
- Go
- Stars
- 5
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SagerNet/sing-openconnect
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in SagerNet/sing-openconnect
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opensandbox-group/OpenSandbox#3278 ·
Maintainers usually reply within 1 day
-
type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nightgauge/nightgauge#3819 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
jasonfen/terminal-space-program#1075 ·
Maintainers usually reply within 1 day