Skip to content

Conversation

@AndrewChubatiuk
Copy link
Contributor

@AndrewChubatiuk AndrewChubatiuk commented Sep 11, 2025

depends on #5
fixes #656

Describe Your Changes

show properly tenant information based on response headers while querying /select/vmui/config.json:

  • if AccountID and ProjectID response headers are set tenant information is displayed as a static label, which doesn't allow to select custom tenant
  • if VL-Disable-Tenant-Controls response header is set to true tenant information is hidden on VMUI.

Please provide a brief description of the changes you made. Be as specific as possible to help others understand the purpose and impact of your modifications.

Checklist

The following checks are mandatory:


## tip

* FEATURE: [web UI](https://docs.victoriametrics.com/victorialogs/querying/#web-ui): set proper tenant information, when `AccountID` and `ProjectID` headers are set by a proxy or completely hide it in UI if `-select.disableTenantResponseHeaders` flag is set. See [#656](https://github.com/VictoriaMetrics/VictoriaLogs/issues/656)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the pull request misses the implementation for the -select.disableTenantResponseHeaders command-line flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added it here as it introduces this vmui feature config

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@valyala completely removed -select.disableTenantResponseHeaders flag as this behaviour can be fully controlled by vmauth, updated PR description

@AndrewChubatiuk AndrewChubatiuk force-pushed the properly-display-or-hide-tenant-info branch from f678a2a to d310e59 Compare September 12, 2025 12:57
Copy link
Contributor

@arturminchukov arturminchukov left a comment

Choose a reason for hiding this comment

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

LGTM!

@AndrewChubatiuk AndrewChubatiuk force-pushed the properly-display-or-hide-tenant-info branch from d310e59 to ff72e15 Compare September 17, 2025 11:35
@AndrewChubatiuk AndrewChubatiuk merged commit 97ffbff into master Sep 17, 2025
2 checks passed
@AndrewChubatiuk AndrewChubatiuk deleted the properly-display-or-hide-tenant-info branch September 17, 2025 11:40
valyala added a commit that referenced this pull request Sep 17, 2025
…D headers are set by proxy or remove it completely (#664)"

This reverts commit 97ffbff.

Reason for revert: this functionality depends on the commit 2d4b343 , which is going to be reverted.
The reason for reverting the 2d4b343 is that it mixes multiple unrelated features in a single commit.

This functionality must be implemented in a distinct pull request dedicated solely
for this functionality at both VictoriaLogs server side and VictoriaLogs web UI.

Updates #664
Updates #5
Updates #656
@valyala
Copy link
Contributor

valyala commented Sep 17, 2025

FYI, this pull request has been reverted in 0463c2a . See the commit message description for details why this pull request has been reverted.

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.

vmui: handle ProjectID AccountID response headers

3 participants