From 7c753bd09a931a5d42cee4910d63a138250fcf12 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 1 Nov 2023 20:00:16 +0000 Subject: [PATCH] update wiki pages --- CHANGELOG.md | 1 + _includes/extra/script.js | 27 ++++++++++++++++++++++----- _includes/extra/styles.scss | 13 +++++++++++++ operator/CHANGELOG.md | 7 +++++++ operator/vars.md | 2 +- vmauth.md | 4 ++++ 6 files changed, 48 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74bae86..7868e94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ The sandbox cluster installation is running under the constant load generated by * BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): do not print redundant error logs when failed to scrape consul or nomad target. See [this pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5239). * BUGFIX: [vmstorage](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): prevent deleted series to be searchable via `/api/v1/series` API if they were re-ingested with staleness markers. This situation could happen if user deletes the series from the target and from VM, and then vmagent sends stale markers for absent series. Thanks to @ilyatrefilov for the [issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5069) and [pull request](https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5174). * BUGFIX: [vmstorage](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html): log warning about switching to ReadOnly mode only on state change. Before, vmstorage would log this warning every 1s. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5159) for details. +* BUGFIX: [vmauth](https://docs.victoriametrics.com/vmauth.html): show browser authorization window for unauthorized requests to unsupported paths if the `unauthorized_user` section is specified. This allows properly authorizing the user. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5236) for details. * BUGFIX: [vmui](https://docs.victoriametrics.com/#vmui): fix the `Disable cache` toggle at `JSON` and `Table` views. Previously response caching was always enabled and couldn't be disabled at these views. ## [v1.94.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.94.0) diff --git a/_includes/extra/script.js b/_includes/extra/script.js index f5d1f92..08c736c 100644 --- a/_includes/extra/script.js +++ b/_includes/extra/script.js @@ -10,19 +10,36 @@ window.addEventListener("load", function () { href = hash } const sidebar = document.querySelector('.sidebar .toctree'); - const selector = function(href) {return `a[href="${href}"]`}; + const selector = function (href) { + return `a[href="${href}"]` + }; let element = sidebar.querySelector(selector(href)); if (!element) { href = window.location.pathname; element = document.querySelector(selector(href)); } if (element) { - element.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" }); + element.scrollIntoView({behavior: "smooth", block: "center", inline: "nearest"}); } + addNewDocsButton() }); +function addNewDocsButton() { + let navigationBox = document.querySelector(".navigation-top"); + if (navigationBox) { + let newDocsButton = document.createElement('a'); + newDocsButton.appendChild(document.createTextNode("Try New Docs")); + newDocsButton.className = "btn"; + newDocsButton.title = "Try New Docs"; + newDocsButton.href = "https://new.docs.victoriametrics.com"; + let lastA = document.querySelector(".navigation-top > a"); + if (lastA) { + lastA.parentNode.insertBefore(newDocsButton, lastA); + } + } +} -$(document).on("click", '.shift li.toc a', function(e) { +$(document).on("click", '.shift li.toc a', function (e) { let segments = this.href.split('#'); if (segments.length < 2) { /* ignore links without anchor */ @@ -32,8 +49,8 @@ $(document).on("click", '.shift li.toc a', function(e) { e.preventDefault(); $("#toggle").click(); setTimeout(function () { - location.hash = segments.pop(); - },1) + location.hash = segments.pop(); + }, 1) }); /* Clipboard-copy snippet from https://github.com/marcoaugustoandrade/jekyll-clipboardjs/blob/master/copy.js */ diff --git a/_includes/extra/styles.scss b/_includes/extra/styles.scss index e42980e..7344cb1 100644 --- a/_includes/extra/styles.scss +++ b/_includes/extra/styles.scss @@ -49,3 +49,16 @@ .markdown-body h4 { font-family: 'Lato', sans-serif !important; } + +// try new page button +.navigation-top { + min-height: 32px; +} + +.navigation-top > a:last-child{ + padding-left: 5px +} + +.navigation-top > .btn { + margin-left: auto +} \ No newline at end of file diff --git a/operator/CHANGELOG.md b/operator/CHANGELOG.md index 490e54e..e577aad 100644 --- a/operator/CHANGELOG.md +++ b/operator/CHANGELOG.md @@ -13,7 +13,14 @@ menu: ## Next release +- TODO + + +## [v0.39.1](https://github.com/VictoriaMetrics/operator/releases/tag/v0.39.1) - 1 Nov 2023 + +- [vmuser](./api.md#vmuser): adds new paths for vminsert/vmselect routing with enabled dynamic discovery feature for `VMUser`. See [this PR](https://github.com/VictoriaMetrics/operator/pull/791) for details. - [vmcluster](./api.md#vmcluster): from now on operator passes `-replicationFactor` (if it set in `vmcluster`) for `vmselect`. See [this issue](https://github.com/VictoriaMetrics/operator/issues/778). +- [vmagent](./api.md#vmagent): updated dependency for properly parsing chained `if` expressions in validation webhook. ## [v0.39.0](https://github.com/VictoriaMetrics/operator/releases/tag/v0.39.0) - 4 Oct 2023 diff --git a/operator/vars.md b/operator/vars.md index 01f43f1..d5af292 100644 --- a/operator/vars.md +++ b/operator/vars.md @@ -10,7 +10,7 @@ menu: # Auto Generated vars for package config - updated at Wed Nov 1 08:12:03 UTC 2023 + updated at Wed Nov 1 15:52:40 UTC 2023 | varible name | variable default value | variable required | variable description | diff --git a/vmauth.md b/vmauth.md index 7ee675c..9e68019 100644 --- a/vmauth.md +++ b/vmauth.md @@ -233,6 +233,8 @@ users: # For example, request to http://vmauth:8427/non/existing/path are proxied: # - to http://default1:8888/unsupported_url_handler?request_path=/non/existing/path # - or http://default2:8888/unsupported_url_handler?request_path=/non/existing/path + # + # Regular expressions are allowed in `src_paths` entries. - username: "foobar" url_map: - src_paths: @@ -259,6 +261,8 @@ users: # Requests are routed in round-robin fashion between `url_prefix` backends. # The deny_partial_response query arg is added to all the routed requests. # The requests are re-tried if url_prefix backends send 500 or 503 response status codes. +# Note that the unauthorized_user section takes precedence when processing a route without credentials, +# even if such a route also exists in the users section (see https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5236). unauthorized_user: url_prefix: - http://vmselect-az1/?deny_partial_response=1