Skip to content

fix/sangfor sip endpoints#206

Merged
xiami762 merged 2 commits intomainfrom
fix/sangfor-sip-endpoints
Apr 29, 2026
Merged

fix/sangfor sip endpoints#206
xiami762 merged 2 commits intomainfrom
fix/sangfor-sip-endpoints

Conversation

@duguwanglong
Copy link
Copy Markdown
Contributor

fix(sangfor_sip): align with v9.2 spec and rename plugin dir to v92

  • Rename plugin dir sangfor_sip → sangfor_sip_v92 (avoid . in dir
    name; service_id stays "sangfor_sip" so existing config & secrets
    continue to work unchanged).
  • Add version: "9.2" and defaults.product_version: "9.2" to
    _provider.yaml, mirroring ngsoc convention.
  • Fix login auth: desc field now sent as auth_desc (was empty
    string, breaking sha1 signature) and login URL appends
    ?verify=false per 92-version spec.
  • Correct endpoint names to lowercase per 92-version spec:
    riskBusiness→riskbusiness, secEvent→riskevent,
    weakPassword→weakpasswd, vulInfo→hole,
    plainTextInfo→plaintexttransmission.
  • Add risk_terminal action (/data/riskterminal) and expose it via
    sangfor_sip_risk.yaml action parameter.
  • Cap maxCount in _fetch_data: 10000 normal / 5000 vulnerability;
    align assets.yaml default & description accordingly.
  • Fix terminal classfy1_id description: 2 → 2,7,8.

@duguwanglong duguwanglong requested a review from xiami762 April 29, 2026 05:25
- Rename plugin dir sangfor_sip -> sangfor_sip_v92 (avoid `.` in dir
  name; service_id stays "sangfor_sip" so existing config & secrets
  continue to work unchanged).
- Add `version: "9.2"` and `defaults.product_version: "9.2"` to
  _provider.yaml, mirroring ngsoc convention.
- Fix login auth: `desc` field now sent as `auth_desc` (was empty
  string, breaking sha1 signature) and login URL appends
  `?verify=false` per 92-version spec.
- Correct endpoint names to lowercase per 92-version spec:
  riskBusiness->riskbusiness, secEvent->riskevent,
  weakPassword->weakpasswd, vulInfo->hole,
  plainTextInfo->plaintexttransmission.
- Add risk_terminal action (/data/riskterminal) and expose it via
  sangfor_sip_risk.yaml `action` parameter.
- Cap maxCount in _fetch_data: 10000 normal / 5000 vulnerability;
  align assets.yaml default & description accordingly.
- Fix terminal classfy1_id description: 2 -> 2,7,8.
@duguwanglong duguwanglong force-pushed the fix/sangfor-sip-endpoints branch from 8eab428 to f4e9723 Compare April 29, 2026 05:30
- Add `_resolve_verify_ssl` helper that reads `verify_ssl` /
  `ssl_verify` / `custom_settings.verify_ssl` (matches the
  onesec/qingteng/ngtip pattern from PR #193). The bottom
  "SSL 验证" form toggle writes to `custom_settings.verify_ssl`,
  which the handler previously ignored — causing the toggle to
  have no effect at runtime.
- Drop the standalone `verify_ssl` credential_field from
  _provider.yaml so the WebUI no longer renders a duplicate
  text input next to the bottom SSL toggle.
- Refresh _provider.yaml notes to describe the new SSL toggle
  resolution precedence.
@xiami762 xiami762 merged commit d608e33 into main Apr 29, 2026
2 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.

2 participants