Skip to content

Fix/restore health identity#2978

Merged
ZaynJarvis merged 2 commits into
volcengine:mainfrom
dfwgj:fix/restore-health-identity
Jul 3, 2026
Merged

Fix/restore health identity#2978
ZaynJarvis merged 2 commits into
volcengine:mainfrom
dfwgj:fix/restore-health-identity

Conversation

@dfwgj

@dfwgj dfwgj commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

Related Issue

Fixes #2977

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

wugj and others added 2 commits July 3, 2026 14:17
The /health endpoint was refactored in volcengine#2503 which removed the identity
resolution logic. This caused the frontend dashboard to show 'Usage/Audit
未初始化' because the role field was missing from the response.

Restored the identity resolution so that /health returns account_id,
user_id, and role when an API key is provided.

Co-Authored-By: Claude <noreply@anthropic.com>
- Test that /health returns identity info when API key is provided
- Test that /health omits identity info when no API key is provided

Co-Authored-By: Claude <noreply@anthropic.com>

@ZaynJarvis ZaynJarvis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@ZaynJarvis ZaynJarvis merged commit 0279102 into volcengine:main Jul 3, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: /health endpoint no longer returns user identity after #2503 refactor

2 participants