From f2f237609fc6ced577fa8e8d7b945659acd6f3ff Mon Sep 17 00:00:00 2001 From: Idan Frimark <40820488+FrimIdan@users.noreply.github.com> Date: Tue, 3 May 2022 12:05:32 +0300 Subject: [PATCH] github: cisco-open to openclarity repo move (#151) --- .github/CODEOWNERS | 4 ++-- .github/workflows/reusable-build-and-push.yml | 12 +++++----- .golangci.yml | 2 +- .goreleaser.yml | 2 +- Dockerfile.backend | 6 ++--- Dockerfile.cis_docker_benchmark_scanner | 6 ++--- Dockerfile.cli | 2 +- Dockerfile.runtime_k8s_scanner | 6 ++--- Dockerfile.sbom_db | 6 ++--- Makefile | 4 ++-- README.md | 14 ++++++------ .../client/kube_clarity_a_p_is_client.go | 2 +- .../delete_applications_id_responses.go | 2 +- .../get_application_resources_id_responses.go | 2 +- .../get_application_resources_responses.go | 2 +- .../get_applications_id_responses.go | 2 +- .../operations/get_applications_responses.go | 2 +- .../get_dashboard_counters_responses.go | 2 +- ...get_dashboard_most_vulnerable_responses.go | 2 +- ...shboard_packages_per_language_responses.go | 2 +- ...ashboard_packages_per_license_responses.go | 2 +- ...hboard_trends_vulnerabilities_responses.go | 2 +- ...oard_vulnerabilities_with_fix_responses.go | 2 +- .../operations/get_namespaces_responses.go | 2 +- ...ages_id_application_resources_responses.go | 2 +- .../operations/get_packages_id_responses.go | 2 +- .../operations/get_packages_responses.go | 2 +- .../get_runtime_quickscan_config_responses.go | 2 +- .../get_runtime_scan_progress_responses.go | 2 +- .../get_runtime_scan_results_responses.go | 2 +- .../get_vulnerabilities_responses.go | 2 +- ...vulnerabilities_vul_id_pkg_id_responses.go | 2 +- ...ications_content_analysis_id_parameters.go | 2 +- ...lications_content_analysis_id_responses.go | 2 +- .../post_applications_parameters.go | 2 +- .../operations/post_applications_responses.go | 2 +- ...ations_vulnerability_scan_id_parameters.go | 2 +- ...cations_vulnerability_scan_id_responses.go | 2 +- .../put_applications_id_parameters.go | 2 +- .../put_applications_id_responses.go | 2 +- ...put_runtime_quickscan_config_parameters.go | 2 +- .../put_runtime_quickscan_config_responses.go | 2 +- .../put_runtime_scan_start_parameters.go | 2 +- .../put_runtime_scan_start_responses.go | 2 +- .../put_runtime_scan_stop_responses.go | 2 +- api/go.mod | 2 +- .../cmd/kube-clarity-a-p-is-server/main.go | 4 ++-- .../restapi/configure_kube_clarity_a_p_is.go | 2 +- .../delete_applications_id_responses.go | 2 +- .../operations/get_application_resources.go | 2 +- .../get_application_resources_id_responses.go | 2 +- .../get_application_resources_responses.go | 2 +- .../restapi/operations/get_applications.go | 2 +- .../get_applications_id_responses.go | 2 +- .../operations/get_applications_responses.go | 2 +- .../get_dashboard_counters_responses.go | 2 +- ...get_dashboard_most_vulnerable_responses.go | 2 +- ...shboard_packages_per_language_responses.go | 2 +- ...ashboard_packages_per_license_responses.go | 2 +- ...hboard_trends_vulnerabilities_responses.go | 2 +- ...oard_vulnerabilities_with_fix_responses.go | 2 +- .../operations/get_namespaces_responses.go | 2 +- api/server/restapi/operations/get_packages.go | 2 +- .../get_packages_id_application_resources.go | 2 +- ...ages_id_application_resources_responses.go | 2 +- .../operations/get_packages_id_responses.go | 2 +- .../operations/get_packages_responses.go | 2 +- .../get_runtime_quickscan_config_responses.go | 2 +- .../get_runtime_scan_progress_responses.go | 2 +- .../get_runtime_scan_results_responses.go | 2 +- .../restapi/operations/get_vulnerabilities.go | 2 +- .../get_vulnerabilities_responses.go | 2 +- ...vulnerabilities_vul_id_pkg_id_responses.go | 2 +- ...ications_content_analysis_id_parameters.go | 2 +- ...lications_content_analysis_id_responses.go | 2 +- .../post_applications_parameters.go | 2 +- .../operations/post_applications_responses.go | 2 +- ...ations_vulnerability_scan_id_parameters.go | 2 +- ...cations_vulnerability_scan_id_responses.go | 2 +- .../put_applications_id_parameters.go | 2 +- .../put_applications_id_responses.go | 2 +- ...put_runtime_quickscan_config_parameters.go | 2 +- .../put_runtime_quickscan_config_responses.go | 2 +- .../put_runtime_scan_start_parameters.go | 2 +- .../put_runtime_scan_start_responses.go | 2 +- .../put_runtime_scan_stop_responses.go | 2 +- api/server/restapi/server.go | 2 +- backend/cmd/backend/main.go | 8 +++---- backend/go.mod | 22 +++++++++---------- backend/pkg/backend/backend.go | 14 ++++++------ backend/pkg/database/application.go | 6 ++--- .../database/cis_docker_benchmark_level.go | 2 +- .../database/cis_docker_benchmark_result.go | 2 +- backend/pkg/database/common.go | 2 +- backend/pkg/database/fake.go | 6 ++--- backend/pkg/database/join_tables.go | 4 ++-- backend/pkg/database/mock_resource_table.go | 4 ++-- backend/pkg/database/new_vulnerability.go | 4 ++-- backend/pkg/database/package.go | 8 +++---- backend/pkg/database/package_test.go | 2 +- backend/pkg/database/quickscan.go | 2 +- backend/pkg/database/resource.go | 12 +++++----- backend/pkg/database/resource_test.go | 6 ++--- backend/pkg/database/severity.go | 4 ++-- backend/pkg/database/vulnerability.go | 6 ++--- backend/pkg/rest/applications_controller.go | 10 ++++----- .../pkg/rest/applications_controller_test.go | 4 ++-- .../rest/applications_resources_controller.go | 6 ++--- backend/pkg/rest/dashboard_controller.go | 4 ++-- backend/pkg/rest/packages_controller.go | 6 ++--- backend/pkg/rest/runtime_scan_controller.go | 14 ++++++------ .../pkg/rest/runtime_scan_controller_test.go | 6 ++--- backend/pkg/rest/server.go | 12 +++++----- .../pkg/rest/vulnerabilities_controller.go | 6 ++--- .../types/application_vulnerability_scan.go | 4 ++-- backend/pkg/types/cis_docker_benchmark.go | 4 ++-- .../pkg/types/cis_docker_benchmark_test.go | 4 ++-- backend/pkg/types/cvss.go | 4 ++-- backend/pkg/types/cvss_test.go | 2 +- backend/pkg/types/cvss_v3_metrics.go | 4 ++-- backend/pkg/types/cvss_v3_metrics_test.go | 2 +- backend/pkg/types/cvss_v3_vector.go | 4 ++-- backend/pkg/types/package_info.go | 4 ++-- .../pkg/types/package_vulnerability_scan.go | 4 ++-- backend/pkg/types/resource_info.go | 4 ++-- backend/pkg/types/resource_type.go | 2 +- charts/kubeclarity/Chart.yaml | 8 +++---- charts/kubeclarity/values.yaml | 2 +- cis_docker_benchmark_scanner/cmd/main.go | 6 ++--- cis_docker_benchmark_scanner/go.mod | 14 ++++++------ .../pkg/config/config.go | 2 +- .../pkg/report/report.go | 8 +++---- .../pkg/scanner/run.go | 6 ++--- cli/cmd/analyze.go | 18 +++++++-------- cli/cmd/convert.go | 4 ++-- cli/cmd/root.go | 4 ++-- cli/cmd/scan.go | 22 +++++++++---------- cli/go.mod | 10 ++++----- cli/main.go | 2 +- cli/pkg/analyzer/export/export.go | 12 +++++----- cli/pkg/analyzer/export/export_test.go | 2 +- cli/pkg/config/config.go | 2 +- cli/pkg/config/registry.go | 2 +- cli/pkg/scanner/export/export.go | 14 ++++++------ cli/pkg/scanner/export/export_test.go | 4 ++-- cli/pkg/scanner/presenter/json/presenter.go | 2 +- cli/pkg/scanner/presenter/presenter.go | 6 ++--- cli/pkg/scanner/presenter/table/presenter.go | 4 ++-- .../scanner/presenter/table/presenter_test.go | 2 +- cli/pkg/utils/api_client.go | 4 ++-- cli/pkg/utils/hash.go | 2 +- cli/pkg/utils/vulnerability.go | 4 ++-- docker-run.sh | 2 +- runtime_k8s_scanner/cmd/main.go | 6 ++--- runtime_k8s_scanner/go.mod | 14 ++++++------ runtime_k8s_scanner/pkg/analyze/analyze.go | 10 ++++----- runtime_k8s_scanner/pkg/config/config.go | 2 +- runtime_k8s_scanner/pkg/report/report.go | 16 +++++++------- runtime_k8s_scanner/pkg/report/report_test.go | 4 ++-- runtime_k8s_scanner/pkg/sbomdb/client.go | 2 +- runtime_k8s_scanner/pkg/sbomdb/getter.go | 4 ++-- runtime_k8s_scanner/pkg/sbomdb/setter.go | 6 ++--- runtime_k8s_scanner/pkg/scan/scan.go | 10 ++++----- runtime_k8s_scanner/pkg/scanner/scanner.go | 18 +++++++-------- ...kube_clarity_runtime_scan_a_p_is_client.go | 2 +- ...cis_docker_benchmark_results_parameters.go | 2 +- ..._cis_docker_benchmark_results_responses.go | 2 +- ...n_scan_uuid_content_analysis_parameters.go | 2 +- ...an_scan_uuid_content_analysis_responses.go | 2 +- .../post_scan_scan_uuid_results_parameters.go | 2 +- .../post_scan_scan_uuid_results_responses.go | 2 +- runtime_scan/api/go.mod | 2 +- .../main.go | 4 ++-- ...figure_kube_clarity_runtime_scan_a_p_is.go | 2 +- ...cis_docker_benchmark_results_parameters.go | 2 +- ..._cis_docker_benchmark_results_responses.go | 2 +- ...n_scan_uuid_content_analysis_parameters.go | 2 +- ...an_scan_uuid_content_analysis_responses.go | 2 +- .../post_scan_scan_uuid_results_parameters.go | 2 +- .../post_scan_scan_uuid_results_responses.go | 2 +- runtime_scan/api/server/restapi/server.go | 2 +- runtime_scan/go.mod | 14 ++++++------ runtime_scan/pkg/fake/fake.go | 6 ++--- .../pkg/orchestrator/mock_orchestrator.go | 6 ++--- runtime_scan/pkg/orchestrator/orchestrator.go | 14 ++++++------ runtime_scan/pkg/rest/server.go | 6 ++--- runtime_scan/pkg/scanner/creds/basic.go | 2 +- runtime_scan/pkg/scanner/job_managment.go | 10 ++++----- .../pkg/scanner/job_managment_test.go | 8 +++---- runtime_scan/pkg/scanner/scanner.go | 14 ++++++------ runtime_scan/pkg/types/types.go | 2 +- .../kube_clarity_s_b_o_m_d_b_a_p_is_client.go | 2 +- .../get_sbom_d_b_resource_hash_responses.go | 2 +- .../put_sbom_d_b_resource_hash_parameters.go | 2 +- .../put_sbom_d_b_resource_hash_responses.go | 2 +- sbom_db/api/go.mod | 2 +- .../main.go | 4 ++-- ...nfigure_kube_clarity_s_b_o_m_d_b_a_p_is.go | 2 +- .../get_sbom_d_b_resource_hash_responses.go | 2 +- .../put_sbom_d_b_resource_hash_parameters.go | 2 +- .../put_sbom_d_b_resource_hash_responses.go | 2 +- sbom_db/api/server/restapi/server.go | 2 +- sbom_db/backend/cmd/main.go | 6 ++--- sbom_db/backend/go.mod | 6 ++--- sbom_db/backend/pkg/backend/controller.go | 6 ++--- sbom_db/backend/pkg/backend/run.go | 4 ++-- sbom_db/backend/pkg/backend/server.go | 6 ++--- shared/go.mod | 2 +- shared/pkg/analyzer/analyzer.go | 2 +- .../pkg/analyzer/cdx_gomod/cyclonedx_gomod.go | 10 ++++----- shared/pkg/analyzer/job/job.go | 8 +++---- shared/pkg/analyzer/merge.go | 4 ++-- shared/pkg/analyzer/merge_test.go | 4 ++-- shared/pkg/analyzer/syft/syft.go | 12 +++++----- shared/pkg/config/analyzer.go | 2 +- shared/pkg/config/runtime_scanner.go | 4 ++-- shared/pkg/converter/cyclonedx_to_syft.go | 4 ++-- shared/pkg/job_manager/job.go | 4 ++-- shared/pkg/job_manager/manager.go | 4 ++-- .../get_component_by_uuid_responses.go | 2 +- .../client/dependency_track_api_client.go | 10 ++++----- .../get_findings_by_project_responses.go | 2 +- .../project/create_project_parameters.go | 2 +- .../project/create_project_responses.go | 2 +- .../client/project/get_project1_responses.go | 2 +- .../client/project/get_project_responses.go | 2 +- .../client/project/get_projects_responses.go | 2 +- .../project/update_project_parameters.go | 2 +- .../project/update_project_responses.go | 2 +- ...et_vulnerabilities_by_project_responses.go | 2 +- .../dependency_track/dependency_track.go | 18 +++++++-------- shared/pkg/scanner/grype/common.go | 10 ++++----- shared/pkg/scanner/grype/common_test.go | 2 +- shared/pkg/scanner/grype/local_grype.go | 6 ++--- shared/pkg/scanner/grype/remote_grype.go | 8 +++---- shared/pkg/scanner/job/job.go | 8 +++---- shared/pkg/scanner/sort.go | 2 +- shared/pkg/scanner/sort_test.go | 2 +- shared/pkg/utils/creds/extractor.go | 8 +++---- shared/pkg/utils/creds/secret/secret.go | 2 +- shared/pkg/utils/image_helper/image_helper.go | 2 +- shared/pkg/utils/k8s/k8s_utils.go | 6 ++--- shared/pkg/utils/k8s/k8s_utils_test.go | 12 +++++----- 243 files changed, 524 insertions(+), 524 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1a5429480..3ebb54439 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,8 +4,8 @@ # the repo. Unless a later match takes precedence, # the following users/teams will be requested for # review when someone opens a pull request. -* @cisco-open/kubei-maintainers +* @openclarity/kubeclarity-maintainers # Enforces admin protections for repo configuration via probot settings app. # ref: https://github.com/probot/settings#security-implications -.github/settings.yml @cisco-open/kubei-admins +.github/settings.yml @openclarity/kubeclarity-admins diff --git a/.github/workflows/reusable-build-and-push.yml b/.github/workflows/reusable-build-and-push.yml index 59877748b..848a8aa29 100644 --- a/.github/workflows/reusable-build-and-push.yml +++ b/.github/workflows/reusable-build-and-push.yml @@ -23,7 +23,7 @@ jobs: id: timestamp run: echo "::set-output name=timestamp::$(date -u +'%Y-%m-%dT%H:%M:%SZ')" - apiclarity: + kubeclarity: needs: timestamp runs-on: ubuntu-latest steps: @@ -52,7 +52,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - tags: ghcr.io/cisco-open/kubeclarity:${{ inputs.image_tag }} + tags: ghcr.io/openclarity/kubeclarity:${{ inputs.image_tag }} file: Dockerfile.backend push: ${{ inputs.push }} cache-from: type=local,src=/tmp/.buildx-cache @@ -91,7 +91,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - tags: ghcr.io/cisco-open/kubeclarity-cis-docker-benchmark-scanner:${{ inputs.image_tag }} + tags: ghcr.io/openclarity/kubeclarity-cis-docker-benchmark-scanner:${{ inputs.image_tag }} file: Dockerfile.cis_docker_benchmark_scanner push: ${{ inputs.push }} cache-from: type=local,src=/tmp/.buildx-cache @@ -130,7 +130,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - tags: ghcr.io/cisco-open/kubeclarity-runtime-k8s-scanner:${{ inputs.image_tag }} + tags: ghcr.io/openclarity/kubeclarity-runtime-k8s-scanner:${{ inputs.image_tag }} file: Dockerfile.runtime_k8s_scanner push: ${{ inputs.push }} cache-from: type=local,src=/tmp/.buildx-cache @@ -169,7 +169,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - tags: ghcr.io/cisco-open/kubeclarity-sbom-db:${{ inputs.image_tag }} + tags: ghcr.io/openclarity/kubeclarity-sbom-db:${{ inputs.image_tag }} file: Dockerfile.sbom_db push: ${{ inputs.push }} cache-from: type=local,src=/tmp/.buildx-cache @@ -208,7 +208,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - tags: ghcr.io/cisco-open/kubeclarity-cli:${{ inputs.image_tag }} + tags: ghcr.io/openclarity/kubeclarity-cli:${{ inputs.image_tag }} file: Dockerfile.cli push: ${{ inputs.push }} cache-from: type=local,src=/tmp/.buildx-cache diff --git a/.golangci.yml b/.golangci.yml index 8fa614656..65496eb6e 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,7 +8,7 @@ linters-settings: golint: min-confidence: 0.1 goimports: - local-prefixes: github.com/cisco-open/kubei + local-prefixes: github.com/openclarity/kubeclarity errorlint: # Check whether fmt.Errorf uses the %w verb for formatting errors. See the readme for caveats errorf: false diff --git a/.goreleaser.yml b/.goreleaser.yml index ca8cce5fb..df20121d8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,7 +5,7 @@ builds: binary: kubeclarity-cli env: - CGO_ENABLED=0 - ldflags: "-s -w -X github.com/cisco-open/kubei/cli/pkg.GitRevision={{ .Version }}" + ldflags: "-s -w -X github.com/openclarity/kubeclarity/cli/pkg.GitRevision={{ .Version }}" goos: - linux - darwin diff --git a/Dockerfile.backend b/Dockerfile.backend index 5024b66c9..8ad486b99 100644 --- a/Dockerfile.backend +++ b/Dockerfile.backend @@ -54,9 +54,9 @@ COPY shared . WORKDIR /build/backend COPY backend . RUN go build -ldflags="-s -w \ - -X 'github.com/cisco-open/kubei/backend/pkg/version.Version=${VERSION}' \ - -X 'github.com/cisco-open/kubei/backend/pkg/version.CommitHash=${COMMIT_HASH}' \ - -X 'github.com/cisco-open/kubei/backend/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" -o backend ./cmd/backend/main.go + -X 'github.com/openclarity/kubeclarity/backend/pkg/version.Version=${VERSION}' \ + -X 'github.com/openclarity/kubeclarity/backend/pkg/version.CommitHash=${COMMIT_HASH}' \ + -X 'github.com/openclarity/kubeclarity/backend/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" -o backend ./cmd/backend/main.go FROM alpine:3.15.4 diff --git a/Dockerfile.cis_docker_benchmark_scanner b/Dockerfile.cis_docker_benchmark_scanner index 0644ccf1c..7bf124730 100644 --- a/Dockerfile.cis_docker_benchmark_scanner +++ b/Dockerfile.cis_docker_benchmark_scanner @@ -23,9 +23,9 @@ RUN go mod download WORKDIR /build/cis_docker_benchmark_scanner COPY cis_docker_benchmark_scanner . RUN CGO_ENABLED=0 go build -ldflags="-s -w \ - -X 'github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/version.Version=${VERSION}' \ - -X 'github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/version.CommitHash=${COMMIT_HASH}' \ - -X 'github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" \ + -X 'github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/version.Version=${VERSION}' \ + -X 'github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/version.CommitHash=${COMMIT_HASH}' \ + -X 'github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" \ -o cis_docker_benchmark_scanner ./cmd/main.go FROM alpine:3.15.4 diff --git a/Dockerfile.cli b/Dockerfile.cli index 999de1fb2..213990ac9 100644 --- a/Dockerfile.cli +++ b/Dockerfile.cli @@ -26,7 +26,7 @@ COPY shared . WORKDIR /build/cli COPY cli . RUN go build -ldflags="-s -w \ - -X 'github.com/cisco-open/kubei/cli/pkg.GitRevision=${COMMIT_HASH}'" -o cli ./main.go + -X 'github.com/openclarity/kubeclarity/cli/pkg.GitRevision=${COMMIT_HASH}'" -o cli ./main.go RUN go build -ldflags "${LDFLAGS}" ./... FROM alpine:3.15.4 diff --git a/Dockerfile.runtime_k8s_scanner b/Dockerfile.runtime_k8s_scanner index e8bfe62fd..6d51d0f0b 100644 --- a/Dockerfile.runtime_k8s_scanner +++ b/Dockerfile.runtime_k8s_scanner @@ -32,9 +32,9 @@ COPY shared . WORKDIR /build/runtime_k8s_scanner COPY runtime_k8s_scanner . RUN go build -ldflags="-s -w \ - -X 'github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/version.Version=${VERSION}' \ - -X 'github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/version.CommitHash=${COMMIT_HASH}' \ - -X 'github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" \ + -X 'github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/version.Version=${VERSION}' \ + -X 'github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/version.CommitHash=${COMMIT_HASH}' \ + -X 'github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" \ -o runtime_k8s_scanner ./cmd/main.go FROM alpine:3.15.4 diff --git a/Dockerfile.sbom_db b/Dockerfile.sbom_db index 25038b07a..411d91019 100644 --- a/Dockerfile.sbom_db +++ b/Dockerfile.sbom_db @@ -16,9 +16,9 @@ ARG COMMIT_HASH # Copy and build backend code COPY sbom_db/backend . RUN go build -ldflags="-s -w \ - -X 'github.com/cisco-open/kubei/sbom_db/backend/pkg/version.Version=${VERSION}' \ - -X 'github.com/cisco-open/kubei/sbom_db/backend/pkg/version.CommitHash=${COMMIT_HASH}' \ - -X 'github.com/cisco-open/kubei/sbom_db/backend/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" -o sbom_db ./cmd/main.go + -X 'github.com/openclarity/kubeclarity/sbom_db/backend/pkg/version.Version=${VERSION}' \ + -X 'github.com/openclarity/kubeclarity/sbom_db/backend/pkg/version.CommitHash=${COMMIT_HASH}' \ + -X 'github.com/openclarity/kubeclarity/sbom_db/backend/pkg/version.BuildTimestamp=${BUILD_TIMESTAMP}'" -o sbom_db ./cmd/main.go FROM alpine:3.15.4 diff --git a/Makefile b/Makefile index 2140332de..f5c24bfe9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL=/bin/bash # Project variables BINARY_NAME ?= kubeclarity -DOCKER_REGISTRY ?= ghcr.io/kubeclarity +DOCKER_REGISTRY ?= ghcr.io/openclarity VERSION ?= $(shell git rev-parse HEAD) DOCKER_IMAGE ?= $(DOCKER_REGISTRY)/$(BINARY_NAME) DOCKER_TAG ?= ${VERSION} @@ -35,7 +35,7 @@ ui: ## Build UI .PHONY: cli cli: ## Build CLI @(echo "Building CLI ..." ) - @(cd cli && go build -ldflags "-X github.com/cisco-open/kubei/cli/pkg.GitRevision=${VERSION}" -o bin/cli ./main.go && ls -l bin/) + @(cd cli && go build -ldflags "-X github.com/openclarity/kubeclarity/cli/pkg.GitRevision=${VERSION}" -o bin/cli ./main.go && ls -l bin/) .PHONY: backend backend: ## Build Backend diff --git a/README.md b/README.md index 11aca5460..96826a604 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ KubeClarity is a tool for detection and management of Software Bill Of Materials * Merging of SBOM and vulnerabilities across different CI/CD stages * Export results to KubeClarity backend * API - * The API for KubeClarity can be found [here](https://github.com/cisco-open/kubei/blob/master/api/swagger.yaml) + * The API for KubeClarity can be found [here](https://github.com/openclarity/kubeclarity/blob/master/api/swagger.yaml) ## High level architecture @@ -90,7 +90,7 @@ KubeClarity vulnerability scanner integrates with the following scanners: * [Grype](https://github.com/anchore/grype) * [Dependency-Track](https://github.com/DependencyTrack/dependency-track) -The integrations with the SBOM generators can be found here [here](https://github.com/cisco-open/kubei/tree/master/shared/pkg/analyzer), and the integrations with the vulnerability scanners can be found here [here](https://github.com/cisco-open/kubei/tree/master/shared/pkg/scanner). +The integrations with the SBOM generators can be found [here](https://github.com/openclarity/kubeclarity/tree/master/shared/pkg/analyzer), and the integrations with the vulnerability scanners can be found here [here](https://github.com/openclarity/kubeclarity/tree/master/shared/pkg/scanner). To enable and configure the supported SBOM generators and vulnerability scanners, please check the "analyzer" and "scanner" config under the "vulnerability-scanner" section in Helm values. Contributions of integrations with additional tools are more than welcome! @@ -100,7 +100,7 @@ Contributions of integrations with additional tools are more than welcome! 1. Add Helm repo ```shell - helm repo add kubeclarity https://cisco-open.github.io/kubei + helm repo add kubeclarity https://openclarity.github.io/kubeclarity ``` 2. Save KubeClarity default chart values ```shell @@ -150,7 +150,7 @@ Contributions of integrations with additional tools are more than welcome! ``` 2. Run the backend using demo data: ```shell - docker run -p 8080:8080 -e FAKE_RUNTIME_SCANNER=true -e FAKE_DATA=true -e ENABLE_DB_INFO_LOGS=true -e DATABASE_DRIVER=LOCAL ghcr.io/kubeclarity/kubeclarity:test run + docker run -p 8080:8080 -e FAKE_RUNTIME_SCANNER=true -e FAKE_DATA=true -e ENABLE_DB_INFO_LOGS=true -e DATABASE_DRIVER=LOCAL ghcr.io/openclarity/kubeclarity:test run ``` 2. Local build: 1. Build UI and backend @@ -176,14 +176,14 @@ The results can be exported to KubeClarity backend. ### Binary Distribution Download the release distribution for your OS from the [releases page]( -https://github.com/cisco-open/kubei/releases) +https://github.com/openclarity/kubeclarity/releases) Unpack the `kubeclarity-cli` binary, add it to your PATH, and you are good to go! ### Docker Image -A Docker image is available at `ghcr.io/cisco-open/kubeclarity-cli` with list of -available tags [here](https://github.com/cisco-open/kubei/pkgs/container/kubeclarity-cli/versions). +A Docker image is available at `ghcr.io/openclarity/kubeclarity-cli` with list of +available tags [here](https://github.com/openclarity/kubeclarity/pkgs/container/kubeclarity-cli/versions). ### Local Compilation ``` diff --git a/api/client/client/kube_clarity_a_p_is_client.go b/api/client/client/kube_clarity_a_p_is_client.go index 8b3fc0c76..9613afd1f 100644 --- a/api/client/client/kube_clarity_a_p_is_client.go +++ b/api/client/client/kube_clarity_a_p_is_client.go @@ -6,7 +6,7 @@ package client // Editing this file might prove futile when you re-run the swagger generate command import ( - "github.com/cisco-open/kubei/api/client/client/operations" + "github.com/openclarity/kubeclarity/api/client/client/operations" "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" diff --git a/api/client/client/operations/delete_applications_id_responses.go b/api/client/client/operations/delete_applications_id_responses.go index f59755d37..b595f0508 100644 --- a/api/client/client/operations/delete_applications_id_responses.go +++ b/api/client/client/operations/delete_applications_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // DeleteApplicationsIDReader is a Reader for the DeleteApplicationsID structure. diff --git a/api/client/client/operations/get_application_resources_id_responses.go b/api/client/client/operations/get_application_resources_id_responses.go index 41de192fb..5b8bb0541 100644 --- a/api/client/client/operations/get_application_resources_id_responses.go +++ b/api/client/client/operations/get_application_resources_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetApplicationResourcesIDReader is a Reader for the GetApplicationResourcesID structure. diff --git a/api/client/client/operations/get_application_resources_responses.go b/api/client/client/operations/get_application_resources_responses.go index ee01b898a..25c18cd1c 100644 --- a/api/client/client/operations/get_application_resources_responses.go +++ b/api/client/client/operations/get_application_resources_responses.go @@ -17,7 +17,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetApplicationResourcesReader is a Reader for the GetApplicationResources structure. diff --git a/api/client/client/operations/get_applications_id_responses.go b/api/client/client/operations/get_applications_id_responses.go index 056d4ed5f..218f5d120 100644 --- a/api/client/client/operations/get_applications_id_responses.go +++ b/api/client/client/operations/get_applications_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetApplicationsIDReader is a Reader for the GetApplicationsID structure. diff --git a/api/client/client/operations/get_applications_responses.go b/api/client/client/operations/get_applications_responses.go index 1a16a0545..1a613dd7a 100644 --- a/api/client/client/operations/get_applications_responses.go +++ b/api/client/client/operations/get_applications_responses.go @@ -17,7 +17,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetApplicationsReader is a Reader for the GetApplications structure. diff --git a/api/client/client/operations/get_dashboard_counters_responses.go b/api/client/client/operations/get_dashboard_counters_responses.go index 0d1ea635f..d5a3bd8ff 100644 --- a/api/client/client/operations/get_dashboard_counters_responses.go +++ b/api/client/client/operations/get_dashboard_counters_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardCountersReader is a Reader for the GetDashboardCounters structure. diff --git a/api/client/client/operations/get_dashboard_most_vulnerable_responses.go b/api/client/client/operations/get_dashboard_most_vulnerable_responses.go index 3dd9f4b50..bd3d137a8 100644 --- a/api/client/client/operations/get_dashboard_most_vulnerable_responses.go +++ b/api/client/client/operations/get_dashboard_most_vulnerable_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardMostVulnerableReader is a Reader for the GetDashboardMostVulnerable structure. diff --git a/api/client/client/operations/get_dashboard_packages_per_language_responses.go b/api/client/client/operations/get_dashboard_packages_per_language_responses.go index 466e270c1..a77f89751 100644 --- a/api/client/client/operations/get_dashboard_packages_per_language_responses.go +++ b/api/client/client/operations/get_dashboard_packages_per_language_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardPackagesPerLanguageReader is a Reader for the GetDashboardPackagesPerLanguage structure. diff --git a/api/client/client/operations/get_dashboard_packages_per_license_responses.go b/api/client/client/operations/get_dashboard_packages_per_license_responses.go index 8e24b43b7..825d5150e 100644 --- a/api/client/client/operations/get_dashboard_packages_per_license_responses.go +++ b/api/client/client/operations/get_dashboard_packages_per_license_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardPackagesPerLicenseReader is a Reader for the GetDashboardPackagesPerLicense structure. diff --git a/api/client/client/operations/get_dashboard_trends_vulnerabilities_responses.go b/api/client/client/operations/get_dashboard_trends_vulnerabilities_responses.go index 76adb4fb1..1d2925302 100644 --- a/api/client/client/operations/get_dashboard_trends_vulnerabilities_responses.go +++ b/api/client/client/operations/get_dashboard_trends_vulnerabilities_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardTrendsVulnerabilitiesReader is a Reader for the GetDashboardTrendsVulnerabilities structure. diff --git a/api/client/client/operations/get_dashboard_vulnerabilities_with_fix_responses.go b/api/client/client/operations/get_dashboard_vulnerabilities_with_fix_responses.go index 94db97763..70995be6c 100644 --- a/api/client/client/operations/get_dashboard_vulnerabilities_with_fix_responses.go +++ b/api/client/client/operations/get_dashboard_vulnerabilities_with_fix_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetDashboardVulnerabilitiesWithFixReader is a Reader for the GetDashboardVulnerabilitiesWithFix structure. diff --git a/api/client/client/operations/get_namespaces_responses.go b/api/client/client/operations/get_namespaces_responses.go index 20a326303..6935859f9 100644 --- a/api/client/client/operations/get_namespaces_responses.go +++ b/api/client/client/operations/get_namespaces_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetNamespacesReader is a Reader for the GetNamespaces structure. diff --git a/api/client/client/operations/get_packages_id_application_resources_responses.go b/api/client/client/operations/get_packages_id_application_resources_responses.go index 5c9bc92bf..15aa7e736 100644 --- a/api/client/client/operations/get_packages_id_application_resources_responses.go +++ b/api/client/client/operations/get_packages_id_application_resources_responses.go @@ -17,7 +17,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetPackagesIDApplicationResourcesReader is a Reader for the GetPackagesIDApplicationResources structure. diff --git a/api/client/client/operations/get_packages_id_responses.go b/api/client/client/operations/get_packages_id_responses.go index f091bcfb8..329c223fe 100644 --- a/api/client/client/operations/get_packages_id_responses.go +++ b/api/client/client/operations/get_packages_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetPackagesIDReader is a Reader for the GetPackagesID structure. diff --git a/api/client/client/operations/get_packages_responses.go b/api/client/client/operations/get_packages_responses.go index ecdd7b155..f3c1c4a3f 100644 --- a/api/client/client/operations/get_packages_responses.go +++ b/api/client/client/operations/get_packages_responses.go @@ -17,7 +17,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetPackagesReader is a Reader for the GetPackages structure. diff --git a/api/client/client/operations/get_runtime_quickscan_config_responses.go b/api/client/client/operations/get_runtime_quickscan_config_responses.go index ea17daf32..5e4eefd22 100644 --- a/api/client/client/operations/get_runtime_quickscan_config_responses.go +++ b/api/client/client/operations/get_runtime_quickscan_config_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetRuntimeQuickscanConfigReader is a Reader for the GetRuntimeQuickscanConfig structure. diff --git a/api/client/client/operations/get_runtime_scan_progress_responses.go b/api/client/client/operations/get_runtime_scan_progress_responses.go index 4d80e8412..360f0d14a 100644 --- a/api/client/client/operations/get_runtime_scan_progress_responses.go +++ b/api/client/client/operations/get_runtime_scan_progress_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetRuntimeScanProgressReader is a Reader for the GetRuntimeScanProgress structure. diff --git a/api/client/client/operations/get_runtime_scan_results_responses.go b/api/client/client/operations/get_runtime_scan_results_responses.go index 6958fe019..17404d698 100644 --- a/api/client/client/operations/get_runtime_scan_results_responses.go +++ b/api/client/client/operations/get_runtime_scan_results_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetRuntimeScanResultsReader is a Reader for the GetRuntimeScanResults structure. diff --git a/api/client/client/operations/get_vulnerabilities_responses.go b/api/client/client/operations/get_vulnerabilities_responses.go index bc25184ac..e953c079f 100644 --- a/api/client/client/operations/get_vulnerabilities_responses.go +++ b/api/client/client/operations/get_vulnerabilities_responses.go @@ -17,7 +17,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetVulnerabilitiesReader is a Reader for the GetVulnerabilities structure. diff --git a/api/client/client/operations/get_vulnerabilities_vul_id_pkg_id_responses.go b/api/client/client/operations/get_vulnerabilities_vul_id_pkg_id_responses.go index 4d101a2cc..e51398c21 100644 --- a/api/client/client/operations/get_vulnerabilities_vul_id_pkg_id_responses.go +++ b/api/client/client/operations/get_vulnerabilities_vul_id_pkg_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // GetVulnerabilitiesVulIDPkgIDReader is a Reader for the GetVulnerabilitiesVulIDPkgID structure. diff --git a/api/client/client/operations/post_applications_content_analysis_id_parameters.go b/api/client/client/operations/post_applications_content_analysis_id_parameters.go index 5f63437af..e49d7f771 100644 --- a/api/client/client/operations/post_applications_content_analysis_id_parameters.go +++ b/api/client/client/operations/post_applications_content_analysis_id_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPostApplicationsContentAnalysisIDParams creates a new PostApplicationsContentAnalysisIDParams object, diff --git a/api/client/client/operations/post_applications_content_analysis_id_responses.go b/api/client/client/operations/post_applications_content_analysis_id_responses.go index 11b3c8bb2..8e44687c3 100644 --- a/api/client/client/operations/post_applications_content_analysis_id_responses.go +++ b/api/client/client/operations/post_applications_content_analysis_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PostApplicationsContentAnalysisIDReader is a Reader for the PostApplicationsContentAnalysisID structure. diff --git a/api/client/client/operations/post_applications_parameters.go b/api/client/client/operations/post_applications_parameters.go index fe51fae46..68f0cce2b 100644 --- a/api/client/client/operations/post_applications_parameters.go +++ b/api/client/client/operations/post_applications_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPostApplicationsParams creates a new PostApplicationsParams object, diff --git a/api/client/client/operations/post_applications_responses.go b/api/client/client/operations/post_applications_responses.go index 2de0a95d0..4f06cfe35 100644 --- a/api/client/client/operations/post_applications_responses.go +++ b/api/client/client/operations/post_applications_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PostApplicationsReader is a Reader for the PostApplications structure. diff --git a/api/client/client/operations/post_applications_vulnerability_scan_id_parameters.go b/api/client/client/operations/post_applications_vulnerability_scan_id_parameters.go index a93062e87..39854a6bb 100644 --- a/api/client/client/operations/post_applications_vulnerability_scan_id_parameters.go +++ b/api/client/client/operations/post_applications_vulnerability_scan_id_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPostApplicationsVulnerabilityScanIDParams creates a new PostApplicationsVulnerabilityScanIDParams object, diff --git a/api/client/client/operations/post_applications_vulnerability_scan_id_responses.go b/api/client/client/operations/post_applications_vulnerability_scan_id_responses.go index 9d9bf30a4..d03f35103 100644 --- a/api/client/client/operations/post_applications_vulnerability_scan_id_responses.go +++ b/api/client/client/operations/post_applications_vulnerability_scan_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PostApplicationsVulnerabilityScanIDReader is a Reader for the PostApplicationsVulnerabilityScanID structure. diff --git a/api/client/client/operations/put_applications_id_parameters.go b/api/client/client/operations/put_applications_id_parameters.go index d0a0aebe1..e03db9bf9 100644 --- a/api/client/client/operations/put_applications_id_parameters.go +++ b/api/client/client/operations/put_applications_id_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPutApplicationsIDParams creates a new PutApplicationsIDParams object, diff --git a/api/client/client/operations/put_applications_id_responses.go b/api/client/client/operations/put_applications_id_responses.go index c78318667..4b3543373 100644 --- a/api/client/client/operations/put_applications_id_responses.go +++ b/api/client/client/operations/put_applications_id_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PutApplicationsIDReader is a Reader for the PutApplicationsID structure. diff --git a/api/client/client/operations/put_runtime_quickscan_config_parameters.go b/api/client/client/operations/put_runtime_quickscan_config_parameters.go index d37933c02..2c399983c 100644 --- a/api/client/client/operations/put_runtime_quickscan_config_parameters.go +++ b/api/client/client/operations/put_runtime_quickscan_config_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPutRuntimeQuickscanConfigParams creates a new PutRuntimeQuickscanConfigParams object, diff --git a/api/client/client/operations/put_runtime_quickscan_config_responses.go b/api/client/client/operations/put_runtime_quickscan_config_responses.go index c5dfc01e6..101feb88e 100644 --- a/api/client/client/operations/put_runtime_quickscan_config_responses.go +++ b/api/client/client/operations/put_runtime_quickscan_config_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PutRuntimeQuickscanConfigReader is a Reader for the PutRuntimeQuickscanConfig structure. diff --git a/api/client/client/operations/put_runtime_scan_start_parameters.go b/api/client/client/operations/put_runtime_scan_start_parameters.go index 27a30c0fc..bdc355ccf 100644 --- a/api/client/client/operations/put_runtime_scan_start_parameters.go +++ b/api/client/client/operations/put_runtime_scan_start_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // NewPutRuntimeScanStartParams creates a new PutRuntimeScanStartParams object, diff --git a/api/client/client/operations/put_runtime_scan_start_responses.go b/api/client/client/operations/put_runtime_scan_start_responses.go index 510aa3e2f..9e5a5b3d2 100644 --- a/api/client/client/operations/put_runtime_scan_start_responses.go +++ b/api/client/client/operations/put_runtime_scan_start_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PutRuntimeScanStartReader is a Reader for the PutRuntimeScanStart structure. diff --git a/api/client/client/operations/put_runtime_scan_stop_responses.go b/api/client/client/operations/put_runtime_scan_stop_responses.go index ee93c251d..f31e6cd26 100644 --- a/api/client/client/operations/put_runtime_scan_stop_responses.go +++ b/api/client/client/operations/put_runtime_scan_stop_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) // PutRuntimeScanStopReader is a Reader for the PutRuntimeScanStop structure. diff --git a/api/go.mod b/api/go.mod index 3c111d00d..62f099063 100644 --- a/api/go.mod +++ b/api/go.mod @@ -1,3 +1,3 @@ -module github.com/cisco-open/kubei/api +module github.com/openclarity/kubeclarity/api go 1.17 diff --git a/api/server/cmd/kube-clarity-a-p-is-server/main.go b/api/server/cmd/kube-clarity-a-p-is-server/main.go index b27d1ed7a..69c8cdab9 100644 --- a/api/server/cmd/kube-clarity-a-p-is-server/main.go +++ b/api/server/cmd/kube-clarity-a-p-is-server/main.go @@ -9,8 +9,8 @@ import ( "github.com/go-openapi/loads" flags "github.com/jessevdk/go-flags" - "github.com/cisco-open/kubei/api/server/restapi" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/restapi" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) // This file was generated by the swagger tool. diff --git a/api/server/restapi/configure_kube_clarity_a_p_is.go b/api/server/restapi/configure_kube_clarity_a_p_is.go index c4e9f56b7..66fa4629f 100644 --- a/api/server/restapi/configure_kube_clarity_a_p_is.go +++ b/api/server/restapi/configure_kube_clarity_a_p_is.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) //go:generate swagger generate server --target ../../server --name KubeClarityAPIs --spec ../../swagger.yaml --principal interface{} diff --git a/api/server/restapi/operations/delete_applications_id_responses.go b/api/server/restapi/operations/delete_applications_id_responses.go index f4e551478..766fcc39e 100644 --- a/api/server/restapi/operations/delete_applications_id_responses.go +++ b/api/server/restapi/operations/delete_applications_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // DeleteApplicationsIDNoContentCode is the HTTP code returned for type DeleteApplicationsIDNoContent diff --git a/api/server/restapi/operations/get_application_resources.go b/api/server/restapi/operations/get_application_resources.go index 35acdf7b4..6ec620813 100644 --- a/api/server/restapi/operations/get_application_resources.go +++ b/api/server/restapi/operations/get_application_resources.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationResourcesHandlerFunc turns a function with the right signature into a get application resources handler diff --git a/api/server/restapi/operations/get_application_resources_id_responses.go b/api/server/restapi/operations/get_application_resources_id_responses.go index 0d3067d19..f644fcf8a 100644 --- a/api/server/restapi/operations/get_application_resources_id_responses.go +++ b/api/server/restapi/operations/get_application_resources_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationResourcesIDOKCode is the HTTP code returned for type GetApplicationResourcesIDOK diff --git a/api/server/restapi/operations/get_application_resources_responses.go b/api/server/restapi/operations/get_application_resources_responses.go index c1a274319..873a63aa9 100644 --- a/api/server/restapi/operations/get_application_resources_responses.go +++ b/api/server/restapi/operations/get_application_resources_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationResourcesOKCode is the HTTP code returned for type GetApplicationResourcesOK diff --git a/api/server/restapi/operations/get_applications.go b/api/server/restapi/operations/get_applications.go index f753c360d..17cf1c64e 100644 --- a/api/server/restapi/operations/get_applications.go +++ b/api/server/restapi/operations/get_applications.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationsHandlerFunc turns a function with the right signature into a get applications handler diff --git a/api/server/restapi/operations/get_applications_id_responses.go b/api/server/restapi/operations/get_applications_id_responses.go index 2a5f2a66e..d55e2be07 100644 --- a/api/server/restapi/operations/get_applications_id_responses.go +++ b/api/server/restapi/operations/get_applications_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationsIDOKCode is the HTTP code returned for type GetApplicationsIDOK diff --git a/api/server/restapi/operations/get_applications_responses.go b/api/server/restapi/operations/get_applications_responses.go index 2616e2a4e..41bb20cbc 100644 --- a/api/server/restapi/operations/get_applications_responses.go +++ b/api/server/restapi/operations/get_applications_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetApplicationsOKCode is the HTTP code returned for type GetApplicationsOK diff --git a/api/server/restapi/operations/get_dashboard_counters_responses.go b/api/server/restapi/operations/get_dashboard_counters_responses.go index d892caeee..6488b48ff 100644 --- a/api/server/restapi/operations/get_dashboard_counters_responses.go +++ b/api/server/restapi/operations/get_dashboard_counters_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardCountersOKCode is the HTTP code returned for type GetDashboardCountersOK diff --git a/api/server/restapi/operations/get_dashboard_most_vulnerable_responses.go b/api/server/restapi/operations/get_dashboard_most_vulnerable_responses.go index d887aa8bd..b5049b04a 100644 --- a/api/server/restapi/operations/get_dashboard_most_vulnerable_responses.go +++ b/api/server/restapi/operations/get_dashboard_most_vulnerable_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardMostVulnerableOKCode is the HTTP code returned for type GetDashboardMostVulnerableOK diff --git a/api/server/restapi/operations/get_dashboard_packages_per_language_responses.go b/api/server/restapi/operations/get_dashboard_packages_per_language_responses.go index d8a2efe32..f9c310faa 100644 --- a/api/server/restapi/operations/get_dashboard_packages_per_language_responses.go +++ b/api/server/restapi/operations/get_dashboard_packages_per_language_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardPackagesPerLanguageOKCode is the HTTP code returned for type GetDashboardPackagesPerLanguageOK diff --git a/api/server/restapi/operations/get_dashboard_packages_per_license_responses.go b/api/server/restapi/operations/get_dashboard_packages_per_license_responses.go index 8b1923e44..b539c2a92 100644 --- a/api/server/restapi/operations/get_dashboard_packages_per_license_responses.go +++ b/api/server/restapi/operations/get_dashboard_packages_per_license_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardPackagesPerLicenseOKCode is the HTTP code returned for type GetDashboardPackagesPerLicenseOK diff --git a/api/server/restapi/operations/get_dashboard_trends_vulnerabilities_responses.go b/api/server/restapi/operations/get_dashboard_trends_vulnerabilities_responses.go index a7a48096c..3fc950f58 100644 --- a/api/server/restapi/operations/get_dashboard_trends_vulnerabilities_responses.go +++ b/api/server/restapi/operations/get_dashboard_trends_vulnerabilities_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardTrendsVulnerabilitiesOKCode is the HTTP code returned for type GetDashboardTrendsVulnerabilitiesOK diff --git a/api/server/restapi/operations/get_dashboard_vulnerabilities_with_fix_responses.go b/api/server/restapi/operations/get_dashboard_vulnerabilities_with_fix_responses.go index 883ca03e2..69aac46ec 100644 --- a/api/server/restapi/operations/get_dashboard_vulnerabilities_with_fix_responses.go +++ b/api/server/restapi/operations/get_dashboard_vulnerabilities_with_fix_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetDashboardVulnerabilitiesWithFixOKCode is the HTTP code returned for type GetDashboardVulnerabilitiesWithFixOK diff --git a/api/server/restapi/operations/get_namespaces_responses.go b/api/server/restapi/operations/get_namespaces_responses.go index 82f0d78d4..f56a5d213 100644 --- a/api/server/restapi/operations/get_namespaces_responses.go +++ b/api/server/restapi/operations/get_namespaces_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetNamespacesOKCode is the HTTP code returned for type GetNamespacesOK diff --git a/api/server/restapi/operations/get_packages.go b/api/server/restapi/operations/get_packages.go index 4ead5f6a5..84ddf42ed 100644 --- a/api/server/restapi/operations/get_packages.go +++ b/api/server/restapi/operations/get_packages.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetPackagesHandlerFunc turns a function with the right signature into a get packages handler diff --git a/api/server/restapi/operations/get_packages_id_application_resources.go b/api/server/restapi/operations/get_packages_id_application_resources.go index f2806bf45..d676a9857 100644 --- a/api/server/restapi/operations/get_packages_id_application_resources.go +++ b/api/server/restapi/operations/get_packages_id_application_resources.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetPackagesIDApplicationResourcesHandlerFunc turns a function with the right signature into a get packages ID application resources handler diff --git a/api/server/restapi/operations/get_packages_id_application_resources_responses.go b/api/server/restapi/operations/get_packages_id_application_resources_responses.go index ba0a8b8b1..ba6d6c942 100644 --- a/api/server/restapi/operations/get_packages_id_application_resources_responses.go +++ b/api/server/restapi/operations/get_packages_id_application_resources_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetPackagesIDApplicationResourcesOKCode is the HTTP code returned for type GetPackagesIDApplicationResourcesOK diff --git a/api/server/restapi/operations/get_packages_id_responses.go b/api/server/restapi/operations/get_packages_id_responses.go index 85985db1a..5be7ba8b7 100644 --- a/api/server/restapi/operations/get_packages_id_responses.go +++ b/api/server/restapi/operations/get_packages_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetPackagesIDOKCode is the HTTP code returned for type GetPackagesIDOK diff --git a/api/server/restapi/operations/get_packages_responses.go b/api/server/restapi/operations/get_packages_responses.go index 3c89411d3..0d86cf5df 100644 --- a/api/server/restapi/operations/get_packages_responses.go +++ b/api/server/restapi/operations/get_packages_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetPackagesOKCode is the HTTP code returned for type GetPackagesOK diff --git a/api/server/restapi/operations/get_runtime_quickscan_config_responses.go b/api/server/restapi/operations/get_runtime_quickscan_config_responses.go index f88c8d8d6..e8b026575 100644 --- a/api/server/restapi/operations/get_runtime_quickscan_config_responses.go +++ b/api/server/restapi/operations/get_runtime_quickscan_config_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetRuntimeQuickscanConfigOKCode is the HTTP code returned for type GetRuntimeQuickscanConfigOK diff --git a/api/server/restapi/operations/get_runtime_scan_progress_responses.go b/api/server/restapi/operations/get_runtime_scan_progress_responses.go index 5979dc7a3..9361220d1 100644 --- a/api/server/restapi/operations/get_runtime_scan_progress_responses.go +++ b/api/server/restapi/operations/get_runtime_scan_progress_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetRuntimeScanProgressOKCode is the HTTP code returned for type GetRuntimeScanProgressOK diff --git a/api/server/restapi/operations/get_runtime_scan_results_responses.go b/api/server/restapi/operations/get_runtime_scan_results_responses.go index 4546f26f9..f48f86912 100644 --- a/api/server/restapi/operations/get_runtime_scan_results_responses.go +++ b/api/server/restapi/operations/get_runtime_scan_results_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetRuntimeScanResultsOKCode is the HTTP code returned for type GetRuntimeScanResultsOK diff --git a/api/server/restapi/operations/get_vulnerabilities.go b/api/server/restapi/operations/get_vulnerabilities.go index ef3b05d75..abc19ce3b 100644 --- a/api/server/restapi/operations/get_vulnerabilities.go +++ b/api/server/restapi/operations/get_vulnerabilities.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/swag" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetVulnerabilitiesHandlerFunc turns a function with the right signature into a get vulnerabilities handler diff --git a/api/server/restapi/operations/get_vulnerabilities_responses.go b/api/server/restapi/operations/get_vulnerabilities_responses.go index 2d53bc0e3..392e106ec 100644 --- a/api/server/restapi/operations/get_vulnerabilities_responses.go +++ b/api/server/restapi/operations/get_vulnerabilities_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetVulnerabilitiesOKCode is the HTTP code returned for type GetVulnerabilitiesOK diff --git a/api/server/restapi/operations/get_vulnerabilities_vul_id_pkg_id_responses.go b/api/server/restapi/operations/get_vulnerabilities_vul_id_pkg_id_responses.go index be7e4d53c..29400bb79 100644 --- a/api/server/restapi/operations/get_vulnerabilities_vul_id_pkg_id_responses.go +++ b/api/server/restapi/operations/get_vulnerabilities_vul_id_pkg_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // GetVulnerabilitiesVulIDPkgIDOKCode is the HTTP code returned for type GetVulnerabilitiesVulIDPkgIDOK diff --git a/api/server/restapi/operations/post_applications_content_analysis_id_parameters.go b/api/server/restapi/operations/post_applications_content_analysis_id_parameters.go index b853cec77..5402283c6 100644 --- a/api/server/restapi/operations/post_applications_content_analysis_id_parameters.go +++ b/api/server/restapi/operations/post_applications_content_analysis_id_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPostApplicationsContentAnalysisIDParams creates a new PostApplicationsContentAnalysisIDParams object diff --git a/api/server/restapi/operations/post_applications_content_analysis_id_responses.go b/api/server/restapi/operations/post_applications_content_analysis_id_responses.go index 6584bbc9c..3efb9c053 100644 --- a/api/server/restapi/operations/post_applications_content_analysis_id_responses.go +++ b/api/server/restapi/operations/post_applications_content_analysis_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PostApplicationsContentAnalysisIDCreatedCode is the HTTP code returned for type PostApplicationsContentAnalysisIDCreated diff --git a/api/server/restapi/operations/post_applications_parameters.go b/api/server/restapi/operations/post_applications_parameters.go index 2dcb227be..31dd63398 100644 --- a/api/server/restapi/operations/post_applications_parameters.go +++ b/api/server/restapi/operations/post_applications_parameters.go @@ -15,7 +15,7 @@ import ( "github.com/go-openapi/runtime/middleware" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPostApplicationsParams creates a new PostApplicationsParams object diff --git a/api/server/restapi/operations/post_applications_responses.go b/api/server/restapi/operations/post_applications_responses.go index c6939d654..8dc8483c2 100644 --- a/api/server/restapi/operations/post_applications_responses.go +++ b/api/server/restapi/operations/post_applications_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PostApplicationsCreatedCode is the HTTP code returned for type PostApplicationsCreated diff --git a/api/server/restapi/operations/post_applications_vulnerability_scan_id_parameters.go b/api/server/restapi/operations/post_applications_vulnerability_scan_id_parameters.go index 7feae162d..f0fcccece 100644 --- a/api/server/restapi/operations/post_applications_vulnerability_scan_id_parameters.go +++ b/api/server/restapi/operations/post_applications_vulnerability_scan_id_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPostApplicationsVulnerabilityScanIDParams creates a new PostApplicationsVulnerabilityScanIDParams object diff --git a/api/server/restapi/operations/post_applications_vulnerability_scan_id_responses.go b/api/server/restapi/operations/post_applications_vulnerability_scan_id_responses.go index 3f4a4b57e..87e85a84a 100644 --- a/api/server/restapi/operations/post_applications_vulnerability_scan_id_responses.go +++ b/api/server/restapi/operations/post_applications_vulnerability_scan_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PostApplicationsVulnerabilityScanIDCreatedCode is the HTTP code returned for type PostApplicationsVulnerabilityScanIDCreated diff --git a/api/server/restapi/operations/put_applications_id_parameters.go b/api/server/restapi/operations/put_applications_id_parameters.go index 975d29c30..30846d4f5 100644 --- a/api/server/restapi/operations/put_applications_id_parameters.go +++ b/api/server/restapi/operations/put_applications_id_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPutApplicationsIDParams creates a new PutApplicationsIDParams object diff --git a/api/server/restapi/operations/put_applications_id_responses.go b/api/server/restapi/operations/put_applications_id_responses.go index 1d8141da8..376b79022 100644 --- a/api/server/restapi/operations/put_applications_id_responses.go +++ b/api/server/restapi/operations/put_applications_id_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PutApplicationsIDOKCode is the HTTP code returned for type PutApplicationsIDOK diff --git a/api/server/restapi/operations/put_runtime_quickscan_config_parameters.go b/api/server/restapi/operations/put_runtime_quickscan_config_parameters.go index ee29738dc..e28e7344e 100644 --- a/api/server/restapi/operations/put_runtime_quickscan_config_parameters.go +++ b/api/server/restapi/operations/put_runtime_quickscan_config_parameters.go @@ -15,7 +15,7 @@ import ( "github.com/go-openapi/runtime/middleware" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPutRuntimeQuickscanConfigParams creates a new PutRuntimeQuickscanConfigParams object diff --git a/api/server/restapi/operations/put_runtime_quickscan_config_responses.go b/api/server/restapi/operations/put_runtime_quickscan_config_responses.go index 5c3d3d822..36b33a355 100644 --- a/api/server/restapi/operations/put_runtime_quickscan_config_responses.go +++ b/api/server/restapi/operations/put_runtime_quickscan_config_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PutRuntimeQuickscanConfigCreatedCode is the HTTP code returned for type PutRuntimeQuickscanConfigCreated diff --git a/api/server/restapi/operations/put_runtime_scan_start_parameters.go b/api/server/restapi/operations/put_runtime_scan_start_parameters.go index 3709e999a..c07155a12 100644 --- a/api/server/restapi/operations/put_runtime_scan_start_parameters.go +++ b/api/server/restapi/operations/put_runtime_scan_start_parameters.go @@ -15,7 +15,7 @@ import ( "github.com/go-openapi/runtime/middleware" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // NewPutRuntimeScanStartParams creates a new PutRuntimeScanStartParams object diff --git a/api/server/restapi/operations/put_runtime_scan_start_responses.go b/api/server/restapi/operations/put_runtime_scan_start_responses.go index 9fee83133..457ae8885 100644 --- a/api/server/restapi/operations/put_runtime_scan_start_responses.go +++ b/api/server/restapi/operations/put_runtime_scan_start_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PutRuntimeScanStartCreatedCode is the HTTP code returned for type PutRuntimeScanStartCreated diff --git a/api/server/restapi/operations/put_runtime_scan_stop_responses.go b/api/server/restapi/operations/put_runtime_scan_stop_responses.go index 94ff7d41e..3fc2a0c17 100644 --- a/api/server/restapi/operations/put_runtime_scan_stop_responses.go +++ b/api/server/restapi/operations/put_runtime_scan_stop_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) // PutRuntimeScanStopCreatedCode is the HTTP code returned for type PutRuntimeScanStopCreated diff --git a/api/server/restapi/server.go b/api/server/restapi/server.go index 71b234f62..3b4ee1d89 100644 --- a/api/server/restapi/server.go +++ b/api/server/restapi/server.go @@ -25,7 +25,7 @@ import ( flags "github.com/jessevdk/go-flags" "golang.org/x/net/netutil" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) const ( diff --git a/backend/cmd/backend/main.go b/backend/cmd/backend/main.go index 2e631f512..0890da771 100644 --- a/backend/cmd/backend/main.go +++ b/backend/cmd/backend/main.go @@ -24,10 +24,10 @@ import ( "github.com/spf13/viper" "github.com/urfave/cli" - "github.com/cisco-open/kubei/backend/pkg/backend" - "github.com/cisco-open/kubei/backend/pkg/config" - "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/backend/pkg/version" + "github.com/openclarity/kubeclarity/backend/pkg/backend" + "github.com/openclarity/kubeclarity/backend/pkg/config" + "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/backend/pkg/version" ) func run(c *cli.Context) { diff --git a/backend/go.mod b/backend/go.mod index ce8cc7077..ce8d58289 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -1,4 +1,4 @@ -module github.com/cisco-open/kubei/backend +module github.com/openclarity/kubeclarity/backend go 1.17 @@ -6,10 +6,10 @@ require ( github.com/Portshift/dockle v0.3.2-0.20220411110521-ea4a00a6462d github.com/Portshift/go-utils v0.0.0-20211213074910-dd69e9ff3e27 github.com/bxcodec/faker/v3 v3.7.0 - github.com/cisco-open/kubei/api v0.0.0 - github.com/cisco-open/kubei/runtime_scan v0.0.0 - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 - github.com/cisco-open/kubei/shared v0.0.0 + github.com/openclarity/kubeclarity/api v0.0.0 + github.com/openclarity/kubeclarity/runtime_scan v0.0.0 + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 + github.com/openclarity/kubeclarity/shared v0.0.0 github.com/go-openapi/loads v0.21.0 github.com/go-openapi/runtime v0.21.1 github.com/go-openapi/strfmt v0.21.1 @@ -161,10 +161,10 @@ require ( ) replace ( - github.com/cisco-open/kubei/api v0.0.0 => ./../api - github.com/cisco-open/kubei/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner - github.com/cisco-open/kubei/runtime_scan v0.0.0 => ./../runtime_scan - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 => ./../runtime_scan/api - github.com/cisco-open/kubei/sbom_db/api v0.0.0 => ./../sbom_db/api - github.com/cisco-open/kubei/shared v0.0.0 => ./../shared + github.com/openclarity/kubeclarity/api v0.0.0 => ./../api + github.com/openclarity/kubeclarity/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner + github.com/openclarity/kubeclarity/runtime_scan v0.0.0 => ./../runtime_scan + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 => ./../runtime_scan/api + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 => ./../sbom_db/api + github.com/openclarity/kubeclarity/shared v0.0.0 => ./../shared ) diff --git a/backend/pkg/backend/backend.go b/backend/pkg/backend/backend.go index 374f4e032..61796b233 100644 --- a/backend/pkg/backend/backend.go +++ b/backend/pkg/backend/backend.go @@ -28,13 +28,13 @@ import ( log "github.com/sirupsen/logrus" "k8s.io/client-go/kubernetes" - _config "github.com/cisco-open/kubei/backend/pkg/config" - _database "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/backend/pkg/rest" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" - runtime_scan_config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/pkg/fake" - "github.com/cisco-open/kubei/runtime_scan/pkg/orchestrator" + _config "github.com/openclarity/kubeclarity/backend/pkg/config" + _database "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/backend/pkg/rest" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + runtime_scan_config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/fake" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/orchestrator" ) type Backend struct { diff --git a/backend/pkg/database/application.go b/backend/pkg/database/application.go index 93aa156ee..ad783041f 100644 --- a/backend/pkg/database/application.go +++ b/backend/pkg/database/application.go @@ -24,9 +24,9 @@ import ( "gorm.io/gorm" "gorm.io/gorm/clause" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/shared/pkg/utils/slice" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/shared/pkg/utils/slice" ) const ( diff --git a/backend/pkg/database/cis_docker_benchmark_level.go b/backend/pkg/database/cis_docker_benchmark_level.go index 7f031ee21..548216d8b 100644 --- a/backend/pkg/database/cis_docker_benchmark_level.go +++ b/backend/pkg/database/cis_docker_benchmark_level.go @@ -21,7 +21,7 @@ import ( dockle_types "github.com/Portshift/dockle/pkg/types" "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) type Level int diff --git a/backend/pkg/database/cis_docker_benchmark_result.go b/backend/pkg/database/cis_docker_benchmark_result.go index 3bc7aa210..55e02e750 100644 --- a/backend/pkg/database/cis_docker_benchmark_result.go +++ b/backend/pkg/database/cis_docker_benchmark_result.go @@ -18,7 +18,7 @@ package database import ( "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) const ( diff --git a/backend/pkg/database/common.go b/backend/pkg/database/common.go index 17e827ec6..d27706296 100644 --- a/backend/pkg/database/common.go +++ b/backend/pkg/database/common.go @@ -26,7 +26,7 @@ import ( log "github.com/sirupsen/logrus" "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) const ( diff --git a/backend/pkg/database/fake.go b/backend/pkg/database/fake.go index e043b8c51..dbd714a3a 100644 --- a/backend/pkg/database/fake.go +++ b/backend/pkg/database/fake.go @@ -22,9 +22,9 @@ import ( faker "github.com/bxcodec/faker/v3" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/backend/pkg/types" - "github.com/cisco-open/kubei/shared/pkg/utils/slice" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/backend/pkg/types" + "github.com/openclarity/kubeclarity/shared/pkg/utils/slice" ) var fakeAnalyzers = map[int][]string{ diff --git a/backend/pkg/database/join_tables.go b/backend/pkg/database/join_tables.go index d92121f54..2a4dccf78 100644 --- a/backend/pkg/database/join_tables.go +++ b/backend/pkg/database/join_tables.go @@ -23,8 +23,8 @@ import ( "gorm.io/gorm" "gorm.io/gorm/clause" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) const ( diff --git a/backend/pkg/database/mock_resource_table.go b/backend/pkg/database/mock_resource_table.go index 3f2154e73..a4df8f669 100644 --- a/backend/pkg/database/mock_resource_table.go +++ b/backend/pkg/database/mock_resource_table.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/cisco-open/kubei/backend/pkg/database (interfaces: ResourceTable) +// Source: github.com/openclarity/kubeclarity/backend/pkg/database (interfaces: ResourceTable) // Package database is a generated GoMock package. package database @@ -7,7 +7,7 @@ package database import ( gomock "github.com/golang/mock/gomock" reflect "reflect" - models "github.com/cisco-open/kubei/api/server/models" + models "github.com/openclarity/kubeclarity/api/server/models" ) // MockResourceTable is a mock of ResourceTable interface diff --git a/backend/pkg/database/new_vulnerability.go b/backend/pkg/database/new_vulnerability.go index 7b88dc08b..e265e4927 100644 --- a/backend/pkg/database/new_vulnerability.go +++ b/backend/pkg/database/new_vulnerability.go @@ -24,8 +24,8 @@ import ( "gorm.io/gorm" "gorm.io/gorm/clause" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) const ( diff --git a/backend/pkg/database/package.go b/backend/pkg/database/package.go index 33c7d3c9d..5db6cdf57 100644 --- a/backend/pkg/database/package.go +++ b/backend/pkg/database/package.go @@ -22,10 +22,10 @@ import ( uuid "github.com/satori/go.uuid" "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/types" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/types" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) const ( diff --git a/backend/pkg/database/package_test.go b/backend/pkg/database/package_test.go index 538c60d75..16908833c 100644 --- a/backend/pkg/database/package_test.go +++ b/backend/pkg/database/package_test.go @@ -22,7 +22,7 @@ import ( uuid "github.com/satori/go.uuid" - "github.com/cisco-open/kubei/backend/pkg/types" + "github.com/openclarity/kubeclarity/backend/pkg/types" ) func TestCreatePackage(t *testing.T) { diff --git a/backend/pkg/database/quickscan.go b/backend/pkg/database/quickscan.go index e66a54c77..2aa5c6e80 100644 --- a/backend/pkg/database/quickscan.go +++ b/backend/pkg/database/quickscan.go @@ -21,7 +21,7 @@ import ( "gorm.io/gorm" _clause "gorm.io/gorm/clause" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) const ( diff --git a/backend/pkg/database/resource.go b/backend/pkg/database/resource.go index 4db832910..7c4d05a20 100644 --- a/backend/pkg/database/resource.go +++ b/backend/pkg/database/resource.go @@ -24,11 +24,11 @@ import ( "gorm.io/gorm" "gorm.io/gorm/clause" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/types" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" - "github.com/cisco-open/kubei/shared/pkg/utils/slice" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/types" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/shared/pkg/utils/slice" ) const ( @@ -73,7 +73,7 @@ type GetApplicationResourcesParams struct { RuntimeScanApplicationIDs []string } -//go:generate $GOPATH/bin/mockgen -destination=./mock_resource_table.go -package=database github.com/cisco-open/kubei/backend/pkg/database ResourceTable +//go:generate $GOPATH/bin/mockgen -destination=./mock_resource_table.go -package=database github.com/openclarity/kubeclarity/backend/pkg/database ResourceTable type ResourceTable interface { Create(resource *Resource) error GetApplicationResourcesAndTotal(params GetApplicationResourcesParams) ([]ResourceView, int64, error) diff --git a/backend/pkg/database/resource_test.go b/backend/pkg/database/resource_test.go index dc2772083..c69e5b24e 100644 --- a/backend/pkg/database/resource_test.go +++ b/backend/pkg/database/resource_test.go @@ -24,9 +24,9 @@ import ( "github.com/google/go-cmp/cmp/cmpopts" "gotest.tools/assert" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/backend/pkg/types" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/backend/pkg/types" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type vulnerabilityInfo struct { diff --git a/backend/pkg/database/severity.go b/backend/pkg/database/severity.go index 3a97550c3..9f8d745a3 100644 --- a/backend/pkg/database/severity.go +++ b/backend/pkg/database/severity.go @@ -20,8 +20,8 @@ import ( "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/backend/pkg/types" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/backend/pkg/types" ) type Severity int diff --git a/backend/pkg/database/vulnerability.go b/backend/pkg/database/vulnerability.go index e8e13e99a..d4ba59e58 100644 --- a/backend/pkg/database/vulnerability.go +++ b/backend/pkg/database/vulnerability.go @@ -26,9 +26,9 @@ import ( log "github.com/sirupsen/logrus" "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/types" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/types" ) const ( diff --git a/backend/pkg/rest/applications_controller.go b/backend/pkg/rest/applications_controller.go index 6744193d6..e7ff181f9 100644 --- a/backend/pkg/rest/applications_controller.go +++ b/backend/pkg/rest/applications_controller.go @@ -23,11 +23,11 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/backend/pkg/types" - "github.com/cisco-open/kubei/shared/pkg/utils/slice" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/backend/pkg/types" + "github.com/openclarity/kubeclarity/shared/pkg/utils/slice" ) var oopsResponse = &models.APIResponse{ diff --git a/backend/pkg/rest/applications_controller_test.go b/backend/pkg/rest/applications_controller_test.go index 496de0e95..ad3596587 100644 --- a/backend/pkg/rest/applications_controller_test.go +++ b/backend/pkg/rest/applications_controller_test.go @@ -25,8 +25,8 @@ import ( "github.com/golang/mock/gomock" "gotest.tools/assert" - "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/backend/pkg/types" + "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/backend/pkg/types" ) func Test_mergeResourcePkgIDToAnalyzersMaps(t *testing.T) { diff --git a/backend/pkg/rest/applications_resources_controller.go b/backend/pkg/rest/applications_resources_controller.go index 0d02998ef..65f6df358 100644 --- a/backend/pkg/rest/applications_resources_controller.go +++ b/backend/pkg/rest/applications_resources_controller.go @@ -21,9 +21,9 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/database" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/database" ) func (s *Server) GetApplicationResource(id string) middleware.Responder { diff --git a/backend/pkg/rest/dashboard_controller.go b/backend/pkg/rest/dashboard_controller.go index 490a25177..f49bca726 100644 --- a/backend/pkg/rest/dashboard_controller.go +++ b/backend/pkg/rest/dashboard_controller.go @@ -22,8 +22,8 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" ) const mostVulnerableLimit = 5 diff --git a/backend/pkg/rest/packages_controller.go b/backend/pkg/rest/packages_controller.go index a1b8248de..2c4d44a0b 100644 --- a/backend/pkg/rest/packages_controller.go +++ b/backend/pkg/rest/packages_controller.go @@ -23,9 +23,9 @@ import ( log "github.com/sirupsen/logrus" "gorm.io/gorm" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/database" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/database" ) func (s *Server) GetPackages(params operations.GetPackagesParams) middleware.Responder { diff --git a/backend/pkg/rest/runtime_scan_controller.go b/backend/pkg/rest/runtime_scan_controller.go index 253d9c716..e0f3be49e 100644 --- a/backend/pkg/rest/runtime_scan_controller.go +++ b/backend/pkg/rest/runtime_scan_controller.go @@ -26,13 +26,13 @@ import ( log "github.com/sirupsen/logrus" corev1 "k8s.io/api/core/v1" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/backend/pkg/types" - runtime_scan_config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - _types "github.com/cisco-open/kubei/runtime_scan/pkg/types" - "github.com/cisco-open/kubei/shared/pkg/utils/slice" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/backend/pkg/types" + runtime_scan_config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + _types "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" + "github.com/openclarity/kubeclarity/shared/pkg/utils/slice" ) /* ### Start Handlers #### */ diff --git a/backend/pkg/rest/runtime_scan_controller_test.go b/backend/pkg/rest/runtime_scan_controller_test.go index dff40c35e..f2f8aca63 100644 --- a/backend/pkg/rest/runtime_scan_controller_test.go +++ b/backend/pkg/rest/runtime_scan_controller_test.go @@ -23,9 +23,9 @@ import ( "github.com/golang/mock/gomock" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/runtime_scan/pkg/orchestrator" - _types "github.com/cisco-open/kubei/runtime_scan/pkg/types" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/orchestrator" + _types "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" ) func Test_setOrUpdateScanFailDataForImage(t *testing.T) { diff --git a/backend/pkg/rest/server.go b/backend/pkg/rest/server.go index 44c77b5b1..6dc28b931 100644 --- a/backend/pkg/rest/server.go +++ b/backend/pkg/rest/server.go @@ -26,12 +26,12 @@ import ( v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/common" - "github.com/cisco-open/kubei/backend/pkg/database" - "github.com/cisco-open/kubei/runtime_scan/pkg/orchestrator" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/common" + "github.com/openclarity/kubeclarity/backend/pkg/database" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/orchestrator" ) type Server struct { diff --git a/backend/pkg/rest/vulnerabilities_controller.go b/backend/pkg/rest/vulnerabilities_controller.go index a82eebc23..2f5ec297e 100644 --- a/backend/pkg/rest/vulnerabilities_controller.go +++ b/backend/pkg/rest/vulnerabilities_controller.go @@ -21,9 +21,9 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - "github.com/cisco-open/kubei/api/server/restapi/operations" - "github.com/cisco-open/kubei/backend/pkg/database" + "github.com/openclarity/kubeclarity/api/server/models" + "github.com/openclarity/kubeclarity/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/backend/pkg/database" ) func (s *Server) GetVulnerabilitiesVulIDPkgID(vulID, pkgID string) middleware.Responder { diff --git a/backend/pkg/types/application_vulnerability_scan.go b/backend/pkg/types/application_vulnerability_scan.go index 66d7ec8e6..50c1adb78 100644 --- a/backend/pkg/types/application_vulnerability_scan.go +++ b/backend/pkg/types/application_vulnerability_scan.go @@ -18,8 +18,8 @@ package types import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" - _types "github.com/cisco-open/kubei/runtime_scan/pkg/types" + "github.com/openclarity/kubeclarity/api/server/models" + _types "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" ) type ApplicationVulnerabilityScan struct { diff --git a/backend/pkg/types/cis_docker_benchmark.go b/backend/pkg/types/cis_docker_benchmark.go index d61915093..423282588 100644 --- a/backend/pkg/types/cis_docker_benchmark.go +++ b/backend/pkg/types/cis_docker_benchmark.go @@ -18,8 +18,8 @@ package types import ( "strings" - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type CISDockerBenchmarkResult struct { diff --git a/backend/pkg/types/cis_docker_benchmark_test.go b/backend/pkg/types/cis_docker_benchmark_test.go index 069441e69..67ca95162 100644 --- a/backend/pkg/types/cis_docker_benchmark_test.go +++ b/backend/pkg/types/cis_docker_benchmark_test.go @@ -20,8 +20,8 @@ import ( "gotest.tools/assert" - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) func TestCISDockerBenchmarkResultsFromBackendAPI(t *testing.T) { diff --git a/backend/pkg/types/cvss.go b/backend/pkg/types/cvss.go index 9fb0e600e..46110a23c 100644 --- a/backend/pkg/types/cvss.go +++ b/backend/pkg/types/cvss.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type CVSS struct { diff --git a/backend/pkg/types/cvss_test.go b/backend/pkg/types/cvss_test.go index f6f232046..d290aaffc 100644 --- a/backend/pkg/types/cvss_test.go +++ b/backend/pkg/types/cvss_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) func TestCVSS_ToCVSSBackendAPI(t *testing.T) { diff --git a/backend/pkg/types/cvss_v3_metrics.go b/backend/pkg/types/cvss_v3_metrics.go index f926c2b27..4b887bb34 100644 --- a/backend/pkg/types/cvss_v3_metrics.go +++ b/backend/pkg/types/cvss_v3_metrics.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type CVSSV3Metrics struct { diff --git a/backend/pkg/types/cvss_v3_metrics_test.go b/backend/pkg/types/cvss_v3_metrics_test.go index e1cca64bc..4e9434fa6 100644 --- a/backend/pkg/types/cvss_v3_metrics_test.go +++ b/backend/pkg/types/cvss_v3_metrics_test.go @@ -18,7 +18,7 @@ package types import ( "testing" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) func TestCVSSV3Metrics_getCVSSSeverity(t *testing.T) { diff --git a/backend/pkg/types/cvss_v3_vector.go b/backend/pkg/types/cvss_v3_vector.go index eecdd8b5f..86e186887 100644 --- a/backend/pkg/types/cvss_v3_vector.go +++ b/backend/pkg/types/cvss_v3_vector.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type CVSSV3Vector struct { diff --git a/backend/pkg/types/package_info.go b/backend/pkg/types/package_info.go index d4e2a9479..afb61e9c0 100644 --- a/backend/pkg/types/package_info.go +++ b/backend/pkg/types/package_info.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type PackageInfo struct { diff --git a/backend/pkg/types/package_vulnerability_scan.go b/backend/pkg/types/package_vulnerability_scan.go index ad1e74750..7c4bdb79d 100644 --- a/backend/pkg/types/package_vulnerability_scan.go +++ b/backend/pkg/types/package_vulnerability_scan.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type PackageVulnerabilityScan struct { diff --git a/backend/pkg/types/resource_info.go b/backend/pkg/types/resource_info.go index 06afad851..7e89c4758 100644 --- a/backend/pkg/types/resource_info.go +++ b/backend/pkg/types/resource_info.go @@ -16,8 +16,8 @@ package types import ( - "github.com/cisco-open/kubei/api/server/models" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type ResourceInfo struct { diff --git a/backend/pkg/types/resource_type.go b/backend/pkg/types/resource_type.go index dc11ca649..a89fcf1b8 100644 --- a/backend/pkg/types/resource_type.go +++ b/backend/pkg/types/resource_type.go @@ -18,7 +18,7 @@ package types import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/server/models" + "github.com/openclarity/kubeclarity/api/server/models" ) type ResourceType string diff --git a/charts/kubeclarity/Chart.yaml b/charts/kubeclarity/Chart.yaml index 68cc9b1fe..c824c11f5 100755 --- a/charts/kubeclarity/Chart.yaml +++ b/charts/kubeclarity/Chart.yaml @@ -3,13 +3,13 @@ name: kubeclarity appVersion: latest description: Charts for KubeClarity deployment. version: latest -home: https://github.com/cisco-open/kubei -icon: https://github.com/cisco-open/kubei/raw/main/images/kubeclarity-logo.png +home: https://github.com/openclarity/kubeclarity +icon: https://github.com/openclarity/kubeclarity/raw/main/images/kubeclarity-logo.png sources: - - https://github.com/cisco-open/kubei + - https://github.com/openclarity/kubeclarity maintainers: - name: KubeClarity - url: https://github.com/cisco-open/kubei + url: https://github.com/openclarity/kubeclarity type: application dependencies: - name: postgresql diff --git a/charts/kubeclarity/values.yaml b/charts/kubeclarity/values.yaml index 8ebfaecdd..0d5e3e7ab 100755 --- a/charts/kubeclarity/values.yaml +++ b/charts/kubeclarity/values.yaml @@ -11,7 +11,7 @@ global: docker: ## Configure registry ## - registry: "ghcr.io/cisco-open" + registry: "ghcr.io/openclarity" ## Is this being installed under OpenShift restricted SCC? ## NOTE: You also need to set the PostgreSQL section correctly if using the OpenShift restricted SCC diff --git a/cis_docker_benchmark_scanner/cmd/main.go b/cis_docker_benchmark_scanner/cmd/main.go index 99566815e..fb76e0943 100644 --- a/cis_docker_benchmark_scanner/cmd/main.go +++ b/cis_docker_benchmark_scanner/cmd/main.go @@ -24,9 +24,9 @@ import ( "github.com/spf13/viper" "github.com/urfave/cli" - "github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/scanner" - "github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/version" - shared "github.com/cisco-open/kubei/shared/pkg/config" + "github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/scanner" + "github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/version" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) func versionPrint(_ *cli.Context) { diff --git a/cis_docker_benchmark_scanner/go.mod b/cis_docker_benchmark_scanner/go.mod index 5800b237e..1cad1fac1 100644 --- a/cis_docker_benchmark_scanner/go.mod +++ b/cis_docker_benchmark_scanner/go.mod @@ -1,12 +1,12 @@ -module github.com/cisco-open/kubei/cis_docker_benchmark_scanner +module github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner go 1.17 require ( github.com/Portshift/dockle v0.3.2-0.20220411110521-ea4a00a6462d github.com/Portshift/go-utils v0.0.0-20211213074910-dd69e9ff3e27 - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 - github.com/cisco-open/kubei/shared v0.0.0 + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 + github.com/openclarity/kubeclarity/shared v0.0.0 github.com/go-openapi/runtime v0.21.1 github.com/go-openapi/strfmt v0.21.1 github.com/sirupsen/logrus v1.8.1 @@ -182,8 +182,8 @@ require ( ) replace ( - github.com/cisco-open/kubei/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 => ./../runtime_scan/api - github.com/cisco-open/kubei/sbom_db/api v0.0.0 => ./../sbom_db/api - github.com/cisco-open/kubei/shared v0.0.0 => ./../shared + github.com/openclarity/kubeclarity/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 => ./../runtime_scan/api + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 => ./../sbom_db/api + github.com/openclarity/kubeclarity/shared v0.0.0 => ./../shared ) diff --git a/cis_docker_benchmark_scanner/pkg/config/config.go b/cis_docker_benchmark_scanner/pkg/config/config.go index 336a1700f..b46cd7c83 100644 --- a/cis_docker_benchmark_scanner/pkg/config/config.go +++ b/cis_docker_benchmark_scanner/pkg/config/config.go @@ -22,7 +22,7 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/viper" - shared "github.com/cisco-open/kubei/shared/pkg/config" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) const ( diff --git a/cis_docker_benchmark_scanner/pkg/report/report.go b/cis_docker_benchmark_scanner/pkg/report/report.go index a97d5f89c..aeeb7026d 100644 --- a/cis_docker_benchmark_scanner/pkg/report/report.go +++ b/cis_docker_benchmark_scanner/pkg/report/report.go @@ -23,10 +23,10 @@ import ( transport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/api/client/client" - "github.com/cisco-open/kubei/runtime_scan/api/client/client/operations" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/client" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/client/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) type Reporter interface { diff --git a/cis_docker_benchmark_scanner/pkg/scanner/run.go b/cis_docker_benchmark_scanner/pkg/scanner/run.go index 895c6daa9..29ebac6ff 100644 --- a/cis_docker_benchmark_scanner/pkg/scanner/run.go +++ b/cis_docker_benchmark_scanner/pkg/scanner/run.go @@ -26,9 +26,9 @@ import ( dockle_run "github.com/Portshift/dockle/pkg" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/config" - "github.com/cisco-open/kubei/cis_docker_benchmark_scanner/pkg/report" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/config" + "github.com/openclarity/kubeclarity/cis_docker_benchmark_scanner/pkg/report" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) func createDockleConfig(scanConfig *config.Config) *dockle_config.Config { diff --git a/cli/cmd/analyze.go b/cli/cmd/analyze.go index 64530b125..5d8fc2267 100644 --- a/cli/cmd/analyze.go +++ b/cli/cmd/analyze.go @@ -21,15 +21,15 @@ import ( "github.com/spf13/cobra" - "github.com/cisco-open/kubei/cli/pkg" - _export "github.com/cisco-open/kubei/cli/pkg/analyzer/export" - "github.com/cisco-open/kubei/cli/pkg/utils" - sharedanalyzer "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/analyzer/job" - "github.com/cisco-open/kubei/shared/pkg/converter" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - sharedutils "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/cli/pkg" + _export "github.com/openclarity/kubeclarity/cli/pkg/analyzer/export" + "github.com/openclarity/kubeclarity/cli/pkg/utils" + sharedanalyzer "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer/job" + "github.com/openclarity/kubeclarity/shared/pkg/converter" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + sharedutils "github.com/openclarity/kubeclarity/shared/pkg/utils" ) const inputSBOMName = "input-sbom" diff --git a/cli/cmd/convert.go b/cli/cmd/convert.go index 6d224e90a..e2bd1b3e9 100644 --- a/cli/cmd/convert.go +++ b/cli/cmd/convert.go @@ -19,8 +19,8 @@ import ( "github.com/sirupsen/logrus" "github.com/spf13/cobra" - "github.com/cisco-open/kubei/shared/pkg/converter" - "github.com/cisco-open/kubei/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/converter" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" ) // convertCmd represents the convert command. diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 9d7a75bc1..4ea5bd83c 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -23,8 +23,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/cisco-open/kubei/cli/pkg" - "github.com/cisco-open/kubei/cli/pkg/config" + "github.com/openclarity/kubeclarity/cli/pkg" + "github.com/openclarity/kubeclarity/cli/pkg/config" ) var ( diff --git a/cli/cmd/scan.go b/cli/cmd/scan.go index 45be11750..1b9d04116 100644 --- a/cli/cmd/scan.go +++ b/cli/cmd/scan.go @@ -24,17 +24,17 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/cobra" - _export "github.com/cisco-open/kubei/cli/pkg/scanner/export" - "github.com/cisco-open/kubei/cli/pkg/scanner/presenter" - "github.com/cisco-open/kubei/cli/pkg/utils" - sharedconfig "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - sharedscanner "github.com/cisco-open/kubei/shared/pkg/scanner" - "github.com/cisco-open/kubei/shared/pkg/scanner/job" - sharedutils "github.com/cisco-open/kubei/shared/pkg/utils" - cdx_helper "github.com/cisco-open/kubei/shared/pkg/utils/cyclonedx_helper" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + _export "github.com/openclarity/kubeclarity/cli/pkg/scanner/export" + "github.com/openclarity/kubeclarity/cli/pkg/scanner/presenter" + "github.com/openclarity/kubeclarity/cli/pkg/utils" + sharedconfig "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + sharedscanner "github.com/openclarity/kubeclarity/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/job" + sharedutils "github.com/openclarity/kubeclarity/shared/pkg/utils" + cdx_helper "github.com/openclarity/kubeclarity/shared/pkg/utils/cyclonedx_helper" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) // scanCmd represents the scan command. diff --git a/cli/go.mod b/cli/go.mod index c22c6110b..3aad408aa 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -1,11 +1,11 @@ -module github.com/cisco-open/kubei/cli +module github.com/openclarity/kubeclarity/cli go 1.17 require ( github.com/CycloneDX/cyclonedx-go v0.5.0 - github.com/cisco-open/kubei/api v0.0.0 - github.com/cisco-open/kubei/shared v0.0.0 + github.com/openclarity/kubeclarity/api v0.0.0 + github.com/openclarity/kubeclarity/shared v0.0.0 github.com/go-openapi/runtime v0.21.1 github.com/go-openapi/strfmt v0.21.1 github.com/olekukonko/tablewriter v0.0.5 @@ -187,6 +187,6 @@ require ( ) replace ( - github.com/cisco-open/kubei/api v0.0.0 => ./../api - github.com/cisco-open/kubei/shared v0.0.0 => ./../shared + github.com/openclarity/kubeclarity/api v0.0.0 => ./../api + github.com/openclarity/kubeclarity/shared v0.0.0 => ./../shared ) diff --git a/cli/main.go b/cli/main.go index 2038177ac..2a5de048a 100644 --- a/cli/main.go +++ b/cli/main.go @@ -16,7 +16,7 @@ package main import ( - "github.com/cisco-open/kubei/cli/cmd" + "github.com/openclarity/kubeclarity/cli/cmd" ) func main() { diff --git a/cli/pkg/analyzer/export/export.go b/cli/pkg/analyzer/export/export.go index 2d07b0687..dd4f070aa 100644 --- a/cli/pkg/analyzer/export/export.go +++ b/cli/pkg/analyzer/export/export.go @@ -21,12 +21,12 @@ import ( cdx "github.com/CycloneDX/cyclonedx-go" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/client/client" - "github.com/cisco-open/kubei/api/client/client/operations" - "github.com/cisco-open/kubei/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/utils" - cdx_helper "github.com/cisco-open/kubei/shared/pkg/utils/cyclonedx_helper" + "github.com/openclarity/kubeclarity/api/client/client" + "github.com/openclarity/kubeclarity/api/client/client/operations" + "github.com/openclarity/kubeclarity/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/utils" + cdx_helper "github.com/openclarity/kubeclarity/shared/pkg/utils/cyclonedx_helper" ) func Export(apiClient *client.KubeClarityAPIs, mergedResults *analyzer.MergedResults, id string) error { diff --git a/cli/pkg/analyzer/export/export_test.go b/cli/pkg/analyzer/export/export_test.go index 2075fe084..a26f11d2b 100644 --- a/cli/pkg/analyzer/export/export_test.go +++ b/cli/pkg/analyzer/export/export_test.go @@ -22,7 +22,7 @@ import ( cdx "github.com/CycloneDX/cyclonedx-go" purl "github.com/package-url/packageurl-go" - "github.com/cisco-open/kubei/api/client/models" + "github.com/openclarity/kubeclarity/api/client/models" ) func Test_getPackageInfo(t *testing.T) { diff --git a/cli/pkg/config/config.go b/cli/pkg/config/config.go index a6d20b73a..63ab8577e 100644 --- a/cli/pkg/config/config.go +++ b/cli/pkg/config/config.go @@ -18,7 +18,7 @@ package config import ( "github.com/spf13/viper" - shared "github.com/cisco-open/kubei/shared/pkg/config" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) const ( diff --git a/cli/pkg/config/registry.go b/cli/pkg/config/registry.go index c6b54016a..0c1dc66c9 100644 --- a/cli/pkg/config/registry.go +++ b/cli/pkg/config/registry.go @@ -18,7 +18,7 @@ package config import ( "github.com/spf13/viper" - shared "github.com/cisco-open/kubei/shared/pkg/config" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) const ( diff --git a/cli/pkg/scanner/export/export.go b/cli/pkg/scanner/export/export.go index 52b488b92..c029879e4 100644 --- a/cli/pkg/scanner/export/export.go +++ b/cli/pkg/scanner/export/export.go @@ -22,13 +22,13 @@ import ( log "github.com/sirupsen/logrus" "github.com/spiegel-im-spiegel/go-cvss/v3/metric" - "github.com/cisco-open/kubei/api/client/client" - "github.com/cisco-open/kubei/api/client/client/operations" - "github.com/cisco-open/kubei/api/client/models" - "github.com/cisco-open/kubei/cli/pkg/utils" - "github.com/cisco-open/kubei/shared/pkg/scanner" - cdx_helper "github.com/cisco-open/kubei/shared/pkg/utils/cyclonedx_helper" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + "github.com/openclarity/kubeclarity/api/client/client" + "github.com/openclarity/kubeclarity/api/client/client/operations" + "github.com/openclarity/kubeclarity/api/client/models" + "github.com/openclarity/kubeclarity/cli/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + cdx_helper "github.com/openclarity/kubeclarity/shared/pkg/utils/cyclonedx_helper" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) func Export(apiClient *client.KubeClarityAPIs, mergedResults *scanner.MergedResults, layerCommands []*image_helper.FsLayerCommand, id string) error { diff --git a/cli/pkg/scanner/export/export_test.go b/cli/pkg/scanner/export/export_test.go index 16a529554..548763bdf 100644 --- a/cli/pkg/scanner/export/export_test.go +++ b/cli/pkg/scanner/export/export_test.go @@ -21,8 +21,8 @@ import ( "github.com/spiegel-im-spiegel/go-cvss/v3/metric" - "github.com/cisco-open/kubei/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) func Test_getScannerInfo(t *testing.T) { diff --git a/cli/pkg/scanner/presenter/json/presenter.go b/cli/pkg/scanner/presenter/json/presenter.go index 6eeb2ac4a..948491ed1 100644 --- a/cli/pkg/scanner/presenter/json/presenter.go +++ b/cli/pkg/scanner/presenter/json/presenter.go @@ -20,7 +20,7 @@ import ( "fmt" "io" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) type Presenter struct { diff --git a/cli/pkg/scanner/presenter/presenter.go b/cli/pkg/scanner/presenter/presenter.go index 757ca7385..084478eca 100644 --- a/cli/pkg/scanner/presenter/presenter.go +++ b/cli/pkg/scanner/presenter/presenter.go @@ -18,9 +18,9 @@ package presenter import ( "io" - "github.com/cisco-open/kubei/cli/pkg/scanner/presenter/json" - "github.com/cisco-open/kubei/cli/pkg/scanner/presenter/table" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/cli/pkg/scanner/presenter/json" + "github.com/openclarity/kubeclarity/cli/pkg/scanner/presenter/table" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) // Presenter is an interface for formatting and presenting scan results. diff --git a/cli/pkg/scanner/presenter/table/presenter.go b/cli/pkg/scanner/presenter/table/presenter.go index 42f0ceb5f..3d5ec12ff 100644 --- a/cli/pkg/scanner/presenter/table/presenter.go +++ b/cli/pkg/scanner/presenter/table/presenter.go @@ -23,8 +23,8 @@ import ( "github.com/olekukonko/tablewriter" - "github.com/cisco-open/kubei/shared/pkg/scanner" - utils "github.com/cisco-open/kubei/shared/pkg/utils/vulnerability" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + utils "github.com/openclarity/kubeclarity/shared/pkg/utils/vulnerability" ) type Presenter struct { diff --git a/cli/pkg/scanner/presenter/table/presenter_test.go b/cli/pkg/scanner/presenter/table/presenter_test.go index f7a6ee614..8188987fb 100644 --- a/cli/pkg/scanner/presenter/table/presenter_test.go +++ b/cli/pkg/scanner/presenter/table/presenter_test.go @@ -23,7 +23,7 @@ import ( "github.com/sergi/go-diff/diffmatchpatch" "gotest.tools/assert" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) func TestTablePresenter(t *testing.T) { diff --git a/cli/pkg/utils/api_client.go b/cli/pkg/utils/api_client.go index 888ff8aa5..0d20eaab4 100644 --- a/cli/pkg/utils/api_client.go +++ b/cli/pkg/utils/api_client.go @@ -22,8 +22,8 @@ import ( httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/api/client/client" - "github.com/cisco-open/kubei/cli/pkg/config" + "github.com/openclarity/kubeclarity/api/client/client" + "github.com/openclarity/kubeclarity/cli/pkg/config" ) func NewHTTPClient(conf *config.Backend) *client.KubeClarityAPIs { diff --git a/cli/pkg/utils/hash.go b/cli/pkg/utils/hash.go index ec069bf13..b16a7757f 100644 --- a/cli/pkg/utils/hash.go +++ b/cli/pkg/utils/hash.go @@ -26,7 +26,7 @@ import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) func GenerateHash(inputType utils.SourceType, source string) (string, error) { diff --git a/cli/pkg/utils/vulnerability.go b/cli/pkg/utils/vulnerability.go index 119f42303..1607a31ba 100644 --- a/cli/pkg/utils/vulnerability.go +++ b/cli/pkg/utils/vulnerability.go @@ -20,8 +20,8 @@ import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/utils/vulnerability" + "github.com/openclarity/kubeclarity/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/utils/vulnerability" ) func GetVulnerabilitySeverityFromString(severity string) models.VulnerabilitySeverity { diff --git a/docker-run.sh b/docker-run.sh index c9aa13fee..db8858081 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -1,6 +1,6 @@ #!/bin/sh -IMAGE="${2:-ghcr.io/kubeclarity/kubeclarity}" +IMAGE="${2:-ghcr.io/openclarity/kubeclarity}" DIR="${3:-$HOME}" docker run --privileged --device /dev/fuse -v /var/run/docker.sock:/var/run/docker.sock -v ${DIR}:/tmp --rm ${IMAGE} $1 diff --git a/runtime_k8s_scanner/cmd/main.go b/runtime_k8s_scanner/cmd/main.go index 6b894d85e..073009565 100644 --- a/runtime_k8s_scanner/cmd/main.go +++ b/runtime_k8s_scanner/cmd/main.go @@ -24,9 +24,9 @@ import ( "github.com/spf13/viper" "github.com/urfave/cli" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/scanner" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/version" - shared "github.com/cisco-open/kubei/shared/pkg/config" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/scanner" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/version" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) func run(c *cli.Context) { diff --git a/runtime_k8s_scanner/go.mod b/runtime_k8s_scanner/go.mod index 85e06fcba..02d38b4fd 100644 --- a/runtime_k8s_scanner/go.mod +++ b/runtime_k8s_scanner/go.mod @@ -1,13 +1,13 @@ -module github.com/cisco-open/kubei/runtime_k8s_scanner +module github.com/openclarity/kubeclarity/runtime_k8s_scanner go 1.17 require ( github.com/CycloneDX/cyclonedx-go v0.5.0 github.com/Portshift/go-utils v0.0.0-20211213074910-dd69e9ff3e27 - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 - github.com/cisco-open/kubei/sbom_db/api v0.0.0 - github.com/cisco-open/kubei/shared v0.0.0 + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 + github.com/openclarity/kubeclarity/shared v0.0.0 github.com/go-openapi/runtime v0.21.1 github.com/go-openapi/strfmt v0.21.1 github.com/sirupsen/logrus v1.8.1 @@ -189,7 +189,7 @@ require ( ) replace ( - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 => ./../runtime_scan/api - github.com/cisco-open/kubei/sbom_db/api v0.0.0 => ./../sbom_db/api - github.com/cisco-open/kubei/shared v0.0.0 => ./../shared + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 => ./../runtime_scan/api + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 => ./../sbom_db/api + github.com/openclarity/kubeclarity/shared v0.0.0 => ./../shared ) diff --git a/runtime_k8s_scanner/pkg/analyze/analyze.go b/runtime_k8s_scanner/pkg/analyze/analyze.go index 94cad2461..b6bfb30eb 100644 --- a/runtime_k8s_scanner/pkg/analyze/analyze.go +++ b/runtime_k8s_scanner/pkg/analyze/analyze.go @@ -20,11 +20,11 @@ import ( "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/analyzer/job" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer/job" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type Analyzer interface { diff --git a/runtime_k8s_scanner/pkg/config/config.go b/runtime_k8s_scanner/pkg/config/config.go index 5e2ec407a..a2d847513 100644 --- a/runtime_k8s_scanner/pkg/config/config.go +++ b/runtime_k8s_scanner/pkg/config/config.go @@ -21,7 +21,7 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/viper" - shared "github.com/cisco-open/kubei/shared/pkg/config" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) const ( diff --git a/runtime_k8s_scanner/pkg/report/report.go b/runtime_k8s_scanner/pkg/report/report.go index 086bb6504..5ca156f78 100644 --- a/runtime_k8s_scanner/pkg/report/report.go +++ b/runtime_k8s_scanner/pkg/report/report.go @@ -26,14 +26,14 @@ import ( log "github.com/sirupsen/logrus" "github.com/spiegel-im-spiegel/go-cvss/v3/metric" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/api/client/client" - "github.com/cisco-open/kubei/runtime_scan/api/client/client/operations" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/scanner" - cdx_helper "github.com/cisco-open/kubei/shared/pkg/utils/cyclonedx_helper" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/client" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/client/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + cdx_helper "github.com/openclarity/kubeclarity/shared/pkg/utils/cyclonedx_helper" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) type Reporter interface { diff --git a/runtime_k8s_scanner/pkg/report/report_test.go b/runtime_k8s_scanner/pkg/report/report_test.go index fd3778a8b..ff1149192 100644 --- a/runtime_k8s_scanner/pkg/report/report_test.go +++ b/runtime_k8s_scanner/pkg/report/report_test.go @@ -21,8 +21,8 @@ import ( "gotest.tools/assert" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) func Test_createPackagesVulnerabilitiesScan(t *testing.T) { diff --git a/runtime_k8s_scanner/pkg/sbomdb/client.go b/runtime_k8s_scanner/pkg/sbomdb/client.go index 5b23e4844..e2c4d1304 100644 --- a/runtime_k8s_scanner/pkg/sbomdb/client.go +++ b/runtime_k8s_scanner/pkg/sbomdb/client.go @@ -19,7 +19,7 @@ import ( transport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/sbom_db/api/client/client" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client" ) type Client struct { diff --git a/runtime_k8s_scanner/pkg/sbomdb/getter.go b/runtime_k8s_scanner/pkg/sbomdb/getter.go index 5d2de4e82..c3bbb07be 100644 --- a/runtime_k8s_scanner/pkg/sbomdb/getter.go +++ b/runtime_k8s_scanner/pkg/sbomdb/getter.go @@ -21,8 +21,8 @@ import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/sbom_db/api/client/client" - "github.com/cisco-open/kubei/sbom_db/api/client/client/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client/operations" ) type Getter interface { diff --git a/runtime_k8s_scanner/pkg/sbomdb/setter.go b/runtime_k8s_scanner/pkg/sbomdb/setter.go index 308f22a05..7b3dc8e1a 100644 --- a/runtime_k8s_scanner/pkg/sbomdb/setter.go +++ b/runtime_k8s_scanner/pkg/sbomdb/setter.go @@ -19,9 +19,9 @@ import ( "context" "fmt" - "github.com/cisco-open/kubei/sbom_db/api/client/client" - "github.com/cisco-open/kubei/sbom_db/api/client/client/operations" - "github.com/cisco-open/kubei/sbom_db/api/client/models" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/client/models" ) type Setter interface { diff --git a/runtime_k8s_scanner/pkg/scan/scan.go b/runtime_k8s_scanner/pkg/scan/scan.go index 739ee3607..6a9dd9f04 100644 --- a/runtime_k8s_scanner/pkg/scan/scan.go +++ b/runtime_k8s_scanner/pkg/scan/scan.go @@ -20,11 +20,11 @@ import ( "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - sharedscanner "github.com/cisco-open/kubei/shared/pkg/scanner" - "github.com/cisco-open/kubei/shared/pkg/scanner/job" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + sharedscanner "github.com/openclarity/kubeclarity/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/job" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type Scanner interface { diff --git a/runtime_k8s_scanner/pkg/scanner/scanner.go b/runtime_k8s_scanner/pkg/scanner/scanner.go index f675b5cfe..6a9dd0554 100644 --- a/runtime_k8s_scanner/pkg/scanner/scanner.go +++ b/runtime_k8s_scanner/pkg/scanner/scanner.go @@ -24,15 +24,15 @@ import ( log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/analyze" - _config "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/config" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/report" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/sbomdb" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/scan" - "github.com/cisco-open/kubei/runtime_k8s_scanner/pkg/version" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/analyze" + _config "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/config" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/report" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/sbomdb" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/scan" + "github.com/openclarity/kubeclarity/runtime_k8s_scanner/pkg/version" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) const ( diff --git a/runtime_scan/api/client/client/kube_clarity_runtime_scan_a_p_is_client.go b/runtime_scan/api/client/client/kube_clarity_runtime_scan_a_p_is_client.go index a298f52c6..2ddd2dd71 100644 --- a/runtime_scan/api/client/client/kube_clarity_runtime_scan_a_p_is_client.go +++ b/runtime_scan/api/client/client/kube_clarity_runtime_scan_a_p_is_client.go @@ -6,7 +6,7 @@ package client // Editing this file might prove futile when you re-run the swagger generate command import ( - "github.com/cisco-open/kubei/runtime_scan/api/client/client/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/client/operations" "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go index b787b7c31..571cd7f84 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // NewPostScanScanUUIDCisDockerBenchmarkResultsParams creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams object, diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go index 7122a04c7..518c6e704 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // PostScanScanUUIDCisDockerBenchmarkResultsReader is a Reader for the PostScanScanUUIDCisDockerBenchmarkResults structure. diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_parameters.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_parameters.go index 2d4f7e11d..4706b2f2f 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_parameters.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // NewPostScanScanUUIDContentAnalysisParams creates a new PostScanScanUUIDContentAnalysisParams object, diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_responses.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_responses.go index 772007dd8..25861a0a6 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_responses.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_content_analysis_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // PostScanScanUUIDContentAnalysisReader is a Reader for the PostScanScanUUIDContentAnalysis structure. diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_parameters.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_parameters.go index 3eae8dabb..2991aa8c1 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_parameters.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // NewPostScanScanUUIDResultsParams creates a new PostScanScanUUIDResultsParams object, diff --git a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_responses.go b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_responses.go index 9f9b02a0f..8e6d9498c 100644 --- a/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_responses.go +++ b/runtime_scan/api/client/client/operations/post_scan_scan_uuid_results_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/runtime_scan/api/client/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/client/models" ) // PostScanScanUUIDResultsReader is a Reader for the PostScanScanUUIDResults structure. diff --git a/runtime_scan/api/go.mod b/runtime_scan/api/go.mod index d3fa66d1d..6323106b7 100644 --- a/runtime_scan/api/go.mod +++ b/runtime_scan/api/go.mod @@ -1,3 +1,3 @@ -module github.com/cisco-open/kubei/runtime_scan/api +module github.com/openclarity/kubeclarity/runtime_scan/api go 1.17 diff --git a/runtime_scan/api/server/cmd/kube-clarity-runtime-scan-a-p-is-server/main.go b/runtime_scan/api/server/cmd/kube-clarity-runtime-scan-a-p-is-server/main.go index fe69e1016..7d6cbd7b3 100644 --- a/runtime_scan/api/server/cmd/kube-clarity-runtime-scan-a-p-is-server/main.go +++ b/runtime_scan/api/server/cmd/kube-clarity-runtime-scan-a-p-is-server/main.go @@ -9,8 +9,8 @@ import ( "github.com/go-openapi/loads" flags "github.com/jessevdk/go-flags" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" ) // This file was generated by the swagger tool. diff --git a/runtime_scan/api/server/restapi/configure_kube_clarity_runtime_scan_a_p_is.go b/runtime_scan/api/server/restapi/configure_kube_clarity_runtime_scan_a_p_is.go index 5f97a82c1..0598f11ac 100644 --- a/runtime_scan/api/server/restapi/configure_kube_clarity_runtime_scan_a_p_is.go +++ b/runtime_scan/api/server/restapi/configure_kube_clarity_runtime_scan_a_p_is.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/runtime/middleware" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" ) //go:generate swagger generate server --target ../../server --name KubeClarityRuntimeScanAPIs --spec ../../swagger.yaml --principal interface{} diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go index 48ceffcad..bf3780d70 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // NewPostScanScanUUIDCisDockerBenchmarkResultsParams creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams object diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go index 350784f30..fc7125146 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_cis_docker_benchmark_results_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // PostScanScanUUIDCisDockerBenchmarkResultsCreatedCode is the HTTP code returned for type PostScanScanUUIDCisDockerBenchmarkResultsCreated diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_parameters.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_parameters.go index 01f2b7712..379a3575c 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_parameters.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // NewPostScanScanUUIDContentAnalysisParams creates a new PostScanScanUUIDContentAnalysisParams object diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_responses.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_responses.go index 252fe4dda..45ca491e5 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_responses.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_content_analysis_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // PostScanScanUUIDContentAnalysisCreatedCode is the HTTP code returned for type PostScanScanUUIDContentAnalysisCreated diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_parameters.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_parameters.go index fabdd5b49..88b73c13e 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_parameters.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // NewPostScanScanUUIDResultsParams creates a new PostScanScanUUIDResultsParams object diff --git a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_responses.go b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_responses.go index bf7f655e2..a1e649bc9 100644 --- a/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_responses.go +++ b/runtime_scan/api/server/restapi/operations/post_scan_scan_uuid_results_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) // PostScanScanUUIDResultsCreatedCode is the HTTP code returned for type PostScanScanUUIDResultsCreated diff --git a/runtime_scan/api/server/restapi/server.go b/runtime_scan/api/server/restapi/server.go index e76be92aa..5ec551684 100644 --- a/runtime_scan/api/server/restapi/server.go +++ b/runtime_scan/api/server/restapi/server.go @@ -25,7 +25,7 @@ import ( flags "github.com/jessevdk/go-flags" "golang.org/x/net/netutil" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" ) const ( diff --git a/runtime_scan/go.mod b/runtime_scan/go.mod index baf8f0e92..a33398198 100644 --- a/runtime_scan/go.mod +++ b/runtime_scan/go.mod @@ -1,10 +1,10 @@ -module github.com/cisco-open/kubei/runtime_scan +module github.com/openclarity/kubeclarity/runtime_scan go 1.17 require ( - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 - github.com/cisco-open/kubei/shared v0.0.0 + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 + github.com/openclarity/kubeclarity/shared v0.0.0 github.com/containers/image/v5 v5.19.0 github.com/ghodss/yaml v1.0.0 github.com/go-openapi/loads v0.21.0 @@ -139,8 +139,8 @@ require ( ) replace ( - github.com/cisco-open/kubei/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner - github.com/cisco-open/kubei/runtime_scan/api v0.0.0 => ./api - github.com/cisco-open/kubei/sbom_db/api v0.0.0 => ./../sbom_db/api - github.com/cisco-open/kubei/shared v0.0.0 => ./../shared + github.com/openclarity/kubeclarity/runtime_k8s_scanner v0.0.0 => ./../runtime_k8s_scanner + github.com/openclarity/kubeclarity/runtime_scan/api v0.0.0 => ./api + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 => ./../sbom_db/api + github.com/openclarity/kubeclarity/shared v0.0.0 => ./../shared ) diff --git a/runtime_scan/pkg/fake/fake.go b/runtime_scan/pkg/fake/fake.go index 48716b043..c818c3d7f 100644 --- a/runtime_scan/pkg/fake/fake.go +++ b/runtime_scan/pkg/fake/fake.go @@ -22,9 +22,9 @@ import ( log "github.com/sirupsen/logrus" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" - _config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/pkg/types" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + _config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" ) const imagesToScan = 1 diff --git a/runtime_scan/pkg/orchestrator/mock_orchestrator.go b/runtime_scan/pkg/orchestrator/mock_orchestrator.go index dbff06090..50496d73e 100644 --- a/runtime_scan/pkg/orchestrator/mock_orchestrator.go +++ b/runtime_scan/pkg/orchestrator/mock_orchestrator.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/cisco-open/kubei/runtime_scan/pkg/orchestrator (interfaces: VulnerabilitiesScanner) +// Source: github.com/openclarity/kubeclarity/runtime_scan/pkg/orchestrator (interfaces: VulnerabilitiesScanner) // Package orchestrator is a generated GoMock package. package orchestrator @@ -7,8 +7,8 @@ package orchestrator import ( gomock "github.com/golang/mock/gomock" reflect "reflect" - config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - types "github.com/cisco-open/kubei/runtime_scan/pkg/types" + config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + types "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" ) // MockVulnerabilitiesScanner is a mock of VulnerabilitiesScanner interface diff --git a/runtime_scan/pkg/orchestrator/orchestrator.go b/runtime_scan/pkg/orchestrator/orchestrator.go index 6ea7f48ee..d0b161edf 100644 --- a/runtime_scan/pkg/orchestrator/orchestrator.go +++ b/runtime_scan/pkg/orchestrator/orchestrator.go @@ -22,12 +22,12 @@ import ( log "github.com/sirupsen/logrus" "k8s.io/client-go/kubernetes" - runtime_scan_models "github.com/cisco-open/kubei/runtime_scan/api/server/models" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" - _config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/pkg/rest" - _scanner "github.com/cisco-open/kubei/runtime_scan/pkg/scanner" - "github.com/cisco-open/kubei/runtime_scan/pkg/types" + runtime_scan_models "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" + _config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/rest" + _scanner "github.com/openclarity/kubeclarity/runtime_scan/pkg/scanner" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" ) type ImageContentAnalysisHandlerCallback func(*runtime_scan_models.ImageContentAnalysis) error @@ -41,7 +41,7 @@ type Orchestrator struct { sync.Mutex } -//go:generate $GOPATH/bin/mockgen -destination=./mock_orchestrator.go -package=orchestrator github.com/cisco-open/kubei/runtime_scan/pkg/orchestrator VulnerabilitiesScanner +//go:generate $GOPATH/bin/mockgen -destination=./mock_orchestrator.go -package=orchestrator github.com/openclarity/kubeclarity/runtime_scan/pkg/orchestrator VulnerabilitiesScanner type VulnerabilitiesScanner interface { Start(errChan chan struct{}) Scan(scanConfig *_config.ScanConfig, scanDone chan struct{}) error diff --git a/runtime_scan/pkg/rest/server.go b/runtime_scan/pkg/rest/server.go index 2751362b2..806dbabd4 100644 --- a/runtime_scan/pkg/rest/server.go +++ b/runtime_scan/pkg/rest/server.go @@ -23,9 +23,9 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" ) type Server struct { diff --git a/runtime_scan/pkg/scanner/creds/basic.go b/runtime_scan/pkg/scanner/creds/basic.go index edc2ce973..68b484f40 100644 --- a/runtime_scan/pkg/scanner/creds/basic.go +++ b/runtime_scan/pkg/scanner/creds/basic.go @@ -20,7 +20,7 @@ import ( corev1 "k8s.io/api/core/v1" "k8s.io/client-go/kubernetes" - shared "github.com/cisco-open/kubei/shared/pkg/config" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) const ( diff --git a/runtime_scan/pkg/scanner/job_managment.go b/runtime_scan/pkg/scanner/job_managment.go index 2135efeee..7c2e4b92f 100644 --- a/runtime_scan/pkg/scanner/job_managment.go +++ b/runtime_scan/pkg/scanner/job_managment.go @@ -30,11 +30,11 @@ import ( "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "github.com/cisco-open/kubei/runtime_scan/pkg/config" - "github.com/cisco-open/kubei/runtime_scan/pkg/types" - stringsutils "github.com/cisco-open/kubei/runtime_scan/pkg/utils/strings" - shared "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/utils/k8s" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" + stringsutils "github.com/openclarity/kubeclarity/runtime_scan/pkg/utils/strings" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/utils/k8s" ) const ( diff --git a/runtime_scan/pkg/scanner/job_managment_test.go b/runtime_scan/pkg/scanner/job_managment_test.go index 6f74f2ddd..dd7990f43 100644 --- a/runtime_scan/pkg/scanner/job_managment_test.go +++ b/runtime_scan/pkg/scanner/job_managment_test.go @@ -26,10 +26,10 @@ import ( "k8s.io/apimachinery/pkg/util/validation" "k8s.io/client-go/kubernetes" - _config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - _creds "github.com/cisco-open/kubei/runtime_scan/pkg/scanner/creds" - "github.com/cisco-open/kubei/runtime_scan/pkg/types" - shared "github.com/cisco-open/kubei/shared/pkg/config" + _config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + _creds "github.com/openclarity/kubeclarity/runtime_scan/pkg/scanner/creds" + "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" + shared "github.com/openclarity/kubeclarity/shared/pkg/config" ) func Test_getSimpleImageName(t *testing.T) { diff --git a/runtime_scan/pkg/scanner/scanner.go b/runtime_scan/pkg/scanner/scanner.go index 4113ca918..051acba99 100644 --- a/runtime_scan/pkg/scanner/scanner.go +++ b/runtime_scan/pkg/scanner/scanner.go @@ -29,13 +29,13 @@ import ( "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/kubernetes" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" - "github.com/cisco-open/kubei/runtime_scan/api/server/restapi/operations" - _config "github.com/cisco-open/kubei/runtime_scan/pkg/config" - _creds "github.com/cisco-open/kubei/runtime_scan/pkg/scanner/creds" - _types "github.com/cisco-open/kubei/runtime_scan/pkg/types" - sliceutils "github.com/cisco-open/kubei/runtime_scan/pkg/utils/slice" - k8sutils "github.com/cisco-open/kubei/shared/pkg/utils/k8s" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/restapi/operations" + _config "github.com/openclarity/kubeclarity/runtime_scan/pkg/config" + _creds "github.com/openclarity/kubeclarity/runtime_scan/pkg/scanner/creds" + _types "github.com/openclarity/kubeclarity/runtime_scan/pkg/types" + sliceutils "github.com/openclarity/kubeclarity/runtime_scan/pkg/utils/slice" + k8sutils "github.com/openclarity/kubeclarity/shared/pkg/utils/k8s" ) type Scanner struct { diff --git a/runtime_scan/pkg/types/types.go b/runtime_scan/pkg/types/types.go index a0787e329..e0c18d425 100644 --- a/runtime_scan/pkg/types/types.go +++ b/runtime_scan/pkg/types/types.go @@ -18,7 +18,7 @@ package types import ( "k8s.io/apimachinery/pkg/labels" - "github.com/cisco-open/kubei/runtime_scan/api/server/models" + "github.com/openclarity/kubeclarity/runtime_scan/api/server/models" ) type Status string diff --git a/sbom_db/api/client/client/kube_clarity_s_b_o_m_d_b_a_p_is_client.go b/sbom_db/api/client/client/kube_clarity_s_b_o_m_d_b_a_p_is_client.go index 6624c28b8..5f4c55eae 100644 --- a/sbom_db/api/client/client/kube_clarity_s_b_o_m_d_b_a_p_is_client.go +++ b/sbom_db/api/client/client/kube_clarity_s_b_o_m_d_b_a_p_is_client.go @@ -9,7 +9,7 @@ import ( "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/sbom_db/api/client/client/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/client/client/operations" ) // Default kube clarity s b o m d b a p is HTTP client. diff --git a/sbom_db/api/client/client/operations/get_sbom_d_b_resource_hash_responses.go b/sbom_db/api/client/client/operations/get_sbom_d_b_resource_hash_responses.go index 63df92884..565a59c0f 100644 --- a/sbom_db/api/client/client/operations/get_sbom_d_b_resource_hash_responses.go +++ b/sbom_db/api/client/client/operations/get_sbom_d_b_resource_hash_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/sbom_db/api/client/models" + "github.com/openclarity/kubeclarity/sbom_db/api/client/models" ) // GetSbomDBResourceHashReader is a Reader for the GetSbomDBResourceHash structure. diff --git a/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_parameters.go b/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_parameters.go index afe1dae95..276fa4ee2 100644 --- a/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_parameters.go +++ b/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/sbom_db/api/client/models" + "github.com/openclarity/kubeclarity/sbom_db/api/client/models" ) // NewPutSbomDBResourceHashParams creates a new PutSbomDBResourceHashParams object, diff --git a/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_responses.go b/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_responses.go index c4e394f64..0425ce413 100644 --- a/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_responses.go +++ b/sbom_db/api/client/client/operations/put_sbom_d_b_resource_hash_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/sbom_db/api/client/models" + "github.com/openclarity/kubeclarity/sbom_db/api/client/models" ) // PutSbomDBResourceHashReader is a Reader for the PutSbomDBResourceHash structure. diff --git a/sbom_db/api/go.mod b/sbom_db/api/go.mod index 74b8b42e2..a273cc808 100644 --- a/sbom_db/api/go.mod +++ b/sbom_db/api/go.mod @@ -1,4 +1,4 @@ -module github.com/cisco-open/kubei/sbom_db/api +module github.com/openclarity/kubeclarity/sbom_db/api go 1.17 diff --git a/sbom_db/api/server/cmd/kube-clarity-s-b-o-m-d-b-a-p-is-server/main.go b/sbom_db/api/server/cmd/kube-clarity-s-b-o-m-d-b-a-p-is-server/main.go index 4b4a9e9b5..09f8d4a68 100644 --- a/sbom_db/api/server/cmd/kube-clarity-s-b-o-m-d-b-a-p-is-server/main.go +++ b/sbom_db/api/server/cmd/kube-clarity-s-b-o-m-d-b-a-p-is-server/main.go @@ -9,8 +9,8 @@ import ( "github.com/go-openapi/loads" flags "github.com/jessevdk/go-flags" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi/operations" ) // This file was generated by the swagger tool. diff --git a/sbom_db/api/server/restapi/configure_kube_clarity_s_b_o_m_d_b_a_p_is.go b/sbom_db/api/server/restapi/configure_kube_clarity_s_b_o_m_d_b_a_p_is.go index 64bd070d1..b106eeb0e 100644 --- a/sbom_db/api/server/restapi/configure_kube_clarity_s_b_o_m_d_b_a_p_is.go +++ b/sbom_db/api/server/restapi/configure_kube_clarity_s_b_o_m_d_b_a_p_is.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/runtime/middleware" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi/operations" ) //go:generate swagger generate server --target ../../server --name KubeClaritySBOMDBAPIs --spec ../../swagger.yaml --principal interface{} diff --git a/sbom_db/api/server/restapi/operations/get_sbom_d_b_resource_hash_responses.go b/sbom_db/api/server/restapi/operations/get_sbom_d_b_resource_hash_responses.go index 27c847043..7ba8dc02e 100644 --- a/sbom_db/api/server/restapi/operations/get_sbom_d_b_resource_hash_responses.go +++ b/sbom_db/api/server/restapi/operations/get_sbom_d_b_resource_hash_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/sbom_db/api/server/models" + "github.com/openclarity/kubeclarity/sbom_db/api/server/models" ) // GetSbomDBResourceHashOKCode is the HTTP code returned for type GetSbomDBResourceHashOK diff --git a/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_parameters.go b/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_parameters.go index 88dc3aaab..60531b0ee 100644 --- a/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_parameters.go +++ b/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_parameters.go @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" - "github.com/cisco-open/kubei/sbom_db/api/server/models" + "github.com/openclarity/kubeclarity/sbom_db/api/server/models" ) // NewPutSbomDBResourceHashParams creates a new PutSbomDBResourceHashParams object diff --git a/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_responses.go b/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_responses.go index 1a586b1e9..8daec8075 100644 --- a/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_responses.go +++ b/sbom_db/api/server/restapi/operations/put_sbom_d_b_resource_hash_responses.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/runtime" - "github.com/cisco-open/kubei/sbom_db/api/server/models" + "github.com/openclarity/kubeclarity/sbom_db/api/server/models" ) // PutSbomDBResourceHashCreatedCode is the HTTP code returned for type PutSbomDBResourceHashCreated diff --git a/sbom_db/api/server/restapi/server.go b/sbom_db/api/server/restapi/server.go index 0e52b5f5f..dd911ee30 100644 --- a/sbom_db/api/server/restapi/server.go +++ b/sbom_db/api/server/restapi/server.go @@ -25,7 +25,7 @@ import ( flags "github.com/jessevdk/go-flags" "golang.org/x/net/netutil" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi/operations" ) const ( diff --git a/sbom_db/backend/cmd/main.go b/sbom_db/backend/cmd/main.go index fbb2849de..fb4fffe10 100644 --- a/sbom_db/backend/cmd/main.go +++ b/sbom_db/backend/cmd/main.go @@ -24,9 +24,9 @@ import ( "github.com/spf13/viper" "github.com/urfave/cli" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/backend" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/config" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/version" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/backend" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/config" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/version" ) func run(c *cli.Context) { diff --git a/sbom_db/backend/go.mod b/sbom_db/backend/go.mod index b441c2e00..75e2dbf7a 100644 --- a/sbom_db/backend/go.mod +++ b/sbom_db/backend/go.mod @@ -1,4 +1,4 @@ -module github.com/cisco-open/kubei/sbom_db/backend +module github.com/openclarity/kubeclarity/sbom_db/backend go 1.17 @@ -12,7 +12,7 @@ require ( github.com/urfave/cli v1.22.5 gorm.io/driver/sqlite v1.2.6 gorm.io/gorm v1.22.5 - github.com/cisco-open/kubei/sbom_db/api v0.0.0 + github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 ) require ( @@ -58,4 +58,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -replace github.com/cisco-open/kubei/sbom_db/api v0.0.0 => ./../api +replace github.com/openclarity/kubeclarity/sbom_db/api v0.0.0 => ./../api diff --git a/sbom_db/backend/pkg/backend/controller.go b/sbom_db/backend/pkg/backend/controller.go index 7bb78602b..15ca754ee 100644 --- a/sbom_db/backend/pkg/backend/controller.go +++ b/sbom_db/backend/pkg/backend/controller.go @@ -22,9 +22,9 @@ import ( "github.com/go-openapi/runtime/middleware" "gorm.io/gorm" - "github.com/cisco-open/kubei/sbom_db/api/server/models" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi/operations" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/database" + "github.com/openclarity/kubeclarity/sbom_db/api/server/models" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/database" ) var oopsResponse = &models.APIResponse{ diff --git a/sbom_db/backend/pkg/backend/run.go b/sbom_db/backend/pkg/backend/run.go index 4b3b12729..fe60d7320 100644 --- a/sbom_db/backend/pkg/backend/run.go +++ b/sbom_db/backend/pkg/backend/run.go @@ -24,8 +24,8 @@ import ( "github.com/Portshift/go-utils/healthz" log "github.com/sirupsen/logrus" - _config "github.com/cisco-open/kubei/sbom_db/backend/pkg/config" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/database" + _config "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/config" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/database" ) const defaultChanSize = 100 diff --git a/sbom_db/backend/pkg/backend/server.go b/sbom_db/backend/pkg/backend/server.go index 86a7844f3..5945d11c1 100644 --- a/sbom_db/backend/pkg/backend/server.go +++ b/sbom_db/backend/pkg/backend/server.go @@ -22,9 +22,9 @@ import ( "github.com/go-openapi/runtime/middleware" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi" - "github.com/cisco-open/kubei/sbom_db/api/server/restapi/operations" - "github.com/cisco-open/kubei/sbom_db/backend/pkg/database" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi" + "github.com/openclarity/kubeclarity/sbom_db/api/server/restapi/operations" + "github.com/openclarity/kubeclarity/sbom_db/backend/pkg/database" ) type Server struct { diff --git a/shared/go.mod b/shared/go.mod index 59f147984..9a4b3d39f 100644 --- a/shared/go.mod +++ b/shared/go.mod @@ -1,4 +1,4 @@ -module github.com/cisco-open/kubei/shared +module github.com/openclarity/kubeclarity/shared go 1.17 diff --git a/shared/pkg/analyzer/analyzer.go b/shared/pkg/analyzer/analyzer.go index 9157309f3..33a533e35 100644 --- a/shared/pkg/analyzer/analyzer.go +++ b/shared/pkg/analyzer/analyzer.go @@ -16,7 +16,7 @@ package analyzer import ( - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type Results struct { diff --git a/shared/pkg/analyzer/cdx_gomod/cyclonedx_gomod.go b/shared/pkg/analyzer/cdx_gomod/cyclonedx_gomod.go index e796dbede..b7f436db1 100644 --- a/shared/pkg/analyzer/cdx_gomod/cyclonedx_gomod.go +++ b/shared/pkg/analyzer/cdx_gomod/cyclonedx_gomod.go @@ -28,11 +28,11 @@ import ( zero_log "github.com/rs/zerolog/log" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) const AnalyzerName = "gomod" diff --git a/shared/pkg/analyzer/job/job.go b/shared/pkg/analyzer/job/job.go index 337364749..9dc317985 100644 --- a/shared/pkg/analyzer/job/job.go +++ b/shared/pkg/analyzer/job/job.go @@ -18,10 +18,10 @@ package job import ( "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/analyzer/cdx_gomod" - "github.com/cisco-open/kubei/shared/pkg/analyzer/syft" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer/cdx_gomod" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer/syft" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" ) func CreateAnalyzerJob(analyzerName string, config *config.Config, logger *logrus.Entry, resultChan chan job_manager.Result) job_manager.Job { diff --git a/shared/pkg/analyzer/merge.go b/shared/pkg/analyzer/merge.go index 3153352d9..5cf55ff43 100644 --- a/shared/pkg/analyzer/merge.go +++ b/shared/pkg/analyzer/merge.go @@ -24,8 +24,8 @@ import ( "github.com/google/uuid" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type componentKey string // Unique identification of a package (name and version) diff --git a/shared/pkg/analyzer/merge_test.go b/shared/pkg/analyzer/merge_test.go index ff8c7cf60..cf7e8d7fc 100644 --- a/shared/pkg/analyzer/merge_test.go +++ b/shared/pkg/analyzer/merge_test.go @@ -23,8 +23,8 @@ import ( cdx "github.com/CycloneDX/cyclonedx-go" "gotest.tools/assert" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) func TestMergedResults_createComponentListFromMap(t *testing.T) { diff --git a/shared/pkg/analyzer/syft/syft.go b/shared/pkg/analyzer/syft/syft.go index fc03907ec..22c078574 100644 --- a/shared/pkg/analyzer/syft/syft.go +++ b/shared/pkg/analyzer/syft/syft.go @@ -26,12 +26,12 @@ import ( "github.com/anchore/syft/syft/source" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/analyzer" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/formatter" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/utils" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + "github.com/openclarity/kubeclarity/shared/pkg/analyzer" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) const AnalyzerName = "syft" diff --git a/shared/pkg/config/analyzer.go b/shared/pkg/config/analyzer.go index 197a46783..a33560db4 100644 --- a/shared/pkg/config/analyzer.go +++ b/shared/pkg/config/analyzer.go @@ -18,7 +18,7 @@ package config import ( "github.com/spf13/viper" - "github.com/cisco-open/kubei/shared/pkg/formatter" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" ) // TODO: maybe we need to extend the unified config. diff --git a/shared/pkg/config/runtime_scanner.go b/shared/pkg/config/runtime_scanner.go index 1d0fb3d8d..1bd6375ae 100644 --- a/shared/pkg/config/runtime_scanner.go +++ b/shared/pkg/config/runtime_scanner.go @@ -19,8 +19,8 @@ import ( log "github.com/sirupsen/logrus" "github.com/spf13/viper" - "github.com/cisco-open/kubei/shared/pkg/utils/creds" - "github.com/cisco-open/kubei/shared/pkg/utils/creds/secret" + "github.com/openclarity/kubeclarity/shared/pkg/utils/creds" + "github.com/openclarity/kubeclarity/shared/pkg/utils/creds/secret" ) const ( diff --git a/shared/pkg/converter/cyclonedx_to_syft.go b/shared/pkg/converter/cyclonedx_to_syft.go index 2c0b8838d..55250c363 100644 --- a/shared/pkg/converter/cyclonedx_to_syft.go +++ b/shared/pkg/converter/cyclonedx_to_syft.go @@ -30,8 +30,8 @@ import ( "github.com/google/uuid" purl "github.com/package-url/packageurl-go" - "github.com/cisco-open/kubei/shared/pkg/formatter" - cdx_helper "github.com/cisco-open/kubei/shared/pkg/utils/cyclonedx_helper" + "github.com/openclarity/kubeclarity/shared/pkg/formatter" + cdx_helper "github.com/openclarity/kubeclarity/shared/pkg/utils/cyclonedx_helper" ) type propertiesInfo struct { diff --git a/shared/pkg/job_manager/job.go b/shared/pkg/job_manager/job.go index 3fec68084..a800803cf 100644 --- a/shared/pkg/job_manager/job.go +++ b/shared/pkg/job_manager/job.go @@ -18,8 +18,8 @@ package job_manager // nolint:revive,stylecheck import ( "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type Job interface { diff --git a/shared/pkg/job_manager/manager.go b/shared/pkg/job_manager/manager.go index f688d9535..46858452e 100644 --- a/shared/pkg/job_manager/manager.go +++ b/shared/pkg/job_manager/manager.go @@ -21,8 +21,8 @@ import ( "github.com/hashicorp/go-multierror" "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type Manager struct { diff --git a/shared/pkg/scanner/dependency_track/api/client/client/component/get_component_by_uuid_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/component/get_component_by_uuid_responses.go index 5c2f37ca6..d6eb12bc6 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/component/get_component_by_uuid_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/component/get_component_by_uuid_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetComponentByUUIDReader is a Reader for the GetComponentByUUID structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/dependency_track_api_client.go b/shared/pkg/scanner/dependency_track/api/client/client/dependency_track_api_client.go index e23c8b12f..d10763a7c 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/dependency_track_api_client.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/dependency_track_api_client.go @@ -10,11 +10,11 @@ import ( httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/bom" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/component" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/finding" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/project" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/vulnerability" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/bom" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/component" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/finding" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/project" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/vulnerability" ) // Default dependency track API HTTP client. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/finding/get_findings_by_project_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/finding/get_findings_by_project_responses.go index 8f66f7566..a2ee75068 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/finding/get_findings_by_project_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/finding/get_findings_by_project_responses.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetFindingsByProjectReader is a Reader for the GetFindingsByProject structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_parameters.go b/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_parameters.go index 32055f914..109be050a 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_parameters.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // NewCreateProjectParams creates a new CreateProjectParams object, diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_responses.go index 70fbca3fc..16bf22ba6 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/create_project_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // CreateProjectReader is a Reader for the CreateProject structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/get_project1_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/project/get_project1_responses.go index ef73ed22e..a8dfb3eac 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/get_project1_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/get_project1_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetProject1Reader is a Reader for the GetProject1 structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/get_project_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/project/get_project_responses.go index a70a8b03a..43b1ee937 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/get_project_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/get_project_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetProjectReader is a Reader for the GetProject structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/get_projects_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/project/get_projects_responses.go index 096f4fe25..1ada46be9 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/get_projects_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/get_projects_responses.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetProjectsReader is a Reader for the GetProjects structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_parameters.go b/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_parameters.go index dcad834ee..ebef22a44 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_parameters.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_parameters.go @@ -15,7 +15,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // NewUpdateProjectParams creates a new UpdateProjectParams object, diff --git a/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_responses.go index e9b54207f..d3c234a89 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/project/update_project_responses.go @@ -12,7 +12,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // UpdateProjectReader is a Reader for the UpdateProject structure. diff --git a/shared/pkg/scanner/dependency_track/api/client/client/vulnerability/get_vulnerabilities_by_project_responses.go b/shared/pkg/scanner/dependency_track/api/client/client/vulnerability/get_vulnerabilities_by_project_responses.go index 021d277ce..07d1a9504 100644 --- a/shared/pkg/scanner/dependency_track/api/client/client/vulnerability/get_vulnerabilities_by_project_responses.go +++ b/shared/pkg/scanner/dependency_track/api/client/client/vulnerability/get_vulnerabilities_by_project_responses.go @@ -14,7 +14,7 @@ import ( "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" ) // GetVulnerabilitiesByProjectReader is a Reader for the GetVulnerabilitiesByProject structure. diff --git a/shared/pkg/scanner/dependency_track/dependency_track.go b/shared/pkg/scanner/dependency_track/dependency_track.go index 4e9b8a4f5..c2853e76c 100644 --- a/shared/pkg/scanner/dependency_track/dependency_track.go +++ b/shared/pkg/scanner/dependency_track/dependency_track.go @@ -30,15 +30,15 @@ import ( uuid "github.com/satori/go.uuid" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/scanner" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/bom" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/project" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/client/vulnerability" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track/api/client/models" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/bom" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/project" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/client/vulnerability" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track/api/client/models" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) const ( diff --git a/shared/pkg/scanner/grype/common.go b/shared/pkg/scanner/grype/common.go index f33a7f23d..c9b76ea99 100644 --- a/shared/pkg/scanner/grype/common.go +++ b/shared/pkg/scanner/grype/common.go @@ -25,11 +25,11 @@ import ( syft_source "github.com/anchore/syft/syft/source" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/converter" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/scanner" - "github.com/cisco-open/kubei/shared/pkg/utils/image_helper" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/converter" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image_helper" ) const ( diff --git a/shared/pkg/scanner/grype/common_test.go b/shared/pkg/scanner/grype/common_test.go index c492dfa9f..103abb21c 100644 --- a/shared/pkg/scanner/grype/common_test.go +++ b/shared/pkg/scanner/grype/common_test.go @@ -23,7 +23,7 @@ import ( "github.com/anchore/grype/grype/presenter/models" "gotest.tools/assert" - "github.com/cisco-open/kubei/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" ) func TestCreateResults(t *testing.T) { diff --git a/shared/pkg/scanner/grype/local_grype.go b/shared/pkg/scanner/grype/local_grype.go index 2a1aca83a..0003bfbc3 100644 --- a/shared/pkg/scanner/grype/local_grype.go +++ b/shared/pkg/scanner/grype/local_grype.go @@ -25,9 +25,9 @@ import ( "github.com/anchore/syft/syft/pkg/cataloger" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type LocalScanner struct { diff --git a/shared/pkg/scanner/grype/remote_grype.go b/shared/pkg/scanner/grype/remote_grype.go index 2980863b3..3670d87da 100644 --- a/shared/pkg/scanner/grype/remote_grype.go +++ b/shared/pkg/scanner/grype/remote_grype.go @@ -29,10 +29,10 @@ import ( "github.com/go-openapi/strfmt" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/scanner" - "github.com/cisco-open/kubei/shared/pkg/utils" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/scanner" + "github.com/openclarity/kubeclarity/shared/pkg/utils" ) type RemoteScanner struct { diff --git a/shared/pkg/scanner/job/job.go b/shared/pkg/scanner/job/job.go index be38de83f..bc5f6ec0a 100644 --- a/shared/pkg/scanner/job/job.go +++ b/shared/pkg/scanner/job/job.go @@ -18,10 +18,10 @@ package job import ( "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/config" - "github.com/cisco-open/kubei/shared/pkg/job_manager" - "github.com/cisco-open/kubei/shared/pkg/scanner/dependency_track" - "github.com/cisco-open/kubei/shared/pkg/scanner/grype" + "github.com/openclarity/kubeclarity/shared/pkg/config" + "github.com/openclarity/kubeclarity/shared/pkg/job_manager" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/dependency_track" + "github.com/openclarity/kubeclarity/shared/pkg/scanner/grype" ) func CreateJob(scannerName string, config *config.Config, logger *logrus.Entry, resultChan chan job_manager.Result) job_manager.Job { diff --git a/shared/pkg/scanner/sort.go b/shared/pkg/scanner/sort.go index 4ebbcd0c1..cd781a4a5 100644 --- a/shared/pkg/scanner/sort.go +++ b/shared/pkg/scanner/sort.go @@ -18,7 +18,7 @@ package scanner import ( "sort" - vulutil "github.com/cisco-open/kubei/shared/pkg/utils/vulnerability" + vulutil "github.com/openclarity/kubeclarity/shared/pkg/utils/vulnerability" ) // SortBySeverityAndCVSS sorts vulnerabilities by severity, CVSSv3.1, CVSSv3.0 and CVSSv2.0. diff --git a/shared/pkg/scanner/sort_test.go b/shared/pkg/scanner/sort_test.go index 376618f85..b5cfc6e08 100644 --- a/shared/pkg/scanner/sort_test.go +++ b/shared/pkg/scanner/sort_test.go @@ -19,7 +19,7 @@ import ( "reflect" "testing" - vulutil "github.com/cisco-open/kubei/shared/pkg/utils/vulnerability" + vulutil "github.com/openclarity/kubeclarity/shared/pkg/utils/vulnerability" ) func Test_getCVSSBaseScore(t *testing.T) { diff --git a/shared/pkg/utils/creds/extractor.go b/shared/pkg/utils/creds/extractor.go index 8eec9efda..65b28dc83 100644 --- a/shared/pkg/utils/creds/extractor.go +++ b/shared/pkg/utils/creds/extractor.go @@ -22,10 +22,10 @@ import ( "github.com/containers/image/v5/docker/reference" log "github.com/sirupsen/logrus" - "github.com/cisco-open/kubei/shared/pkg/utils/creds/ecr" - "github.com/cisco-open/kubei/shared/pkg/utils/creds/gcr" - "github.com/cisco-open/kubei/shared/pkg/utils/creds/secret" - "github.com/cisco-open/kubei/shared/pkg/utils/image" + "github.com/openclarity/kubeclarity/shared/pkg/utils/creds/ecr" + "github.com/openclarity/kubeclarity/shared/pkg/utils/creds/gcr" + "github.com/openclarity/kubeclarity/shared/pkg/utils/creds/secret" + "github.com/openclarity/kubeclarity/shared/pkg/utils/image" ) type CredExtractor struct { diff --git a/shared/pkg/utils/creds/secret/secret.go b/shared/pkg/utils/creds/secret/secret.go index 4ff087cf7..61b031113 100644 --- a/shared/pkg/utils/creds/secret/secret.go +++ b/shared/pkg/utils/creds/secret/secret.go @@ -23,7 +23,7 @@ import ( "github.com/containers/image/v5/docker/reference" corev1 "k8s.io/api/core/v1" - "github.com/cisco-open/kubei/shared/pkg/utils/k8s" + "github.com/openclarity/kubeclarity/shared/pkg/utils/k8s" ) const ImagePullSecretEnvVar = "K8S_IMAGE_PULL_SECRET" // nolint:gosec diff --git a/shared/pkg/utils/image_helper/image_helper.go b/shared/pkg/utils/image_helper/image_helper.go index 70e0f7b4c..1ac369c9d 100644 --- a/shared/pkg/utils/image_helper/image_helper.go +++ b/shared/pkg/utils/image_helper/image_helper.go @@ -31,7 +31,7 @@ import ( "github.com/google/go-containerregistry/pkg/v1/remote" log "github.com/sirupsen/logrus" - sharedconfig "github.com/cisco-open/kubei/shared/pkg/config" + sharedconfig "github.com/openclarity/kubeclarity/shared/pkg/config" ) // FsLayerCommand represents a history command of a layer in a docker image. diff --git a/shared/pkg/utils/k8s/k8s_utils.go b/shared/pkg/utils/k8s/k8s_utils.go index b33a9be1d..5ef98108a 100644 --- a/shared/pkg/utils/k8s/k8s_utils.go +++ b/shared/pkg/utils/k8s/k8s_utils.go @@ -97,7 +97,7 @@ func GetAuthConfig(secrets []corev1.Secret, named reference.Named) (*authn.AuthC } // ParseImageHash extracts image hash from image ID -// input: docker-pullable://gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa +// input: docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa // output: 6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa func ParseImageHash(imageID string) string { index := strings.LastIndex(imageID, ":") @@ -110,8 +110,8 @@ func ParseImageHash(imageID string) string { // ParseImageID remove "docker-pullable://" prefix from imageID if exists // https://github.com/kubernetes/kubernetes/issues/95968 -// input: docker-pullable://gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa -// output: gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa +// input: docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa +// output: gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa func ParseImageID(imageID string) string { return strings.TrimPrefix(imageID, "docker-pullable://") } diff --git a/shared/pkg/utils/k8s/k8s_utils_test.go b/shared/pkg/utils/k8s/k8s_utils_test.go index 992b212bd..fe02b7ad4 100644 --- a/shared/pkg/utils/k8s/k8s_utils_test.go +++ b/shared/pkg/utils/k8s/k8s_utils_test.go @@ -34,14 +34,14 @@ func TestParseImageHash(t *testing.T) { { name: "valid image id", args: args{ - imageID: "docker-pullable://gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", + imageID: "docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, want: "6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, { name: "no image hash", args: args{ - imageID: "docker-pullable://gcr.io/development-infra-208909/kubei@sha256:", + imageID: "docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:", }, want: "", }, @@ -255,16 +255,16 @@ func TestParseImageID(t *testing.T) { { name: "image id with docker-pullable prefix", args: args{ - imageID: "docker-pullable://gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", + imageID: "docker-pullable://gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, - want: "gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", + want: "gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, { name: "image id without docker-pullable prefix", args: args{ - imageID: "gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", + imageID: "gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, - want: "gcr.io/development-infra-208909/kubei@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", + want: "gcr.io/development-infra-208909/kubeclarity@sha256:6d5d0e4065777eec8237cefac4821702a31cd5b6255483ac50c334c057ffecfa", }, { name: "no image id",