diff --git a/cmd/backrest/backrest.go b/cmd/backrest/backrest.go index c7f83dd3..635e6e5a 100644 --- a/cmd/backrest/backrest.go +++ b/cmd/backrest/backrest.go @@ -149,7 +149,10 @@ func main() { apiAuthenticationHandler := api.NewAuthenticationHandler(authenticator) mux := http.NewServeMux() - mux.Handle(v1connect.NewAuthenticationHandler(apiAuthenticationHandler)) + if cfg.GetMultihost() != nil { + // alpha feature, only available if the user manually enables it in the config. + mux.Handle(v1connect.NewAuthenticationHandler(apiAuthenticationHandler)) + } mux.Handle(v1connect.NewBackrestSyncServiceHandler(syncHandler)) backrestHandlerPath, backrestHandler := v1connect.NewBackrestHandler(apiBackrestHandler) mux.Handle(backrestHandlerPath, auth.RequireAuthentication(backrestHandler, authenticator)) diff --git a/webui/src/components/LogView.tsx b/webui/src/components/LogView.tsx index f7807f0f..bff63f2b 100644 --- a/webui/src/components/LogView.tsx +++ b/webui/src/components/LogView.tsx @@ -37,7 +37,7 @@ export const LogView = ({ logref }: { logref: string }) => { }); } } catch (e) { - setLines((prev) => [...prev, `Fetch log error: ${e}`]); + // setLines((prev) => [...prev, `Fetch log error: ${e}`]); } })(); diff --git a/webui/src/components/OperationList.tsx b/webui/src/components/OperationListView.tsx similarity index 98% rename from webui/src/components/OperationList.tsx rename to webui/src/components/OperationListView.tsx index 0aa4d4b4..6bea70e1 100644 --- a/webui/src/components/OperationList.tsx +++ b/webui/src/components/OperationListView.tsx @@ -14,7 +14,7 @@ import { toJsonString } from "@bufbuild/protobuf"; // OperationList displays a list of operations that are either fetched based on 'req' or passed in via 'useBackups'. // If showPlan is provided the planId will be displayed next to each operation in the operation list. -export const OperationList = ({ +export const OperationListView = ({ req, useOperations, showPlan, diff --git a/webui/src/components/OperationRow.tsx b/webui/src/components/OperationRow.tsx index ff933b8e..2a5a0167 100644 --- a/webui/src/components/OperationRow.tsx +++ b/webui/src/components/OperationRow.tsx @@ -34,7 +34,6 @@ import { MessageInstance } from "antd/es/message/interface"; import { backrestService } from "../api"; import { useShowModal } from "./ModalManager"; import { useAlertApi } from "./Alerts"; -import { OperationList } from "./OperationList"; import { displayTypeToString, getTypeForDisplay, @@ -44,6 +43,7 @@ import { OperationIcon } from "./OperationIcon"; import { LogView } from "./LogView"; import { ConfirmButton } from "./SpinButton"; import { create } from "@bufbuild/protobuf"; +import { OperationListView } from "./OperationListView"; export const OperationRow = ({ operation, @@ -133,7 +133,9 @@ export const OperationRow = ({ const title: React.ReactNode[] = [