Skip to content

feat: add CLI context OpenAPI#4811

Open
huanghongbo-hhb wants to merge 1 commit into
koderover:mainfrom
huanghongbo-hhb:feat/zadig-cli-context
Open

feat: add CLI context OpenAPI#4811
huanghongbo-hhb wants to merge 1 commit into
koderover:mainfrom
huanghongbo-hhb:feat/zadig-cli-context

Conversation

@huanghongbo-hhb

@huanghongbo-hhb huanghongbo-hhb commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add authenticated GET /openapi/system/cli-context for Zadig CLI clients.
  • Provide an authoritative source for user identity, edition, features, and server version.

Main Changes

  • Require a parseable Bearer identity before loading authorization context.
  • Return only contracted principal fields and omit license payload details.
  • Map edition, license status, features, version, and request ID from existing services.

Risk / Compatibility

  • Additive endpoint; existing routes and response contracts are unchanged.
  • License service availability is required for a successful response.

Test

  • Verified service mapping and handler route/auth behavior locally.
  • Full service tests remain blocked by existing workwx.go vet errors.
    Contact: huanghongbo@koderover.com

This change is Reviewable

Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant