diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea7c393..5d4decb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,5 @@ +# https://www.truenas.com/software-status/ + name: CI on: @@ -13,14 +15,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} build-npm-linux-amd64: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 16 @@ -29,7 +31,7 @@ jobs: run: | ci/bin/build.sh - name: upload build - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: node-modules-linux-amd64 path: node_modules-linux-amd64.tar.gz @@ -38,7 +40,7 @@ jobs: build-npm-windows-amd64: runs-on: windows-2022 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 16 @@ -47,7 +49,7 @@ jobs: run: | ci\bin\build.ps1 - name: upload build - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: node-modules-windows-amd64 path: node_modules-windows-amd64.tar.gz @@ -67,8 +69,8 @@ jobs: - X64 - csi-sanity-synology steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -97,8 +99,8 @@ jobs: - X64 - csi-sanity-synology steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -113,39 +115,6 @@ jobs: SYNOLOGY_PASSWORD: ${{ secrets.SANITY_SYNOLOGY_PASSWORD }} SYNOLOGY_VOLUME: ${{ secrets.SANITY_SYNOLOGY_VOLUME }} - # api-based drivers - csi-sanity-truenas-scale-22_02: - needs: - - build-npm-linux-amd64 - strategy: - fail-fast: false - matrix: - config: - - truenas/scale/22.02/scale-iscsi.yaml - - truenas/scale/22.02/scale-nfs.yaml - # 80 char limit - - truenas/scale/22.02/scale-smb.yaml - runs-on: - - self-hosted - - Linux - - X64 - - csi-sanity-truenas - #- csi-sanity-zfs-generic - steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 - with: - name: node-modules-linux-amd64 - - name: csi-sanity - run: | - # run tests - ci/bin/run.sh - env: - TEMPLATE_CONFIG_FILE: "./ci/configs/${{ matrix.config }}" - TRUENAS_HOST: ${{ secrets.SANITY_TRUENAS_SCALE_22_02_HOST }} - TRUENAS_USERNAME: ${{ secrets.SANITY_TRUENAS_USERNAME }} - TRUENAS_PASSWORD: ${{ secrets.SANITY_TRUENAS_PASSWORD }} - csi-sanity-truenas-scale-22_12: needs: - build-npm-linux-amd64 @@ -164,8 +133,8 @@ jobs: #- csi-sanity-truenas - csi-sanity-zfs-generic steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -178,40 +147,6 @@ jobs: TRUENAS_USERNAME: ${{ secrets.SANITY_TRUENAS_USERNAME }} TRUENAS_PASSWORD: ${{ secrets.SANITY_TRUENAS_PASSWORD }} - # ssh-based drivers - csi-sanity-truenas-core-12_0: - needs: - - build-npm-linux-amd64 - strategy: - fail-fast: false - matrix: - config: - # 63 char limit - - truenas/core/12.0/core-iscsi.yaml - - truenas/core/12.0/core-nfs.yaml - # 80 char limit - - truenas/core/12.0/core-smb.yaml - runs-on: - - self-hosted - - Linux - - X64 - #- csi-sanity-truenas - - csi-sanity-zfs-generic - steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 - with: - name: node-modules-linux-amd64 - - name: csi-sanity - run: | - # run tests - ci/bin/run.sh - env: - TEMPLATE_CONFIG_FILE: "./ci/configs/${{ matrix.config }}" - TRUENAS_HOST: ${{ secrets.SANITY_TRUENAS_CORE_12_0_HOST }} - TRUENAS_USERNAME: ${{ secrets.SANITY_TRUENAS_USERNAME }} - TRUENAS_PASSWORD: ${{ secrets.SANITY_TRUENAS_PASSWORD }} - # ssh-based drivers csi-sanity-truenas-core-13_0: needs: @@ -231,8 +166,8 @@ jobs: #- csi-sanity-truenas - csi-sanity-zfs-generic steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -256,14 +191,15 @@ jobs: - zfs-generic/iscsi.yaml - zfs-generic/nfs.yaml - zfs-generic/smb.yaml + - zfs-generic/nvmeof.yaml runs-on: - self-hosted - Linux - X64 - csi-sanity-zfs-generic steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -292,8 +228,8 @@ jobs: - X64 - csi-sanity-client steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -320,8 +256,8 @@ jobs: - X64 - csi-sanity-client steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-windows-amd64 - name: csi-sanity @@ -350,8 +286,8 @@ jobs: - X64 - csi-sanity-zfs-local steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-linux-amd64 - name: csi-sanity @@ -389,8 +325,8 @@ jobs: - X64 - csi-sanity-local-hostpath steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: ${{ matrix.npmartifact }} - name: csi-sanity @@ -413,8 +349,8 @@ jobs: - Windows - X64 steps: - - uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 with: name: node-modules-windows-amd64 - name: csi-sanity @@ -457,8 +393,7 @@ jobs: - determine-image-tag - csi-sanity-synology-dsm6 - csi-sanity-synology-dsm7 - - csi-sanity-truenas-scale-22_02 - - csi-sanity-truenas-core-12_0 + - csi-sanity-truenas-scale-22_12 - csi-sanity-truenas-core-13_0 - csi-sanity-zfs-generic - csi-sanity-client @@ -468,7 +403,7 @@ jobs: - csi-sanity-windows-node runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: docker build run: | export ARCH=$([ $(uname -m) = "x86_64" ] && echo "amd64" || echo "arm64") @@ -496,8 +431,7 @@ jobs: needs: - csi-sanity-synology-dsm6 - csi-sanity-synology-dsm7 - - csi-sanity-truenas-scale-22_02 - - csi-sanity-truenas-core-12_0 + - csi-sanity-truenas-scale-22_12 - csi-sanity-truenas-core-13_0 - csi-sanity-zfs-generic - csi-sanity-client @@ -519,7 +453,7 @@ jobs: nano_base_tag: ltsc2022 file: Dockerfile.Windows steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: docker build shell: bash run: | @@ -531,7 +465,7 @@ jobs: docker inspect democratic-csi-windows:${GITHUB_RUN_ID}-${{ matrix.core_base_tag }} docker save democratic-csi-windows:${GITHUB_RUN_ID}-${{ matrix.core_base_tag }} -o democratic-csi-windows-${{ matrix.core_base_tag }}.tar - name: upload image tar - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: democratic-csi-windows-${{ matrix.core_base_tag }}.tar path: democratic-csi-windows-${{ matrix.core_base_tag }}.tar @@ -546,7 +480,7 @@ jobs: - self-hosted - buildah steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/download-artifact@v3 with: name: democratic-csi-windows-ltsc2019.tar diff --git a/CHANGELOG.md b/CHANGELOG.md index 16fa8d5..3c27e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,39 @@ +# v1.8.3 + +Released 2023-04-02 + +- fix invalid `access_mode` logic (see #287) + +# v1.8.2 + +Released 2023-04-02 + +- more comprehensive support to manually set `access_modes` +- more intelligent handling of `access_modes` when `access_type=block` + - https://github.com/ceph/ceph-csi/blob/devel/examples/README.md#how-to-test-rbd-multi_node_multi_writer-block-feature + - others? allow this by default +- remove older versions of TrueNAS from ci + +# v1.8.1 + +Released 2023-02-25 + +- minor fixes +- updated `nvmeof` docs + +# v1.8.0 + +Released 2023-02-23 + +- `nvmeof` support + +# v1.7.7 + +Released 2022-10-17 + +- support `csi.access_modes` config value in all zfs-based drivers +- bump deps + # v1.7.6 Released 2022-08-06 diff --git a/Dockerfile b/Dockerfile index fb42b40..f6f2076 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,7 +75,7 @@ COPY --from=build /usr/local/lib/nodejs/bin/node /usr/local/bin/node # netbase is required by rpcbind/rpcinfo to work properly # /etc/{services,rpc} are required RUN apt-get update && \ - apt-get install -y netbase socat e2fsprogs exfatprogs xfsprogs btrfs-progs fatresize dosfstools ntfs-3g nfs-common cifs-utils fdisk gdisk cloud-guest-utils sudo rsync procps util-linux && \ + apt-get install -y netbase socat e2fsprogs exfatprogs xfsprogs btrfs-progs fatresize dosfstools ntfs-3g nfs-common cifs-utils fdisk gdisk cloud-guest-utils sudo rsync procps util-linux nvme-cli && \ rm -rf /var/lib/apt/lists/* # controller requirements diff --git a/README.md b/README.md index 52c21f1..d987f1f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ![Image](https://img.shields.io/docker/pulls/democraticcsi/democratic-csi.svg) -![Image](https://img.shields.io/github/workflow/status/democratic-csi/democratic-csi/CI?style=flat-square) +![Image](https://img.shields.io/github/actions/workflow/status/democratic-csi/democratic-csi/main.yml?branch=master&style=flat-square) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/democratic-csi)](https://artifacthub.io/packages/search?repo=democratic-csi) # Introduction @@ -24,6 +24,8 @@ have access to resizing, snapshots, clones, etc functionality. - `freenas-api-smb` experimental use with SCALE only (manages zfs datasets to share over smb) - `zfs-generic-nfs` (works with any ZoL installation...ie: Ubuntu) - `zfs-generic-iscsi` (works with any ZoL installation...ie: Ubuntu) + - `zfs-generic-smb` (works with any ZoL installation...ie: Ubuntu) + - `zfs-generic-nvmeof` (works with any ZoL installation...ie: Ubuntu) - `zfs-local-ephemeral-inline` (provisions node-local zfs datasets) - `zfs-local-dataset` (provision node-local volume as dataset) - `zfs-local-zvol` (provision node-local volume as zvol) @@ -36,7 +38,8 @@ have access to resizing, snapshots, clones, etc functionality. for all volumes) - `local-hostpath` (crudely provisions node-local directories) - `node-manual` (allows connecting to manually created smb, nfs, lustre, - oneclient, and iscsi volumes, see sample PVs in the `examples` directory) + oneclient, nvmeof, and iscsi volumes, see sample PVs in the `examples` + directory) - framework for developing `csi` drivers If you have any interest in providing a `csi` driver, simply open an issue to @@ -67,21 +70,21 @@ You should install/configure the requirements for both nfs and iscsi. ### cifs -``` -RHEL / CentOS +```bash +# RHEL / CentOS sudo yum install -y cifs-utils -Ubuntu / Debian +# Ubuntu / Debian sudo apt-get install -y cifs-utils ``` ### nfs -``` -RHEL / CentOS +```bash +# RHEL / CentOS sudo yum install -y nfs-utils -Ubuntu / Debian +# Ubuntu / Debian sudo apt-get install -y nfs-common ``` @@ -96,7 +99,7 @@ If you are running Kubernetes with rancher/rke please see the following: #### RHEL / CentOS -``` +```bash # Install the following system packages sudo yum install -y lsscsi iscsi-initiator-utils sg3_utils device-mapper-multipath @@ -135,32 +138,40 @@ sudo systemctl enable open-iscsi.service sudo service open-iscsi start sudo systemctl status open-iscsi ``` + #### [Talos](https://www.talos.dev/) + To use iscsi storage in kubernetes cluster in talos these steps are needed which are similar to the ones explained in https://www.talos.dev/v1.1/kubernetes-guides/configuration/replicated-local-storage-with-openebs-jiva/#patching-the-jiva-installation ##### Patch nodes + since talos does not have iscsi support by default, the iscsi extension is needed create a `patch.yaml` file with + ```yaml - op: add path: /machine/install/extensions value: - image: ghcr.io/siderolabs/iscsi-tools:v0.1.1 ``` + and apply the patch across all of your nodes + ```bash talosctl -e -n patch mc -p @patch.yaml ``` + the extension will not activate until you "upgrade" the nodes, even if there is no update, use the latest version of talos installer. VERIFY THE TALOS VERSION IN THIS COMMAND BEFORE RUNNING IT AND READ THE [OpenEBS Jiva](https://www.talos.dev/v1.1/kubernetes-guides/configuration/replicated-local-storage-with-openebs-jiva/#patching-the-jiva-installation). upgrade all of the nodes in the cluster to get the extension + ```bash talosctl -e -n upgrade --image=ghcr.io/siderolabs/installer:v1.1.1 ``` in your `values.yaml` file make sure to enable these settings -```yaml +```yaml node: hostPID: true driver: @@ -172,17 +183,47 @@ node: iscsiDirHostPath: /usr/local/etc/iscsi iscsiDirHostPathType: "" ``` + and continue your democratic installation as usuall with other iscsi drivers. - -### freenas-smb - -If using with Windows based machines you may need to enable guest access (even -if you are connecting with credentials) - +#### Privilged Namespace +democratic-csi requires privileged access to the nodes, so the namespace should allow for privileged pods. One way of doing it is via [namespace labels](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-namespace-labels/). +Add the followin label to the democratic-csi installation namespace `pod-security.kubernetes.io/enforce=privileged` ``` -Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters AllowInsecureGuestAuth -Value 1 -Restart-Service LanmanWorkstation -Force +kubectl label --overwrite namespace democratic-csi pod-security.kubernetes.io/enforce=privileged +``` + +### nvmeof + +```bash +# not required but likely helpful (tools are included in the democratic images +# so not needed on the host) +apt-get install -y nvme-cli + +# get the nvme fabric modules +apt-get install linux-generic + +# ensure the nvmeof modules get loaded at boot +cat < /etc/modules-load.d/nvme.conf +nvme +nvme-tcp +nvme-fc +nvme-rdma +EOF + +# load the modules immediately +modprobe nvme +modprobe nvme-tcp +modprobe nvme-fc +modprobe nvme-rdma + +# nvme has native multipath or can use DM multipath +# democratic-csi will gracefully handle either configuration +# RedHat recommends DM multipath (nvme_core.multipath=N) +cat /sys/module/nvme_core/parameters/multipath + +# kernel arg to enable/disable native multipath +nvme_core.multipath=N ``` ### zfs-local-ephemeral-inline @@ -237,17 +278,43 @@ linux nodes as well (using the `ntfs3` driver) so volumes created can be utilized by nodes with either operating system (in the case of `cifs` by both simultaneously). +If using any `-iscsi` driver be sure your iqns are always fully lower-case by +default (https://github.com/PowerShell/PowerShell/issues/17306). + Due to current limits in the kubernetes tooling it is not possible to use the `local-hostpath` driver but support is implemented in this project and will work as soon as kubernetes support is available. -``` +```powershell # ensure all updates are installed # enable the container feature Enable-WindowsOptionalFeature -Online -FeatureName Containers –All # install a HostProcess compatible kubernetes + +# smb support +# If using with Windows based machines you may need to enable guest access +# (even if you are connecting with credentials) +Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters AllowInsecureGuestAuth -Value 1 +Restart-Service LanmanWorkstation -Force + +# iscsi +# enable iscsi service and mpio as appropriate +Get-Service -Name MSiSCSI +Set-Service -Name MSiSCSI -StartupType Automatic +Start-Service -Name MSiSCSI +Get-Service -Name MSiSCSI + +# mpio +Get-WindowsFeature -Name 'Multipath-IO' +Add-WindowsFeature -Name 'Multipath-IO' + +Enable-MSDSMAutomaticClaim -BusType "iSCSI" +Disable-MSDSMAutomaticClaim -BusType "iSCSI" + +Get-MSDSMGlobalDefaultLoadBalancePolicy +Set-MSDSMGlobalLoadBalancePolicy -Policy RR ``` - https://kubernetes.io/blog/2021/08/16/windows-hostprocess-containers/ @@ -353,7 +420,7 @@ Issues to review: - https://jira.ixsystems.com/browse/NAS-108522 - https://jira.ixsystems.com/browse/NAS-107219 -### ZoL (zfs-generic-nfs, zfs-generic-iscsi, zfs-generic-smb) +### ZoL (zfs-generic-nfs, zfs-generic-iscsi, zfs-generic-smb, zfs-generic-nvmeof) Ensure ssh and zfs is installed on the nfs/iscsi server and that you have installed `targetcli`. @@ -367,7 +434,7 @@ unecessarily: - https://github.com/democratic-csi/democratic-csi/issues/151 (some notes on using delegated zfs permissions) -``` +```bash ####### nfs yum install -y nfs-utils systemctl enable --now nfs-server.service @@ -389,6 +456,77 @@ passwd smbroot (optional) # create smb user and set password smbpasswd -L -a smbroot + +####### nvmeof +# ensure nvmeof target modules are loaded at startup +cat < /etc/modules-load.d/nvmet.conf +nvmet +nvmet-tcp +nvmet-fc +nvmet-rdma +EOF + +# load the modules immediately +modprobe nvmet +modprobe nvmet-tcp +modprobe nvmet-fc +modprobe nvmet-rdma + +# install nvmetcli and systemd services +git clone git://git.infradead.org/users/hch/nvmetcli.git +cd nvmetcli + +## install globally +python3 setup.py install --prefix=/usr +pip install configshell_fb + +## install to root home dir +python3 setup.py install --user +pip install configshell_fb --user + +# prevent log files from filling up disk +ln -sf /dev/null ~/.nvmetcli/log.txt +ln -sf /dev/null ~/.nvmetcli/history.txt + +# install systemd unit and enable/start +## optionally to ensure the config file is loaded before we start +## reading/writing to it add an ExecStartPost= to the unit file +## +## ExecStartPost=/usr/bin/touch /var/run/nvmet-config-loaded +## +## in your dirver config set nvmeof.shareStrategyNvmetCli.configIsImportedFilePath=/var/run/nvmet-config-loaded +## which will prevent the driver from making any changes until the configured +## file is present +vi nvmet.service + +cp nvmet.service /etc/systemd/system/ +mkdir -p /etc/nvmet +systemctl daemon-reload +systemctl enable --now nvmet.service +systemctl status nvmet.service + +# create the port(s) configuration manually +echo " +cd / +ls +" | nvmetcli + +# do this multiple times altering as appropriate if you have/want multipath +# change the port to 2, 3.. each additional path +# the below example creates a tcp port listening on all IPs on port 4420 +echo " +cd /ports +create 1 +cd 1 +set addr adrfam=ipv4 trtype=tcp traddr=0.0.0.0 trsvcid=4420 + +saveconfig /etc/nvmet/config.json +" | nvmetcli + +# if running TrueNAS SCALE you can skip the above and simply copy +# contrib/scale-nvmet-start.sh to your machine and add it as a startup script +# to launch POSTINIT type COMMAND +# and then create the port(s) as mentioned above ``` ### Synology (synology-iscsi) @@ -397,7 +535,7 @@ Ensure iscsi manager has been installed and is generally setup/configured. DSM 6 ## Helm Installation -``` +```bash helm repo add democratic-csi https://democratic-csi.github.io/charts/ helm repo update # helm v2 @@ -441,13 +579,14 @@ microk8s helm upgrade \ - microk8s - `/var/snap/microk8s/common/var/lib/kubelet` - pivotal - `/var/vcap/data/kubelet` +- k0s - `/var/lib/k0s/kubelet` ### openshift `democratic-csi` generally works fine with openshift. Some special parameters need to be set with helm (support added in chart version `0.6.1`): -``` +```bash # for sure required --set node.rbac.openshift.privileged=true --set node.driver.localtimeHostPath=false @@ -461,6 +600,11 @@ need to be set with helm (support added in chart version `0.6.1`): `democratic-csi` works with Nomad in a functioning but limted capacity. See the [Nomad docs](docs/nomad.md) for details. +### Docker Swarm + +- https://github.com/moby/moby/blob/master/docs/cluster_volumes.md +- https://github.com/olljanat/csi-plugins-for-docker-swarm + ## Multiple Deployments You may install multiple deployments of each/any driver. It requires the @@ -479,25 +623,14 @@ following: # Snapshot Support -Install beta (v1.17+) CRDs (once per cluster): - -- https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd - -``` -kubectl apply -f snapshot.storage.k8s.io_volumesnapshotclasses.yaml -kubectl apply -f snapshot.storage.k8s.io_volumesnapshotcontents.yaml -kubectl apply -f snapshot.storage.k8s.io_volumesnapshots.yaml -``` - Install snapshot controller (once per cluster): -- https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller +- https://github.com/democratic-csi/charts/tree/master/stable/snapshot-controller -``` -# replace namespace references to your liking -kubectl apply -f rbac-snapshot-controller.yaml -kubectl apply -f setup-snapshot-controller.yaml -``` +OR + +- https://github.com/kubernetes-csi/external-snapshotter/tree/master/client/config/crd +- https://github.com/kubernetes-csi/external-snapshotter/tree/master/deploy/kubernetes/snapshot-controller Install `democratic-csi` as usual with `volumeSnapshotClasses` defined as appropriate. diff --git a/ci/bin/launch-csi-sanity.ps1 b/ci/bin/launch-csi-sanity.ps1 index ba99971..549f6df 100644 --- a/ci/bin/launch-csi-sanity.ps1 +++ b/ci/bin/launch-csi-sanity.ps1 @@ -19,32 +19,31 @@ if (! $env:CSI_SANITY_FAILFAST) { $env:CSI_SANITY_FAILFAST = "false" } -$failfast = "" - -if ($env:CSI_SANITY_FAILFAST -eq "true") { - $failfast = "-ginkgo.failFast" -} - Write-Output "launching csi-sanity" Write-Output "connecting to: ${endpoint}" Write-Output "failfast: ${env:CSI_SANITY_FAILFAST}" Write-Output "skip: ${env:CSI_SANITY_SKIP}" Write-Output "focus: ${env:CSI_SANITY_FOCUS}" +Write-Output "csi.mountdir: ${env:CSI_SANITY_TEMP_DIR}\mnt" +Write-Output "csi.stagingdir: ${env:CSI_SANITY_TEMP_DIR}\stage" -$skip = '"' + ${env:CSI_SANITY_SKIP} + '"' -$focus = '"' + ${env:CSI_SANITY_FOCUS} + '"' +$exe = "csi-sanity.exe" +$exeargs = @() +$exeargs += "-csi.endpoint", "unix://${endpoint}" +$exeargs += "-csi.mountdir", "${env:CSI_SANITY_TEMP_DIR}\mnt" +$exeargs += "-csi.stagingdir", "${env:CSI_SANITY_TEMP_DIR}\stage" +$exeargs += "-csi.testvolumeexpandsize", "2147483648" +$exeargs += "-csi.testvolumesize", "1073741824" +$exeargs += "-ginkgo.skip", "${env:CSI_SANITY_SKIP}" +$exeargs += "-ginkgo.focus", "${env:CSI_SANITY_FOCUS}" -csi-sanity.exe -"csi.endpoint" "unix://${endpoint}" ` - $failfast ` - -"csi.mountdir" "${env:CSI_SANITY_TEMP_DIR}\mnt" ` - -"csi.stagingdir" "${env:CSI_SANITY_TEMP_DIR}\stage" ` - -"csi.testvolumeexpandsize" 2147483648 ` - -"csi.testvolumesize" 1073741824 ` - -"ginkgo.skip" $skip ` - -"ginkgo.focus" $focus +if ($env:CSI_SANITY_FAILFAST -eq "true") { + $exeargs += "-ginkgo.fail-fast" +} -# does not work the same as linux for some reason -# -"ginkgo.skip" "'" + ${env:CSI_SANITY_SKIP} + "'" ` +Write-Output "csi-sanity command: $exe $($exeargs -join ' ')" + +&$exe $exeargs if (-not $?) { $exit_code = $LASTEXITCODE diff --git a/ci/configs/zfs-generic/nvmeof.yaml b/ci/configs/zfs-generic/nvmeof.yaml new file mode 100644 index 0000000..820ee79 --- /dev/null +++ b/ci/configs/zfs-generic/nvmeof.yaml @@ -0,0 +1,30 @@ +driver: zfs-generic-nvmeof + +sshConnection: + host: ${SERVER_HOST} + port: 22 + username: ${SERVER_USERNAME} + password: ${SERVER_PASSWORD} + +zfs: + datasetParentName: tank/ci/${CI_BUILD_KEY}/v + detachedSnapshotsDatasetParentName: tank/ci/${CI_BUILD_KEY}/s + + zvolCompression: + zvolDedup: + zvolEnableReservation: false + zvolBlocksize: + +nvmeof: + transports: + - "tcp://${SERVER_HOST}:4420" + namePrefix: "csi-ci-${CI_BUILD_KEY}-" + nameSuffix: "" + shareStrategy: "nvmetCli" + shareStrategyNvmetCli: + basename: "nqn.2003-01.org.linux-nvmeof.ubuntu-19.x8664" + ports: + - "1" + subsystem: + attributes: + allow_any_host: 1 diff --git a/contrib/scale-nvmet-start.sh b/contrib/scale-nvmet-start.sh new file mode 100755 index 0000000..a2cfc22 --- /dev/null +++ b/contrib/scale-nvmet-start.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +# simple script to 'start' nvmet on TrueNAS SCALE +# +# to reinstall nvmetcli simply rm /usr/sbin/nvmetcli + +# debug +#set -x + +# exit non-zero +set -e + +SCRIPTDIR="$( + cd -- "$(dirname "$0")" >/dev/null 2>&1 + pwd -P +)" +cd "${SCRIPTDIR}" + +: "${NVMETCONFIG:="${SCRIPTDIR}/nvmet-config.json"}" + +export PATH=${HOME}/.local/bin:${PATH} + +modules=() +modules+=("nvmet") +modules+=("nvmet-fc") +modules+=("nvmet-rdma") +modules+=("nvmet-tcp") + +for module in "${modules[@]}"; do + modprobe "${module}" +done + +which nvmetcli &>/dev/null || { + which pip &>/dev/null || { + wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py + python get-pip.py --user + rm get-pip.py + } + + if [[ ! -d nvmetcli ]]; then + git clone git://git.infradead.org/users/hch/nvmetcli.git + fi + + cd nvmetcli + + # install to root home dir + python3 setup.py install --user + + # install to root home dir + pip install configshell_fb --user + + # remove source + cd "${SCRIPTDIR}" + rm -rf nvmetcli +} + +cd "${SCRIPTDIR}" +nvmetcli restore "${NVMETCONFIG}" + +touch /var/run/nvmet-config-loaded +chmod +r /var/run/nvmet-config-loaded diff --git a/docs/Nomad/examples/democratic-csi-iscsi-node.hcl b/docs/Nomad/examples/democratic-csi-iscsi-node.hcl index c5817c5..4bf753c 100644 --- a/docs/Nomad/examples/democratic-csi-iscsi-node.hcl +++ b/docs/Nomad/examples/democratic-csi-iscsi-node.hcl @@ -11,6 +11,10 @@ job "democratic-csi-iscsi-node" { env { CSI_NODE_ID = "${attr.unique.hostname}" + + # if you run into a scenario where your iscsi volumes are zeroed each time they are mounted, + # you can configure the fs detection system used with the following envvar: + #FILESYSTEM_TYPE_DETECTION_STRATEGY = "blkid" } config { @@ -38,6 +42,15 @@ job "democratic-csi-iscsi-node" { source = "/" readonly=false } + + # if you run into a scenario where your iscsi volumes are zeroed each time they are mounted, + # you can try uncommenting the following additional mount block: + #mount { + # type = "bind" + # target = "/run/udev" + # source = "/run/udev" + # readonly = true + #} } template { diff --git a/examples/lustre-client.yaml b/examples/lustre-client.yaml index 7a331b4..2f7ea7c 100644 --- a/examples/lustre-client.yaml +++ b/examples/lustre-client.yaml @@ -1,6 +1,7 @@ driver: lustre-client instance_id: lustre: + # [:] shareHost: server address shareBasePath: "/some/path" # shareHost:shareBasePath should be mounted at this location in the controller container diff --git a/examples/node-manual-nvmeof-pv.yaml b/examples/node-manual-nvmeof-pv.yaml new file mode 100644 index 0000000..5d2abf2 --- /dev/null +++ b/examples/node-manual-nvmeof-pv.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: nvmeof-manual +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + mountOptions: [] + csi: + driver: org.democratic-csi.node-manual + readOnly: false + # can be ext4 or xfs + fsType: ext4 + volumeHandle: unique-volumeid # make sure it's a unique id in the cluster + volumeAttributes: + # rdma and fc are also available + transport: tcp://, + #transports: ,,... + nqn: + nsid: + node_attach_driver: "nvmeof" + provisioner_driver: node-manual diff --git a/examples/zfs-generic-nvmeof.yaml b/examples/zfs-generic-nvmeof.yaml new file mode 100644 index 0000000..76a6c6f --- /dev/null +++ b/examples/zfs-generic-nvmeof.yaml @@ -0,0 +1,102 @@ +driver: zfs-generic-nvmeof +sshConnection: + host: server address + port: 22 + username: root + # use either password or key + password: "" + privateKey: | + -----BEGIN RSA PRIVATE KEY----- + ... + -----END RSA PRIVATE KEY----- + +zfs: + # can be used to override defaults if necessary + # the example below is useful for TrueNAS 12 + #cli: + # sudoEnabled: true + # paths: + # zfs: /usr/local/sbin/zfs + # zpool: /usr/local/sbin/zpool + # sudo: /usr/local/bin/sudo + # chroot: /usr/sbin/chroot + + # can be used to set arbitrary values on the dataset/zvol + # can use handlebars templates with the parameters from the storage class/CO + #datasetProperties: + # "org.freenas:description": "{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}/{{ parameters.[csi.storage.k8s.io/pvc/name] }}" + # "org.freenas:test": "{{ parameters.foo }}" + # "org.freenas:test2": "some value" + + datasetParentName: tank/k8s/test + # do NOT make datasetParentName and detachedSnapshotsDatasetParentName overlap + # they may be siblings, but neither should be nested in the other + detachedSnapshotsDatasetParentName: tanks/k8s/test-snapshots + + # "" (inherit), lz4, gzip-9, etc + zvolCompression: + # "" (inherit), on, off, verify + zvolDedup: + zvolEnableReservation: false + # 512, 1K, 2K, 4K, 8K, 16K, 64K, 128K default is 16K + zvolBlocksize: + +nvmeof: + # these are for the node/client aspect + transports: + - tcp://server:port + #- "tcp://127.0.0.1:4420?host-iface=eth0" + #- "tcp://[2001:123:456::1]:4420" + #- "rdma://127.0.0.1:4420" + #- "fc://[nn-0x203b00a098cbcac6:pn-0x203d00a098cbcac6]" + + # MUST ensure uniqueness + # full iqn limit is 223 bytes, plan accordingly + # default is "{{ name }}" + #nameTemplate: "{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}-{{ parameters.[csi.storage.k8s.io/pvc/name] }}" + namePrefix: + nameSuffix: + + shareStrategy: "nvmetCli" + #shareStrategy: "spdkCli" + + # https://documentation.suse.com/es-es/sles/15-SP1/html/SLES-all/cha-nvmeof.html + # https://www.linuxjournal.com/content/data-flash-part-iii-nvme-over-fabrics-using-tcp + # http://git.infradead.org/users/hch/nvmetcli.git + shareStrategyNvmetCli: + #sudoEnabled: true + #nvmetcliPath: nvmetcli + # prevent startup race conditions by ensuring the config on disk has been imported + # before we start messing with things + #configIsImportedFilePath: /var/run/nvmet-config-loaded + #configPath: /etc/nvmet/config.json + basename: "nqn.2003-01.org.linux-nvme" + # add more ports here as appropriate if you have multipath + ports: + - "1" + subsystem: + attributes: + allow_any_host: 1 + # not supported yet in nvmetcli + #namespace: + # attributes: + # buffered_io: 1 + + shareStrategySpdkCli: + # spdkcli.py + #spdkcliPath: spdkcli + configPath: /etc/spdk/spdk.json + basename: "nqn.2003-01.org.linux-nvmeof" + bdev: + type: uring + #type: aio + attributes: + block_size: 512 + subsystem: + attributes: + allow_any_host: "true" + listeners: + - trtype: tcp + traddr: server + trsvcid: port + adrfam: ipv4 diff --git a/package-lock.json b/package-lock.json index a901bb3..a3336d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,21 @@ { "name": "democratic-csi", - "version": "1.7.7", + "version": "1.8.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "democratic-csi", - "version": "1.7.7", + "version": "1.8.3", "license": "MIT", "dependencies": { - "@grpc/grpc-js": "^1.5.7", + "@grpc/grpc-js": "^1.8.4", "@grpc/proto-loader": "^0.7.0", - "@kubernetes/client-node": "^0.17.0", + "@kubernetes/client-node": "^0.18.0", "async-mutex": "^0.4.0", "axios": "^1.1.3", "bunyan": "^1.8.15", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "handlebars": "^4.7.7", "js-yaml": "^4.0.0", "lodash": "^4.17.21", @@ -50,16 +50,40 @@ "kuler": "^2.0.0" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", + "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", - "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", + "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", + "espree": "^9.5.1", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -73,10 +97,19 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/js": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.37.0.tgz", + "integrity": "sha512-x5vzdtOOGgFVDCUs81QRB2+liax8rFg3+7hqM+QhBG0/G3F1ZsoYl97UrqgHgQ9KKT7G6c4V+aTUCgu/n22v1A==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@grpc/grpc-js": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.7.2.tgz", - "integrity": "sha512-MqqbVynbe3VUSnApFW/dpkDaa9T1ASqRnMWeSPGFO/Ro98R7XUDLacfeBa7RaSI1iFu9GYk5gBKARf0zipFe4w==", + "version": "1.8.13", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.13.tgz", + "integrity": "sha512-iY3jsdfbc0ARoCLFvbvUB8optgyb0r1XLPb142u+QtgBcKJYkCIFt3Fd/881KqjLYWjsBJF57N3b8Eop9NDfUA==", "dependencies": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" @@ -86,9 +119,9 @@ } }, "node_modules/@grpc/proto-loader": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.3.tgz", - "integrity": "sha512-5dAvoZwna2Py3Ef96Ux9jIkp3iZ62TUsV00p3wVBPNX5K178UbNi8Q7gQVqwXT1Yq9RejIGG9G2IPEo93T6RcA==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.6.tgz", + "integrity": "sha512-QyAXR8Hyh7uMDmveWxDSUcJr9NAWaZ2I6IXgAYvQmfflwouTM+rArE2eEaCtLlRqO81j7pRLCt81IefUei6Zbw==", "dependencies": { "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", @@ -139,14 +172,14 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.10.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", - "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" }, "engines": { "node": ">=10.10.0" @@ -172,27 +205,29 @@ "dev": true }, "node_modules/@kubernetes/client-node": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.17.1.tgz", - "integrity": "sha512-qXANjukuTq/drb1hq1NCYZafpdRTvbyTzbliWO6RwW7eEb2b9qwINbw0DiVHpBQg3e9DeQd8+brI1sR1Fck5kQ==", + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.18.1.tgz", + "integrity": "sha512-F3JiK9iZnbh81O/da1tD0h8fQMi/MDttWc/JydyUVnjPEom55wVfnpl4zQ/sWD4uKB8FlxYRPiLwV2ZXB+xPKw==", "dependencies": { + "@types/js-yaml": "^4.0.1", + "@types/node": "^18.11.17", + "@types/request": "^2.47.1", + "@types/ws": "^8.5.3", "byline": "^5.0.0", - "execa": "5.0.0", - "isomorphic-ws": "^4.0.1", + "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", - "jsonpath-plus": "^0.19.0", + "jsonpath-plus": "^7.2.0", "request": "^2.88.0", "rfc4648": "^1.3.0", - "shelljs": "^0.8.5", "stream-buffers": "^3.0.2", "tar": "^6.1.11", "tmp-promise": "^3.0.2", - "tslib": "^1.9.3", - "underscore": "^1.9.1", - "ws": "^7.3.1" + "tslib": "^2.4.1", + "underscore": "^1.13.6", + "ws": "^8.11.0" }, "optionalDependencies": { - "openid-client": "^5.1.6" + "openid-client": "^5.3.0" } }, "node_modules/@nodelib/fs.scandir": { @@ -284,20 +319,59 @@ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, + "node_modules/@types/caseless": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", + "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==" + }, + "node_modules/@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==" + }, "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" }, "node_modules/@types/node": { - "version": "18.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.0.tgz", - "integrity": "sha512-IOXCvVRToe7e0ny7HpT/X9Rb2RYtElG1a+VshjwT00HxrM2dWBApHQoqsI6WiY7Q03vdf2bCrIGzVrkF/5t10w==" + "version": "18.15.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", + "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==" + }, + "node_modules/@types/request": { + "version": "2.48.8", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.8.tgz", + "integrity": "sha512-whjk1EDJPcAR2kYHRbFl/lKeeKYTi05A15K9bnLInCVroNDCtXce57xKdI0/rQaA3K+6q0eFyUBPmqfSndUZdQ==", + "dependencies": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.0" + } + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.2.tgz", + "integrity": "sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==" + }, + "node_modules/@types/triple-beam": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", + "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" + }, + "node_modules/@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "dependencies": { + "@types/node": "*" + } }, "node_modules/acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -357,15 +431,6 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -395,11 +460,6 @@ "tslib": "^2.4.0" } }, - "node_modules/async-mutex/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -414,20 +474,33 @@ } }, "node_modules/aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" }, "node_modules/axios": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz", - "integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.4.tgz", + "integrity": "sha512-toYm+Bsyl6VC5wSkfkbbNB6ROv7KY93PEBBL6xyDczaIHasAiv4wPqQ/c4RjoQzipxRD2W5g21cOqQulZ7rHwQ==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } }, + "node_modules/axios/node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -450,18 +523,6 @@ "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/buildcheck": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.3.tgz", @@ -650,6 +711,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -709,18 +771,6 @@ "node": ">=0.4.0" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -786,14 +836,18 @@ } }, "node_modules/eslint": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.25.0.tgz", - "integrity": "sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-NU3Ps9nI05GUoVMxcZx1J8CNR6xOvUT4jAUMH5+z8lpp3aEdPVCImKw6PWG4PY+Vfkpr+jvMpxs/qoE7wq0sPw==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.10.5", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.37.0", + "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -801,22 +855,21 @@ "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "glob-parent": "^6.0.1", - "globals": "^13.15.0", - "globby": "^11.1.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", @@ -825,7 +878,6 @@ "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "regexpp": "^3.2.0", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -853,51 +905,27 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", + "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/espree": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", - "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", + "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", "dev": true, "dependencies": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -907,9 +935,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -948,28 +976,6 @@ "node": ">=0.10.0" } }, - "node_modules/execa": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -996,34 +1002,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -1036,9 +1014,9 @@ "dev": true }, "node_modules/fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, "dependencies": { "reusify": "^1.0.4" @@ -1061,18 +1039,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -1141,29 +1107,29 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", + "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", "dependencies": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", + "combined-stream": "^1.0.6", "mime-types": "^2.1.12" }, "engines": { - "node": ">= 6" + "node": ">= 0.12" } }, "node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" }, "engines": { - "node": ">=12" + "node": ">=14.14" } }, "node_modules/fs-minipass": { @@ -1177,16 +1143,22 @@ "node": ">= 8" } }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -1195,17 +1167,6 @@ "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -1246,9 +1207,9 @@ } }, "node_modules/globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -1260,30 +1221,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/grapheme-splitter": { "version": "1.0.4", @@ -1332,17 +1273,6 @@ "node": ">=6" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -1366,18 +1296,10 @@ "npm": ">=1.3.7" } }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "engines": { - "node": ">=10.17.0" - } - }, "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, "engines": { "node": ">= 4" @@ -1422,30 +1344,11 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "engines": { - "node": ">= 0.10" - } - }, "node_modules/is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, - "node_modules/is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1475,13 +1378,13 @@ "node": ">=0.10.0" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true, "engines": { - "node": ">=0.12.0" + "node": ">=8" } }, "node_modules/is-stream": { @@ -1503,12 +1406,13 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/isomorphic-ws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", - "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", "peerDependencies": { "ws": "*" } @@ -1519,19 +1423,23 @@ "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" }, "node_modules/jose": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.10.0.tgz", - "integrity": "sha512-KEhB/eLGLomWGPTb+/RNbYsTjIyx03JmbqAyIyiXBuNSa7CmNrJd5ysFhblayzs/e/vbOPMUaLnjHUMhGp4yLw==", + "version": "4.13.1", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.13.1.tgz", + "integrity": "sha512-MSJQC5vXco5Br38mzaQKiq9mwt7lwj2eXpgpRyQYNHYt2lq1PjkWa7DLXX0WVcQLE9HhMh3jPiufS7fhJf+CLQ==", "optional": true, "funding": { "url": "https://github.com/sponsors/panva" } }, "node_modules/js-sdsl": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", - "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", - "dev": true + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", + "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", + "dev": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } }, "node_modules/js-yaml": { "version": "4.1.0", @@ -1582,11 +1490,11 @@ } }, "node_modules/jsonpath-plus": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-0.19.0.tgz", - "integrity": "sha512-GSVwsrzW9LsA5lzsqe4CkuZ9wp+kxBb2GwNniaWzI2YFn5Ig42rSW8ZxVpWXaAfakXNrx5pgY5AbQq7kzX29kg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", "engines": { - "node": ">=6.0" + "node": ">=12.0.0" } }, "node_modules/jsprim": { @@ -1653,11 +1561,12 @@ "dev": true }, "node_modules/logform": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/logform/-/logform-2.4.2.tgz", - "integrity": "sha512-W4c9himeAwXEdZ05dQNerhFz2XG80P9Oj0loPUMV23VC2it0orMHQhJm4hdnnor3rd1HsGf6a2lPwBM1zeXHGw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", "dependencies": { "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", "fecha": "^4.2.0", "ms": "^2.1.1", "safe-stable-stringify": "^2.3.1", @@ -1670,40 +1579,13 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "node_modules/lru-cache": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.14.0.tgz", - "integrity": "sha512-EIRtP1GrSJny0dqb50QXRUNBxHJhcpxHC++M5tD7RYbvLLn5KVWKsbyswSSqDuU15UFi3bgTQIY8nhDMeF6aDQ==", + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "engines": { "node": ">=12" } }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -1723,14 +1605,6 @@ "node": ">= 0.6" } }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "engines": { - "node": ">=6" - } - }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -1743,20 +1617,17 @@ } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/minipass": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz", - "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==", - "dependencies": { - "yallist": "^4.0.0" - }, + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz", + "integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==", "engines": { "node": ">=8" } @@ -1773,6 +1644,17 @@ "node": ">= 8" } }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/mkdirp": { "version": "0.5.6", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", @@ -1872,17 +1754,6 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", @@ -1925,27 +1796,13 @@ "fn.name": "1.x.x" } }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/openid-client": { - "version": "5.1.10", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.1.10.tgz", - "integrity": "sha512-KYAtkxTuUwTvjAmH0QMFFP3i9l0+XhP2/blct6Q9kn+DUJ/lu8/g/bI8ghSgxz9dJLm/9cpB/1uLVGTcGGY0hw==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.0.tgz", + "integrity": "sha512-hgJa2aQKcM2hn3eyVtN12tEA45ECjTJPXCgUh5YzTzy9qwapCvmDTVPWOcWVL0d34zeQoQ/hbG9lJhl3AYxJlQ==", "optional": true, "dependencies": { - "jose": "^4.1.4", + "jose": "^4.10.0", "lru-cache": "^6.0.0", "object-hash": "^2.0.1", "oidc-token-hash": "^5.0.1" @@ -2046,19 +1903,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, "engines": { "node": ">=8" @@ -2069,18 +1913,6 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -2106,11 +1938,11 @@ } }, "node_modules/prompt/node_modules/winston": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.6.tgz", - "integrity": "sha512-J5Zu4p0tojLde8mIOyDSsmLmcP8I3Z6wtwpTDHx1+hGcdhxcJaAmG4CFtagkb+NiN1M9Ek4b42pzMWqfc9jm8w==", + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.7.tgz", + "integrity": "sha512-vLB4BqzCKDnnZH9PHGoS2ycawueX4HLqENXQitvFHczhgW2vFpSOn31LZtVr1KU8YTw7DS4tM+cqyovxo8taVg==", "dependencies": { - "async": "^3.2.3", + "async": "^2.6.4", "colors": "1.0.x", "cycle": "1.0.x", "eyes": "0.1.x", @@ -2121,10 +1953,18 @@ "node": ">= 0.10.0" } }, + "node_modules/prompt/node_modules/winston/node_modules/async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dependencies": { + "lodash": "^4.17.14" + } + }, "node_modules/protobufjs": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.2.tgz", - "integrity": "sha512-4ZPTPkXCdel3+L81yw3dG6+Kq3umdWKh7Dc7GW/CpNk4SX3hK58iPCWeCyhVTDrbkNeKrYNZ7EojM5WDaEWTLQ==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -2145,9 +1985,9 @@ } }, "node_modules/protobufjs/node_modules/long": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", - "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" }, "node_modules/proxy-from-env": { "version": "1.1.0", @@ -2160,9 +2000,9 @@ "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "engines": { "node": ">=6" } @@ -2207,9 +2047,9 @@ } }, "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -2219,29 +2059,6 @@ "node": ">= 6" } }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", @@ -2303,22 +2120,6 @@ "node": ">=0.10.0" } }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -2414,9 +2215,9 @@ "optional": true }, "node_modules/safe-stable-stringify": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.0.tgz", - "integrity": "sha512-eehKHKpab6E741ud7ZIMcXhKcP6TSIezPkNZhy5U8xC6+VvrRdUA2tMgxGxaGl4cz7c2Ew5+mg5+wNB16KQqrA==", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", "engines": { "node": ">=10" } @@ -2455,6 +2256,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2466,31 +2268,11 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" - }, "node_modules/simple-swizzle": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", @@ -2499,15 +2281,6 @@ "is-arrayish": "^0.3.1" } }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -2605,14 +2378,6 @@ "node": ">=8" } }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "engines": { - "node": ">=6" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -2637,31 +2402,20 @@ "node": ">=8" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", + "minipass": "^4.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" }, "engines": { - "node": ">= 10" + "node": ">=10" } }, "node_modules/tar/node_modules/mkdirp": { @@ -2705,18 +2459,6 @@ "tmp": "^0.2.0" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", @@ -2735,9 +2477,9 @@ "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" }, "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" }, "node_modules/tunnel-agent": { "version": "0.6.0", @@ -2780,9 +2522,9 @@ } }, "node_modules/uglify-js": { - "version": "3.17.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.3.tgz", - "integrity": "sha512-JmMFDME3iufZnBpyKL+uS78LRiC+mK55zWfM5f/pWBJfpOttXAqYfdDGRukYhJuyRinvPVAtUhvy7rlDybNtFg==", + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -2842,6 +2584,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "dependencies": { "isexe": "^2.0.0" }, @@ -2922,15 +2665,15 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "engines": { - "node": ">=8.3.0" + "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -2955,9 +2698,9 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/yargs": { - "version": "17.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.0.tgz", - "integrity": "sha512-8H/wTDqlSwoSnScvV2N/JHfLWOKuh5MVla9hqLjK3nsfyy6Y4kDSYSvkU5YCUEPOSnRXfIyx3Sq+B/IWudTo4g==", + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -2965,7 +2708,7 @@ "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" + "yargs-parser": "^21.1.1" }, "engines": { "node": ">=12" @@ -3008,16 +2751,31 @@ "kuler": "^2.0.0" } }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", + "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", + "dev": true + }, "@eslint/eslintrc": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", - "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", + "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", + "espree": "^9.5.1", + "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -3025,19 +2783,25 @@ "strip-json-comments": "^3.1.1" } }, + "@eslint/js": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.37.0.tgz", + "integrity": "sha512-x5vzdtOOGgFVDCUs81QRB2+liax8rFg3+7hqM+QhBG0/G3F1ZsoYl97UrqgHgQ9KKT7G6c4V+aTUCgu/n22v1A==", + "dev": true + }, "@grpc/grpc-js": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.7.2.tgz", - "integrity": "sha512-MqqbVynbe3VUSnApFW/dpkDaa9T1ASqRnMWeSPGFO/Ro98R7XUDLacfeBa7RaSI1iFu9GYk5gBKARf0zipFe4w==", + "version": "1.8.13", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.13.tgz", + "integrity": "sha512-iY3jsdfbc0ARoCLFvbvUB8optgyb0r1XLPb142u+QtgBcKJYkCIFt3Fd/881KqjLYWjsBJF57N3b8Eop9NDfUA==", "requires": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" } }, "@grpc/proto-loader": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.3.tgz", - "integrity": "sha512-5dAvoZwna2Py3Ef96Ux9jIkp3iZ62TUsV00p3wVBPNX5K178UbNi8Q7gQVqwXT1Yq9RejIGG9G2IPEo93T6RcA==", + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.6.tgz", + "integrity": "sha512-QyAXR8Hyh7uMDmveWxDSUcJr9NAWaZ2I6IXgAYvQmfflwouTM+rArE2eEaCtLlRqO81j7pRLCt81IefUei6Zbw==", "requires": { "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", @@ -3078,14 +2842,14 @@ } }, "@humanwhocodes/config-array": { - "version": "0.10.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.7.tgz", - "integrity": "sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w==", + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", "dev": true, "requires": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" } }, "@humanwhocodes/module-importer": { @@ -3101,25 +2865,27 @@ "dev": true }, "@kubernetes/client-node": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.17.1.tgz", - "integrity": "sha512-qXANjukuTq/drb1hq1NCYZafpdRTvbyTzbliWO6RwW7eEb2b9qwINbw0DiVHpBQg3e9DeQd8+brI1sR1Fck5kQ==", + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/@kubernetes/client-node/-/client-node-0.18.1.tgz", + "integrity": "sha512-F3JiK9iZnbh81O/da1tD0h8fQMi/MDttWc/JydyUVnjPEom55wVfnpl4zQ/sWD4uKB8FlxYRPiLwV2ZXB+xPKw==", "requires": { + "@types/js-yaml": "^4.0.1", + "@types/node": "^18.11.17", + "@types/request": "^2.47.1", + "@types/ws": "^8.5.3", "byline": "^5.0.0", - "execa": "5.0.0", - "isomorphic-ws": "^4.0.1", + "isomorphic-ws": "^5.0.0", "js-yaml": "^4.1.0", - "jsonpath-plus": "^0.19.0", - "openid-client": "^5.1.6", + "jsonpath-plus": "^7.2.0", + "openid-client": "^5.3.0", "request": "^2.88.0", "rfc4648": "^1.3.0", - "shelljs": "^0.8.5", "stream-buffers": "^3.0.2", "tar": "^6.1.11", "tmp-promise": "^3.0.2", - "tslib": "^1.9.3", - "underscore": "^1.9.1", - "ws": "^7.3.1" + "tslib": "^2.4.1", + "underscore": "^1.13.6", + "ws": "^8.11.0" } }, "@nodelib/fs.scandir": { @@ -3202,20 +2968,59 @@ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, + "@types/caseless": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", + "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==" + }, + "@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==" + }, "@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" }, "@types/node": { - "version": "18.11.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.0.tgz", - "integrity": "sha512-IOXCvVRToe7e0ny7HpT/X9Rb2RYtElG1a+VshjwT00HxrM2dWBApHQoqsI6WiY7Q03vdf2bCrIGzVrkF/5t10w==" + "version": "18.15.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz", + "integrity": "sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==" + }, + "@types/request": { + "version": "2.48.8", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.8.tgz", + "integrity": "sha512-whjk1EDJPcAR2kYHRbFl/lKeeKYTi05A15K9bnLInCVroNDCtXce57xKdI0/rQaA3K+6q0eFyUBPmqfSndUZdQ==", + "requires": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.0" + } + }, + "@types/tough-cookie": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.2.tgz", + "integrity": "sha512-Q5vtl1W5ue16D+nIaW8JWebSSraJVlK+EthKn7e7UcD4KWsaSJ8BqGPXNaPghgtcn/fhvrN17Tv8ksUsQpiplw==" + }, + "@types/triple-beam": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.2.tgz", + "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" + }, + "@types/ws": { + "version": "8.5.4", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", + "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==", + "requires": { + "@types/node": "*" + } }, "acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true }, "acorn-jsx": { @@ -3254,12 +3059,6 @@ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -3284,13 +3083,6 @@ "integrity": "sha512-eJFZ1YhRR8UN8eBLoNzcDPcy/jqjsg6I1AP+KvWQX80BqOSW1oJPJXDylPUEeMr2ZQvHgnQ//Lp6f3RQ1zI7HA==", "requires": { "tslib": "^2.4.0" - }, - "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } } }, "asynckit": { @@ -3304,18 +3096,30 @@ "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==" }, "aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" }, "axios": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.1.3.tgz", - "integrity": "sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.3.4.tgz", + "integrity": "sha512-toYm+Bsyl6VC5wSkfkbbNB6ROv7KY93PEBBL6xyDczaIHasAiv4wPqQ/c4RjoQzipxRD2W5g21cOqQulZ7rHwQ==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" + }, + "dependencies": { + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } } }, "balanced-match": { @@ -3340,15 +3144,6 @@ "concat-map": "0.0.1" } }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, "buildcheck": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.3.tgz", @@ -3499,6 +3294,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, "requires": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -3538,15 +3334,6 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -3596,14 +3383,18 @@ "dev": true }, "eslint": { - "version": "8.25.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.25.0.tgz", - "integrity": "sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A==", + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-NU3Ps9nI05GUoVMxcZx1J8CNR6xOvUT4jAUMH5+z8lpp3aEdPVCImKw6PWG4PY+Vfkpr+jvMpxs/qoE7wq0sPw==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.10.5", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.37.0", + "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -3611,22 +3402,21 @@ "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "glob-parent": "^6.0.1", - "globals": "^13.15.0", - "globby": "^11.1.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", @@ -3635,7 +3425,6 @@ "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "regexpp": "^3.2.0", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -3651,44 +3440,27 @@ "estraverse": "^5.2.0" } }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", + "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", "dev": true }, "espree": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", - "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", + "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", "dev": true, "requires": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.0" } }, "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "requires": { "estraverse": "^5.1.0" @@ -3715,22 +3487,6 @@ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "execa": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -3751,30 +3507,6 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -3787,9 +3519,9 @@ "dev": true }, "fastq": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, "requires": { "reusify": "^1.0.4" @@ -3809,15 +3541,6 @@ "flat-cache": "^3.0.4" } }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", @@ -3860,19 +3583,19 @@ "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==" }, "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz", + "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==", "requires": { "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", + "combined-stream": "^1.0.6", "mime-types": "^2.1.12" } }, "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -3885,6 +3608,16 @@ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", "requires": { "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } } }, "fs.realpath": { @@ -3892,21 +3625,11 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" - }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", @@ -3938,32 +3661,18 @@ } }, "globals": { - "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "requires": { "type-fest": "^0.20.2" } }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "grapheme-splitter": { "version": "1.0.4", @@ -3997,14 +3706,6 @@ "har-schema": "^2.0.0" } }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -4021,15 +3722,10 @@ "sshpk": "^1.7.0" } }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" - }, "ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true }, "import-fresh": { @@ -4062,24 +3758,11 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" - }, "is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, - "is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", - "requires": { - "has": "^1.0.3" - } - }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -4100,10 +3783,10 @@ "is-extglob": "^2.1.1" } }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", "dev": true }, "is-stream": { @@ -4119,12 +3802,13 @@ "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "isomorphic-ws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", - "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", + "integrity": "sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==", "requires": {} }, "isstream": { @@ -4133,15 +3817,15 @@ "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" }, "jose": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/jose/-/jose-4.10.0.tgz", - "integrity": "sha512-KEhB/eLGLomWGPTb+/RNbYsTjIyx03JmbqAyIyiXBuNSa7CmNrJd5ysFhblayzs/e/vbOPMUaLnjHUMhGp4yLw==", + "version": "4.13.1", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.13.1.tgz", + "integrity": "sha512-MSJQC5vXco5Br38mzaQKiq9mwt7lwj2eXpgpRyQYNHYt2lq1PjkWa7DLXX0WVcQLE9HhMh3jPiufS7fhJf+CLQ==", "optional": true }, "js-sdsl": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.5.tgz", - "integrity": "sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", + "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", "dev": true }, "js-yaml": { @@ -4188,9 +3872,9 @@ } }, "jsonpath-plus": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-0.19.0.tgz", - "integrity": "sha512-GSVwsrzW9LsA5lzsqe4CkuZ9wp+kxBb2GwNniaWzI2YFn5Ig42rSW8ZxVpWXaAfakXNrx5pgY5AbQq7kzX29kg==" + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" }, "jsprim": { "version": "1.4.2", @@ -4244,11 +3928,12 @@ "dev": true }, "logform": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/logform/-/logform-2.4.2.tgz", - "integrity": "sha512-W4c9himeAwXEdZ05dQNerhFz2XG80P9Oj0loPUMV23VC2it0orMHQhJm4hdnnor3rd1HsGf6a2lPwBM1zeXHGw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", "requires": { "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", "fecha": "^4.2.0", "ms": "^2.1.1", "safe-stable-stringify": "^2.3.1", @@ -4261,30 +3946,9 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "lru-cache": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.14.0.tgz", - "integrity": "sha512-EIRtP1GrSJny0dqb50QXRUNBxHJhcpxHC++M5tD7RYbvLLn5KVWKsbyswSSqDuU15UFi3bgTQIY8nhDMeF6aDQ==" - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==" }, "mime-db": { "version": "1.52.0", @@ -4299,11 +3963,6 @@ "mime-db": "1.52.0" } }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" - }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -4313,17 +3972,14 @@ } }, "minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" }, "minipass": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.4.tgz", - "integrity": "sha512-I9WPbWHCGu8W+6k1ZiGpPu0GkoKBeorkfKNuAFBNS1HNFJvke82sxvI5bzcCNpWPorkOO5QQ+zomzzwRxejXiw==", - "requires": { - "yallist": "^4.0.0" - } + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.5.tgz", + "integrity": "sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==" }, "minizlib": { "version": "2.1.2", @@ -4332,6 +3988,16 @@ "requires": { "minipass": "^3.0.0", "yallist": "^4.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } } }, "mkdirp": { @@ -4417,14 +4083,6 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "requires": { - "path-key": "^3.0.0" - } - }, "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", @@ -4458,21 +4116,13 @@ "fn.name": "1.x.x" } }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "requires": { - "mimic-fn": "^2.1.0" - } - }, "openid-client": { - "version": "5.1.10", - "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.1.10.tgz", - "integrity": "sha512-KYAtkxTuUwTvjAmH0QMFFP3i9l0+XhP2/blct6Q9kn+DUJ/lu8/g/bI8ghSgxz9dJLm/9cpB/1uLVGTcGGY0hw==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.4.0.tgz", + "integrity": "sha512-hgJa2aQKcM2hn3eyVtN12tEA45ECjTJPXCgUh5YzTzy9qwapCvmDTVPWOcWVL0d34zeQoQ/hbG9lJhl3AYxJlQ==", "optional": true, "requires": { - "jose": "^4.1.4", + "jose": "^4.10.0", "lru-cache": "^6.0.0", "object-hash": "^2.0.1", "oidc-token-hash": "^5.0.1" @@ -4544,17 +4194,7 @@ "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "performance-now": { @@ -4562,12 +4202,6 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -4587,24 +4221,34 @@ }, "dependencies": { "winston": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.6.tgz", - "integrity": "sha512-J5Zu4p0tojLde8mIOyDSsmLmcP8I3Z6wtwpTDHx1+hGcdhxcJaAmG4CFtagkb+NiN1M9Ek4b42pzMWqfc9jm8w==", + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.7.tgz", + "integrity": "sha512-vLB4BqzCKDnnZH9PHGoS2ycawueX4HLqENXQitvFHczhgW2vFpSOn31LZtVr1KU8YTw7DS4tM+cqyovxo8taVg==", "requires": { - "async": "^3.2.3", + "async": "^2.6.4", "colors": "1.0.x", "cycle": "1.0.x", "eyes": "0.1.x", "isstream": "0.1.x", "stack-trace": "0.0.x" + }, + "dependencies": { + "async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "requires": { + "lodash": "^4.17.14" + } + } } } } }, "protobufjs": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.2.tgz", - "integrity": "sha512-4ZPTPkXCdel3+L81yw3dG6+Kq3umdWKh7Dc7GW/CpNk4SX3hK58iPCWeCyhVTDrbkNeKrYNZ7EojM5WDaEWTLQ==", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.3.tgz", + "integrity": "sha512-TtpvOqwB5Gdz/PQmOjgsrGH1nHjAQVCN7JG4A6r1sXRWESL5rNMAiRcBQlCAdKxZcAbstExQePYG8xof/JVRgg==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -4621,9 +4265,9 @@ }, "dependencies": { "long": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", - "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" } } }, @@ -4638,9 +4282,9 @@ "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" }, "qs": { "version": "6.5.3", @@ -4662,29 +4306,15 @@ } }, "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "requires": { - "resolve": "^1.1.6" - } - }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, "request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", @@ -4734,16 +4364,6 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, "resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -4795,9 +4415,9 @@ "optional": true }, "safe-stable-stringify": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.0.tgz", - "integrity": "sha512-eehKHKpab6E741ud7ZIMcXhKcP6TSIezPkNZhy5U8xC6+VvrRdUA2tMgxGxaGl4cz7c2Ew5+mg5+wNB16KQqrA==" + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==" }, "safer-buffer": { "version": "2.1.2", @@ -4826,6 +4446,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, "requires": { "shebang-regex": "^3.0.0" } @@ -4833,22 +4454,8 @@ "shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true }, "simple-swizzle": { "version": "0.2.2", @@ -4858,12 +4465,6 @@ "is-arrayish": "^0.3.1" } }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -4932,11 +4533,6 @@ "ansi-regex": "^5.0.1" } }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" - }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -4952,19 +4548,14 @@ "has-flag": "^4.0.0" } }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, "tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", "requires": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", + "minipass": "^4.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" @@ -5004,15 +4595,6 @@ "tmp": "^0.2.0" } }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, "tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", @@ -5028,9 +4610,9 @@ "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" }, "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" }, "tunnel-agent": { "version": "0.6.0", @@ -5061,9 +4643,9 @@ "dev": true }, "uglify-js": { - "version": "3.17.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.3.tgz", - "integrity": "sha512-JmMFDME3iufZnBpyKL+uS78LRiC+mK55zWfM5f/pWBJfpOttXAqYfdDGRukYhJuyRinvPVAtUhvy7rlDybNtFg==", + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", "optional": true }, "underscore": { @@ -5108,6 +4690,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, "requires": { "isexe": "^2.0.0" } @@ -5167,9 +4750,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", + "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", "requires": {} }, "y18n": { @@ -5183,9 +4766,9 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "yargs": { - "version": "17.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.0.tgz", - "integrity": "sha512-8H/wTDqlSwoSnScvV2N/JHfLWOKuh5MVla9hqLjK3nsfyy6Y4kDSYSvkU5YCUEPOSnRXfIyx3Sq+B/IWudTo4g==", + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", "requires": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -5193,7 +4776,7 @@ "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" + "yargs-parser": "^21.1.1" } }, "yargs-parser": { diff --git a/package.json b/package.json index f3756f1..77ce2b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "democratic-csi", - "version": "1.7.7", + "version": "1.8.3", "description": "kubernetes csi driver framework", "main": "bin/democratic-csi", "scripts": { @@ -18,13 +18,13 @@ "url": "https://github.com/democratic-csi/democratic-csi.git" }, "dependencies": { - "@grpc/grpc-js": "^1.5.7", + "@grpc/grpc-js": "^1.8.4", "@grpc/proto-loader": "^0.7.0", - "@kubernetes/client-node": "^0.17.0", + "@kubernetes/client-node": "^0.18.0", "async-mutex": "^0.4.0", "axios": "^1.1.3", "bunyan": "^1.8.15", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "handlebars": "^4.7.7", "js-yaml": "^4.0.0", "lodash": "^4.17.21", diff --git a/src/driver/controller-client-common/index.js b/src/driver/controller-client-common/index.js index a211888..0279faa 100644 --- a/src/driver/controller-client-common/index.js +++ b/src/driver/controller-client-common/index.js @@ -104,6 +104,33 @@ class ControllerClientCommonDriver extends CsiBaseDriver { } } + getAccessModes(capability) { + let access_modes = _.get(this.options, "csi.access_modes", null); + if (access_modes !== null) { + return access_modes; + } + + access_modes = [ + "UNKNOWN", + "SINGLE_NODE_WRITER", + "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 + "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 + "SINGLE_NODE_READER_ONLY", + "MULTI_NODE_READER_ONLY", + "MULTI_NODE_SINGLE_WRITER", + "MULTI_NODE_MULTI_WRITER", + ]; + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + + return access_modes; + } + assertCapabilities(capabilities) { const driver = this; this.ctx.logger.verbose("validating capabilities: %j", capabilities); @@ -126,16 +153,7 @@ class ControllerClientCommonDriver extends CsiBaseDriver { } if ( - ![ - "UNKNOWN", - "SINGLE_NODE_WRITER", - "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 - "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 - "SINGLE_NODE_READER_ONLY", - "MULTI_NODE_READER_ONLY", - "MULTI_NODE_SINGLE_WRITER", - "MULTI_NODE_MULTI_WRITER", - ].includes(capability.access_mode.mode) + !this.getAccessModes(capability).includes(capability.access_mode.mode) ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; diff --git a/src/driver/controller-synology/index.js b/src/driver/controller-synology/index.js index 7ce5f18..6e3542a 100644 --- a/src/driver/controller-synology/index.js +++ b/src/driver/controller-synology/index.js @@ -208,6 +208,49 @@ class ControllerSynologyDriver extends CsiBaseDriver { return location; } + getAccessModes(capability) { + let access_modes = _.get(this.options, "csi.access_modes", null); + if (access_modes !== null) { + return access_modes; + } + + const driverResourceType = this.getDriverResourceType(); + switch (driverResourceType) { + case "filesystem": + access_modes = [ + "UNKNOWN", + "SINGLE_NODE_WRITER", + "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 + "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 + "SINGLE_NODE_READER_ONLY", + "MULTI_NODE_READER_ONLY", + "MULTI_NODE_SINGLE_WRITER", + "MULTI_NODE_MULTI_WRITER", + ]; + break; + case "volume": + access_modes = [ + "UNKNOWN", + "SINGLE_NODE_WRITER", + "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 + "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 + "SINGLE_NODE_READER_ONLY", + "MULTI_NODE_READER_ONLY", + "MULTI_NODE_SINGLE_WRITER", + ]; + break; + } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + + return access_modes; + } + assertCapabilities(capabilities) { const driverResourceType = this.getDriverResourceType(); this.ctx.logger.verbose("validating capabilities: %j", capabilities); @@ -233,16 +276,9 @@ class ControllerSynologyDriver extends CsiBaseDriver { } if ( - ![ - "UNKNOWN", - "SINGLE_NODE_WRITER", - "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 - "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 - "SINGLE_NODE_READER_ONLY", - "MULTI_NODE_READER_ONLY", - "MULTI_NODE_SINGLE_WRITER", - "MULTI_NODE_MULTI_WRITER", - ].includes(capability.access_mode.mode) + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; @@ -263,15 +299,9 @@ class ControllerSynologyDriver extends CsiBaseDriver { } if ( - ![ - "UNKNOWN", - "SINGLE_NODE_WRITER", - "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 - "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 - "SINGLE_NODE_READER_ONLY", - "MULTI_NODE_READER_ONLY", - "MULTI_NODE_SINGLE_WRITER", - ].includes(capability.access_mode.mode) + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; diff --git a/src/driver/controller-zfs-generic/index.js b/src/driver/controller-zfs-generic/index.js index 991a922..6ba5b0b 100644 --- a/src/driver/controller-zfs-generic/index.js +++ b/src/driver/controller-zfs-generic/index.js @@ -3,20 +3,29 @@ const { ControllerZfsBaseDriver } = require("../controller-zfs"); const { GrpcError, grpc } = require("../../utils/grpc"); const GeneralUtils = require("../../utils/general"); const registry = require("../../utils/registry"); -const SshClient = require("../../utils/ssh").SshClient; +const LocalCliExecClient = + require("../../utils/zfs_local_exec_client").LocalCliClient; +const SshClient = require("../../utils/zfs_ssh_exec_client").SshClient; const { Zetabyte, ZfsSshProcessManager } = require("../../utils/zfs"); const Handlebars = require("handlebars"); const ISCSI_ASSETS_NAME_PROPERTY_NAME = "democratic-csi:iscsi_assets_name"; +const NVMEOF_ASSETS_NAME_PROPERTY_NAME = "democratic-csi:nvmeof_assets_name"; const __REGISTRY_NS__ = "ControllerZfsGenericDriver"; class ControllerZfsGenericDriver extends ControllerZfsBaseDriver { getExecClient() { return registry.get(`${__REGISTRY_NS__}:exec_client`, () => { - return new SshClient({ - logger: this.ctx.logger, - connection: this.options.sshConnection, - }); + if (this.options.sshConnection) { + return new SshClient({ + logger: this.ctx.logger, + connection: this.options.sshConnection, + }); + } else { + return new LocalCliExecClient({ + logger: this.ctx.logger, + }); + } }); } @@ -24,7 +33,11 @@ class ControllerZfsGenericDriver extends ControllerZfsBaseDriver { return registry.getAsync(`${__REGISTRY_NS__}:zb`, async () => { const execClient = this.getExecClient(); const options = {}; - options.executor = new ZfsSshProcessManager(execClient); + if (this.options.sshConnection) { + options.executor = new ZfsSshProcessManager(execClient); + } else { + options.executor = execClient; + } options.idempotent = true; if ( @@ -55,6 +68,7 @@ class ControllerZfsGenericDriver extends ControllerZfsBaseDriver { case "zfs-generic-smb": return "filesystem"; case "zfs-generic-iscsi": + case "zfs-generic-nvmeof": return "volume"; default: throw new Error("unknown driver: " + this.ctx.args.driver); @@ -164,28 +178,28 @@ class ControllerZfsGenericDriver extends ControllerZfsBaseDriver { }; return volume_context; - case "zfs-generic-iscsi": + case "zfs-generic-iscsi": { let basename; - let iscsiName; + let assetName; if (this.options.iscsi.nameTemplate) { - iscsiName = Handlebars.compile(this.options.iscsi.nameTemplate)({ + assetName = Handlebars.compile(this.options.iscsi.nameTemplate)({ name: call.request.name, parameters: call.request.parameters, }); } else { - iscsiName = zb.helpers.extractLeafName(datasetName); + assetName = zb.helpers.extractLeafName(datasetName); } if (this.options.iscsi.namePrefix) { - iscsiName = this.options.iscsi.namePrefix + iscsiName; + assetName = this.options.iscsi.namePrefix + assetName; } if (this.options.iscsi.nameSuffix) { - iscsiName += this.options.iscsi.nameSuffix; + assetName += this.options.iscsi.nameSuffix; } - iscsiName = iscsiName.toLowerCase(); + assetName = assetName.toLowerCase(); let extentDiskName = "zvol/" + datasetName; @@ -239,20 +253,20 @@ class ControllerZfsGenericDriver extends ControllerZfsBaseDriver { ` # create target cd /iscsi -create ${basename}:${iscsiName} +create ${basename}:${assetName} # setup tpg -cd /iscsi/${basename}:${iscsiName}/tpg1 +cd /iscsi/${basename}:${assetName}/tpg1 ${setAttributesText} ${setAuthText} # create extent cd /backstores/block -create ${iscsiName} /dev/${extentDiskName} +create ${assetName} /dev/${extentDiskName} # add extent to target/tpg -cd /iscsi/${basename}:${iscsiName}/tpg1/luns -create /backstores/block/${iscsiName} +cd /iscsi/${basename}:${assetName}/tpg1/luns +create /backstores/block/${assetName} ` ); }, @@ -271,12 +285,12 @@ create /backstores/block/${iscsiName} } // iqn = target - let iqn = basename + ":" + iscsiName; + let iqn = basename + ":" + assetName; this.ctx.logger.info("iqn: " + iqn); // store this off to make delete process more bullet proof await zb.zfs.set(datasetName, { - [ISCSI_ASSETS_NAME_PROPERTY_NAME]: iscsiName, + [ISCSI_ASSETS_NAME_PROPERTY_NAME]: assetName, }); volume_context = { @@ -290,6 +304,231 @@ create /backstores/block/${iscsiName} lun: 0, }; return volume_context; + } + + case "zfs-generic-nvmeof": { + let basename; + let assetName; + + if (this.options.nvmeof.nameTemplate) { + assetName = Handlebars.compile(this.options.nvmeof.nameTemplate)({ + name: call.request.name, + parameters: call.request.parameters, + }); + } else { + assetName = zb.helpers.extractLeafName(datasetName); + } + + if (this.options.nvmeof.namePrefix) { + assetName = this.options.nvmeof.namePrefix + assetName; + } + + if (this.options.nvmeof.nameSuffix) { + assetName += this.options.nvmeof.nameSuffix; + } + + assetName = assetName.toLowerCase(); + + let extentDiskName = "zvol/" + datasetName; + + /** + * limit is a FreeBSD limitation + * https://www.ixsystems.com/documentation/freenas/11.2-U5/storage.html#zfs-zvol-config-opts-tab + */ + //if (extentDiskName.length > 63) { + // throw new GrpcError( + // grpc.status.FAILED_PRECONDITION, + // `extent disk name cannot exceed 63 characters: ${extentDiskName}` + // ); + //} + + let namespace = 1; + + switch (this.options.nvmeof.shareStrategy) { + case "nvmetCli": + { + basename = this.options.nvmeof.shareStrategyNvmetCli.basename; + let savefile = _.get( + this.options, + "nvmeof.shareStrategyNvmetCli.configPath", + "" + ); + if (savefile) { + savefile = `savefile=${savefile}`; + } + let setSubsystemAttributesText = ""; + if (this.options.nvmeof.shareStrategyNvmetCli.subsystem) { + if ( + this.options.nvmeof.shareStrategyNvmetCli.subsystem.attributes + ) { + for (const attributeName in this.options.nvmeof + .shareStrategyNvmetCli.subsystem.attributes) { + const attributeValue = + this.options.nvmeof.shareStrategyNvmetCli.subsystem + .attributes[attributeName]; + setSubsystemAttributesText += "\n"; + setSubsystemAttributesText += `set attr ${attributeName}=${attributeValue}`; + } + } + } + + let portCommands = ""; + this.options.nvmeof.shareStrategyNvmetCli.ports.forEach( + (port) => { + portCommands += ` +cd /ports/${port}/subsystems +create ${basename}:${assetName} +`; + } + ); + + await GeneralUtils.retry( + 3, + 2000, + async () => { + await this.nvmetCliCommand( + ` +# create subsystem +cd /subsystems +create ${basename}:${assetName} +cd ${basename}:${assetName} +${setSubsystemAttributesText} + +# create subsystem namespace +cd namespaces +create ${namespace} +cd ${namespace} +set device path=/dev/${extentDiskName} +enable + +# associate subsystem/target to port(al) +${portCommands} + +saveconfig ${savefile} +` + ); + }, + { + retryCondition: (err) => { + if (err.stdout && err.stdout.includes("Ran out of input")) { + return true; + } + return false; + }, + } + ); + } + break; + + case "spdkCli": + { + basename = this.options.nvmeof.shareStrategySpdkCli.basename; + let bdevAttributesText = ""; + if (this.options.nvmeof.shareStrategySpdkCli.bdev) { + if (this.options.nvmeof.shareStrategySpdkCli.bdev.attributes) { + for (const attributeName in this.options.nvmeof + .shareStrategySpdkCli.bdev.attributes) { + const attributeValue = + this.options.nvmeof.shareStrategySpdkCli.bdev.attributes[ + attributeName + ]; + bdevAttributesText += `${attributeName}=${attributeValue}`; + } + } + } + + let subsystemAttributesText = ""; + if (this.options.nvmeof.shareStrategySpdkCli.subsystem) { + if ( + this.options.nvmeof.shareStrategySpdkCli.subsystem.attributes + ) { + for (const attributeName in this.options.nvmeof + .shareStrategySpdkCli.subsystem.attributes) { + const attributeValue = + this.options.nvmeof.shareStrategySpdkCli.subsystem + .attributes[attributeName]; + subsystemAttributesText += `${attributeName}=${attributeValue}`; + } + } + } + + let listenerCommands = `cd /nvmf/subsystem/${basename}:${assetName}/listen_addresses\n`; + this.options.nvmeof.shareStrategySpdkCli.listeners.forEach( + (listener) => { + let listenerAttributesText = ""; + for (const attributeName in listener) { + const attributeValue = listener[attributeName]; + listenerAttributesText += ` ${attributeName}=${attributeValue} `; + } + listenerCommands += ` +create ${listenerAttributesText} +`; + } + ); + + await GeneralUtils.retry( + 3, + 2000, + async () => { + await this.spdkCliCommand( + ` +# create bdev +cd /bdevs/${this.options.nvmeof.shareStrategySpdkCli.bdev.type} +create filename=/dev/${extentDiskName} name=${basename}:${assetName} ${bdevAttributesText} + +# create subsystem +cd /nvmf/subsystem +create nqn=${basename}:${assetName} ${subsystemAttributesText} +cd ${basename}:${assetName} + +# create namespace +cd /nvmf/subsystem/${basename}:${assetName}/namespaces +create bdev_name=${basename}:${assetName} nsid=${namespace} + +# add listener +${listenerCommands} + +cd / +save_config filename=${this.options.nvmeof.shareStrategySpdkCli.configPath} +` + ); + }, + { + retryCondition: (err) => { + if (err.stdout && err.stdout.includes("Ran out of input")) { + return true; + } + return false; + }, + } + ); + } + break; + + default: + break; + } + + // iqn = target + let nqn = basename + ":" + assetName; + this.ctx.logger.info("nqn: " + nqn); + + // store this off to make delete process more bullet proof + await zb.zfs.set(datasetName, { + [NVMEOF_ASSETS_NAME_PROPERTY_NAME]: assetName, + }); + + volume_context = { + node_attach_driver: "nvmeof", + transport: this.options.nvmeof.transport || "", + transports: this.options.nvmeof.transports + ? this.options.nvmeof.transports.join(",") + : "", + nqn, + nsid: namespace, + }; + return volume_context; + } default: throw new GrpcError( @@ -367,9 +606,9 @@ create /backstores/block/${iscsiName} } break; - case "zfs-generic-iscsi": + case "zfs-generic-iscsi": { let basename; - let iscsiName; + let assetName; // Delete iscsi assets try { @@ -386,23 +625,23 @@ create /backstores/block/${iscsiName} properties = properties[datasetName]; this.ctx.logger.debug("zfs props data: %j", properties); - iscsiName = properties[ISCSI_ASSETS_NAME_PROPERTY_NAME].value; + assetName = properties[ISCSI_ASSETS_NAME_PROPERTY_NAME].value; - if (zb.helpers.isPropertyValueSet(iscsiName)) { + if (zb.helpers.isPropertyValueSet(assetName)) { //do nothing } else { - iscsiName = zb.helpers.extractLeafName(datasetName); + assetName = zb.helpers.extractLeafName(datasetName); if (this.options.iscsi.namePrefix) { - iscsiName = this.options.iscsi.namePrefix + iscsiName; + assetName = this.options.iscsi.namePrefix + assetName; } if (this.options.iscsi.nameSuffix) { - iscsiName += this.options.iscsi.nameSuffix; + assetName += this.options.iscsi.nameSuffix; } } - iscsiName = iscsiName.toLowerCase(); + assetName = assetName.toLowerCase(); switch (this.options.iscsi.shareStrategy) { case "targetCli": basename = this.options.iscsi.shareStrategyTargetCli.basename; @@ -414,11 +653,11 @@ create /backstores/block/${iscsiName} ` # delete target cd /iscsi -delete ${basename}:${iscsiName} +delete ${basename}:${assetName} # delete extent cd /backstores/block -delete ${iscsiName} +delete ${assetName} ` ); }, @@ -437,6 +676,132 @@ delete ${iscsiName} break; } break; + } + + case "zfs-generic-nvmeof": { + let basename; + let assetName; + + // Delete nvmeof assets + try { + properties = await zb.zfs.get(datasetName, [ + NVMEOF_ASSETS_NAME_PROPERTY_NAME, + ]); + } catch (err) { + if (err.toString().includes("dataset does not exist")) { + return; + } + throw err; + } + + properties = properties[datasetName]; + this.ctx.logger.debug("zfs props data: %j", properties); + + assetName = properties[NVMEOF_ASSETS_NAME_PROPERTY_NAME].value; + + if (zb.helpers.isPropertyValueSet(assetName)) { + //do nothing + } else { + assetName = zb.helpers.extractLeafName(datasetName); + + if (this.options.nvmeof.namePrefix) { + assetName = this.options.nvmeof.namePrefix + assetName; + } + + if (this.options.nvmeof.nameSuffix) { + assetName += this.options.nvmeof.nameSuffix; + } + } + + assetName = assetName.toLowerCase(); + switch (this.options.nvmeof.shareStrategy) { + case "nvmetCli": + { + basename = this.options.nvmeof.shareStrategyNvmetCli.basename; + let savefile = _.get( + this.options, + "nvmeof.shareStrategyNvmetCli.configPath", + "" + ); + if (savefile) { + savefile = `savefile=${savefile}`; + } + let portCommands = ""; + this.options.nvmeof.shareStrategyNvmetCli.ports.forEach( + (port) => { + portCommands += ` +cd /ports/${port}/subsystems +delete ${basename}:${assetName} +`; + } + ); + await GeneralUtils.retry( + 3, + 2000, + async () => { + await this.nvmetCliCommand( + ` +# delete subsystem from port +${portCommands} + +# delete subsystem +cd /subsystems +delete ${basename}:${assetName} + +saveconfig ${savefile} +` + ); + }, + { + retryCondition: (err) => { + if (err.stdout && err.stdout.includes("Ran out of input")) { + return true; + } + return false; + }, + } + ); + } + break; + case "spdkCli": + { + basename = this.options.nvmeof.shareStrategySpdkCli.basename; + await GeneralUtils.retry( + 3, + 2000, + async () => { + await this.spdkCliCommand( + ` +# delete subsystem +cd /nvmf/subsystem/ +delete subsystem_nqn=${basename}:${assetName} + +# delete bdev +cd /bdevs/${this.options.nvmeof.shareStrategySpdkCli.bdev.type} +delete name=${basename}:${assetName} + +cd / +save_config filename=${this.options.nvmeof.shareStrategySpdkCli.configPath} +` + ); + }, + { + retryCondition: (err) => { + if (err.stdout && err.stdout.includes("Ran out of input")) { + return true; + } + return false; + }, + } + ); + } + break; + + default: + break; + } + break; + } default: throw new GrpcError( @@ -477,18 +842,18 @@ delete ${iscsiName} let command = "sh"; let args = ["-c"]; - let targetCliArgs = ["targetcli"]; + let cliArgs = ["targetcli"]; if ( _.get(this.options, "iscsi.shareStrategyTargetCli.sudoEnabled", false) ) { - targetCliArgs.unshift("sudo"); + cliArgs.unshift("sudo"); } - let targetCliCommand = []; - targetCliCommand.push(`echo "${data}"`.trim()); - targetCliCommand.push("|"); - targetCliCommand.push(targetCliArgs.join(" ")); - args.push("'" + targetCliCommand.join(" ") + "'"); + let cliCommand = []; + cliCommand.push(`echo "${data}"`.trim()); + cliCommand.push("|"); + cliCommand.push(cliArgs.join(" ")); + args.push("'" + cliCommand.join(" ") + "'"); let logCommandTmp = command + " " + args.join(" "); let logCommand = ""; @@ -527,6 +892,151 @@ delete ${iscsiName} } return response; } + + async nvmetCliCommand(data) { + const execClient = this.getExecClient(); + const driver = this; + + if ( + _.get( + this.options, + "nvmeof.shareStrategyNvmetCli.configIsImportedFilePath" + ) + ) { + try { + let response = await execClient.exec( + execClient.buildCommand("test", [ + "-f", + _.get( + this.options, + "nvmeof.shareStrategyNvmetCli.configIsImportedFilePath" + ), + ]) + ); + } catch (err) { + throw new Error("nvmet has not been fully configured"); + } + } + + data = data.trim(); + + let command = "sh"; + let args = ["-c"]; + + let cliArgs = [ + _.get( + this.options, + "nvmeof.shareStrategyNvmetCli.nvmetcliPath", + "nvmetcli" + ), + ]; + if ( + _.get(this.options, "nvmeof.shareStrategyNvmetCli.sudoEnabled", false) + ) { + cliArgs.unshift("sudo"); + } + + let cliCommand = []; + cliCommand.push(`echo "${data}"`.trim()); + cliCommand.push("|"); + cliCommand.push(cliArgs.join(" ")); + args.push("'" + cliCommand.join(" ") + "'"); + + let logCommandTmp = command + " " + args.join(" "); + let logCommand = ""; + + logCommandTmp.split("\n").forEach((line) => { + if (line.startsWith("set auth password=")) { + logCommand += "set auth password="; + } else if (line.startsWith("set auth mutual_password=")) { + logCommand += "set auth mutual_password="; + } else { + logCommand += line; + } + + logCommand += "\n"; + }); + + driver.ctx.logger.verbose("nvmetCLI command: " + logCommand); + //process.exit(0); + + // https://github.com/democratic-csi/democratic-csi/issues/127 + // https://bugs.launchpad.net/ubuntu/+source/python-configshell-fb/+bug/1776761 + // can apply the linked patch with some modifications to overcome the + // KeyErrors or we can simply start a fake tty which does not seem to have + // a detrimental effect, only affects Ubuntu 18.04 and older + let options = { + pty: true, + }; + let response = await execClient.exec( + execClient.buildCommand(command, args), + options + ); + driver.ctx.logger.verbose("nvmetCLI response: " + JSON.stringify(response)); + if (response.code != 0) { + throw response; + } + return response; + } + + async spdkCliCommand(data) { + const execClient = this.getExecClient(); + const driver = this; + + data = data.trim(); + + let command = "sh"; + let args = ["-c"]; + + let cliArgs = [ + _.get(this.options, "nvmeof.shareStrategySpdkCli.spdkcliPath", "spdkcli"), + ]; + if (_.get(this.options, "nvmeof.shareStrategySpdkCli.sudoEnabled", false)) { + cliArgs.unshift("sudo"); + } + + let cliCommand = []; + cliCommand.push(`echo "${data}"`.trim()); + cliCommand.push("|"); + cliCommand.push(cliArgs.join(" ")); + args.push("'" + cliCommand.join(" ") + "'"); + + let logCommandTmp = command + " " + args.join(" "); + let logCommand = ""; + + logCommandTmp.split("\n").forEach((line) => { + if (line.startsWith("set auth password=")) { + logCommand += "set auth password="; + } else if (line.startsWith("set auth mutual_password=")) { + logCommand += "set auth mutual_password="; + } else { + logCommand += line; + } + + logCommand += "\n"; + }); + + driver.ctx.logger.verbose("spdkCLI command: " + logCommand); + //process.exit(0); + + // https://github.com/democratic-csi/democratic-csi/issues/127 + // https://bugs.launchpad.net/ubuntu/+source/python-configshell-fb/+bug/1776761 + // can apply the linked patch with some modifications to overcome the + // KeyErrors or we can simply start a fake tty which does not seem to have + // a detrimental effect, only affects Ubuntu 18.04 and older + let options = { + pty: true, + }; + let response = await execClient.exec( + execClient.buildCommand(command, args), + options + ); + driver.ctx.logger.verbose("spdkCLI response: " + JSON.stringify(response)); + if (response.code != 0) { + throw response; + } + return response; + } } module.exports.ControllerZfsGenericDriver = ControllerZfsGenericDriver; diff --git a/src/driver/controller-zfs-local/index.js b/src/driver/controller-zfs-local/index.js index 360b2d5..646e52c 100644 --- a/src/driver/controller-zfs-local/index.js +++ b/src/driver/controller-zfs-local/index.js @@ -2,7 +2,8 @@ const _ = require("lodash"); const { ControllerZfsBaseDriver } = require("../controller-zfs"); const { GrpcError, grpc } = require("../../utils/grpc"); const GeneralUtils = require("../../utils/general"); -const LocalCliExecClient = require("./exec").LocalCliClient; +const LocalCliExecClient = + require("../../utils/zfs_local_exec_client").LocalCliClient; const registry = require("../../utils/registry"); const { Zetabyte } = require("../../utils/zfs"); @@ -109,7 +110,7 @@ class ControllerZfsLocalDriver extends ControllerZfsBaseDriver { * * @returns Array */ - getAccessModes() { + getAccessModes(capability) { let access_modes = _.get(this.options, "csi.access_modes", null); if (access_modes !== null) { return access_modes; @@ -118,7 +119,7 @@ class ControllerZfsLocalDriver extends ControllerZfsBaseDriver { const driverZfsResourceType = this.getDriverZfsResourceType(); switch (driverZfsResourceType) { case "filesystem": - return [ + access_modes = [ "UNKNOWN", "SINGLE_NODE_WRITER", "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 @@ -128,8 +129,9 @@ class ControllerZfsLocalDriver extends ControllerZfsBaseDriver { "MULTI_NODE_SINGLE_WRITER", "MULTI_NODE_MULTI_WRITER", ]; + break; case "volume": - return [ + access_modes = [ "UNKNOWN", "SINGLE_NODE_WRITER", "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 @@ -139,7 +141,17 @@ class ControllerZfsLocalDriver extends ControllerZfsBaseDriver { "MULTI_NODE_SINGLE_WRITER", "MULTI_NODE_MULTI_WRITER", ]; + break; } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + + return access_modes; } /** diff --git a/src/driver/controller-zfs/index.js b/src/driver/controller-zfs/index.js index b19bfd6..1747b5a 100644 --- a/src/driver/controller-zfs/index.js +++ b/src/driver/controller-zfs/index.js @@ -39,7 +39,7 @@ const MAX_ZVOL_NAME_LENGTH_CACHE_KEY = "controller-zfs:max_zvol_name_length"; * - async setZetabyteCustomOptions(options) // optional * - getDriverZfsResourceType() // return "filesystem" or "volume" * - getFSTypes() // optional - * - getAccessModes() // optional + * - getAccessModes(capability) // optional * - async getAccessibleTopology() // optional * - async createShare(call, datasetName) // return appropriate volume_context for Node operations * - async deleteShare(call, datasetName) // no return expected @@ -207,7 +207,7 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { } } - getAccessModes() { + getAccessModes(capability) { let access_modes = _.get(this.options, "csi.access_modes", null); if (access_modes !== null) { return access_modes; @@ -216,7 +216,7 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { const driverZfsResourceType = this.getDriverZfsResourceType(); switch (driverZfsResourceType) { case "filesystem": - return [ + access_modes = [ "UNKNOWN", "SINGLE_NODE_WRITER", "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 @@ -226,8 +226,9 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { "MULTI_NODE_SINGLE_WRITER", "MULTI_NODE_MULTI_WRITER", ]; + break; case "volume": - return [ + access_modes = [ "UNKNOWN", "SINGLE_NODE_WRITER", "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 @@ -236,7 +237,17 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { "MULTI_NODE_READER_ONLY", "MULTI_NODE_SINGLE_WRITER", ]; + break; } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + + return access_modes; } assertCapabilities(capabilities) { @@ -261,7 +272,11 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { return false; } - if (!this.getAccessModes().includes(capability.access_mode.mode)) { + if ( + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) + ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; } @@ -278,7 +293,11 @@ class ControllerZfsBaseDriver extends CsiBaseDriver { } } - if (!this.getAccessModes().includes(capability.access_mode.mode)) { + if ( + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) + ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; } diff --git a/src/driver/factory.js b/src/driver/factory.js index 02dc2ae..ea62157 100644 --- a/src/driver/factory.js +++ b/src/driver/factory.js @@ -35,6 +35,7 @@ function factory(ctx, options) { case "zfs-generic-nfs": case "zfs-generic-smb": case "zfs-generic-iscsi": + case "zfs-generic-nvmeof": return new ControllerZfsGenericDriver(ctx, options); case "zfs-local-dataset": case "zfs-local-zvol": diff --git a/src/driver/freenas/api.js b/src/driver/freenas/api.js index 0a0b969..b1e610e 100644 --- a/src/driver/freenas/api.js +++ b/src/driver/freenas/api.js @@ -2017,6 +2017,49 @@ class FreeNASApiDriver extends CsiBaseDriver { }); } + getAccessModes(capability) { + let access_modes = _.get(this.options, "csi.access_modes", null); + if (access_modes !== null) { + return access_modes; + } + + const driverZfsResourceType = this.getDriverZfsResourceType(); + switch (driverZfsResourceType) { + case "filesystem": + access_modes = [ + "UNKNOWN", + "SINGLE_NODE_WRITER", + "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 + "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 + "SINGLE_NODE_READER_ONLY", + "MULTI_NODE_READER_ONLY", + "MULTI_NODE_SINGLE_WRITER", + "MULTI_NODE_MULTI_WRITER", + ]; + break; + case "volume": + access_modes = [ + "UNKNOWN", + "SINGLE_NODE_WRITER", + "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 + "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 + "SINGLE_NODE_READER_ONLY", + "MULTI_NODE_READER_ONLY", + "MULTI_NODE_SINGLE_WRITER", + ]; + break; + } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + + return access_modes; + } + assertCapabilities(capabilities) { const driverZfsResourceType = this.getDriverZfsResourceType(); this.ctx.logger.verbose("validating capabilities: %j", capabilities); @@ -2040,16 +2083,9 @@ class FreeNASApiDriver extends CsiBaseDriver { } if ( - ![ - "UNKNOWN", - "SINGLE_NODE_WRITER", - "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 - "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 - "SINGLE_NODE_READER_ONLY", - "MULTI_NODE_READER_ONLY", - "MULTI_NODE_SINGLE_WRITER", - "MULTI_NODE_MULTI_WRITER", - ].includes(capability.access_mode.mode) + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; @@ -2070,15 +2106,9 @@ class FreeNASApiDriver extends CsiBaseDriver { } if ( - ![ - "UNKNOWN", - "SINGLE_NODE_WRITER", - "SINGLE_NODE_SINGLE_WRITER", // added in v1.5.0 - "SINGLE_NODE_MULTI_WRITER", // added in v1.5.0 - "SINGLE_NODE_READER_ONLY", - "MULTI_NODE_READER_ONLY", - "MULTI_NODE_SINGLE_WRITER", - ].includes(capability.access_mode.mode) + !this.getAccessModes(capability).includes( + capability.access_mode.mode + ) ) { message = `invalid access_mode, ${capability.access_mode.mode}`; return false; diff --git a/src/driver/freenas/ssh.js b/src/driver/freenas/ssh.js index 1920202..fa5e950 100644 --- a/src/driver/freenas/ssh.js +++ b/src/driver/freenas/ssh.js @@ -2,7 +2,7 @@ const _ = require("lodash"); const { ControllerZfsBaseDriver } = require("../controller-zfs"); const { GrpcError, grpc } = require("../../utils/grpc"); const registry = require("../../utils/registry"); -const SshClient = require("../../utils/ssh").SshClient; +const SshClient = require("../../utils/zfs_ssh_exec_client").SshClient; const HttpClient = require("./http").Client; const TrueNASApiClient = require("./http/api").Api; const { Zetabyte, ZfsSshProcessManager } = require("../../utils/zfs"); diff --git a/src/driver/index.js b/src/driver/index.js index e9f72ea..7edf891 100644 --- a/src/driver/index.js +++ b/src/driver/index.js @@ -9,10 +9,12 @@ const { Mount } = require("../utils/mount"); const { OneClient } = require("../utils/oneclient"); const { Filesystem } = require("../utils/filesystem"); const { ISCSI } = require("../utils/iscsi"); +const { NVMEoF } = require("../utils/nvmeof"); const registry = require("../utils/registry"); const semver = require("semver"); const GeneralUtils = require("../utils/general"); const { Zetabyte } = require("../utils/zfs"); +const { transport } = require("winston"); const __REGISTRY_NS__ = "CsiBaseDriver"; @@ -139,6 +141,18 @@ class CsiBaseDriver { }); } + /** + * Get an instance of the NVMEoF class + * + * @returns NVMEoF + */ + getDefaultNVMEoFInstance() { + const driver = this; + return registry.get(`${__REGISTRY_NS__}:default_nvmeof_instance`, () => { + return new NVMEoF({ logger: driver.ctx.logger }); + }); + } + getDefaultZetabyteInstance() { return registry.get(`${__REGISTRY_NS__}:default_zb_instance`, () => { return new Zetabyte({ @@ -560,6 +574,7 @@ class CsiBaseDriver { const mount = driver.getDefaultMountInstance(); const filesystem = driver.getDefaultFilesystemInstance(); const iscsi = driver.getDefaultISCSIInstance(); + const nvmeof = driver.getDefaultNVMEoFInstance(); let result; let device; let block_device_info; @@ -792,7 +807,11 @@ class CsiBaseDriver { await iscsi.iscsiadm.rescanSession(session); // find device name - device = iscsi.devicePathByPortalIQNLUN(iscsiConnection.portal, iscsiConnection.iqn, iscsiConnection.lun) + device = iscsi.devicePathByPortalIQNLUN( + iscsiConnection.portal, + iscsiConnection.iqn, + iscsiConnection.lun + ); let deviceByPath = device; // can take some time for device to show up, loop for some period @@ -887,6 +906,242 @@ class CsiBaseDriver { } break; + + case "nvmeof": + { + let transports = []; + if (volume_context.transport) { + transports.push(volume_context.transport.trim()); + } + + if (volume_context.transports) { + volume_context.transports.split(",").forEach((transport) => { + transports.push(transport.trim()); + }); + } + + // ensure unique entries only + transports = [...new Set(transports)]; + + // stores actual device paths after nvmeof login + let nvmeofControllerDevices = []; + let nvmeofNamespaceDevices = []; + + // stores configuration of targets/iqn/luns to connect to + let nvmeofConnections = []; + for (let transport of transports) { + nvmeofConnections.push({ + transport, + nqn: volume_context.nqn, + nsid: volume_context.nsid, + }); + } + + for (let nvmeofConnection of nvmeofConnections) { + // connect + try { + await GeneralUtils.retry(15, 2000, async () => { + await nvmeof.connectByNQNTransport( + nvmeofConnection.nqn, + nvmeofConnection.transport + ); + }); + } catch (err) { + driver.ctx.logger.warn( + `error: ${JSON.stringify(err)} connecting to transport: ${ + nvmeofConnection.transport + }` + ); + continue; + } + + // find controller device + let controllerDevice; + try { + await GeneralUtils.retry(15, 2000, async () => { + controllerDevice = + await nvmeof.controllerDevicePathByTransportNQN( + nvmeofConnection.transport, + nvmeofConnection.nqn, + nvmeofConnection.nsid + ); + + if (!controllerDevice) { + throw new Error(`failed to find controller device`); + } + }); + } catch (err) { + driver.ctx.logger.warn( + `error finding nvme controller device: ${JSON.stringify( + err + )}` + ); + continue; + } + + // find namespace device + let namespaceDevice; + try { + await GeneralUtils.retry(15, 2000, async () => { + // rescan in scenarios when login previously occurred but volumes never appeared + // must be the NVMe char device, not the namespace device + await nvmeof.rescanNamespace(controllerDevice); + + namespaceDevice = + await nvmeof.namespaceDevicePathByTransportNQNNamespace( + nvmeofConnection.transport, + nvmeofConnection.nqn, + nvmeofConnection.nsid + ); + if (!controllerDevice) { + throw new Error(`failed to find namespace device`); + } + }); + } catch (err) { + driver.ctx.logger.warn( + `error finding nvme namespace device: ${JSON.stringify( + err + )}` + ); + continue; + } + + // sanity check for device files + if (!namespaceDevice) { + continue; + } + + // sanity check for device files + if (!controllerDevice) { + continue; + } + + // can take some time for device to show up, loop for some period + result = await filesystem.pathExists(namespaceDevice); + let timer_start = Math.round(new Date().getTime() / 1000); + let timer_max = 30; + let deviceCreated = result; + while (!result) { + await GeneralUtils.sleep(2000); + result = await filesystem.pathExists(namespaceDevice); + + if (result) { + deviceCreated = true; + break; + } + + let current_time = Math.round(new Date().getTime() / 1000); + if (!result && current_time - timer_start > timer_max) { + driver.ctx.logger.warn( + `hit timeout waiting for namespace device node to appear: ${namespaceDevice}` + ); + break; + } + } + + if (deviceCreated) { + device = await filesystem.realpath(namespaceDevice); + nvmeofControllerDevices.push(controllerDevice); + nvmeofNamespaceDevices.push(namespaceDevice); + + driver.ctx.logger.info( + `successfully logged into nvmeof transport ${nvmeofConnection.transport} and created controller device: ${controllerDevice}, namespace device: ${namespaceDevice}` + ); + } + } + + // let things settle + // this will help in dm scenarios + await GeneralUtils.sleep(2000); + + // filter duplicates + nvmeofNamespaceDevices = nvmeofNamespaceDevices.filter( + (value, index, self) => { + return self.indexOf(value) === index; + } + ); + + nvmeofControllerDevices = nvmeofControllerDevices.filter( + (value, index, self) => { + return self.indexOf(value) === index; + } + ); + + // only throw an error if we were not able to attach to *any* devices + if (nvmeofNamespaceDevices.length < 1) { + throw new GrpcError( + grpc.status.UNKNOWN, + `unable to attach any nvme devices` + ); + } + + if (nvmeofControllerDevices.length != nvmeofConnections.length) { + driver.ctx.logger.warn( + `failed to attach all nvmeof devices/subsystems/transports` + ); + + // TODO: allow a parameter to control this behavior in some form + if (false) { + throw new GrpcError( + grpc.status.UNKNOWN, + `unable to attach all iscsi devices` + ); + } + } + + /** + * NVMEoF has native multipath capabilities without using device mapper + * You can disable the built-in using kernel param nvme_core.multipath=N/Y + */ + let useNativeMultipath = await nvmeof.nativeMultipathEnabled(); + + if (useNativeMultipath) { + // only throw an error if we were not able to attach to *any* devices + if (nvmeofNamespaceDevices.length > 1) { + throw new GrpcError( + grpc.status.UNKNOWN, + `too many nvme namespace devices, native multipath enabled therefore should only have 1` + ); + } + } else { + // compare all device-mapper slaves with the newly created devices + // if any of the new devices are device-mapper slaves treat this as a + // multipath scenario + let allDeviceMapperSlaves = + await filesystem.getAllDeviceMapperSlaveDevices(); + let commonDevices = allDeviceMapperSlaves.filter((value) => + nvmeofNamespaceDevices.includes(value) + ); + + const useDMMultipath = + nvmeofConnections.length > 1 || commonDevices.length > 0; + + // discover multipath device to use + if (useDMMultipath) { + device = await filesystem.getDeviceMapperDeviceFromSlaves( + nvmeofNamespaceDevices, + false + ); + + if (!device) { + throw new GrpcError( + grpc.status.UNKNOWN, + `failed to discover multipath device` + ); + } + } else { + // only throw an error if we were not able to attach to *any* devices + if (nvmeofNamespaceDevices.length > 1) { + throw new GrpcError( + grpc.status.UNKNOWN, + `too many nvme namespace devices, neither DM nor native multipath enabled` + ); + } + } + } + } + break; + case "hostpath": result = await mount.pathIsMounted(staging_target_path); // if not mounted, mount @@ -989,6 +1244,7 @@ class CsiBaseDriver { let is_block = false; switch (node_attach_driver) { case "iscsi": + case "nvmeof": is_block = true; break; case "zfs-local": @@ -1053,6 +1309,16 @@ class CsiBaseDriver { if (!Array.isArray(formatOptions)) { formatOptions = []; } + + switch (fs_type) { + case "ext3": + case "ext4": + case "ext4dev": + // disable reserved blocks in this scenario + formatOptions.unshift("-m", "0"); + break; + } + await filesystem.formatDevice(device, fs_type, formatOptions); } @@ -1093,6 +1359,7 @@ class CsiBaseDriver { fs_type = "cifs"; break; case "iscsi": + case "nvmeof": fs_type = "ext4"; break; default: @@ -1988,6 +2255,7 @@ class CsiBaseDriver { const mount = driver.getDefaultMountInstance(); const filesystem = driver.getDefaultFilesystemInstance(); const iscsi = driver.getDefaultISCSIInstance(); + const nvmeof = driver.getDefaultNVMEoFInstance(); let result; let is_block = false; let is_device_mapper = false; @@ -2101,6 +2369,7 @@ class CsiBaseDriver { } if (is_block) { + let breakdeviceloop = false; let realBlockDeviceInfos = []; // detect if is a multipath device is_device_mapper = await filesystem.isDeviceMapperDevice( @@ -2122,94 +2391,127 @@ class CsiBaseDriver { // TODO: this could be made async to detach all simultaneously for (const block_device_info_i of realBlockDeviceInfos) { - if (await filesystem.deviceIsIscsi(block_device_info_i.path)) { - let parent_block_device = await filesystem.getBlockDeviceParent( - block_device_info_i.path - ); + if (breakdeviceloop) { + break; + } + switch (block_device_info_i.tran) { + case "iscsi": + { + if ( + await filesystem.deviceIsIscsi(block_device_info_i.path) + ) { + let parent_block_device = + await filesystem.getBlockDeviceParent( + block_device_info_i.path + ); - // figure out which iscsi session this belongs to and logout - // scan /dev/disk/by-path/ip-*? - // device = `/dev/disk/by-path/ip-${volume_context.portal}-iscsi-${volume_context.iqn}-lun-${volume_context.lun}`; - // parse output from `iscsiadm -m session -P 3` - let sessions = await iscsi.iscsiadm.getSessionsDetails(); - for (let i = 0; i < sessions.length; i++) { - let session = sessions[i]; - let is_attached_to_session = false; + // figure out which iscsi session this belongs to and logout + // scan /dev/disk/by-path/ip-*? + // device = `/dev/disk/by-path/ip-${volume_context.portal}-iscsi-${volume_context.iqn}-lun-${volume_context.lun}`; + // parse output from `iscsiadm -m session -P 3` + let sessions = await iscsi.iscsiadm.getSessionsDetails(); + for (let i = 0; i < sessions.length; i++) { + let session = sessions[i]; + let is_attached_to_session = false; - if ( - session.attached_scsi_devices && - session.attached_scsi_devices.host && - session.attached_scsi_devices.host.devices - ) { - is_attached_to_session = - session.attached_scsi_devices.host.devices.some( - (device) => { - if ( - device.attached_scsi_disk == parent_block_device.name - ) { - return true; + if ( + session.attached_scsi_devices && + session.attached_scsi_devices.host && + session.attached_scsi_devices.host.devices + ) { + is_attached_to_session = + session.attached_scsi_devices.host.devices.some( + (device) => { + if ( + device.attached_scsi_disk == + parent_block_device.name + ) { + return true; + } + return false; + } + ); + } + + if (is_attached_to_session) { + let timer_start; + let timer_max; + + timer_start = Math.round(new Date().getTime() / 1000); + timer_max = 30; + let loggedOut = false; + while (!loggedOut) { + try { + await iscsi.iscsiadm.logout(session.target, [ + session.persistent_portal, + ]); + loggedOut = true; + } catch (err) { + await GeneralUtils.sleep(2000); + let current_time = Math.round( + new Date().getTime() / 1000 + ); + if (current_time - timer_start > timer_max) { + // not throwing error for now as future invocations would not enter code path anyhow + loggedOut = true; + //throw new GrpcError( + // grpc.status.UNKNOWN, + // `hit timeout trying to logout of iscsi target: ${session.persistent_portal}` + //); + } + } + } + + timer_start = Math.round(new Date().getTime() / 1000); + timer_max = 30; + let deletedEntry = false; + while (!deletedEntry) { + try { + await iscsi.iscsiadm.deleteNodeDBEntry( + session.target, + session.persistent_portal + ); + deletedEntry = true; + } catch (err) { + await GeneralUtils.sleep(2000); + let current_time = Math.round( + new Date().getTime() / 1000 + ); + if (current_time - timer_start > timer_max) { + // not throwing error for now as future invocations would not enter code path anyhow + deletedEntry = true; + //throw new GrpcError( + // grpc.status.UNKNOWN, + // `hit timeout trying to delete iscsi node DB entry: ${session.target}, ${session.persistent_portal}` + //); + } + } } - return false; } + } + } + } + break; + case "nvme": + { + if ( + await filesystem.deviceIsNVMEoF(block_device_info_i.path) + ) { + let nqn = await nvmeof.nqnByNamespaceDeviceName( + block_device_info_i.name ); - } - - if (is_attached_to_session) { - let timer_start; - let timer_max; - - timer_start = Math.round(new Date().getTime() / 1000); - timer_max = 30; - let loggedOut = false; - while (!loggedOut) { - try { - await iscsi.iscsiadm.logout(session.target, [ - session.persistent_portal, - ]); - loggedOut = true; - } catch (err) { - await GeneralUtils.sleep(2000); - let current_time = Math.round( - new Date().getTime() / 1000 - ); - if (current_time - timer_start > timer_max) { - // not throwing error for now as future invocations would not enter code path anyhow - loggedOut = true; - //throw new GrpcError( - // grpc.status.UNKNOWN, - // `hit timeout trying to logout of iscsi target: ${session.persistent_portal}` - //); - } - } - } - - timer_start = Math.round(new Date().getTime() / 1000); - timer_max = 30; - let deletedEntry = false; - while (!deletedEntry) { - try { - await iscsi.iscsiadm.deleteNodeDBEntry( - session.target, - session.persistent_portal - ); - deletedEntry = true; - } catch (err) { - await GeneralUtils.sleep(2000); - let current_time = Math.round( - new Date().getTime() / 1000 - ); - if (current_time - timer_start > timer_max) { - // not throwing error for now as future invocations would not enter code path anyhow - deletedEntry = true; - //throw new GrpcError( - // grpc.status.UNKNOWN, - // `hit timeout trying to delete iscsi node DB entry: ${session.target}, ${session.persistent_portal}` - //); - } + if (nqn) { + await nvmeof.disconnectByNQN(nqn); + /** + * the above disconnects *all* devices with the nqn so we + * do NOT want to keep iterating all the 'real' devices + * in the case of DM multipath + */ + breakdeviceloop = true; } } } - } + break; } } } @@ -2539,6 +2841,7 @@ class CsiBaseDriver { case "oneclient": case "hostpath": case "iscsi": + case "nvmeof": case "zfs-local": // ensure appropriate directories/files switch (access_type) { @@ -3205,6 +3508,8 @@ class CsiBaseDriver { const driver = this; const mount = driver.getDefaultMountInstance(); const filesystem = driver.getDefaultFilesystemInstance(); + const nvmeof = driver.getDefaultNVMEoFInstance(); + let device; let fs_info; let device_path; @@ -3267,6 +3572,14 @@ class CsiBaseDriver { rescan_devices.push(device); for (let sdevice of rescan_devices) { + let is_nvmeof = await filesystem.deviceIsNVMEoF(sdevice); + if (is_nvmeof) { + let controllers = + await nvmeof.getControllersByNamespaceDeviceName(sdevice); + for (let controller of controllers) { + await nvmeof.rescanNamespace(`/dev/${controller.Controller}`); + } + } // TODO: technically rescan is only relevant/available for remote drives // such as iscsi etc, should probably limit this call as appropriate // for now crudely checking the scenario inside the method itself diff --git a/src/driver/node-manual/index.js b/src/driver/node-manual/index.js index 0d1c364..96d6722 100644 --- a/src/driver/node-manual/index.js +++ b/src/driver/node-manual/index.js @@ -129,6 +129,7 @@ class NodeManualDriver extends CsiBaseDriver { driverResourceType = "filesystem"; break; case "iscsi": + case "nvmeof": driverResourceType = "volume"; fs_types = ["btrfs", "ext3", "ext4", "ext4dev", "xfs"]; break; @@ -164,6 +165,14 @@ class NodeManualDriver extends CsiBaseDriver { "MULTI_NODE_MULTI_WRITER", ]; } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + if (capability.access_type != "mount") { message = `invalid access_type ${capability.access_type}`; return false; @@ -195,6 +204,14 @@ class NodeManualDriver extends CsiBaseDriver { "MULTI_NODE_SINGLE_WRITER", ]; } + + if ( + capability.access_type == "block" && + !access_modes.includes("MULTI_NODE_MULTI_WRITER") + ) { + access_modes.push("MULTI_NODE_MULTI_WRITER"); + } + if (capability.access_type == "mount") { if ( capability.mount.fs_type && diff --git a/src/driver/zfs-local-ephemeral-inline/index.js b/src/driver/zfs-local-ephemeral-inline/index.js index d9dfebd..2fd4fc5 100644 --- a/src/driver/zfs-local-ephemeral-inline/index.js +++ b/src/driver/zfs-local-ephemeral-inline/index.js @@ -4,7 +4,7 @@ const { GrpcError, grpc } = require("../../utils/grpc"); const { Filesystem } = require("../../utils/filesystem"); const registry = require("../../utils/registry"); const semver = require("semver"); -const SshClient = require("../../utils/ssh").SshClient; +const SshClient = require("../../utils/zfs_ssh_exec_client").SshClient; const { Zetabyte, ZfsSshProcessManager } = require("../../utils/zfs"); // zfs common properties diff --git a/src/utils/filesystem.js b/src/utils/filesystem.js index 58e039e..5d86a79 100644 --- a/src/utils/filesystem.js +++ b/src/utils/filesystem.js @@ -504,7 +504,8 @@ class Filesystem { * lsblk * blkid */ - const strategy = process.env.FILESYSTEM_TYPE_DETECTION_STRATEGY || "lsblk"; + const strategy = + process.env.FILESYSTEM_TYPE_DETECTION_STRATEGY || "lsblk"; switch (strategy) { // requires udev data to be present otherwise fstype property is always null but otherwise succeeds @@ -547,6 +548,21 @@ class Filesystem { return result && result.tran == "iscsi"; } + async deviceIsNVMEoF(device) { + const filesystem = this; + let result; + + do { + if (result) { + device = `/dev/${result.pkname}`; + } + result = await filesystem.getBlockDevice(device); + } while (result.pkname); + + // TODO: add further logic here to ensure the device is not a local pcie/etc device + return result && result.tran == "nvme"; + } + async getBlockDeviceParent(device) { const filesystem = this; let result; diff --git a/src/utils/general.js b/src/utils/general.js index 10d9b3c..e07b7b9 100644 --- a/src/utils/general.js +++ b/src/utils/general.js @@ -1,6 +1,7 @@ const _ = require("lodash"); const axios = require("axios"); const crypto = require("crypto"); +const dns = require("dns"); function sleep(ms) { return new Promise((resolve) => { @@ -8,6 +9,17 @@ function sleep(ms) { }); } +function trimchar(str, ch) { + var start = 0, + end = str.length; + + while (start < end && str[start] === ch) ++start; + + while (end > start && str[end - 1] === ch) --end; + + return start > 0 || end < str.length ? str.substring(start, end) : str; +} + function md5(val) { return crypto.createHash("md5").update(val).digest("hex"); } @@ -87,10 +99,10 @@ function lockKeysFromRequest(call, serviceMethodName) { case "NodeUnstageVolume": case "NodePublishVolume": case "NodeUnpublishVolume": - case "NodeGetVolumeStats": case "NodeExpandVolume": return ["volume_id_" + call.request.volume_id]; + case "NodeGetVolumeStats": default: return []; } @@ -250,6 +262,18 @@ async function retry(retries, retriesDelay, code, options = {}) { } while (true); } +async function hostname_lookup(hostname) { + return new Promise((resolve, reject) => { + dns.lookup(hostname, function (err, result) { + if (err) { + return reject(err); + } + + return resolve(result); + }); + }); +} + module.exports.sleep = sleep; module.exports.md5 = md5; module.exports.crc32 = crc32; @@ -265,3 +289,5 @@ module.exports.default_supported_block_filesystems = module.exports.default_supported_file_filesystems = default_supported_file_filesystems; module.exports.retry = retry; +module.exports.trimchar = trimchar; +module.exports.hostname_lookup = hostname_lookup; diff --git a/src/utils/nvmeof.js b/src/utils/nvmeof.js new file mode 100644 index 0000000..63ab2a5 --- /dev/null +++ b/src/utils/nvmeof.js @@ -0,0 +1,554 @@ +const cp = require("child_process"); +const { hostname_lookup, trimchar } = require("./general"); +const URI = require("uri-js"); +const querystring = require("querystring"); + +const DEFAULT_TIMEOUT = process.env.NVMEOF_DEFAULT_TIMEOUT || 30000; + +class NVMEoF { + constructor(options = {}) { + const nvmeof = this; + nvmeof.options = options; + + options.paths = options.paths || {}; + if (!options.paths.nvme) { + options.paths.nvme = "nvme"; + } + + if (!options.paths.sudo) { + options.paths.sudo = "/usr/bin/sudo"; + } + + if (!options.executor) { + options.executor = { + spawn: cp.spawn, + }; + } + + if (nvmeof.options.logger) { + nvmeof.logger = nvmeof.options.logger; + } else { + nvmeof.logger = console; + } + } + + /** + * List all NVMe devices and namespaces on machine + * + * @param {*} args + */ + async list(args = []) { + const nvmeof = this; + args.unshift("list", "-o", "json"); + let result = await nvmeof.exec(nvmeof.options.paths.nvme, args); + return result.parsed; + } + + /** + * List nvme subsystems + * + * @param {*} args + */ + async listSubsys(args = []) { + const nvmeof = this; + args.unshift("list-subsys", "-o", "json"); + let result = await nvmeof.exec(nvmeof.options.paths.nvme, args); + return result.parsed; + } + + /** + * Discover NVMeoF subsystems + * + * @param {*} transport + * @param {*} args + * @returns + */ + async discover(transport, args = []) { + const nvmeof = this; + transport = await nvmeof.parseTransport(transport); + + let transport_args = []; + if (transport.type) { + transport_args.push("--transport", transport.type); + } + if (transport.address) { + transport_args.push("--traddr", transport.address); + } + if (transport.service) { + transport_args.push("--trsvcid", transport.service); + } + + args.unshift("discover", "-o", "json", ...transport_args); + let result = await nvmeof.exec(nvmeof.options.paths.nvme, args); + return result.parsed; + } + + /** + * Connect to NVMeoF subsystem + * + * @param {*} args + */ + async connectByNQNTransport(nqn, transport, args = []) { + const nvmeof = this; + transport = await nvmeof.parseTransport(transport); + + let transport_args = []; + if (transport.type) { + transport_args.push("--transport", transport.type); + } + if (transport.address) { + transport_args.push("--traddr", transport.address); + } + if (transport.service) { + transport_args.push("--trsvcid", transport.service); + } + + if (transport.args) { + for (let arg in transport.args) { + let value = transport.args[arg]; + if (!arg.startsWith("-")) { + arg = `--${arg}`; + } + + transport_args.push(arg, value); + } + } + + args.unshift("connect", "--nqn", nqn, ...transport_args); + + try { + await nvmeof.exec(nvmeof.options.paths.nvme, args); + } catch (err) { + if ( + err.stderr && + (err.stderr.includes("already connnected") || + err.stderr.includes("Operation already in progress")) + ) { + // idempotent + } else { + throw err; + } + } + } + + /** + * Disconnect from NVMeoF subsystem + * + * @param {*} args + */ + async disconnectByNQN(nqn, args = []) { + const nvmeof = this; + args.unshift("disconnect", "--nqn", nqn); + await nvmeof.exec(nvmeof.options.paths.nvme, args); + } + + /** + * Disconnect from NVMeoF subsystem + * + * @param {*} args + */ + async disconnectByDevice(device, args = []) { + const nvmeof = this; + args.unshift("disconnect", "--device", device); + await nvmeof.exec(nvmeof.options.paths.nvme, args); + } + + /** + * Rescans the NVME namespaces + * + * @param {*} device + * @param {*} args + */ + async rescanNamespace(device, args = []) { + const nvmeof = this; + args.unshift("ns-rescan", device); + await nvmeof.exec(nvmeof.options.paths.nvme, args); + } + + async deviceIsNamespaceDevice(device) { + const nvmeof = this; + device = device.replace("/dev/", ""); + const subsystems = await nvmeof.getSubsystems(); + for (let subsystem of subsystems) { + // check subsystem namespaces + if (subsystem.Namespaces) { + for (let namespace of subsystem.Namespaces) { + if (namespace.NameSpace == device) { + return true; + } + } + } + + // check controller namespaces + if (subsystem.Controllers) { + for (let controller of subsystem.Controllers) { + if (controller.Namespaces) { + for (let namespace of controller.Namespaces) { + if (namespace.NameSpace == device) { + return true; + } + } + } + } + } + } + + return false; + } + + async deviceIsControllerDevice(device) { + const nvmeof = this; + device = device.replace("/dev/", ""); + const subsystems = await nvmeof.getSubsystems(); + for (let subsystem of subsystems) { + if (subsystem.Controllers) { + for (let controller of subsystem.Controllers) { + if (controller.Controller == device) { + return true; + } + } + } + } + + return false; + } + + async parseTransport(transport) { + if (typeof transport === "object") { + return transport; + } + + transport = transport.trim(); + const parsed = URI.parse(transport); + let args = querystring.parse(parsed.query); + + let type = parsed.scheme; + let address = parsed.host; + let service; + switch (parsed.scheme) { + case "fc": + case "rdma": + case "tcp": + type = parsed.scheme; + break; + default: + throw new Error(`unknown nvme transport type: ${parsed.scheme}`); + } + + switch (type) { + case "fc": + address = trimchar(address, "["); + address = trimchar(address, "]"); + break; + case "tcp": + /** + * kernel stores value as ip, so if address passed as hostname then + * translate to ip address + * + * TODO: this could be brittle + */ + let lookup = await hostname_lookup(address); + if (lookup) { + address = lookup; + } + break; + } + + switch (type) { + case "rdma": + case "tcp": + service = parsed.port; + + if (!service) { + service = 4420; + } + break; + } + + return { + type, + address, + service, + args, + }; + } + + async nativeMultipathEnabled() { + const nvmeof = this; + let result = await nvmeof.exec("cat", [ + "/sys/module/nvme_core/parameters/multipath", + ]); + return result.stdout.trim() == "Y"; + } + + async namespaceDevicePathByTransportNQNNamespace(transport, nqn, namespace) { + const nvmeof = this; + transport = await nvmeof.parseTransport(transport); + let nativeMultipathEnabled = await nvmeof.nativeMultipathEnabled(); + + if (nativeMultipathEnabled) { + let subsystem = await nvmeof.getSubsystemByNQN(nqn); + if (subsystem) { + for (let i_namespace of subsystem.Namespaces) { + if (i_namespace.NSID != namespace) { + continue; + } else { + return `/dev/${i_namespace.NameSpace}`; + } + } + } + } else { + let controller = await nvmeof.getControllerByTransportNQN(transport, nqn); + if (controller) { + for (let i_namespace of controller.Namespaces) { + if (i_namespace.NSID != namespace) { + continue; + } else { + return `/dev/${i_namespace.NameSpace}`; + } + } + } + } + } + + async controllerDevicePathByTransportNQN(transport, nqn) { + const nvmeof = this; + transport = await nvmeof.parseTransport(transport); + let controller = await nvmeof.getControllerByTransportNQN(transport, nqn); + if (controller) { + return `/dev/${controller.Controller}`; + } + } + + async getSubsystems() { + const nvmeof = this; + let result = await nvmeof.list(["-v"]); + + return nvmeof.getNormalizedSubsystems(result); + } + + /** + * used to normalize subsystem list/response across different versions of nvme-cli + * + * @param {*} result + * @returns + */ + async getNormalizedSubsystems(result) { + let subsystems = []; + + for (let device of result.Devices) { + if (Array.isArray(device.Subsystems)) { + subsystems = subsystems.concat(device.Subsystems); + } else if (device.Subsystem) { + // nvme-cli 1.x support + subsystems.push(device); + } + } + + return subsystems; + } + + async getSubsystemByNQN(nqn) { + const nvmeof = this; + const subsystems = await nvmeof.getSubsystems(); + for (let subsystem of subsystems) { + if (subsystem.SubsystemNQN == nqn) { + return subsystem; + } + } + + nvmeof.logger.warn(`failed to find subsystem for nqn: ${nqn}`); + } + + async getControllersByNamespaceDeviceName(name) { + const nvmeof = this; + name = name.replace("/dev/", ""); + let nativeMultipathEnabled = await nvmeof.nativeMultipathEnabled(); + const subsystems = await nvmeof.getSubsystems(); + + if (nativeMultipathEnabled) { + // using per-subsystem namespace + for (let subsystem of subsystems) { + if (subsystem.Namespaces) { + for (let namespace of subsystem.Namespaces) { + if (namespace.NameSpace == name) { + return subsystem.Controllers; + } + } + } + } + } else { + // using per-controller namespace + for (let subsystem of subsystems) { + if (subsystem.Controllers) { + for (let controller of subsystem.Controllers) { + if (controller.Namespaces) { + for (let namespace of controller.Namespaces) { + if (namespace.NameSpace == name) { + return subsystem.Controllers; + } + } + } + } + } + } + } + + nvmeof.logger.warn(`failed to find controllers for device: ${name}`); + return []; + } + + async getControllerByTransportNQN(transport, nqn) { + const nvmeof = this; + transport = await nvmeof.parseTransport(transport); + let subsystem = await nvmeof.getSubsystemByNQN(nqn); + if (subsystem) { + for (let controller of subsystem.Controllers) { + if (controller.Transport != transport.type) { + continue; + } + + let controllerAddress = controller.Address; + /** + * For backwards compatibility with older nvme-cli versions (at least < 2.2.1) + * old: "Address":"traddr=127.0.0.1 trsvcid=4420" + * new: "Address":"traddr=127.0.0.1,trsvcid=4420" + */ + controllerAddress = controllerAddress.replace( + new RegExp(/ ([a-z_]*=)/, "g"), + ",$1" + ); + let parts = controllerAddress.split(","); + + let traddr; + let trsvcid; + for (let i_part of parts) { + let i_parts = i_part.split("="); + switch (i_parts[0].trim()) { + case "traddr": + traddr = i_parts[1].trim(); + break; + case "trsvcid": + trsvcid = i_parts[1].trim(); + break; + } + } + + if (traddr != transport.address) { + continue; + } + + if (transport.service && trsvcid != transport.service) { + continue; + } + + return controller; + } + } + + nvmeof.logger.warn( + `failed to find controller for transport: ${JSON.stringify( + transport + )}, nqn: ${nqn}` + ); + } + + async nqnByNamespaceDeviceName(name) { + const nvmeof = this; + name = name.replace("/dev/", ""); + let nativeMultipathEnabled = await nvmeof.nativeMultipathEnabled(); + const subsystems = await nvmeof.getSubsystems(); + + if (nativeMultipathEnabled) { + // using per-subsystem namespace + for (let subsystem of subsystems) { + if (subsystem.Namespaces) { + for (let namespace of subsystem.Namespaces) { + if (namespace.NameSpace == name) { + return subsystem.SubsystemNQN; + } + } + } + } + } else { + // using per-controller namespace + for (let subsystem of subsystems) { + if (subsystem.Controllers) { + for (let controller of subsystem.Controllers) { + if (controller.Namespaces) { + for (let namespace of controller.Namespaces) { + if (namespace.NameSpace == name) { + return subsystem.SubsystemNQN; + } + } + } + } + } + } + } + + nvmeof.logger.warn(`failed to find nqn for device: ${name}`); + } + + devicePathByModelNumberSerialNumber(modelNumber, serialNumber) { + modelNumber = modelNumber.replaceAll(" ", "_"); + serialNumber = serialNumber.replaceAll(" ", "_"); + return `/dev/disk/by-id/nvme-${modelNumber}_${serialNumber}`; + } + + exec(command, args, options = {}) { + if (!options.hasOwnProperty("timeout")) { + options.timeout = DEFAULT_TIMEOUT; + } + + const nvmeof = this; + args = args || []; + + if (nvmeof.options.sudo) { + args.unshift(command); + command = nvmeof.options.paths.sudo; + } + + nvmeof.logger.verbose( + "executing nvmeof command: %s %s", + command, + args.join(" ") + ); + + return new Promise((resolve, reject) => { + const child = nvmeof.options.executor.spawn(command, args, options); + + let stdout = ""; + let stderr = ""; + + child.stdout.on("data", function (data) { + stdout = stdout + data; + }); + + child.stderr.on("data", function (data) { + stderr = stderr + data; + }); + + child.on("close", function (code) { + const result = { code, stdout, stderr, timeout: false }; + try { + result.parsed = JSON.parse(result.stdout); + } catch (err) {} + + // timeout scenario + if (code === null) { + result.timeout = true; + reject(result); + } + + if (code) { + reject(result); + } else { + resolve(result); + } + }); + }); + } +} + +module.exports.NVMEoF = NVMEoF; diff --git a/src/utils/windows.js b/src/utils/windows.js index c02ceb3..3993c29 100644 --- a/src/utils/windows.js +++ b/src/utils/windows.js @@ -118,6 +118,9 @@ class Windows { // -UseWriteThrough $true // cannot have trailing slash nor a path // must be \\\ + // + // https://github.com/kubernetes-csi/csi-driver-smb/issues/219#issuecomment-781952587 + // -Persistent $false remotePath = this.uncPathToShare(remotePath); command = "$PWord = ConvertTo-SecureString -String $Env:smbpassword -AsPlainText -Force;$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $Env:smbuser, $PWord;New-SmbGlobalMapping -RemotePath $Env:smbremotepath -Credential $Credential -RequirePrivacy $true"; diff --git a/src/driver/controller-zfs-local/exec.js b/src/utils/zfs_local_exec_client.js similarity index 100% rename from src/driver/controller-zfs-local/exec.js rename to src/utils/zfs_local_exec_client.js diff --git a/src/utils/ssh.js b/src/utils/zfs_ssh_exec_client.js similarity index 100% rename from src/utils/ssh.js rename to src/utils/zfs_ssh_exec_client.js