Admin UI for Longhorn Manager
Prerequisites:
Setup:
git clone 'https://github.com/longhorn/longhorn-ui'
cd 'longhorn-ui'
npm ciRun development server pointed at some Longhorn Manager API
LONGHORN_MANAGER_IP="http://longhorn:9500/" npm run devIf you are using Gnome as desktop environment, then you should use
DE=generic LONGHORN_MANAGER_IP="http://longhorn:9500/" npm run devCompiling for distribution
npm run buildBuild and run a docker image, longhorn UI will listen on localhost:8000
make
make LONGHORN_MANAGER_IP=http://longhorn:9500 runThe longhornio/longhorn-ui images are signed by the build workflow with Cosign keyless signing: right after an image is pushed, the digest of its multi-arch image index is signed using the GitHub Actions OIDC identity of the workflow, and the signature is stored in the registry and recorded in the Rekor transparency log. Release images and branch builds (master and v* branches, published as <branch>-head) are signed; images published before signing was introduced are not.
Verify an image with cosign v3.1.0 or later. The exact identity ties the signature to the release you expect, so an image signed for another tag is rejected:
cosign verify docker.io/longhornio/longhorn-ui:${LonghornVersion} \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity "https://github.com/longhorn/longhorn-ui/.github/workflows/build.yml@refs/tags/${LonghornVersion}"For a branch build, use the branch ref in the identity, such as build.yml@refs/heads/master for master-head.
Only the multi-arch image index is signed: verify an image by its tag or index digest, not by the digest of a single-platform manifest.
A mirrored image, such as docker.io/rancher/mirrored-longhornio-longhorn-ui, keeps the same digest. If its signature was not mirrored with it, read the signature from the original repository:
COSIGN_REPOSITORY=docker.io/longhornio/longhorn-ui cosign verify <mirrored-image> ...To mirror an image together with its signature, copy its OCI referrers as well, for example with regctl image copy --referrers.
Please check the main repo for the contributing guide.
Copyright (c) 2014-2019 The Longhorn Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.